diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-power/powernowd |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-power/powernowd')
-rw-r--r-- | sys-power/powernowd/Manifest | 9 | ||||
-rw-r--r-- | sys-power/powernowd/files/powernowd-1.00-buf.patch | 11 | ||||
-rw-r--r-- | sys-power/powernowd/files/powernowd.confd | 24 | ||||
-rw-r--r-- | sys-power/powernowd/files/powernowd.initd | 20 | ||||
-rw-r--r-- | sys-power/powernowd/files/powernowd.service | 8 | ||||
-rw-r--r-- | sys-power/powernowd/metadata.xml | 10 | ||||
-rw-r--r-- | sys-power/powernowd/powernowd-1.00-r3.ebuild | 38 |
7 files changed, 120 insertions, 0 deletions
diff --git a/sys-power/powernowd/Manifest b/sys-power/powernowd/Manifest new file mode 100644 index 000000000000..52805c493f45 --- /dev/null +++ b/sys-power/powernowd/Manifest @@ -0,0 +1,9 @@ +AUX powernowd-1.00-buf.patch 212 SHA256 5d89bc4c7ef1aa2d0887645d8afa3ecb3270ae217b2ef46928469c5f2fc377ce SHA512 bc1dda6c31bbfd6e10b1790ca2e483ad065cb3626d6a95e1ce041349268b73cd2c58cc2d54556be1fc0e22e38c97ad032d5af129e2527808bfde14a179470fc5 WHIRLPOOL e90458aaa82e95384f6a3c2b0bc1ba5836db73304f3bdf0d85da793c5d20c2fdc1eafdc22273e3f2e50a20ecba87a10834d0cd6215df755d58e97232c495c055 +AUX powernowd.confd 977 SHA256 e92fb5d82ac80b8a5c831c3e48e05802bf90acd9aaf4aeaa1e69807acc46091d SHA512 60acec973b04cc1701ef15149eac6d7cef0c7d0e8f8467a165313b23f7f697090357a954ecda2efcefcfae88b119c3fe60751018f5aa6e35213c46789c226083 WHIRLPOOL f9095c3eca8c9e8d68839222eb7ea4e36ebea64c9775845f6fe96c541876c0a3cc74ee7fb7216e8e581e88d4dcc31f52738081f036ecbdd7267c5af173a1d635 +AUX powernowd.initd 398 SHA256 428d2ba9893fa80d3fb9b2d04fbe5afa5b7c9afdfb420dd8e7015c5960d64871 SHA512 b50273414b5804ac9a16016f76d7f66f6cfc39034da01ef5a43fe3584b8d0c03990f091f46097ae84ad0485444521fe07ebe469c502588af90bbbf2780e1e23b WHIRLPOOL ba4c2df6bcaac6c3f0abb34ea8079fe515c4e82479b398d1bfb538ba67b887c02ee492c60907f22248531fd4236e3d9f1028665d671c306c8a5b1fd741362a5f +AUX powernowd.service 121 SHA256 d52afffa25458e2e238209e5f7b3a5ddccc19c83350f650d7c5feb348e7e6b2b SHA512 c6593dbf90c9174c62eff6a19ed24885f7c190a51c4812f6988b51de6512d4d9728be3d2ae576f13fff42f3b90853750c8805a9ee6a28677a9f7508e0cca1886 WHIRLPOOL 8f2b88fd3593c4ab77b30dc6a70cd6c49a64be5a6aef00e9ef399c96b260e4f7ae92877bcc94eda5a29c0e7644391fa91f657d3dfe74e414713ece5ce42a528a +DIST powernowd-1.00.tar.gz 19651 SHA256 af7381d2def69aaf7a07e883bebc37141d1b5ca1bb959bfd4bf7015767b6c46d SHA512 b4285de6b330927568ac44789ae4fda0cb431fc5f15abc5d275c03b5bfaec8627f453abbe78561971cce1eba895f73ed6f382be8a034fc2cf5d1a55010d30cf3 WHIRLPOOL 038597f30b63adaa1a28cb10cb0e9c9dc2fdceca0f6392a1b14314aecb4271eb32de4dba0cbbe40d9acea5d5feb8a62fb70c4d596dc26d76fcfbc0c3fec089f5 +EBUILD powernowd-1.00-r3.ebuild 862 SHA256 0e097bcf07aae962edcda5256ddba228f6176c89cc0b2fe3e6747d228636e020 SHA512 b9ccf7e3a2fb5870ef32aea6bf1d407dc880e2f8789dcb63a31835671a42bd263f540d10a0e6c47d6f40104ea58e37034fd8b4c7439e1b98f487a877a415ff9f WHIRLPOOL 0d09ecfd0eb6a3e9296cffae7dd842b85ac51bae86e861458edd31a52523c857aca5386743258fdccf4cb504f91ce90d6f1a5f9909ddb0d7cab9d1f68aaa13f2 +MISC ChangeLog 2430 SHA256 1c867cd03f18242aee778496c070214cc2c25ebc91ddf0471248622e44550235 SHA512 0e1514caac47722fffcfb36c276ab721886c187c4b466744c771e4c5fc5c4b81ed5b53e331f3e28e1887b58155efec9379d03e20c5c06c5faa32479f6a5b40e3 WHIRLPOOL 5583a075c325ab79b3e1fb25bc250dddf5da9c20fc79ba21af49c0776ecc55f0a1a77eca6557c2539b1bd6cb257d19ccf0d8f030fc9582e9bfdd1655fc27a4b4 +MISC ChangeLog-2015 4562 SHA256 0f8082fbeb2978f9bc9ed86e705146273b89618f647febc1de21ea139fc75f5a SHA512 045fa191c277c2a383eb780ad2b6d581c9b67a72dc60358afe91695f81a99e3c11f53563d2292b9e948cd7318d92102ebcf5fd3da422377d605291effd64201e WHIRLPOOL 88f325ae90a0bf4a1a0b2e5d026c37acbb40d61d4390dc83cbbee3b08eb177698e8b6624639f5f04dd46eafdfc185a256fced656ecbc325af913132b8a18f685 +MISC metadata.xml 295 SHA256 510b6d0d81023c8b1617f6d8bb2a47eca5ca82be5674eacff5edeb5261d143d4 SHA512 50c540eedd60cea6d630f7b76292f028ea7b80efe3d298d8572cf420927018a11a106a78059ba5f1dc3dbc77a7c3a0c1a66be937fd839ed9337e722591d571d2 WHIRLPOOL 47dfa05314edd48fdd847a84718479dbef29f9dda0899732635e0f4bae21963fd24074030cb3b785135091ce512ac594ebffad5fb38146b0f4408af5edbc7f57 diff --git a/sys-power/powernowd/files/powernowd-1.00-buf.patch b/sys-power/powernowd/files/powernowd-1.00-buf.patch new file mode 100644 index 000000000000..56f048296ec7 --- /dev/null +++ b/sys-power/powernowd/files/powernowd-1.00-buf.patch @@ -0,0 +1,11 @@ +--- a/powernowd.c ++++ b/powernowd.c +@@ -107,7 +107,7 @@ typedef struct cpuinfo { + cpuinfo_t **all_cpus; + + /* idea stolen from procps */ +-static char buf[1024]; ++static char buf[2048]; + + enum function { + SINE, diff --git a/sys-power/powernowd/files/powernowd.confd b/sys-power/powernowd/files/powernowd.confd new file mode 100644 index 000000000000..e374a59777bc --- /dev/null +++ b/sys-power/powernowd/files/powernowd.confd @@ -0,0 +1,24 @@ +#PowerNow Daemon v0.97, (c) 2003-2005 John Clemens +#Daemon to control the speed and voltage of cpus. +# +#This is a simple client to the CPUFreq driver, and uses +#linux kernel v2.5 sysfs interface. You need a supported +#cpu, and a kernel that supports sysfs to run this daemon. +# +#Available Options: +# -h Print this help message +# -d Don't detach from terminal (default is to +# detach and run in the background) +# -v Increase output verbosity, can be used more than once. +# -q Quiet mode, only emergency output. +# -n Include 'nice'd processes in calculations +# -m # Modes of operation, can be 0, 1, 2, or 3: +# 0 = SINE, 1 = AGGRESSIVE (default), +# 2 = PASSIVE, 3 = LEAPS +# -s # Frequency step in kHz (default = 100000) +# -p # Polling frequency in msecs (default = 1000) +# -c # Specify number of threads per power-managed core +# -u # CPU usage upper limit percentage [0 .. 100, default 80] +# -l # CPU usage lower limit percentage [0 .. 100, default 20] + +POWERNOWD_OPTS="" diff --git a/sys-power/powernowd/files/powernowd.initd b/sys-power/powernowd/files/powernowd.initd new file mode 100644 index 000000000000..73f44c1048a7 --- /dev/null +++ b/sys-power/powernowd/files/powernowd.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount + use logger +} + +start() { + ebegin "Starting powernowd" + start-stop-daemon --start --exec /usr/sbin/powernowd -- ${POWERNOWD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping powernowd" + start-stop-daemon --stop --exec /usr/sbin/powernowd + eend $? +} diff --git a/sys-power/powernowd/files/powernowd.service b/sys-power/powernowd/files/powernowd.service new file mode 100644 index 000000000000..326e6fd28581 --- /dev/null +++ b/sys-power/powernowd/files/powernowd.service @@ -0,0 +1,8 @@ +[Unit] +Description=PowerNow! Daemon + +[Service] +ExecStart=/usr/sbin/powernowd -d -q + +[Install] +WantedBy=multi-user.target diff --git a/sys-power/powernowd/metadata.xml b/sys-power/powernowd/metadata.xml new file mode 100644 index 000000000000..221a755312d1 --- /dev/null +++ b/sys-power/powernowd/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>jer@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">clemej/powernowd</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-power/powernowd/powernowd-1.00-r3.ebuild b/sys-power/powernowd/powernowd-1.00-r3.ebuild new file mode 100644 index 000000000000..8386fa869f51 --- /dev/null +++ b/sys-power/powernowd/powernowd-1.00-r3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils 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" + +pkg_setup() { + CONFIG_CHECK="~CPU_FREQ" + WARNING_CPU_FREQ="Powernowd needs CPU_FREQ turned on!" + linux-info_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-buf.patch + 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 +} |