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.

53 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.2.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/tohojo/flent/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=554bb1b5329cd39113cbb34445765ca6868dbf033aa64832d957d4a09d56adc7
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/flent-$(PKG_VERSION)
  15. PKG_LICENSE:=GPL-3.0-only
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.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))