summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-20 16:05:14 +0000
committerMike Frysinger <vapier@gentoo.org>2008-10-20 16:05:14 +0000
commitfc57b90a871c8eabb9a30a1839a3534444a42104 (patch)
tree38581e27e801ed07bcef4dbb914ae0ed18931602 /sys-power/cpufrequtils
parentRemove dependency on libX11, no longer needed as of 1.0.4 (Mart Raudsepp). (diff)
downloadhistorical-fc57b90a871c8eabb9a30a1839a3534444a42104.tar.gz
historical-fc57b90a871c8eabb9a30a1839a3534444a42104.tar.bz2
historical-fc57b90a871c8eabb9a30a1839a3534444a42104.zip
Version bump #228701 by Dennis Schridde and a more flexible init.d script by me #182049 by Jakub Zawadzki.
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.26.2 x86_64
Diffstat (limited to 'sys-power/cpufrequtils')
-rw-r--r--sys-power/cpufrequtils/ChangeLog10
-rw-r--r--sys-power/cpufrequtils/Manifest16
-rw-r--r--sys-power/cpufrequtils/cpufrequtils-005.ebuild50
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-conf.d-0057
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-init.d-00516
5 files changed, 97 insertions, 2 deletions
diff --git a/sys-power/cpufrequtils/ChangeLog b/sys-power/cpufrequtils/ChangeLog
index d8a3b2c9a4e4..16c35a0965ce 100644
--- a/sys-power/cpufrequtils/ChangeLog
+++ b/sys-power/cpufrequtils/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-power/cpufrequtils
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.39 2008/08/11 17:46:53 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.40 2008/10/20 16:05:14 vapier Exp $
+
+*cpufrequtils-005 (20 Oct 2008)
+
+ 20 Oct 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/cpufrequtils-conf.d-005, +files/cpufrequtils-init.d-005,
+ +cpufrequtils-005.ebuild:
+ Version bump #228701 by Dennis Schridde and a more flexible init.d script
+ by me #182049 by Jakub Zawadzki.
*cpufrequtils-002-r4 (11 Aug 2008)
diff --git a/sys-power/cpufrequtils/Manifest b/sys-power/cpufrequtils/Manifest
index 86a72760043c..2865b546b776 100644
--- a/sys-power/cpufrequtils/Manifest
+++ b/sys-power/cpufrequtils/Manifest
@@ -1,7 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX cpufrequtils-002-parallel-make.patch 580 RMD160 c521c04cf137bd72800f37922b548bfd3464a56e SHA1 c778e3e28ea16f3bd339f5fc2e1e3587936b4618 SHA256 13dea5e075f883bdbf81fb16054c68f2e99e5df89e4d1191e19cd5094a4909dc
AUX cpufrequtils-conf.d 315 RMD160 0336b772aa28b6d83a7b16cf2dc115ae70449a75 SHA1 8cc8598f92d246c02b33842f7b2981854293cd1e SHA256 b64f5ffe55dfcb64475d3af679c3979e8f5e6e7f549d62021a486e2ef5274999
+AUX cpufrequtils-conf.d-005 277 RMD160 09bdd1c1b218f9aa9ce448b01eb0c9f0dc0613c2 SHA1 2befd01f2d527916eee5429920a083ea9543daa1 SHA256 602b65f6e9927bfb37a26a34c1b44bd4a87cdb2977b5547398e17432afe55727
AUX cpufrequtils-init.d 986 RMD160 d11a01d868df0baf0f2fea58de1f70d6bf23ab90 SHA1 46174efaa14e0e2c0bc2fd503790a9fe5a56ce14 SHA256 5e18a0d9de4892355cb19f5443a63ecf10ac90eede7318ca594d2c76889e486a
+AUX cpufrequtils-init.d-005 437 RMD160 5c199713fb3d6c483334d8e0ae879ae2dd4e5334 SHA1 4cd9193c4f9c7872f147ba80a78120ba336f53d6 SHA256 d2e540f7437c6365579403caf1ea86a7ab80fd3984ef1b8a6e9e0a23d0d4c6e2
DIST cpufrequtils-002.tar.bz2 35313 RMD160 da4477af89116d78cbe92e55247cee3f1d1b9f73 SHA1 843e75c28210dbdf58c7d9ae519047227a556899 SHA256 98be6a75f06c535d0acc6948bb1b923c7c400c038c433acfa074c14c89edc39b
+DIST cpufrequtils-005.tar.bz2 39013 RMD160 284b28792635f37a909cc4aaeb626e01936fe95a SHA1 4033b8bb54fbcf13a59d4444e0883160c5499ad1 SHA256 a2c5898cbea032decc6143e82577c2bd948d6d9e97cd09d458e67c92e248bebe
EBUILD cpufrequtils-002-r4.ebuild 1233 RMD160 f4426ceb21ea138ca6c2325c9dbd0ebc2c86583e SHA1 021f6a82796c7bb0a8c1b4acc829d7b1debe8bfc SHA256 424a3892769eda616297614ec0739798a636665799adce911b282a9e55afcde8
-MISC ChangeLog 6767 RMD160 6de940e186ebbbff9c698e78e9a88868c8bfdfc3 SHA1 c7485c49b2c25c0ad0aa2c94337708e71ceba12e SHA256 bdeb91d25b82f9de07f301b2c0aba2ee1355ca1aa59c01bc3c9f715dc0eab319
+EBUILD cpufrequtils-005.ebuild 1270 RMD160 7ace9881412e6a3f565db15bb5b53bb4d7bc199b SHA1 0be2135d47ffe712c385ccb1afe710581515de12 SHA256 b6885f3791e2319955bcd63f601330c9d84126a5f3b3c344ef862c136840ec1e
+MISC ChangeLog 7055 RMD160 3c81748d3a40181835ebfd8476db9c729b5c6d46 SHA1 0fe44830434e3e9db926162550eb7ec922611b61 SHA256 848fd45198bcc13249caf2ee207a3edc4ad5556929ee6af40f1d7ab7e27db6f9
MISC metadata.xml 160 RMD160 8521c3bd3ae0fb2bfddce5edb33fd31e223747e1 SHA1 194b7194f38673fe427e5893a42cd4c1506ce846 SHA256 b13062a43e40469b137e1206494a44b45755ea69511b64e5373cb1ce30bbb160
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkj8rEAACgkQ67wieSYcaxevvwCg0Hs6f5cuG/dYGZODe6HFy+9e
+MXMAoMcZz5mgm4h2rC2sc2QcujDEzdiO
+=YVlu
+-----END PGP SIGNATURE-----
diff --git a/sys-power/cpufrequtils/cpufrequtils-005.ebuild b/sys-power/cpufrequtils/cpufrequtils-005.ebuild
new file mode 100644
index 000000000000..6fded0c2b848
--- /dev/null
+++ b/sys-power/cpufrequtils/cpufrequtils-005.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/cpufrequtils-005.ebuild,v 1.1 2008/10/20 16:05:14 vapier 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 ~arm ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug nls"
+
+DEPEND="sys-fs/sysfsutils"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e '/CFLAGDEF/s:-O1 -g::' \
+ -e '/CFLAGDEF/s:-fomit-frame-pointer::' \
+ Makefile
+}
+
+ft() { use $1 && echo true || echo false ; }
+
+src_compile() {
+ emake \
+ OPTIMIZATION= V=true \
+ DEBUG=$(ft debug) \
+ NLS=$(ft nls) \
+ CC=$(tc-getCC) LD=$(tc-getCC) AR=$(tc-getAR) STRIP=echo RANLIB=$(tc-getRANLIB) \
+ || die "emake failed"
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ NLS=$(ft nls) \
+ mandir=/usr/share/man \
+ libdir=/usr/$(get_libdir) \
+ install || die "make install failed"
+
+ newconfd "${FILESDIR}"/${PN}-conf.d-005 ${PN}
+ newinitd "${FILESDIR}"/${PN}-init.d-005 ${PN}
+
+ dodoc AUTHORS README
+}
diff --git a/sys-power/cpufrequtils/files/cpufrequtils-conf.d-005 b/sys-power/cpufrequtils/files/cpufrequtils-conf.d-005
new file mode 100644
index 000000000000..68f5b7594c67
--- /dev/null
+++ b/sys-power/cpufrequtils/files/cpufrequtils-conf.d-005
@@ -0,0 +1,7 @@
+# /etc/conf.d/cpufrequtils: config file for /etc/init.d/cpufrequtils
+
+# Options when starting cpufreq (given to the `cpufreq-set` program)
+START_OPTS="--governor ondemand"
+
+# Options when stopping cpufreq (given to the `cpufreq-set` program)
+STOP_OPTS="--governor performance"
diff --git a/sys-power/cpufrequtils/files/cpufrequtils-init.d-005 b/sys-power/cpufrequtils/files/cpufrequtils-init.d-005
new file mode 100644
index 000000000000..0e910b3f3401
--- /dev/null
+++ b/sys-power/cpufrequtils/files/cpufrequtils-init.d-005
@@ -0,0 +1,16 @@
+#!/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-init.d-005,v 1.1 2008/10/20 16:05:14 vapier Exp $
+
+start() {
+ ebegin "Running cpufreq-set ${START_OPTS}"
+ cpufreq-set ${START_OPTS}
+ eend $?
+}
+
+start() {
+ ebegin "Running cpufreq-set ${START_OPTS}"
+ cpufreq-set ${STOP_OPTS}
+ eend $?
+}