public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
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: Thu, 23 May 2019 20:34:08 +0000 (UTC)	[thread overview]
Message-ID: <1558643640.6a59ed6a7f00b0df0532a1cf69781a87ab44c67a.gyakovlev@gentoo> (raw)

commit:     6a59ed6a7f00b0df0532a1cf69781a87ab44c67a
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu May 23 20:34:00 2019 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu May 23 20:34:00 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a59ed6a

sys-power/intel-undervolt: add live ebuild

Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 .../intel-undervolt/intel-undervolt-9999.ebuild    | 62 ++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/sys-power/intel-undervolt/intel-undervolt-9999.ebuild b/sys-power/intel-undervolt/intel-undervolt-9999.ebuild
new file mode 100644
index 00000000000..74c44d3fe53
--- /dev/null
+++ b/sys-power/intel-undervolt/intel-undervolt-9999.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit 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=""
+
+DEPEND=""
+RDEPEND=""
+BDEPEND=""
+
+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
+
+	default
+}
+
+src_compile() {
+
+	tc-export CC
+
+	myemakeargs=(
+		BINDIR="${EPREFIX}"/usr/bin
+		SYSCONFDIR="${EPREFIX}"/etc
+		UNITDIR="$(systemd_get_systemunitdir)"
+	)
+	emake "${myemakeargs[@]}"
+}
+
+src_install() {
+	myemakeargs+=(
+		DESTDIR="${D}"
+	)
+	emake "${myemakeargs[@]}" install
+
+	newinitd "${FILESDIR}"/initd "${PN}"
+	newconfd "${FILESDIR}"/confd "${PN}"
+
+	einstalldocs
+}


             reply	other threads:[~2019-05-23 20:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-23 20:34 Georgy Yakovlev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-08-30 20:27 [gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/ Georgy Yakovlev
2019-08-30 20:27 Georgy Yakovlev
2019-08-30 20:48 Georgy Yakovlev
2019-08-30 20:48 Georgy Yakovlev
2020-02-22  1:30 Georgy Yakovlev
2020-04-16  4:46 Georgy Yakovlev
2020-07-11  6:03 Georgy Yakovlev
2020-07-12 23:04 Georgy Yakovlev
2020-07-12 23:04 Georgy Yakovlev
2020-07-12 23:12 Georgy Yakovlev
2024-09-24  7:02 Joonas Niilola
2025-02-15  9:29 Ulrich Müller

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=1558643640.6a59ed6a7f00b0df0532a1cf69781a87ab44c67a.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