summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-07-17 06:16:55 +0000
committerChristian Heim <phreak@gentoo.org>2006-07-17 06:16:55 +0000
commitdcbebb8fc1c6afc1ad4d8c64fe8a1c34e49f6043 (patch)
tree134db67cb7fb9b2875dfadf854a079c28fc8df51 /sys-power/cpufrequtils
parentFix separator usage in UTF8 output #139409 by Samuli Suominen. (diff)
downloadgentoo-2-dcbebb8fc1c6afc1ad4d8c64fe8a1c34e49f6043.tar.gz
gentoo-2-dcbebb8fc1c6afc1ad4d8c64fe8a1c34e49f6043.tar.bz2
gentoo-2-dcbebb8fc1c6afc1ad4d8c64fe8a1c34e49f6043.zip
Revision bump. Modifying the init-script a bit, it is now only using cpu[0-9] from /sys/devices/.../cpu/ (thanks to Richard Fish <bigfish at asmallpond.org> in #140689 for the fix)
(Portage version: 2.1.1_pre3)
Diffstat (limited to 'sys-power/cpufrequtils')
-rw-r--r--sys-power/cpufrequtils/ChangeLog11
-rw-r--r--sys-power/cpufrequtils/cpufrequtils-002-r2.ebuild48
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-002-init.d4
-rw-r--r--sys-power/cpufrequtils/files/digest-cpufrequtils-002-r23
4 files changed, 63 insertions, 3 deletions
diff --git a/sys-power/cpufrequtils/ChangeLog b/sys-power/cpufrequtils/ChangeLog
index f660c34fba31..a7df179c1790 100644
--- a/sys-power/cpufrequtils/ChangeLog
+++ b/sys-power/cpufrequtils/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sys-power/cpufrequtils
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.28 2006/07/16 09:43:37 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.29 2006/07/17 06:16:55 phreak Exp $
+
+*cpufrequtils-002-r2 (17 Jul 2006)
+
+ 17 Jul 2006; Christian Heim <phreak@gentoo.org>
+ files/cpufrequtils-002-init.d, -cpufrequtils-002-r1.ebuild,
+ +cpufrequtils-002-r2.ebuild:
+ Revision bump. Modifying the init-script a bit, it is now only using
+ cpu[0-9] from /sys/devices/.../cpu/ (thanks to Richard Fish <bigfish at
+ asmallpond.org> in #140689 for the fix)
*cpufrequtils-002-r1 (16 Jul 2006)
diff --git a/sys-power/cpufrequtils/cpufrequtils-002-r2.ebuild b/sys-power/cpufrequtils/cpufrequtils-002-r2.ebuild
new file mode 100644
index 000000000000..d6bb5b7e8c1d
--- /dev/null
+++ b/sys-power/cpufrequtils/cpufrequtils-002-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/cpufrequtils-002-r2.ebuild,v 1.1 2006/07/17 06:16:55 phreak Exp $
+
+inherit eutils toolchain-funcs multilib
+
+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/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+IUSE="debug nls"
+DEPEND="sys-fs/sysfsutils"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-parallel-make.patch
+}
+
+src_compile() {
+ local debug=false nls=false
+
+ use debug && debug=true
+ use nls && nls=true
+
+ emake V=true DEBUG=${debug} NLS=${nls} \
+ CC=$(tc-getCC) LD=$(tc-getCC) AR=$(tc-getAR) STRIP=echo RANLIB=$(tc-getRANLIB) \
+ || die "emake failed"
+}
+
+src_install() {
+ local nls=false
+
+ use nls && nls=true
+
+ make DESTDIR="${D}" NLS=${nls} mandir=/usr/share/man libdir=/usr/$(get_libdir) \
+ install || die "make install failed"
+
+ newconfd "${FILESDIR}"/${P}-conf.d ${PN}
+ newinitd "${FILESDIR}"/${P}-init.d ${PN}
+
+ dodoc AUTHORS README
+}
diff --git a/sys-power/cpufrequtils/files/cpufrequtils-002-init.d b/sys-power/cpufrequtils/files/cpufrequtils-002-init.d
index 4948cf77f9f1..593370d77300 100644
--- a/sys-power/cpufrequtils/files/cpufrequtils-002-init.d
+++ b/sys-power/cpufrequtils/files/cpufrequtils-002-init.d
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/files/cpufrequtils-002-init.d,v 1.2 2006/07/16 09:43:37 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/files/cpufrequtils-002-init.d,v 1.3 2006/07/17 06:16:55 phreak Exp $
checkconfig() {
if [ -z "${GOVERNOR}" ]; then
@@ -21,7 +21,7 @@ affect_change() {
fi
local cpu n
- for cpu in /sys/devices/system/cpu/*; do
+ for cpu in /sys/devices/system/cpu/cpu[0-9]*; do
n=${cpu##*/}
n=${n/cpu/}
diff --git a/sys-power/cpufrequtils/files/digest-cpufrequtils-002-r2 b/sys-power/cpufrequtils/files/digest-cpufrequtils-002-r2
new file mode 100644
index 000000000000..f92e5a3c3901
--- /dev/null
+++ b/sys-power/cpufrequtils/files/digest-cpufrequtils-002-r2
@@ -0,0 +1,3 @@
+MD5 93291a0d705ee2e19a6d7491b223c9f2 cpufrequtils-002.tar.bz2 35313
+RMD160 da4477af89116d78cbe92e55247cee3f1d1b9f73 cpufrequtils-002.tar.bz2 35313
+SHA256 98be6a75f06c535d0acc6948bb1b923c7c400c038c433acfa074c14c89edc39b cpufrequtils-002.tar.bz2 35313