summaryrefslogtreecommitdiff
path: root/app-admin/sysstat
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-06 06:30:53 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-06 06:30:53 +0100
commitf4ee508de68f4da495d887f2855afbe02434a561 (patch)
treeb0947e32df8014f5418e739ec5528027c8981c46 /app-admin/sysstat
parent9323524b4d44f4ec3dc923bd8e9ea04bdde8a067 (diff)
gentoo auto-resync : 06:04:2024 - 06:30:53
Diffstat (limited to 'app-admin/sysstat')
-rw-r--r--app-admin/sysstat/Manifest2
-rw-r--r--app-admin/sysstat/files/sysstat-12.6.2-defs_and_flags.patch18
-rw-r--r--app-admin/sysstat/sysstat-12.6.2-r2.ebuild85
3 files changed, 105 insertions, 0 deletions
diff --git a/app-admin/sysstat/Manifest b/app-admin/sysstat/Manifest
index 0cc306239b00..a2779c04dea6 100644
--- a/app-admin/sysstat/Manifest
+++ b/app-admin/sysstat/Manifest
@@ -1,5 +1,7 @@
AUX sysstat-12.6.2-check_overflow.patch 1071 BLAKE2B efa23b3c2fbe1aac353b7282836639dbee08b6cd2fbba9856213a92c65ec8df688182e996966330aa501cbc75845d7159861334715c3ee40c9eb045f42afd153 SHA512 8329d50044c011b30d9ce034d24207502b811cd61b152da6fba330072a63599ebea7f1939856b9e8d6ca79f42c64b0a619138aea6349af7fe69a34319a7b0ec7
+AUX sysstat-12.6.2-defs_and_flags.patch 297 BLAKE2B e0cc3f6d75fa9df9d923494ede247bc1de80c8bfccc1afda1616a739234aec798e1fbe9d9450d0b6c93f5d3b97a7c99301affb73d1df6f4dd85ae009b52e61d5 SHA512 34b572699f3ab9e5cd3bf991b62de258b7a08a1be5be61e33eb282c0e56ec2135229e71ae8c6cf0bec90e6f1e89a95aab81cec2249fbc97f327768d06974cd09
AUX sysstat.init.d 378 BLAKE2B fe781f1a53e183023da2b46ecefb37881eedf8e8df2623927b24f33aa3344776b39db038d598ad050f1d48462d52300fb17731f29b0a8ab9c800fbe379efa249 SHA512 328ee3d40d45a0b1702c74fe0195ce4444cc8f63cb0fa68ba40ca20cfa183dd7acf4fc846cd76a4bcf426a3b4064316061dbbf26ca20047711528399e17b20b4
DIST sysstat-12.6.2.tar.gz 1455025 BLAKE2B aba2d8fd5fae8d6df740173d7ccd60beb0628c4c2205342f72ec03d6c48995d397de0d6f2cace24accf1a9274da37cf3bba86888717bc8d62d262ffd1c6f995e SHA512 376047de55598c6f671b999203809219a40206a9c58499399681af9ebe6048dd4da96c8ef5827d75cc369a7b69c3f1aadef1a5e8deec318a12b230d61f09fc08
EBUILD sysstat-12.6.2-r1.ebuild 1780 BLAKE2B 7d1b3c4134f6f19ba14af313653ed57e17dfb4a30162257341731f1b742dbb78100c98d01cc6bd761a53b3defcb9073836baacc533de902bda6035a2e273706b SHA512 77054f63ddfbd61d46113888c68ec7ab2a9cfb615c05b4d110e3d30f1bb1fe4a969662fbe68d788ccc80d46030b98ffd9baee89095b5389a61c19feed764b214
+EBUILD sysstat-12.6.2-r2.ebuild 1788 BLAKE2B 85fc631dabaf4ca7b321982732713708354116bf416a5177a61eeade16ac788e5363dc51140e42cdab205443257f7f485461e3dd7b1439d1f13dafe2781e1c75 SHA512 32c8288d5a99717f56ea67f3bfe883573eb612ffe367f5c5cb7c027d444f5b7b6735a0af0696f579eabb8800e2ef2d61936442dfb3c23d2cce691fa2373a5df0
MISC metadata.xml 437 BLAKE2B 1ca03db67ea2dd54c60d454f2215d23e3ab00013beecd400830ba56cc17fd9fc070f2fb1222d21518981a8b76b391ea3fa0e459c11d9a749209ce11b73f74678 SHA512 7856c36c0805a65d36982a9eeef389683954564df7ecd01e8c07db3fa75114bc8459a9d3b8a049953437f023c2f31fd6527d082d4bf9c82692acff468e6fb316
diff --git a/app-admin/sysstat/files/sysstat-12.6.2-defs_and_flags.patch b/app-admin/sysstat/files/sysstat-12.6.2-defs_and_flags.patch
new file mode 100644
index 000000000000..854a66219ff9
--- /dev/null
+++ b/app-admin/sysstat/files/sysstat-12.6.2-defs_and_flags.patch
@@ -0,0 +1,18 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -94,10 +94,14 @@
+ endif
+
+ # Compiler flags
++ifndef CPPFLAGS
++CPPFLAGS = @CPPFLAGS@
++endif
++CPPFLAGS += @DEFS@
+ ifndef CFLAGS
+ CFLAGS = @CFLAGS@
+ endif
+-CFLAGS += -Wall -Wstrict-prototypes -pipe -O2
++CFLAGS += $(CPPFLAGS)
+
+ ifndef DFLAGS
+ DFLAGS = @DFLAGS@
diff --git a/app-admin/sysstat/sysstat-12.6.2-r2.ebuild b/app-admin/sysstat/sysstat-12.6.2-r2.ebuild
new file mode 100644
index 000000000000..2645fb504348
--- /dev/null
+++ b/app-admin/sysstat/sysstat-12.6.2-r2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd toolchain-funcs
+
+DESCRIPTION="System performance tools for Linux"
+HOMEPAGE="http://sebastien.godard.pagesperso-orange.fr/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="dcron debug nls lm-sensors selinux systemd"
+
+BDEPEND="
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+
+COMMON_DEPEND="
+ nls? ( virtual/libintl )
+ lm-sensors? ( sys-apps/lm-sensors:= )
+"
+
+DEPEND="${COMMON_DEPEND}"
+
+RDEPEND="
+ ${COMMON_DEPEND}
+ !dcron? ( !sys-process/dcron )
+ selinux? ( sec-policy/selinux-sysstat )
+"
+
+REQUIRED_USE="dcron? ( !systemd )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-12.6.2-check_overflow.patch
+ "${FILESDIR}"/${PN}-12.6.2-defs_and_flags.patch
+)
+
+src_prepare() {
+ if use dcron; then
+ sed -i 's/@CRON_OWNER@ //g' cron/sysstat.crond.in || die
+ fi
+ default
+}
+
+src_configure() {
+ tc-export AR
+
+ # --enable-lto only appends -flto
+ sa_lib_dir=/usr/lib/sa \
+ conf_dir=/etc \
+ econf \
+ $(use_enable !systemd use-crond) \
+ $(use_enable lm-sensors sensors) \
+ $(use_enable nls) \
+ $(usex debug --enable-debuginfo '') \
+ --disable-compress-manpg \
+ --disable-stripping \
+ --disable-pcp \
+ --enable-copy-only \
+ --enable-documentation \
+ --enable-install-cron \
+ --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
+}
+
+src_install() {
+ keepdir /var/log/sa
+
+ emake \
+ CHOWN=true \
+ DESTDIR="${D}" \
+ DOC_DIR=/usr/share/doc/${PF} \
+ MANGRPARG='' \
+ install
+
+ dodoc -r contrib/
+
+ newinitd "${FILESDIR}"/${PN}.init.d ${PN}
+ systemd_dounit ${PN}.service
+
+ rm "${D}"/usr/share/doc/${PF}/COPYING || die
+}