exfatprogs: update to 1.2.5
[feed/packages.git] / utils / sysstat / Makefile
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:=12.7.5
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://sysstat.github.io/sysstat-packages
16 PKG_HASH:=57664040a549d33bb06a1121c7124d4cadd9b8b35f815856c194393047cd4d6b
17
18 PKG_MAINTAINER:=Marko Ratkaj <markoratkaj@gmail.com>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:sysstat_project:sysstat
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/nls.mk
29
30 define Package/sysstat
31 SECTION:=utils
32 CATEGORY:=Utilities
33 TITLE:=Sysstat performance monitoring tools
34 URL:=https://sysstat.github.io/
35 DEPENDS:=$(INTL_DEPENDS) +xz-utils +xz
36 endef
37
38 define Package/sysstat/description
39 The sysstat utilities are a collection of performance monitoring tools for
40 Linux. These include sar, sadf, mpstat, iostat, pidstat and sa tools.
41 endef
42
43 define Package/sysstat/conffiles
44 /etc/config/sysstat
45 /etc/sysstat/sysstat.ioconf
46 /etc/sysstat/sysstat
47 endef
48
49 CONFIGURE_VARS+= \
50 sa_lib_dir="/usr/lib/sysstat" \
51 sa_dir="/var/log/sysstat" \
52 conf_dir="/etc/sysstat"
53
54 CONFIGURE_ARGS+= \
55 --disable-documentation \
56 --disable-sensors
57
58 define Package/sysstat/install
59 $(INSTALL_DIR) $(1)/usr/lib/sysstat
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/sysstat/{sadc,sa1,sa2} $(1)/usr/lib/sysstat/
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sar,sadf,iostat,mpstat,pidstat} $(1)/usr/bin/
63 $(INSTALL_DIR) $(1)/etc/sysstat
64 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sysstat/sysstat.ioconf $(1)/etc/sysstat/
65 $(INSTALL_DIR) $(1)/etc/config
66 $(INSTALL_CONF) ./files/sysstat.config $(1)/etc/config/sysstat
67 $(INSTALL_DIR) $(1)/etc/init.d
68 $(INSTALL_BIN) ./files/sysstat.init $(1)/etc/init.d/sysstat
69 endef
70
71 $(eval $(call BuildPackage,sysstat))