Add sysstat (#2124)
[openwrt/svn-archive/archive.git] / utils / sysstat / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sysstat
12 PKG_VERSION:=8.0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=sysstat-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://perso.orange.fr/sebastien.godard
17 PKG_MD5SUM:=10369aeb42290f0141e685d33cdac658
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/sysstat
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=Sysstat performance monitoring tools
25 URL:=http://perso.orange.fr/sebastien.godard/index.html
26 endef
27
28 define Package/sysstat/description
29 The sysstat utilities are a collection of performance monitoring tools for Linux. These include sar, sadf, mpstat, iostat, pidstat and sa tools.
30 endef
31
32 define Package/sysstat/conffiles
33 /etc/sysstat/sysstat.ioconf
34 /etc/sysstat/config
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 sa_lib_dir="/usr/lib/sysstat" \
40 sa_dir="/var/log/sysstat" \
41 conf_dir="/etc/sysstat" \
42 )
43 endef
44
45 define Package/sysstat/install
46 $(INSTALL_DIR) $(1)/usr/lib/sysstat
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/{sadc,sa1,sa2} $(1)/usr/lib/sysstat
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/{sar,sadf,iostat,mpstat} $(1)/usr/bin
50 $(INSTALL_DIR) $(1)/var/log/sysstat
51 $(INSTALL_DIR) $(1)/etc/sysstat
52 $(CP) $(PKG_BUILD_DIR)/sysstat.ioconf $(1)/etc/sysstat
53 $(CP) ./files/config $(1)/etc/sysstat/config
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/sysstat.init $(1)/etc/init.d/sysstat
56 endef
57
58 $(eval $(call BuildPackage,sysstat))