aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-04-27 11:13:59 +0200
committerJo-Philipp Wich <jo@mein.io>2016-04-28 13:49:17 +0200
commitb3f6c4b3acf169beb907b1eede4084ea69f24770 (patch)
treed54cef83b0a7746e6733b2bd5bc518b11471dca3 /package
parent7545c1d96b9791d285b71cf8f142326160faa940 (diff)
downloadupstream-b3f6c4b3acf169beb907b1eede4084ea69f24770.tar.gz
upstream-b3f6c4b3acf169beb907b1eede4084ea69f24770.tar.bz2
upstream-b3f6c4b3acf169beb907b1eede4084ea69f24770.zip
iproute2: Add package for nstat utility
Add support for the command line utility nstat displaying network statistics Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package')
-rw-r--r--package/network/utils/iproute2/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile
index 89fb2e62e5..790aa4d0de 100644
--- a/package/network/utils/iproute2/Makefile
+++ b/package/network/utils/iproute2/Makefile
@@ -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))