net/rp-pppoe: fix typo in init script
[feed/packages.git] / utils / flent-tools / Makefile
1 #
2 # Copyright (C) 2007-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=flent-tools
11 PKG_VERSION:=1.0.1
12 PKG_LICENSE:=GPLv3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
15 PKG_MIRROR_HASH:=0c4a99179a76e8479bdc7d91c312de7fc9e6d4d54132d1b2aba836138c86440c
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_URL:=https://github.com/tohojo/flent
18 PKG_REV:=03c72cc340def354024351b6500774b11170d5ba
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=$(PKG_REV)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/flent-tools
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=Helper programs for the Flent test tool
28 URL:=https://flent.org
29 MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
30 DEPENDS+=+librt
31 endef
32
33 define Package/flent-tc_iterate/description
34 This builds the C helper programs for gathering data for
35 the Flent network testing tool. These tools are needed for
36 gathering data when a Bash shell is not available (and also
37 perform better than the shell equivalents).
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR)/misc \
42 CC="$(TARGET_CC)" \
43 CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
44 endef
45
46 define Package/flent-tools/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/tc_iterate $(1)/usr/sbin/
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/wifistats_iterate $(1)/usr/sbin/
50 endef
51
52 $(eval $(call BuildPackage,flent-tools))