iproute2: Add package for nstat utility
authorJohn Crispin <john@openwrt.org>
Fri, 29 Apr 2016 11:35:10 +0000 (11:35 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 29 Apr 2016 11:35:10 +0000 (11:35 +0000)
Add support for the command line utility nstat displaying network statistics

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 49271

package/network/utils/iproute2/Makefile

index cb9730e683b7a3bd4fa81264afdac680302aff3a..a7686cb82c300d2d983a8eac508adadcd07e280c 100644 (file)
@@ -60,6 +60,11 @@ $(call Package/iproute2/Default)
   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,9 +133,15 @@ define Package/ss/install
        $(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))
 $(eval $(call BuildPackage,genl))
 $(eval $(call BuildPackage,ip-bridge))
 $(eval $(call BuildPackage,ss))
+$(eval $(call BuildPackage,nstat))