2 # Copyright (C) 2008-2009 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
://pagesperso-orange.fr
/sebastien.godard
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/sysstat
23 TITLE
:=Sysstat performance monitoring tools
24 URL
:=http
://pagesperso-orange.fr
/sebastien.godard
/index.html
27 define Package
/sysstat
/description
28 The sysstat utilities are a collection of performance monitoring tools for
29 Linux. These
include sar
, sadf
, mpstat
, iostat
, pidstat and sa tools.
32 define Package
/sysstat
/conffiles
33 /etc
/sysstat
/sysstat.ioconf
38 sa_lib_dir
="/usr/lib/sysstat" \
39 sa_dir
="/var/log/sysstat" \
40 conf_dir
="/etc/sysstat" \
42 define Package
/sysstat
/install
43 $(INSTALL_DIR
) $(1)/usr
/lib
/sysstat
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/{sadc
,sa1
,sa2
} $(1)/usr
/lib
/sysstat
/
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/{sar
,sadf
,iostat
,mpstat
,pidstat
} $(1)/usr
/bin
/
47 $(INSTALL_DIR
) $(1)/etc
/sysstat
48 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/sysstat.ioconf
$(1)/etc
/sysstat
/
49 $(INSTALL_CONF
) .
/files
/config
$(1)/etc
/sysstat
/config
50 $(INSTALL_DIR
) $(1)/etc
/init.d
51 $(INSTALL_BIN
) .
/files
/sysstat.init
$(1)/etc
/init.d
/sysstat
54 $(eval
$(call BuildPackage
,sysstat
))