Makefile (1802B)
1 # 2 # Copyright (C) 2015 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:=11.0.4 12 PKG_RELEASE:=2 13 14 PKG_LICENSE:=GPL-2.0 15 PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr> 16 17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 18 PKG_SOURCE_URL:=http://perso.orange.fr/sebastien.godard/ 19 PKG_MD5SUM:=df1ed75656eb06320088d54247f0e803 20 21 PKG_INSTALL:=1 22 23 include $(INCLUDE_DIR)/package.mk 24 25 define Package/sysstat 26 SECTION:=utils 27 CATEGORY:=Utilities 28 TITLE:=Sysstat performance monitoring tools 29 URL:=http://pagesperso-orange.fr/sebastien.godard/index.html 30 endef 31 32 define Package/sysstat/description 33 The sysstat utilities are a collection of performance monitoring tools for 34 Linux. These include sar, sadf, mpstat, iostat, pidstat and sa tools. 35 endef 36 37 define Package/sysstat/conffiles 38 /etc/sysstat/sysstat.ioconf 39 /etc/sysstat/sysstat 40 endef 41 42 CONFIGURE_VARS+= \ 43 sa_lib_dir="/usr/lib/sysstat" \ 44 sa_dir="/var/log/sysstat" \ 45 conf_dir="/etc/sysstat" 46 47 CONFIGURE_ARGS+= \ 48 --disable-documentation \ 49 --disable-largefile \ 50 --disable-sensors \ 51 --disable-nls 52 53 define Package/sysstat/install 54 $(INSTALL_DIR) $(1)/usr/lib/sysstat 55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/sysstat/{sadc,sa1,sa2} $(1)/usr/lib/sysstat/ 56 $(INSTALL_DIR) $(1)/usr/bin 57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sar,sadf,iostat,mpstat,pidstat} $(1)/usr/bin/ 58 $(INSTALL_DIR) $(1)/etc/sysstat 59 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sysstat/sysstat.ioconf $(1)/etc/sysstat/ 60 $(INSTALL_DIR) $(1)/etc/config 61 $(INSTALL_CONF) ./files/sysstat.config $(1)/etc/config/sysstat 62 $(INSTALL_DIR) $(1)/etc/init.d 63 $(INSTALL_BIN) ./files/sysstat.init $(1)/etc/init.d/sysstat 64 endef 65 66 $(eval $(call BuildPackage,sysstat))