nuke $Id$ in /packages as well
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=sysstat
11 PKG_VERSION:=8.0.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=sysstat-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://perso.orange.fr/sebastien.godard
16 PKG_MD5SUM:=10369aeb42290f0141e685d33cdac658
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/sysstat
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=Sysstat performance monitoring tools
24 URL:=http://perso.orange.fr/sebastien.godard/index.html
25 endef
26
27 define Package/sysstat/description
28 The sysstat utilities are a collection of performance monitoring tools for Linux. These include sar, sadf, mpstat, iostat, pidstat and sa tools.
29 endef
30
31 define Package/sysstat/conffiles
32 /etc/sysstat/sysstat.ioconf
33 /etc/sysstat/config
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 sa_lib_dir="/usr/lib/sysstat" \
39 sa_dir="/var/log/sysstat" \
40 conf_dir="/etc/sysstat" \
41 )
42 endef
43
44 define Package/sysstat/install
45 $(INSTALL_DIR) $(1)/usr/lib/sysstat
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/{sadc,sa1,sa2} $(1)/usr/lib/sysstat
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/{sar,sadf,iostat,mpstat} $(1)/usr/bin
49 $(INSTALL_DIR) $(1)/etc/sysstat
50 $(CP) $(PKG_BUILD_DIR)/sysstat.ioconf $(1)/etc/sysstat
51 $(CP) ./files/config $(1)/etc/sysstat/config
52 $(INSTALL_DIR) $(1)/etc/init.d
53 $(INSTALL_BIN) ./files/sysstat.init $(1)/etc/init.d/sysstat
54 endef
55
56 $(eval $(call BuildPackage,sysstat))