diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/flent/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/net/flent/Makefile b/net/flent/Makefile index 15180f251..276ff07da 100644 --- a/net/flent/Makefile +++ b/net/flent/Makefile @@ -13,6 +13,7 @@ PKG_LICENSE_FILES:=LICENSE include ../../lang/python/pypi.mk include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk include ../../lang/python/python3-package.mk define Package/flent @@ -27,6 +28,7 @@ define Package/flent +python3-logging \ +python3-distutils \ +python3-defusedxml \ + +flent-tools \ +netperf \ +fping endef @@ -36,6 +38,40 @@ define Package/flent/description netperf/iperf/ping instances and aggregate the results. endef + +define Package/flent-tools + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Helper programs for the Flent test tool + URL:=https://flent.org + DEPENDS+=+librt +coreutils-sleep +coreutils-date +endef + +define Package/flent-tools/description + This builds the C helper programs for gathering data for + the Flent network testing tool. These tools are needed for + gathering data when a Bash shell is not available (and also + perform better than the shell equivalents). +endef + +define Build/Compile/flent-tools + $(MAKE) -C $(PKG_BUILD_DIR)/misc \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS) -std=gnu99" +endef + +define Package/flent-tools/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/tc_iterate $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/wifistats_iterate $(1)/usr/sbin/ +endef + +define Build/Compile + $(call Py3Build/Compile) + $(call Build/Compile/flent-tools) +endef + $(eval $(call Py3Package,flent)) $(eval $(call BuildPackage,flent)) $(eval $(call BuildPackage,flent-src)) +$(eval $(call BuildPackage,flent-tools)) |