summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-05-16 12:10:43 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-05-16 12:10:43 +0000
commit4b9f09d46108d5108f4c4b1307f7032bdf7e4c18 (patch)
tree51c9bbf8836df90ff6338f1d9c1c4d767e66adb6 /sys-power/cpufrequtils
parentStable on ia64, bug 90423. (diff)
downloadgentoo-2-4b9f09d46108d5108f4c4b1307f7032bdf7e4c18.tar.gz
gentoo-2-4b9f09d46108d5108f4c4b1307f7032bdf7e4c18.tar.bz2
gentoo-2-4b9f09d46108d5108f4c4b1307f7032bdf7e4c18.zip
Added init script for setting governor at boot time as per bug #92241, thanks to Mark Rosenstand.
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'sys-power/cpufrequtils')
-rw-r--r--sys-power/cpufrequtils/ChangeLog9
-rw-r--r--sys-power/cpufrequtils/Manifest4
-rw-r--r--sys-power/cpufrequtils/cpufrequtils-0.3-r1.ebuild37
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-0.3-conf.d8
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-0.3-init.d19
-rw-r--r--sys-power/cpufrequtils/files/digest-cpufrequtils-0.3-r11
6 files changed, 77 insertions, 1 deletions
diff --git a/sys-power/cpufrequtils/ChangeLog b/sys-power/cpufrequtils/ChangeLog
index 9b5d6e0dd4ef..0d70bb5dcfa6 100644
--- a/sys-power/cpufrequtils/ChangeLog
+++ b/sys-power/cpufrequtils/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-power/cpufrequtils
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.6 2005/05/08 08:43:35 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.7 2005/05/16 12:10:43 brix Exp $
+
+*cpufrequtils-0.3-r1 (16 May 2005)
+
+ 16 May 2005; <brix@gentoo.org> +files/cpufrequtils-0.3-conf.d,
+ +files/cpufrequtils-0.3-init.d, +cpufrequtils-0.3-r1.ebuild:
+ Added init script for setting governor at boot time as per bug #92241,
+ thanks to Mark Rosenstand.
*cpufrequtils-0.3 (08 May 2005)
diff --git a/sys-power/cpufrequtils/Manifest b/sys-power/cpufrequtils/Manifest
index 8fb187c248a8..75f7dd806801 100644
--- a/sys-power/cpufrequtils/Manifest
+++ b/sys-power/cpufrequtils/Manifest
@@ -1,6 +1,10 @@
MD5 8d024af8832283d4a617c35dda105b34 cpufrequtils-0.3.ebuild 922
+MD5 27d861322d15cb2782f37074c304680c cpufrequtils-0.3-r1.ebuild 895
MD5 2965829deb498167cf4fa1982300e64f cpufrequtils-0.2.ebuild 926
MD5 be934124bdac49561f055695392b52ce ChangeLog 1290
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
+MD5 305bd9b832aa4b0c775f8241b433a9e0 files/cpufrequtils-0.3-init.d 386
+MD5 b3e7ab4e8a343dccabb5e52c8b8ff2d0 files/digest-cpufrequtils-0.3-r1 69
+MD5 1a0bc74e730e6c7f4048c81cae181421 files/cpufrequtils-0.3-conf.d 281
MD5 dc315d30e182bba48edb20099686c49e files/digest-cpufrequtils-0.2 69
MD5 b3e7ab4e8a343dccabb5e52c8b8ff2d0 files/digest-cpufrequtils-0.3 69
diff --git a/sys-power/cpufrequtils/cpufrequtils-0.3-r1.ebuild b/sys-power/cpufrequtils/cpufrequtils-0.3-r1.ebuild
new file mode 100644
index 000000000000..aad588597fbe
--- /dev/null
+++ b/sys-power/cpufrequtils/cpufrequtils-0.3-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/cpufrequtils-0.3-r1.ebuild,v 1.1 2005/05/16 12:10:43 brix Exp $
+
+# The following works for both releases and pre-releases
+MY_P=${P/_/-}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Userspace utilities and library for the Linux kernel cpufreq subsystem"
+HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html"
+SRC_URI="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+
+IUSE="nls"
+DEPEND="sys-fs/sysfsutils"
+
+src_compile() {
+ econf \
+ --enable-proc \
+ --enable-sysfs=/sys \
+ $(use_enable nls) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "emake install failed"
+
+ newconfd ${FILESDIR}/${P}-conf.d ${PN}
+ newinitd ${FILESDIR}/${P}-init.d ${PN}
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/sys-power/cpufrequtils/files/cpufrequtils-0.3-conf.d b/sys-power/cpufrequtils/files/cpufrequtils-0.3-conf.d
new file mode 100644
index 000000000000..a028638265c1
--- /dev/null
+++ b/sys-power/cpufrequtils/files/cpufrequtils-0.3-conf.d
@@ -0,0 +1,8 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/files/cpufrequtils-0.3-conf.d,v 1.1 2005/05/16 12:10:43 brix Exp $
+
+# Which governor to use. Must be one of the governors listed in:
+# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
+#
+GOVERNOR="ondemand"
diff --git a/sys-power/cpufrequtils/files/cpufrequtils-0.3-init.d b/sys-power/cpufrequtils/files/cpufrequtils-0.3-init.d
new file mode 100644
index 000000000000..1524a53aacd8
--- /dev/null
+++ b/sys-power/cpufrequtils/files/cpufrequtils-0.3-init.d
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/files/cpufrequtils-0.3-init.d,v 1.1 2005/05/16 12:10:43 brix Exp $
+
+checkconfig() {
+ if [[ -z "${GOVERNOR}" ]]; then
+ eerror "No governor set in /etc/conf.d/cpufrequtils"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Enabling ${GOVERNOR} cpufreq governor"
+ cpufreq-set -g ${GOVERNOR}
+ eend ${?}
+}
diff --git a/sys-power/cpufrequtils/files/digest-cpufrequtils-0.3-r1 b/sys-power/cpufrequtils/files/digest-cpufrequtils-0.3-r1
new file mode 100644
index 000000000000..e24c69ad2348
--- /dev/null
+++ b/sys-power/cpufrequtils/files/digest-cpufrequtils-0.3-r1
@@ -0,0 +1 @@
+MD5 ccd1423d76d19889652f06b7c018106b cpufrequtils-0.3.tar.bz2 421486