2 # Copyright (C) 2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://dag.wieers.com/home-made/dstat/
16 PKG_MD5SUM:=bfea4dc8037a0b18fc40a4dfc104dcc8
18 include $(INCLUDE_DIR)/package.mk
23 TITLE:=Versatile resource statistics tool
24 URL:=http://dag.wieers.com/home-made/dstat/
28 define Package/dstat/description
29 Dstat is a versatile replacement for vmstat, iostat, netstat
30 and ifstat. Dstat overcomes some of their limitations and
31 adds some extra features, more counters and flexibility.
32 Dstat is handy for monitoring systems during performance
33 tuning tests, benchmarks or troubleshooting.
39 define Package/dstat/install
40 $(INSTALL_DIR) $(1)/usr/share/dstat
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dstat $(1)/usr/share/dstat/dstat.py
42 $(INSTALL_DATA) $(PKG_BUILD_DIR)/plugins/dstat_*.py $(1)/usr/share/dstat/
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(LN) -sf ../share/dstat/dstat.py $(1)/usr/bin/dstat
47 $(eval $(call BuildPackage,dstat))