[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2020-07-12 Thread Georgy Yakovlev
commit: f999d8f9b37849e4d119ee448a80e93d4ad9
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Sun Jul 12 23:10:41 2020 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Sun Jul 12 23:12:03 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f999d8f9

sys-power/intel-undervolt: maintain again

This reverts commit 05c19c356f3c5eb0d425f656fb6c215b63416056.
Found hardware to continue working on it.

Signed-off-by: Georgy Yakovlev  gentoo.org>

 sys-power/intel-undervolt/metadata.xml | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys-power/intel-undervolt/metadata.xml 
b/sys-power/intel-undervolt/metadata.xml
index 10c50e35b41..2d95a51af09 100644
--- a/sys-power/intel-undervolt/metadata.xml
+++ b/sys-power/intel-undervolt/metadata.xml
@@ -1,7 +1,10 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-   
+   
+   gyakov...@gentoo.org
+   Georgy Yakovlev
+   

Use elogind hook to apply voltage after 
system sleep




[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2020-07-12 Thread Georgy Yakovlev
commit: 262b9edf1cc252cfedb11f898c3b2d4305c9c604
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Sun Jul 12 23:03:30 2020 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Sun Jul 12 23:03:30 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=262b9edf

sys-power/intel-undervolt: sync live ebuild

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Georgy Yakovlev  gentoo.org>

 sys-power/intel-undervolt/intel-undervolt-.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-power/intel-undervolt/intel-undervolt-.ebuild 
b/sys-power/intel-undervolt/intel-undervolt-.ebuild
index 4fa86956179..6390ac5c14d 100644
--- a/sys-power/intel-undervolt/intel-undervolt-.ebuild
+++ b/sys-power/intel-undervolt/intel-undervolt-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -32,6 +32,7 @@ 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)"



[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2020-07-12 Thread Georgy Yakovlev
commit: c738d90c8babe59534616c85617e68c168d8d11c
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Sun Jul 12 23:03:01 2020 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Sun Jul 12 23:03:01 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c738d90c

sys-power/intel-undervolt: revbump, fix elogind trigger location

Reported-by: user UndrWater on #gentoo-kde
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Georgy Yakovlev  gentoo.org>

 .../{intel-undervolt-1.7.ebuild => intel-undervolt-1.7-r1.ebuild}  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild 
b/sys-power/intel-undervolt/intel-undervolt-1.7-r1.ebuild
similarity index 91%
rename from sys-power/intel-undervolt/intel-undervolt-1.7.ebuild
rename to sys-power/intel-undervolt/intel-undervolt-1.7-r1.ebuild
index 4fa86956179..6390ac5c14d 100644
--- a/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild
+++ b/sys-power/intel-undervolt/intel-undervolt-1.7-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -32,6 +32,7 @@ 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)"



[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2020-07-11 Thread Georgy Yakovlev
commit: 05c19c356f3c5eb0d425f656fb6c215b63416056
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Sat Jul 11 05:43:35 2020 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Sat Jul 11 06:02:49 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05c19c35

sys-power/intel-undervolt: drop to maintainer-needed

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Georgy Yakovlev  gentoo.org>

 sys-power/intel-undervolt/metadata.xml | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sys-power/intel-undervolt/metadata.xml 
b/sys-power/intel-undervolt/metadata.xml
index 2d95a51af09..10c50e35b41 100644
--- a/sys-power/intel-undervolt/metadata.xml
+++ b/sys-power/intel-undervolt/metadata.xml
@@ -1,10 +1,7 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-   
-   gyakov...@gentoo.org
-   Georgy Yakovlev
-   
+   

Use elogind hook to apply voltage after 
system sleep




[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/files/

2020-04-23 Thread Georgy Yakovlev
commit: 46d6fb2e07d65a8e4aee821476cabd875b45e691
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Wed Apr 22 16:05:54 2020 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Thu Apr 23 06:33:42 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46d6fb2e

sys-power/intel-undervolt: remove unused files

Closes: https://github.com/gentoo/gentoo/pull/15472
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: Georgy Yakovlev  gentoo.org>

 sys-power/intel-undervolt/files/confd |  1 -
 sys-power/intel-undervolt/files/initd | 23 ---
 2 files changed, 24 deletions(-)

diff --git a/sys-power/intel-undervolt/files/confd 
b/sys-power/intel-undervolt/files/confd
deleted file mode 100644
index 0911f6a5899..000
--- a/sys-power/intel-undervolt/files/confd
+++ /dev/null
@@ -1 +0,0 @@
-# /etc/conf.d/intel-undervolt: config file for /etc/init.d/intel-undervolt

diff --git a/sys-power/intel-undervolt/files/initd 
b/sys-power/intel-undervolt/files/initd
deleted file mode 100644
index 0a43656ea79..000
--- a/sys-power/intel-undervolt/files/initd
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
-   after thermald
-}
-
-command="/usr/bin/intel-undervolt"
-command_args="daemon"
-command_background="true"
-pidfile="/run/${RC_SVCNAME}.pid"
-required_files="/etc/intel-undervolt.conf"
-
-start_pre() {
-   if service_started thermald; then
-   eerror "thermald conflits with ${RC_SVCNAME}, exiting"
-   fi
-
-   ebegin "${RC_SVCNAME} -> apply initial voltage"
-   "${command}" apply
-   eend $?
-}



[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2020-04-15 Thread Georgy Yakovlev
commit: e1303537cd43051e52dde93ed1676ad4858d2cfd
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Thu Apr 16 04:44:25 2020 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Thu Apr 16 04:46:01 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1303537

sys-power/intel-undervolt: drop old

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Georgy Yakovlev  gentoo.org>

 sys-power/intel-undervolt/Manifest |  1 -
 .../intel-undervolt/intel-undervolt-1.6.ebuild | 62 --
 2 files changed, 63 deletions(-)

diff --git a/sys-power/intel-undervolt/Manifest 
b/sys-power/intel-undervolt/Manifest
index e21f6df73d7..d865abb9ce3 100644
--- a/sys-power/intel-undervolt/Manifest
+++ b/sys-power/intel-undervolt/Manifest
@@ -1,2 +1 @@
-DIST intel-undervolt-1.6.tar.gz 22465 BLAKE2B 
947f3e3f94316a9988fc0311faa23b07e8e0a99afb737232e6e581f45cca89124a49e47bbc85eb0e836b7fc7f966869910fe4d42581e47d98d8c036390c3dec2
 SHA512 
1c1de1083654085d6711aad28d2815f2aa05d08b7fddbee425b59ab8109dc1e635c2a9bdda8ba0221420e9e00fcd61013bd4a4633d05ede87808c49898772db3
 DIST intel-undervolt-1.7.tar.gz 31481 BLAKE2B 
0daade381b492184616356f097de32d14c76d6ab3f7dd59240fb25f92ee1b9aebb16cbef8b6836e16e361a9560b000655470140c31b5822fed7bd90e0b9d9bf2
 SHA512 
727eddd47a92f6092e89f9326c6b453785fac6155f2c2c50887f9a90704226e6abaf27b4a91cabd4783c4477371699a92186fe7847ac9218da9c26fb295a5304

diff --git a/sys-power/intel-undervolt/intel-undervolt-1.6.ebuild 
b/sys-power/intel-undervolt/intel-undervolt-1.6.ebuild
deleted file mode 100644
index 74c44d3fe53..000
--- a/sys-power/intel-undervolt/intel-undervolt-1.6.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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} == "" ] ; 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
-}



[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2020-02-21 Thread Georgy Yakovlev
commit: 8cbf4d18c781c4ff77194c659a92271ae3c0c247
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Fri Feb 21 21:17:05 2020 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Sat Feb 22 01:29:42 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cbf4d18

sys-power/intel-undervolt: QA: RedundantLongDescription

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev  gentoo.org>

 sys-power/intel-undervolt/metadata.xml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys-power/intel-undervolt/metadata.xml 
b/sys-power/intel-undervolt/metadata.xml
index ae8c6fe793f..2d95a51af09 100644
--- a/sys-power/intel-undervolt/metadata.xml
+++ b/sys-power/intel-undervolt/metadata.xml
@@ -5,9 +5,6 @@
gyakov...@gentoo.org
Georgy Yakovlev

-   
-   Tool for undervolting and throttling limits alteration for 
Intel CPUs
-   

Use elogind hook to apply voltage after 
system sleep




[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2019-08-30 Thread Georgy Yakovlev
commit: 63ce7896ced68ff034533f3c6fb264f75aed080b
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Fri Aug 30 20:47:56 2019 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Fri Aug 30 20:48:39 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63ce7896

sys-power/intel-undervolt: fix spacing

Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Georgy Yakovlev  gentoo.org>

 sys-power/intel-undervolt/intel-undervolt-1.7.ebuild | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild 
b/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild
index 3073fbb4c1b..4fa86956179 100644
--- a/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild
+++ b/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild
@@ -41,21 +41,21 @@ src_configure() {
 }
 
 src_compile() {
-
tc-export CC
 
local myemakeargs=(
CC="${CC}"
CFLAGS="${CFLAGS}"
)
+
emake "${myemakeargs[@]}"
 }
 
 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
+   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
 }



[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2019-08-30 Thread Georgy Yakovlev
commit: 305bc767208d524f63f152e83279ac67b68e6dce
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Fri Aug 30 20:48:21 2019 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Fri Aug 30 20:48:39 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=305bc767

sys-power/intel-undervolt: sync live ebuild

Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Georgy Yakovlev  gentoo.org>

 sys-power/intel-undervolt/intel-undervolt-.ebuild | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/sys-power/intel-undervolt/intel-undervolt-.ebuild 
b/sys-power/intel-undervolt/intel-undervolt-.ebuild
index 3073fbb4c1b..4fa86956179 100644
--- a/sys-power/intel-undervolt/intel-undervolt-.ebuild
+++ b/sys-power/intel-undervolt/intel-undervolt-.ebuild
@@ -41,21 +41,21 @@ src_configure() {
 }
 
 src_compile() {
-
tc-export CC
 
local myemakeargs=(
CC="${CC}"
CFLAGS="${CFLAGS}"
)
+
emake "${myemakeargs[@]}"
 }
 
 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
+   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
 }



[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2019-08-30 Thread Georgy Yakovlev
commit: 1e8bdd097c04f15d7bcfa95eb2589df60bb701d1
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Fri Aug 30 20:25:23 2019 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Fri Aug 30 20:25:59 2019 +
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-.ebuild| 51 +++---
 1 file changed, 25 insertions(+), 26 deletions(-)

diff --git a/sys-power/intel-undervolt/intel-undervolt-.ebuild 
b/sys-power/intel-undervolt/intel-undervolt-.ebuild
index 74c44d3fe53..3073fbb4c1b 100644
--- a/sys-power/intel-undervolt/intel-undervolt-.ebuild
+++ b/sys-power/intel-undervolt/intel-undervolt-.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
 }



[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2019-08-30 Thread Georgy Yakovlev
commit: 124b6426777e0d11a80bce5ed6c1a13d9c122c2c
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Fri Aug 30 20:18:58 2019 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Fri Aug 30 20:25:59 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=124b6426

sys-power/intel-undervolt: bump to 1.7

Thanks-to: Matthew Thode  gentoo.org>
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Georgy Yakovlev  gentoo.org>

 sys-power/intel-undervolt/Manifest |  1 +
 .../intel-undervolt/intel-undervolt-1.7.ebuild | 61 ++
 sys-power/intel-undervolt/metadata.xml |  3 ++
 3 files changed, 65 insertions(+)

diff --git a/sys-power/intel-undervolt/Manifest 
b/sys-power/intel-undervolt/Manifest
index 6b09153cf63..e21f6df73d7 100644
--- a/sys-power/intel-undervolt/Manifest
+++ b/sys-power/intel-undervolt/Manifest
@@ -1 +1,2 @@
 DIST intel-undervolt-1.6.tar.gz 22465 BLAKE2B 
947f3e3f94316a9988fc0311faa23b07e8e0a99afb737232e6e581f45cca89124a49e47bbc85eb0e836b7fc7f966869910fe4d42581e47d98d8c036390c3dec2
 SHA512 
1c1de1083654085d6711aad28d2815f2aa05d08b7fddbee425b59ab8109dc1e635c2a9bdda8ba0221420e9e00fcd61013bd4a4633d05ede87808c49898772db3
+DIST intel-undervolt-1.7.tar.gz 31481 BLAKE2B 
0daade381b492184616356f097de32d14c76d6ab3f7dd59240fb25f92ee1b9aebb16cbef8b6836e16e361a9560b000655470140c31b5822fed7bd90e0b9d9bf2
 SHA512 
727eddd47a92f6092e89f9326c6b453785fac6155f2c2c50887f9a90704226e6abaf27b4a91cabd4783c4477371699a92186fe7847ac9218da9c26fb295a5304

diff --git a/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild 
b/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild
new file mode 100644
index 000..3073fbb4c1b
--- /dev/null
+++ b/sys-power/intel-undervolt/intel-undervolt-1.7.ebuild
@@ -0,0 +1,61 @@
+# 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} == "" ] ; 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 '')
+   --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() {
+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
+}

diff --git a/sys-power/intel-undervolt/metadata.xml 
b/sys-power/intel-undervolt/metadata.xml
index 52dabf8e780..ae8c6fe793f 100644
--- a/sys-power/intel-undervolt/metadata.xml
+++ b/sys-power/intel-undervolt/metadata.xml
@@ -8,6 +8,9 @@

Tool for undervolting and throttling limits alteration for 
Intel CPUs

+   
+   Use elogind hook to apply voltage after 
system sleep
+   

kitsunyan/intel-undervolt




[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/

2019-05-23 Thread Georgy Yakovlev
commit: 6a59ed6a7f00b0df0532a1cf69781a87ab44c67a
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Thu May 23 20:34:00 2019 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Thu May 23 20:34:00 2019 +
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  gentoo.org>

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

diff --git a/sys-power/intel-undervolt/intel-undervolt-.ebuild 
b/sys-power/intel-undervolt/intel-undervolt-.ebuild
new file mode 100644
index 000..74c44d3fe53
--- /dev/null
+++ b/sys-power/intel-undervolt/intel-undervolt-.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} == "" ] ; 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
+}



[gentoo-commits] repo/gentoo:master commit in: sys-power/intel-undervolt/, sys-power/intel-undervolt/files/

2019-05-23 Thread Georgy Yakovlev
commit: 8c3bdbb8fccf3b3a93a58fffe9f5657f47a1f5ec
Author: Georgy Yakovlev  gentoo  org>
AuthorDate: Thu May 23 20:32:50 2019 +
Commit: Georgy Yakovlev  gentoo  org>
CommitDate: Thu May 23 20:33:02 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c3bdbb8

sys-power/intel-undervolt: new package

Intel CPU undervolting and throttling configuration tool

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

 sys-power/intel-undervolt/Manifest |  1 +
 sys-power/intel-undervolt/files/confd  |  1 +
 sys-power/intel-undervolt/files/initd  | 23 
 .../intel-undervolt/intel-undervolt-1.6.ebuild | 62 ++
 sys-power/intel-undervolt/metadata.xml | 14 +
 5 files changed, 101 insertions(+)

diff --git a/sys-power/intel-undervolt/Manifest 
b/sys-power/intel-undervolt/Manifest
new file mode 100644
index 000..6b09153cf63
--- /dev/null
+++ b/sys-power/intel-undervolt/Manifest
@@ -0,0 +1 @@
+DIST intel-undervolt-1.6.tar.gz 22465 BLAKE2B 
947f3e3f94316a9988fc0311faa23b07e8e0a99afb737232e6e581f45cca89124a49e47bbc85eb0e836b7fc7f966869910fe4d42581e47d98d8c036390c3dec2
 SHA512 
1c1de1083654085d6711aad28d2815f2aa05d08b7fddbee425b59ab8109dc1e635c2a9bdda8ba0221420e9e00fcd61013bd4a4633d05ede87808c49898772db3

diff --git a/sys-power/intel-undervolt/files/confd 
b/sys-power/intel-undervolt/files/confd
new file mode 100644
index 000..0911f6a5899
--- /dev/null
+++ b/sys-power/intel-undervolt/files/confd
@@ -0,0 +1 @@
+# /etc/conf.d/intel-undervolt: config file for /etc/init.d/intel-undervolt

diff --git a/sys-power/intel-undervolt/files/initd 
b/sys-power/intel-undervolt/files/initd
new file mode 100644
index 000..0a43656ea79
--- /dev/null
+++ b/sys-power/intel-undervolt/files/initd
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+   after thermald
+}
+
+command="/usr/bin/intel-undervolt"
+command_args="daemon"
+command_background="true"
+pidfile="/run/${RC_SVCNAME}.pid"
+required_files="/etc/intel-undervolt.conf"
+
+start_pre() {
+   if service_started thermald; then
+   eerror "thermald conflits with ${RC_SVCNAME}, exiting"
+   fi
+
+   ebegin "${RC_SVCNAME} -> apply initial voltage"
+   "${command}" apply
+   eend $?
+}

diff --git a/sys-power/intel-undervolt/intel-undervolt-1.6.ebuild 
b/sys-power/intel-undervolt/intel-undervolt-1.6.ebuild
new file mode 100644
index 000..74c44d3fe53
--- /dev/null
+++ b/sys-power/intel-undervolt/intel-undervolt-1.6.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} == "" ] ; 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
+}

diff --git a/sys-power/intel-undervolt/metadata.xml 
b/sys-power/intel-undervolt/metadata.xml
new file mode 100644
index 000..52dabf8e780
--- /dev/null
+++ b/sys-power/intel-undervolt/metadata.xml
@@ -0,0 +1,14 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   gyakov...@gentoo.org
+   Georgy Yakovlev
+   
+   
+   Tool for undervolting and throttling limits alteration for 
Intel CPUs
+   
+   
+   kitsunyan/intel-undervolt
+   
+