sys-power/intel-undervolt - 1.7 (gentoo)

Search

Install

Install this version:

emerge -a =sys-power/intel-undervolt-1.7

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-power/intel-undervolt-1.7

Or alternatively:

emerge --autounmask-write -a =sys-power/intel-undervolt-1.7

Package Information

Description:
Intel CPU undervolting and throttling configuration tool
Homepage:
https://github.com/kitsunyan/intel-undervolt
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
1.7 7 -* ~amd64 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit eapi9-ver linux-info systemd toolchain-funcs

DESCRIPTION="Intel CPU undervolting and throttling configuration tool"
HOMEPAGE="https://github.com/kitsunyan/intel-undervolt"

if [ ${PV} == "9999" ] ; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/kitsunyan/${PN}.git"
else
	SRC_URI="https://github.com/kitsunyan/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="-* ~amd64"
fi

LICENSE="GPL-3"
SLOT="0"
IUSE="elogind"

DEPEND="elogind? ( sys-auth/elogind )"

RDEPEND="${DEPEND}"

BDEPEND="virtual/pkgconfig"

CONFIG_CHECK="~INTEL_RAPL ~X86_MSR"

src_configure() {
	local myconf=(
		# it's a non-standard build system
		$(usex elogind --enable-elogind '')
		$(usex elogind --eloginddir="${EPREFIX}/$(get_libdir)/elogind" '')
		--enable-openrc
		--enable-systemd
		--unitdir="$(systemd_get_systemunitdir)"
	)

	econf "${myconf[@]}"
}

src_compile() {
	tc-export CC

	local myemakeargs=(
		CC="${CC}"
		CFLAGS="${CFLAGS}"
	)

	emake "${myemakeargs[@]}"
}

pkg_postinst() {
	if ver_replacing -eq 1.6 ; then
		elog "openrc service has been renamed to intel-undervolt-loop"
		elog "please update your startup configuration"
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-power/intel-undervolt | euse -E <flag> -p sys-power/intel-undervolt | euse -D <flag> -p sys-power/intel-undervolt

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

elogind? ( sys-auth/elogind )

RDEPEND

elogind? ( sys-auth/elogind )

BDEPEND

virtual/pkgconfig

Manifest for 1.7

Type File Size Source URLs
DIST intel-undervolt-1.7.tar.gz 31481 bytes https://github.com/kitsunyan/intel-undervolt/archive/1.7.tar.gz