summaryrefslogtreecommitdiff
path: root/sys-power/powernowd
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/powernowd')
-rw-r--r--sys-power/powernowd/Manifest2
-rw-r--r--sys-power/powernowd/files/powernowd-1.00-inline.patch11
-rw-r--r--sys-power/powernowd/powernowd-1.00-r5.ebuild42
3 files changed, 55 insertions, 0 deletions
diff --git a/sys-power/powernowd/Manifest b/sys-power/powernowd/Manifest
index 5d2aafa0d091..8a713e2ac677 100644
--- a/sys-power/powernowd/Manifest
+++ b/sys-power/powernowd/Manifest
@@ -1,7 +1,9 @@
AUX powernowd-1.00-buf.patch 212 BLAKE2B 9e45b06406ba4eaa90ccf3b286f84d8ea2c59dc2891556595f3c9734184d1f6e51bec14878f11feb8f5bf412b215454dc543b6c26a1497b666e8a3d5e0faf397 SHA512 bc1dda6c31bbfd6e10b1790ca2e483ad065cb3626d6a95e1ce041349268b73cd2c58cc2d54556be1fc0e22e38c97ad032d5af129e2527808bfde14a179470fc5
+AUX powernowd-1.00-inline.patch 249 BLAKE2B bbfc242871e852b94c6fede28f088b7631867199bb851c11a461402e8639d613f484888dcfbc13fcd3de96b062a2d53821a1d8439077050a39bd619400613e70 SHA512 0896c6cb784be057cd6f7b8196aaef1f35bc82353062c12024a7a4c0eccefa0c23925436f6b10ea1d14238a3c47be2a5cac5b461f65668cda10644c2b5940388
AUX powernowd.confd 977 BLAKE2B ec8dd344e91888e1352f763d0ffb6b60833cadbfef3a9a4bee40b38d50825f2b420e17472e325f86474a5e6479c38f3cf3f1b7857909d30a6623e67c6aee11d0 SHA512 60acec973b04cc1701ef15149eac6d7cef0c7d0e8f8467a165313b23f7f697090357a954ecda2efcefcfae88b119c3fe60751018f5aa6e35213c46789c226083
AUX powernowd.initd 398 BLAKE2B a4189e244274abc2bcde4a9d0618931cf64e5ead0d8875e04512f7eedc40421f1bda266c98cbf79cdf6a1696a473d271affc47b362f2ed6bc6278d5f692b6e52 SHA512 b50273414b5804ac9a16016f76d7f66f6cfc39034da01ef5a43fe3584b8d0c03990f091f46097ae84ad0485444521fe07ebe469c502588af90bbbf2780e1e23b
AUX powernowd.service 121 BLAKE2B db680c4f8cc22822396d5afb483a93adb45bb3bba5a4b817f2a2bd0c86e5f622650e470a628e09cc043ef319db0292b45621df43abf5916bb0095634260a6511 SHA512 c6593dbf90c9174c62eff6a19ed24885f7c190a51c4812f6988b51de6512d4d9728be3d2ae576f13fff42f3b90853750c8805a9ee6a28677a9f7508e0cca1886
DIST powernowd-1.00.tar.gz 19651 BLAKE2B b3fb1b9adab694edd56fa9140b72203a9b87c2ade9be040f3b4f5e33573ec525367bfc3c86028f22644ad805622be58ea2300820405d408854305c05c350f9f3 SHA512 b4285de6b330927568ac44789ae4fda0cb431fc5f15abc5d275c03b5bfaec8627f453abbe78561971cce1eba895f73ed6f382be8a034fc2cf5d1a55010d30cf3
EBUILD powernowd-1.00-r4.ebuild 862 BLAKE2B fdc20e1800939031c81b2996944b803a2a7e3ba398ac5d0d3feba5d0734bf1e04b3e430cff7eccb812ea1b70fe2730f6071515cd950313f63c661bb6384c0724 SHA512 ffb6f96dbc056fd8329dcba2eb182bc5aa538459384ff9f07d732beb1bad9a7269f606b7956a56833f70434c2d8d0f155b593d73acfb70a5cd03610daeeedb98
+EBUILD powernowd-1.00-r5.ebuild 906 BLAKE2B 3b1fec2f47d2c7f51193b0096499d907ab4c837f625760c5fada32079a8a2f1c35c235afec019a6aa66652157ee9f3270ad5d099dac401acc85483e65ee41126 SHA512 82b5c50a90a595629207724c3a1bd274221ad92a6ed6b44433ce4fdddc713aec96820e5b4a5d6d3e7c696564c30556ebb1b40f18574f9c8d5960917c8f0a08b0
MISC metadata.xml 295 BLAKE2B 65198fc6d9c92b325a139246a6cc21e1311d0a57a9cd1273244427e4781482a3bb2e516bf4bef540a64cbb116b26e320d820249fee74fe2a2f9be8c4a81470c8 SHA512 50c540eedd60cea6d630f7b76292f028ea7b80efe3d298d8572cf420927018a11a106a78059ba5f1dc3dbc77a7c3a0c1a66be937fd839ed9337e722591d571d2
diff --git a/sys-power/powernowd/files/powernowd-1.00-inline.patch b/sys-power/powernowd/files/powernowd-1.00-inline.patch
new file mode 100644
index 000000000000..6c7346d0162e
--- /dev/null
+++ b/sys-power/powernowd/files/powernowd-1.00-inline.patch
@@ -0,0 +1,11 @@
+--- a/powernowd.c
++++ b/powernowd.c
+@@ -322,7 +322,7 @@
+ /*
+ * The heart of the program... decide to raise or lower the speed.
+ */
+-enum modes inline decide_speed(cpuinfo_t *cpu)
++enum modes decide_speed(cpuinfo_t *cpu)
+ {
+ int err;
+ float pct;
diff --git a/sys-power/powernowd/powernowd-1.00-r5.ebuild b/sys-power/powernowd/powernowd-1.00-r5.ebuild
new file mode 100644
index 000000000000..dc6334759ff5
--- /dev/null
+++ b/sys-power/powernowd/powernowd-1.00-r5.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit linux-info systemd toolchain-funcs
+
+DESCRIPTION="Daemon to control the speed and voltage of CPUs"
+HOMEPAGE="http://www.deater.net/john/powernowd.html https://github.com/clemej/powernowd"
+SRC_URI="http://www.deater.net/john/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+PATCHES=(
+ "${FILESDIR}"/${P}-buf.patch
+ "${FILESDIR}"/${P}-inline.patch
+)
+
+pkg_setup() {
+ CONFIG_CHECK="~CPU_FREQ"
+ WARNING_CPU_FREQ="Powernowd needs CPU_FREQ turned on!"
+ linux-info_pkg_setup
+}
+
+src_prepare() {
+ default
+ rm -f Makefile
+ tc-export CC
+}
+
+src_compile() {
+ emake powernowd
+}
+
+src_install() {
+ dosbin powernowd
+ dodoc README
+
+ newconfd "${FILESDIR}"/powernowd.confd powernowd
+ newinitd "${FILESDIR}"/powernowd.initd powernowd
+ systemd_dounit "${FILESDIR}"/${PN}.service
+}