summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-12-18 17:07:17 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-12-18 17:07:17 +0000
commitff3bace8be30ca4a8a30872e2a5362ac04bd869c (patch)
tree1859a792afd7228f55009f5be4db507b1a4761d2 /sys-power/cpufrequtils
parentAdded ~ppc64 (diff)
downloadhistorical-ff3bace8be30ca4a8a30872e2a5362ac04bd869c.tar.gz
historical-ff3bace8be30ca4a8a30872e2a5362ac04bd869c.tar.bz2
historical-ff3bace8be30ca4a8a30872e2a5362ac04bd869c.zip
Version bump.
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'sys-power/cpufrequtils')
-rw-r--r--sys-power/cpufrequtils/ChangeLog9
-rw-r--r--sys-power/cpufrequtils/Manifest6
-rw-r--r--sys-power/cpufrequtils/cpufrequtils-0.4.ebuild37
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-0.4-conf.d8
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-0.4-init.d19
-rw-r--r--sys-power/cpufrequtils/files/digest-cpufrequtils-0.41
6 files changed, 78 insertions, 2 deletions
diff --git a/sys-power/cpufrequtils/ChangeLog b/sys-power/cpufrequtils/ChangeLog
index 28b1747be199..422befa23a23 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.12 2005/11/21 23:31:33 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.13 2005/12/18 17:07:17 brix Exp $
+
+*cpufrequtils-0.4 (18 Dec 2005)
+
+ 18 Dec 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/cpufrequtils-0.4-conf.d, +files/cpufrequtils-0.4-init.d,
+ +cpufrequtils-0.4.ebuild:
+ Version bump.
21 Nov 2005; Henrik Brix Andersen <brix@gentoo.org>
cpufrequtils-0.3-r1.ebuild:
diff --git a/sys-power/cpufrequtils/Manifest b/sys-power/cpufrequtils/Manifest
index 096e7fe57dd7..cb92b58ac4b5 100644
--- a/sys-power/cpufrequtils/Manifest
+++ b/sys-power/cpufrequtils/Manifest
@@ -1,6 +1,10 @@
MD5 61a8ebd30f9ddb2e85a9b77b8a486174 cpufrequtils-0.3-r1.ebuild 999
-MD5 f540575380c6ce2a4c616816bd20ba8e ChangeLog 2055
+MD5 900c807da94f3f44b97e368b371f79cd cpufrequtils-0.4.ebuild 986
+MD5 9771aaad6ddccc31682eaed55a0a8be7 ChangeLog 2253
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
MD5 ac154d73af4c37f7eb37c246db9da2e0 files/cpufrequtils-0.3-init.d 498
MD5 b3e7ab4e8a343dccabb5e52c8b8ff2d0 files/digest-cpufrequtils-0.3-r1 69
+MD5 58d673b3aa76e4f1c4b7d43b920fb933 files/cpufrequtils-0.4-conf.d 393
+MD5 b8286b5cd3a2b122ace8f1a66c08fd67 files/cpufrequtils-0.4-init.d 498
MD5 343fa45ee657ad052f414e4101da4bfd files/cpufrequtils-0.3-conf.d 393
+MD5 555ad680b73f0cd099e9c2e81d24cf9b files/digest-cpufrequtils-0.4 69
diff --git a/sys-power/cpufrequtils/cpufrequtils-0.4.ebuild b/sys-power/cpufrequtils/cpufrequtils-0.4.ebuild
new file mode 100644
index 000000000000..c3b6eefdef6f
--- /dev/null
+++ b/sys-power/cpufrequtils/cpufrequtils-0.4.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.4.ebuild,v 1.1 2005/12/18 17:07:17 brix Exp $
+
+# The following works for both releases and pre-releases
+MY_P=${P/_/-}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Userspace utilities for the Linux kernel cpufreq subsystem"
+HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html"
+SRC_URI="mirror://kernel/linux/utils/kernel/cpufreq/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+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() {
+ make DESTDIR="${D}" install || die "make 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.4-conf.d b/sys-power/cpufrequtils/files/cpufrequtils-0.4-conf.d
new file mode 100644
index 000000000000..88e30c92a352
--- /dev/null
+++ b/sys-power/cpufrequtils/files/cpufrequtils-0.4-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.4-conf.d,v 1.1 2005/12/18 17:07:17 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.4-init.d b/sys-power/cpufrequtils/files/cpufrequtils-0.4-init.d
new file mode 100644
index 000000000000..cfdfede9671b
--- /dev/null
+++ b/sys-power/cpufrequtils/files/cpufrequtils-0.4-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.4-init.d,v 1.1 2005/12/18 17:07:17 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.4 b/sys-power/cpufrequtils/files/digest-cpufrequtils-0.4
new file mode 100644
index 000000000000..cf5853e7bc1b
--- /dev/null
+++ b/sys-power/cpufrequtils/files/digest-cpufrequtils-0.4
@@ -0,0 +1 @@
+MD5 f0f9cecda44584c3ba28239568ef0a42 cpufrequtils-0.4.tar.bz2 432533