diff options
author | Jeroen Roovers <jer@gentoo.org> | 2014-12-03 12:39:26 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2014-12-03 12:39:26 +0000 |
commit | 3f4c3370318fe5a4b60b72bb6cd1cbd4fd76785f (patch) | |
tree | ccd89573020b67b48935991b7660eca91fe5c77f /sys-power | |
parent | Call python_fix_shebang conditionally to USE=python, bug #531240. (diff) | |
download | gentoo-2-3f4c3370318fe5a4b60b72bb6cd1cbd4fd76785f.tar.gz gentoo-2-3f4c3370318fe5a4b60b72bb6cd1cbd4fd76785f.tar.bz2 gentoo-2-3f4c3370318fe5a4b60b72bb6cd1cbd4fd76785f.zip |
Add upstream patch for systems with many processors. Add github homepage.
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/powernowd/ChangeLog | 10 | ||||
-rw-r--r-- | sys-power/powernowd/files/powernowd-1.00-buf.patch | 11 | ||||
-rw-r--r-- | sys-power/powernowd/powernowd-1.00-r3.ebuild | 39 |
3 files changed, 58 insertions, 2 deletions
diff --git a/sys-power/powernowd/ChangeLog b/sys-power/powernowd/ChangeLog index 5f84a796ad13..70cbc1178a27 100644 --- a/sys-power/powernowd/ChangeLog +++ b/sys-power/powernowd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-power/powernowd -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/powernowd/ChangeLog,v 1.25 2013/09/30 21:23:41 jer Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powernowd/ChangeLog,v 1.26 2014/12/03 12:39:26 jer Exp $ + +*powernowd-1.00-r3 (03 Dec 2014) + + 03 Dec 2014; Jeroen Roovers <jer@gentoo.org> +powernowd-1.00-r3.ebuild, + +files/powernowd-1.00-buf.patch: + Add upstream patch for systems with many processors. Add github homepage. 30 Sep 2013; Jeroen Roovers <jer@gentoo.org> -powernowd-1.00-r1.ebuild: Old. 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/powernowd-1.00-r3.ebuild b/sys-power/powernowd/powernowd-1.00-r3.ebuild new file mode 100644 index 000000000000..f1902ed4a19b --- /dev/null +++ b/sys-power/powernowd/powernowd-1.00-r3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powernowd/powernowd-1.00-r3.ebuild,v 1.1 2014/12/03 12:39:26 jer Exp $ + +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 +} |