Files
2015-10-18 20:13:03 +03:00

68 lines
1.8 KiB
Makefile

#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=sysstat
PKG_VERSION:=11.0.4
PKG_RELEASE:=2a
PKG_LICENSE:=GPL-2.0
PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://perso.orange.fr/sebastien.godard/
PKG_MD5SUM:=df1ed75656eb06320088d54247f0e803
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/sysstat
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Sysstat performance monitoring tools
URL:=http://pagesperso-orange.fr/sebastien.godard/index.html
endef
define Package/sysstat/description
The sysstat utilities are a collection of performance monitoring tools for
Linux. These include sar, sadf, mpstat, iostat, pidstat and sa tools.
endef
define Package/sysstat/conffiles
/opt/etc/sysstat/sysstat.ioconf
/opt/etc/sysstat/sysstat
endef
CONFIGURE_VARS+= \
sa_lib_dir="/opt/lib/sysstat" \
sa_dir="/opt/var/log/sysstat" \
conf_dir="/opt/etc/sysstat"
CONFIGURE_ARGS+= \
--disable-documentation \
--disable-largefile \
--disable-sensors \
--disable-nls
TARGET_CFLAGS += $(TARGET_LDFLAGS)
define Package/sysstat/install
$(INSTALL_DIR) $(1)/opt/lib/sysstat
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/lib/sysstat/{sadc,sa1,sa2} $(1)/opt/lib/sysstat/
$(INSTALL_DIR) $(1)/opt/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/bin/{sar,sadf,iostat,mpstat,pidstat} $(1)/opt/bin/
$(INSTALL_DIR) $(1)/opt/etc/sysstat
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/opt/etc/sysstat/sysstat.ioconf $(1)/opt/etc/sysstat/
$(INSTALL_DIR) $(1)/opt/var/log/sysstat
$(INSTALL_DIR) $(1)/opt/etc/init.d
$(INSTALL_BIN) ./files/S99sysstat $(1)/opt/etc/init.d/
endef
$(eval $(call BuildPackage,sysstat))