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 560D5138334 for ; Fri, 30 Aug 2019 20:27:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82C96E0835; Fri, 30 Aug 2019 20:27:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 6C3B6E0835 for ; Fri, 30 Aug 2019 20:27:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 14ECA34A70F for ; Fri, 30 Aug 2019 20:27:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 43E29720 for ; Fri, 30 Aug 2019 20:27:00 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1567196759.1e8bdd097c04f15d7bcfa95eb2589df60bb701d1.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-power/intel-undervolt/intel-undervolt-9999.ebuild X-VCS-Directories: sys-power/intel-undervolt/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 1e8bdd097c04f15d7bcfa95eb2589df60bb701d1 X-VCS-Branch: master Date: Fri, 30 Aug 2019 20:27:00 +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: cd232cd5-136e-4d31-884b-a6e3cce0f3bc X-Archives-Hash: 3aea68f874d49daf15f040ca875d89f1 commit: 1e8bdd097c04f15d7bcfa95eb2589df60bb701d1 Author: Georgy Yakovlev gentoo org> AuthorDate: Fri Aug 30 20:25:23 2019 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Fri Aug 30 20:25:59 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e8bdd09 sys-power/intel-undervolt: sync live ebuild Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev gentoo.org> .../intel-undervolt/intel-undervolt-9999.ebuild | 51 +++++++++++----------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/sys-power/intel-undervolt/intel-undervolt-9999.ebuild b/sys-power/intel-undervolt/intel-undervolt-9999.ebuild index 74c44d3fe53..3073fbb4c1b 100644 --- a/sys-power/intel-undervolt/intel-undervolt-9999.ebuild +++ b/sys-power/intel-undervolt/intel-undervolt-9999.ebuild @@ -18,45 +18,44 @@ fi LICENSE="GPL-3" SLOT="0" -IUSE="" +IUSE="elogind" -DEPEND="" -RDEPEND="" -BDEPEND="" +DEPEND="elogind? ( sys-auth/elogind )" + +RDEPEND="${DEPEND}" + +BDEPEND="virtual/pkgconfig" CONFIG_CHECK="~INTEL_RAPL ~X86_MSR" -src_prepare() { - # respect CC, CFLAGS and avoid calling pkg-config - sed -i \ - -e 's/^CC=/CC?=/' \ - -e 's/^CFLAGS=/CFLAGS?=/' \ - -e '/^UNITDIR=/d' \ - Makefile || die +src_configure() { + local myconf=( + # it's a non-standard build system + $(usex elogind --enable-elogind '') + --enable-openrc + --enable-systemd + --unitdir="$(systemd_get_systemunitdir)" + ) - default + econf "${myconf[@]}" } src_compile() { tc-export CC - myemakeargs=( - BINDIR="${EPREFIX}"/usr/bin - SYSCONFDIR="${EPREFIX}"/etc - UNITDIR="$(systemd_get_systemunitdir)" + local myemakeargs=( + CC="${CC}" + CFLAGS="${CFLAGS}" ) emake "${myemakeargs[@]}" } -src_install() { - myemakeargs+=( - DESTDIR="${D}" - ) - emake "${myemakeargs[@]}" install - - newinitd "${FILESDIR}"/initd "${PN}" - newconfd "${FILESDIR}"/confd "${PN}" - - einstalldocs +pkg_postinst() { +for v in ${REPLACING_VERSIONS}; do + if [[ ${v} == 1.6 ]] ; then + elog "openrc service has been renamed to intel-undervolt-loop" + elog "please update your startup configuration" + fi +done }