You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.5 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=flent-tools
  9. PKG_VERSION:=1.0.1
  10. PKG_LICENSE:=GPLv3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
  12. PKG_MIRROR_HASH:=0c4a99179a76e8479bdc7d91c312de7fc9e6d4d54132d1b2aba836138c86440c
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/tohojo/flent
  15. PKG_REV:=03c72cc340def354024351b6500774b11170d5ba
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=$(PKG_REV)
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/flent-tools
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=Helper programs for the Flent test tool
  23. URL:=https://flent.org
  24. MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
  25. DEPENDS+=+librt
  26. endef
  27. define Package/flent-tc_iterate/description
  28. This builds the C helper programs for gathering data for
  29. the Flent network testing tool. These tools are needed for
  30. gathering data when a Bash shell is not available (and also
  31. perform better than the shell equivalents).
  32. endef
  33. define Build/Compile
  34. $(MAKE) -C $(PKG_BUILD_DIR)/misc \
  35. CC="$(TARGET_CC)" \
  36. CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
  37. endef
  38. define Package/flent-tools/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/tc_iterate $(1)/usr/sbin/
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/wifistats_iterate $(1)/usr/sbin/
  42. endef
  43. $(eval $(call BuildPackage,flent-tools))