diff options
Diffstat (limited to 'app-admin/sysstat')
-rw-r--r-- | app-admin/sysstat/Manifest | 1 | ||||
-rw-r--r-- | app-admin/sysstat/sysstat-999999.ebuild | 85 |
2 files changed, 86 insertions, 0 deletions
diff --git a/app-admin/sysstat/Manifest b/app-admin/sysstat/Manifest index d1e298c5f445..be0d433eba59 100644 --- a/app-admin/sysstat/Manifest +++ b/app-admin/sysstat/Manifest @@ -12,4 +12,5 @@ EBUILD sysstat-12.0.2.ebuild 1786 BLAKE2B 155d89a10b9c4e4870c62f8229ca2e530413e6 EBUILD sysstat-12.0.3.ebuild 1786 BLAKE2B 155d89a10b9c4e4870c62f8229ca2e530413e688c61c5d9e0d1dfa68633040a7a01c6c7713d34c93d52c6f8e01c82cb98dd1511f8cd2815cfd1d06935f12d0ee SHA512 5b480ae929e82e454d69126e51f0d45f9103288a90568e34413c39aa591c8e823c6d9acee55a26e86f7e4dd8f165e11af321b0b5053354cb92bdd876e5b0b7d7 EBUILD sysstat-12.1.2.ebuild 1786 BLAKE2B 155d89a10b9c4e4870c62f8229ca2e530413e688c61c5d9e0d1dfa68633040a7a01c6c7713d34c93d52c6f8e01c82cb98dd1511f8cd2815cfd1d06935f12d0ee SHA512 5b480ae929e82e454d69126e51f0d45f9103288a90568e34413c39aa591c8e823c6d9acee55a26e86f7e4dd8f165e11af321b0b5053354cb92bdd876e5b0b7d7 EBUILD sysstat-12.1.3.ebuild 1793 BLAKE2B 330c74093228846f82d0ea709f649508b01a1618d7493b60c6be5f34b0583fc7eb7798fc5b386c14bd21a2ee7698ce8b8c098bf00761eda8e55ca6df7d2c0b9d SHA512 7a2a46ecd3be1db6de32abdfcd0e13330b8c7e8a69a986246b0382197d847d36234d084fbbf6b00cec591bebf0741578c8c7b1385a76ef6322b4ee4272702803 +EBUILD sysstat-999999.ebuild 1741 BLAKE2B 17d47e7c1a6f90d9930b1291d54f684889e7f617cd29030cdfecd4909c50c4008e5a35a860a2b1b165c432d7b444debf2fbd2f8aecafe51532ee3b35740f126e SHA512 450f00d7fdd18fff61eac06f2c4cb02aff1a540593812965aa8f29f3338da6c0950e89314eab5fe870a8d024e58126b7015f1b1c920b5a9012099c54a3394260 MISC metadata.xml 336 BLAKE2B ba4225003301f291de8d348fcec269a2f7dc8f729a93e3c974a3eb9712f7fe08f59d799e4bf2e936a1224bfa5fa59d4b4b333aeacde9864313c20e1d3a7f4580 SHA512 63adb90aca54ec347aac7feaad3b2ee3c707fc536c0de0e0ee045d4fe2c08e231bdbd4473b9722a747ef1263cb98a067a43cbbbae28aabad71458c16df946bc6 diff --git a/app-admin/sysstat/sysstat-999999.ebuild b/app-admin/sysstat/sysstat-999999.ebuild new file mode 100644 index 000000000000..b8e79ab247b8 --- /dev/null +++ b/app-admin/sysstat/sysstat-999999.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic git-r3 multilib systemd toolchain-funcs + +DESCRIPTION="System performance tools for Linux" +HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/" +EGIT_REPO_URI="https://github.com/sysstat/sysstat" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="debug nls lm_sensors selinux static" + +CDEPEND=" + nls? ( virtual/libintl ) + lm_sensors? ( sys-apps/lm_sensors:= ) +" +DEPEND=" + ${CDEPEND} + nls? ( sys-devel/gettext ) +" +RDEPEND=" + ${CDEPEND} + selinux? ( sec-policy/selinux-sysstat ) +" +PATCHES=( + "${FILESDIR}"/${PN}-11.0.4-cron.patch + "${FILESDIR}"/${PN}-11.7.3-flags.patch +) + +SYSSTAT_FAKE_RC_DIR=Gentoo-does-not-use-rc.d + +src_prepare() { + if use nls; then + strip-linguas -i nls/ + local lingua pofile + for pofile in nls/*.po; do + lingua=${pofile/nls\/} + lingua=${lingua/.po} + if ! has ${lingua} ${LINGUAS}; then + rm "nls/${lingua}.po" || die + fi + done + fi + + default +} + +src_configure() { + tc-export AR + use static && append-ldflags -static + + sa_lib_dir=/usr/$(get_libdir)/sa \ + conf_dir=/etc \ + rcdir=${SYSSTAT_FAKE_RC_DIR} \ + econf \ + $(use_enable debug debuginfo) \ + $(use_enable lm_sensors sensors) \ + $(use_enable nls) \ + --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/ + + rm -r "${D}/${SYSSTAT_FAKE_RC_DIR}" || die + newinitd "${FILESDIR}"/${PN}.init.d ${PN} + systemd_dounit ${PN}.service + + rm -f "${D}"usr/share/doc/${PF}/COPYING +} |