2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
)
19 PKG_LICENSE
:=GPL-3.0
-only
20 PKG_LICENSE_FILES
:=LICENSE
22 include $(INCLUDE_DIR
)/package.mk
23 include $(INCLUDE_DIR
)/nls.mk
25 define Package
/flent-tools
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
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
).
42 $(MAKE
) -C
$(PKG_BUILD_DIR
)/misc \
44 CFLAGS
="$(TARGET_CFLAGS) -std=gnu99"
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
/
53 $(eval
$(call BuildPackage
,flent-tools
))