Merge pull request #12342 from PolynomialDivision/feature/add_dawn_node_exporter
[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.3.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/tohojo/flent/tar.gz/v$(PKG_VERSION)?
16 PKG_HASH:=f71793bb924b36d0e4c230182755c3f5dd26cd7f239b1fa6b717d942258cbf9a
17 PKG_BUILD_DIR:=$(BUILD_DIR)/flent-$(PKG_VERSION)
18
19 PKG_LICENSE:=GPL-3.0-only
20 PKG_LICENSE_FILES:=LICENSE
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/nls.mk
24
25 define Package/flent-tools
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=Helper programs for the Flent test tool
29 URL:=https://flent.org
30 MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
31 DEPENDS+=+librt +coreutils-sleep +coreutils-date
32 endef
33
34 define Package/flent-tc_iterate/description
35 This builds the C helper programs for gathering data for
36 the Flent network testing tool. These tools are needed for
37 gathering data when a Bash shell is not available (and also
38 perform better than the shell equivalents).
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR)/misc \
43 CC="$(TARGET_CC)" \
44 CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
45 endef
46
47 define Package/flent-tools/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/tc_iterate $(1)/usr/sbin/
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/wifistats_iterate $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,flent-tools))