summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-admin/sysstat/Manifest1
-rw-r--r--app-admin/sysstat/sysstat-11.5.3.ebuild96
2 files changed, 97 insertions, 0 deletions
diff --git a/app-admin/sysstat/Manifest b/app-admin/sysstat/Manifest
index e3c971a6cd51..4951573f6f53 100644
--- a/app-admin/sysstat/Manifest
+++ b/app-admin/sysstat/Manifest
@@ -3,3 +3,4 @@ DIST sysstat-11.4.0.tar.xz 343968 SHA256 b8518ca88acfcbc474a406022ee9c0c3210ccef
DIST sysstat-11.4.1.tar.xz 343920 SHA256 6430718e6c90356f63ea384e9b25264dd72a4e7c971977fed9a1292f0d84ec26 SHA512 74e2bdbff70928f28bfe9a3019b678c595002b402a32529cf4c8082bc63d36a72ac22ff80573f830f19ac6214d9f409820f6807146f32213cbad0433c47c4096 WHIRLPOOL e985772172febed155cf2a723de514aae1ac13c3a38efd6b9803e46545e913229b15f808bce6051634d44c3409156f75f6a33e0b6b4b5ea707005f27712100db
DIST sysstat-11.4.2.tar.xz 344168 SHA256 1fd407f8971f5854bc853d931dd85bcbea08658130f3f8510a730d5561980f39 SHA512 8da43fcaccbce0333c16ba1fd508540213252fbd8f730b0b31edf7450c123377b08a43cc06cc74776d7a54a8bb3e7cb848b6353f17aa6583328ade7f18111fbf WHIRLPOOL bf82fc2eeeb1b9900435d1ed9b06a251c6a1f84713d5e709a831de6c3c7d9d5e4bf19449a988ac62a12e9320d680d41449830b26584595fef41623a556bc229f
DIST sysstat-11.5.2.tar.xz 348164 SHA256 5b923f0461ed72d8d534abb45fd0c42275f928d4b91c386918e6de6cd81fc6e4 SHA512 32288a040bb0895ee86645762d9db4e4ca9a3c23b93d6011c54e5ab0e5be7682f59a63713f032ec443b3afe1ced983facc2adb42c487c206b4f2838e8a308b71 WHIRLPOOL 6ea4b6af5bf3bdf04bfa3084932154f44193eee51ac31fd291f505653dd3363bd53a5463e316416d6bd93230009f74982577f7ace0fd0f3ab1cbd809122caac6
+DIST sysstat-11.5.3.tar.xz 350468 SHA256 f8229d14819e2d461ede83894648e03c8a2ad14a1ba200d68cda9816c42f41ea SHA512 41af196dec7b13e2496ae0a59ec5dfb4da7e996ee38ac633964460dcc8c008f16af7524c79d770a197662add6821b8b60de2b118507e06f0ccb84280aee13cb0 WHIRLPOOL ae8737af473fab427e7710406c207e57526e476915b5bfe19bb8043bf8038da5f887d5a1f99d9270fd4074d7d9c58745a5a397f814ae544396447f7d42b10302
diff --git a/app-admin/sysstat/sysstat-11.5.3.ebuild b/app-admin/sysstat/sysstat-11.5.3.ebuild
new file mode 100644
index 000000000000..b9a751627b55
--- /dev/null
+++ b/app-admin/sysstat/sysstat-11.5.3.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit 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=""
+IUSE="debug 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 )
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-10.0.4-flags.patch
+ "${FILESDIR}"/${PN}-11.0.4-cron.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 isag install-isag) \
+ $(use_enable lm_sensors sensors) \
+ $(use_enable nls) \
+ --enable-copy-only \
+ --enable-documentation \
+ --enable-install-cron \
+ --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
+}
+
+src_compile() {
+ emake LFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ keepdir /var/log/sa
+
+ emake \
+ CHOWN=true \
+ DESTDIR="${D}" \
+ DOC_DIR=/usr/share/doc/${PF} \
+ MANGRPARG='' \
+ install
+
+ dodoc contrib/sargraph/sargraph
+
+ 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
+}