lua-rs232: fix compilation with GCC13
[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.4.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://pagesperso-orange.fr/sebastien.godard/
16 PKG_HASH:=ef445acea301bbb996e410842f6290a8d049e884d4868cfef7e85dc04b7eee5b
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:=http://pagesperso-orange.fr/sebastien.godard/index.html
35 DEPENDS:=$(INTL_DEPENDS)
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 conf_dir="/etc/sysstat"
52
53 CONFIGURE_ARGS+= \
54 --disable-documentation \
55 --disable-sensors
56
57 define Package/sysstat/install
58 $(INSTALL_DIR) $(1)/usr/lib/sysstat
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/sysstat/{sadc,sa1,sa2} $(1)/usr/lib/sysstat/
60 $(INSTALL_DIR) $(1)/usr/bin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sar,sadf,iostat,mpstat,pidstat} $(1)/usr/bin/
62 $(INSTALL_DIR) $(1)/etc/sysstat
63 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sysstat/sysstat.ioconf $(1)/etc/sysstat/
64 $(INSTALL_DIR) $(1)/etc/config
65 $(INSTALL_CONF) ./files/sysstat.config $(1)/etc/config/sysstat
66 $(INSTALL_DIR) $(1)/etc/init.d
67 $(INSTALL_BIN) ./files/sysstat.init $(1)/etc/init.d/sysstat
68 endef
69
70 $(eval $(call BuildPackage,sysstat))