diff options
-rw-r--r-- | app-admin/sysstat/Manifest | 1 | ||||
-rw-r--r-- | app-admin/sysstat/sysstat-11.2.0.ebuild | 91 |
2 files changed, 92 insertions, 0 deletions
diff --git a/app-admin/sysstat/Manifest b/app-admin/sysstat/Manifest index 34489fd2d4a5..b947093664f9 100644 --- a/app-admin/sysstat/Manifest +++ b/app-admin/sysstat/Manifest @@ -1,3 +1,4 @@ DIST sysstat-11.0.2.tar.xz 291256 SHA256 acd87fdfbe7c796480f14fc26119d8f785d26827d74a0f5bced6c492a91f1b96 SHA512 4bb5f2ee14346d83c59bd4da36ae8fc6c13197eabb808b1b5db84b593f07d8b366b1f6329abed8d43e2a8497a89de0f89a398b741d4ca23b4a3a95973b5f0f54 WHIRLPOOL 98daee288e22f803f19bbe423eb999f527e8997f2ffd3fe1fe784363260365ee833dd33b755f44d6bfcc685f70b47cb8fd70fdd9a3fa679829c1e608bd65f8e2 DIST sysstat-11.0.8.tar.xz 294828 SHA256 d073b0e95820254a3fbf53ae3fb27db91d5b11778875034cd39c4d56d8e23695 SHA512 bae205b90d3b908de14d568a7872cca1fe0b2a6e423b74d4f837ebd9f9892abc742f8dc746dde559763c982cf0fd73fafc9ad116ea827ff1189c92488fc8696e WHIRLPOOL 375c3e9af3634c151605f89f1debea3148e2d890f9c43cf4dcb834977c093d2622832c0f0773ef05330f6d9dacb3abfd74acc10ae56251b812a7c6c528007232 DIST sysstat-11.1.8.tar.xz 323512 SHA256 9c7eb478e6a3e6f3f19ef7e00438318e9f8e87a6608a242502a0828b6a41704a SHA512 4427f6e1a17cee2b56e624ab6c615d421e8a2a78b23dd6907a97f8946c20eefd2c181afe02652ad387a94d53d1d7203c6aee4d36d34424c9b2b03ee8b53366ce WHIRLPOOL 87c10b46f758efdee4e8dfedbc945a496e2f644de80632dd13fe7d99d81eca42d58a28946e138adcd4a8f9cdf22a1e1db14af548ebc4e55ad6a6eb2695bb7d65 +DIST sysstat-11.2.0.tar.xz 322660 SHA256 9806b9a662568796d3fb93ecd01ecea10d815e668337a646494953bff4bc4155 SHA512 0759d2df158b909a2f2f87cee9966041acb50093dbbd364bff9471b87143b31cd6bd83d085346a5a3e985b7b3cb29bcb1145739ac0b57804afcc5577c8f8c35f WHIRLPOOL 35b34f6f4e77a70a544d636e5dca4642cf1ec76dc16709ed0daab2c1b0741ba7d7e80f3290c47fbc16d25f89217b765c059bdea4677f26aad1406c7e4b6ae000 diff --git a/app-admin/sysstat/sysstat-11.2.0.ebuild b/app-admin/sysstat/sysstat-11.2.0.ebuild new file mode 100644 index 000000000000..40e717503bdf --- /dev/null +++ b/app-admin/sysstat/sysstat-11.2.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic multilib systemd toolchain-funcs + +DESCRIPTION="System performance tools for Linux" +HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/" +SRC_URI="${HOMEPAGE}${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="debug +doc isag nls lm_sensors selinux static" + +CDEPEND=" + isag? ( + dev-lang/tk:0 + dev-vcs/rcs + sci-visualization/gnuplot + ) + nls? ( virtual/libintl ) + lm_sensors? ( sys-apps/lm_sensors ) +" +DEPEND=" + ${CDEPEND} + nls? ( sys-devel/gettext ) +" +RDEPEND=" + ${CDEPEND} + selinux? ( sec-policy/selinux-sysstat ) +" + +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 + epatch \ + "${FILESDIR}"/${PN}-10.0.4-flags.patch \ + "${FILESDIR}"/${PN}-11.0.4-cron.patch +} + +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 \ + --enable-copy-only \ + --with-systemdsystemunitdir=$(systemd_get_unitdir) \ + $(use_enable debug debuginfo) \ + $(use_enable doc documentation ) \ + $(use_enable isag install-isag) \ + $(use_enable lm_sensors sensors) \ + $(use_enable nls) \ + --enable-install-cron +} + +src_compile() { + emake LFLAGS="${LDFLAGS}" +} + +src_install() { + keepdir /var/log/sa + + emake \ + DESTDIR="${D}" \ + DOC_DIR=/usr/share/doc/${PF} \ + install + + dodoc contrib/sargraph/sargraph + + rm -r "${D}/${SYSSTAT_FAKE_RC_DIR}" || die + newinitd "${FILESDIR}"/${PN}.init.d ${PN} + systemd_dounit ${PN}.service + + use doc && rm -f "${D}"usr/share/doc/${PF}/COPYING +} |