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.

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