summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2009-10-16 21:00:55 +0000
committerThilo Bangert <bangert@gentoo.org>2009-10-16 21:00:55 +0000
commit541adaa2fb4ffd43ca83fb85add4f2e394ceab1f (patch)
treea50f532cf76e694768efc4bceb8aeeacb55999ad
parentVersion bump (diff)
downloadgentoo-2-541adaa2fb4ffd43ca83fb85add4f2e394ceab1f.tar.gz
gentoo-2-541adaa2fb4ffd43ca83fb85add4f2e394ceab1f.tar.bz2
gentoo-2-541adaa2fb4ffd43ca83fb85add4f2e394ceab1f.zip
version bump (bug #212209, bug #285535)
(Portage version: 2.2_rc42/cvs/Linux i686)
-rw-r--r--sys-power/powernowd/ChangeLog10
-rw-r--r--sys-power/powernowd/files/powernowd.initd29
-rw-r--r--sys-power/powernowd/powernowd-1.00.ebuild38
3 files changed, 75 insertions, 2 deletions
diff --git a/sys-power/powernowd/ChangeLog b/sys-power/powernowd/ChangeLog
index e0332414a58c..360b8e44710e 100644
--- a/sys-power/powernowd/ChangeLog
+++ b/sys-power/powernowd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-power/powernowd
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/powernowd/ChangeLog,v 1.10 2007/10/11 06:05:00 tgall Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powernowd/ChangeLog,v 1.11 2009/10/16 21:00:54 bangert Exp $
+
+*powernowd-1.00 (16 Oct 2009)
+
+ 16 Oct 2009; Thilo Bangert <bangert@gentoo.org> +powernowd-1.00.ebuild,
+ +files/powernowd.initd:
+ version bump (bug #212209, bug #285535)
11 Oct 2007; Tom Gall <tgall@gentoo.org> powernowd-0.97.ebuild:
added ~ppc64, bug #195193
diff --git a/sys-power/powernowd/files/powernowd.initd b/sys-power/powernowd/files/powernowd.initd
new file mode 100644
index 000000000000..525a20c754f8
--- /dev/null
+++ b/sys-power/powernowd/files/powernowd.initd
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powernowd/files/powernowd.initd,v 1.1 2009/10/16 21:00:55 bangert Exp $
+
+opts="reload"
+
+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 $?
+}
+
+reload() {
+ ebegin "Reloading powernowd"
+ start-stop-daemon --stop --oknodo --exec /usr/sbin/powernowd --signal HUP
+ eend $?
+}
diff --git a/sys-power/powernowd/powernowd-1.00.ebuild b/sys-power/powernowd/powernowd-1.00.ebuild
new file mode 100644
index 000000000000..dad2a1b23435
--- /dev/null
+++ b/sys-power/powernowd/powernowd-1.00.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powernowd/powernowd-1.00.ebuild,v 1.1 2009/10/16 21:00:54 bangert Exp $
+
+EAPI="2"
+
+inherit linux-info
+
+DESCRIPTION="Daemon to control the speed and voltage of CPUs"
+HOMEPAGE="http://www.deater.net/john/powernowd.html"
+SRC_URI="http://www.deater.net/john/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+pkg_setup() {
+ CONFIG_CHECK="~CPU_FREQ"
+ WARNING_CPU_FREQ="Powernowd needs CPU_FREQ turned on!"
+ linux-info_pkg_setup
+}
+
+src_prepare() {
+ rm -f "${S}"/Makefile
+}
+
+src_compile() {
+ emake powernowd || die "emake failed"
+}
+
+src_install() {
+ dosbin powernowd || die
+ dodoc README
+
+ newconfd "${FILESDIR}"/powernowd.confd powernowd
+ newinitd "${FILESDIR}"/powernowd.initd powernowd
+}