summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-08-30 13:25:23 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-08-30 13:25:59 -0700
commit1e8bdd097c04f15d7bcfa95eb2589df60bb701d1 (patch)
treee525980e4d794a005fa95092e7bc4899a5456b2f /sys-power
parentsys-power/intel-undervolt: bump to 1.7 (diff)
downloadgentoo-1e8bdd097c04f15d7bcfa95eb2589df60bb701d1.tar.gz
gentoo-1e8bdd097c04f15d7bcfa95eb2589df60bb701d1.tar.bz2
gentoo-1e8bdd097c04f15d7bcfa95eb2589df60bb701d1.zip
sys-power/intel-undervolt: sync live ebuild
Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/intel-undervolt/intel-undervolt-9999.ebuild51
1 files 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 74c44d3fe535..3073fbb4c1bf 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
}