From: "Georgy Yakovlev" <gyakovlev@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/
Date: Fri, 30 Aug 2019 20:27:00 +0000 (UTC) [thread overview]
Message-ID: <1567196759.1e8bdd097c04f15d7bcfa95eb2589df60bb701d1.gyakovlev@gentoo> (raw)
commit: 1e8bdd097c04f15d7bcfa95eb2589df60bb701d1
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 30 20:25:23 2019 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> 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 <gyakovlev <AT> 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
}
next reply other threads:[~2019-08-30 20:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-30 20:27 Georgy Yakovlev [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-24 7:02 [gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/ Joonas Niilola
2020-07-12 23:12 Georgy Yakovlev
2020-07-12 23:04 Georgy Yakovlev
2020-07-12 23:04 Georgy Yakovlev
2020-07-11 6:03 Georgy Yakovlev
2020-04-16 4:46 Georgy Yakovlev
2020-02-22 1:30 Georgy Yakovlev
2019-08-30 20:48 Georgy Yakovlev
2019-08-30 20:48 Georgy Yakovlev
2019-08-30 20:27 Georgy Yakovlev
2019-05-23 20:34 Georgy Yakovlev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1567196759.1e8bdd097c04f15d7bcfa95eb2589df60bb701d1.gyakovlev@gentoo \
--to=gyakovlev@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox