Branch oldpackages for 14.07
[14.07/packages.git] / utils / dstat / Makefile
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dstat
11 PKG_VERSION:=0.7.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://dag.wieers.com/home-made/dstat/
16 PKG_MD5SUM:=bfea4dc8037a0b18fc40a4dfc104dcc8
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/dstat
21   SECTION:=utils
22   CATEGORY:=Utilities
23   TITLE:=Versatile resource statistics tool
24   URL:=http://dag.wieers.com/home-made/dstat/
25   DEPENDS:=+python
26 endef
27
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.
34 endef
35
36 define Build/Compile
37 endef
38
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
45 endef
46
47 $(eval $(call BuildPackage,dstat))