Author: blogic
Date: 2016-04-29 13:35:10 +0200 (Fri, 29 Apr 2016)
New Revision: 49271

Modified:
   trunk/package/network/utils/iproute2/Makefile
Log:
iproute2: Add package for nstat utility

Add support for the command line utility nstat displaying network statistics

Signed-off-by: Hans Dedecker <[email protected]>

Modified: trunk/package/network/utils/iproute2/Makefile
===================================================================
--- trunk/package/network/utils/iproute2/Makefile       2016-04-29 11:35:05 UTC 
(rev 49270)
+++ trunk/package/network/utils/iproute2/Makefile       2016-04-29 11:35:10 UTC 
(rev 49271)
@@ -60,6 +60,11 @@
   TITLE:=Socket statistics utility
 endef
 
+define Package/nstat
+$(call Package/iproute2/Default)
+  TITLE:=Network statistics utility
+endef
+
 ifeq ($(BUILD_VARIANT),tiny)
   IP_CONFIG_TINY:=y
 endif
@@ -128,6 +133,11 @@
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/ss $(1)/usr/sbin/
 endef
 
+define Package/nstat/install
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/nstat $(1)/usr/sbin/
+endef
+
 $(eval $(call BuildPackage,ip))
 $(eval $(call BuildPackage,ip-full))
 $(eval $(call BuildPackage,tc))
@@ -134,3 +144,4 @@
 $(eval $(call BuildPackage,genl))
 $(eval $(call BuildPackage,ip-bridge))
 $(eval $(call BuildPackage,ss))
+$(eval $(call BuildPackage,nstat))
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to