branch Attitude Adjustment packages
[12.09/packages.git] / utils / sysstat / Makefile
1 #
2 # Copyright (C) 2008-2010 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:=9.0.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://pagesperso-orange.fr/sebastien.godard
16 PKG_MD5SUM:=e069daf192d259de905d7f8cdd85dc4e
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/sysstat
23   SECTION:=utils
24   CATEGORY:=Utilities
25   TITLE:=Sysstat performance monitoring tools
26   URL:=http://pagesperso-orange.fr/sebastien.godard/index.html
27 endef
28
29 define Package/sysstat/description
30   The sysstat utilities are a collection of performance monitoring tools for
31   Linux. These include sar, sadf, mpstat, iostat, pidstat and sa tools.
32 endef
33
34 define Package/sysstat/conffiles
35 /etc/sysstat/sysstat.ioconf
36 /etc/sysstat/config
37 endef
38
39 CONFIGURE_VARS+= \
40         sa_lib_dir="/usr/lib/sysstat" \
41         sa_dir="/var/log/sysstat" \
42         conf_dir="/etc/sysstat" \
43
44 CONFIGURE_ARGS+= \
45         --disable-documentation \
46
47 define Package/sysstat/install
48         $(INSTALL_DIR) $(1)/usr/lib/sysstat
49         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/sysstat/{sadc,sa1,sa2} $(1)/usr/lib/sysstat/
50         $(INSTALL_DIR) $(1)/usr/bin
51         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sar,sadf,iostat,mpstat,pidstat} $(1)/usr/bin/
52         $(INSTALL_DIR) $(1)/etc/sysstat
53         $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sysstat/sysstat.ioconf $(1)/etc/sysstat/
54         $(INSTALL_CONF) ./files/config $(1)/etc/sysstat/config
55         $(INSTALL_DIR) $(1)/etc/init.d
56         $(INSTALL_BIN) ./files/sysstat.init $(1)/etc/init.d/sysstat
57 endef
58
59 $(eval $(call BuildPackage,sysstat))