From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4C226138334 for ; Mon, 18 Feb 2019 22:18:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 166CAE0827; Mon, 18 Feb 2019 22:18:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DE4F1E0827 for ; Mon, 18 Feb 2019 22:18:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E4E8A335CED for ; Mon, 18 Feb 2019 22:18:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8732C501 for ; Mon, 18 Feb 2019 22:18:17 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1550528295.10ad53855eecf745f220383415b636dad6cd35a0.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/sysstat/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/sysstat/sysstat-999999.ebuild X-VCS-Directories: app-admin/sysstat/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 10ad53855eecf745f220383415b636dad6cd35a0 X-VCS-Branch: master Date: Mon, 18 Feb 2019 22:18:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 79028c47-b8b0-4c99-b17f-b106858f0bc2 X-Archives-Hash: 42dc6c0e381097604f06e2625e058b58 commit: 10ad53855eecf745f220383415b636dad6cd35a0 Author: Jeroen Roovers gentoo org> AuthorDate: Mon Feb 18 22:17:57 2019 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Mon Feb 18 22:18:15 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10ad5385 app-admin/sysstat: Add live ebuild Package-Manager: Portage-2.3.61, Repoman-2.3.12 Signed-off-by: Jeroen Roovers gentoo.org> app-admin/sysstat/sysstat-999999.ebuild | 85 +++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/app-admin/sysstat/sysstat-999999.ebuild b/app-admin/sysstat/sysstat-999999.ebuild new file mode 100644 index 00000000000..b8e79ab247b --- /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 +}