diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2006-03-26 21:36:18 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2006-03-26 21:36:18 +0000 |
commit | 827f05e782646ccfc5976f10d6e2f570342d240e (patch) | |
tree | 7254a0576cc1688c3d328d1bf164aeaf15a48a7c /sys-power/cpufrequtils | |
parent | Version bump. (diff) | |
download | historical-827f05e782646ccfc5976f10d6e2f570342d240e.tar.gz historical-827f05e782646ccfc5976f10d6e2f570342d240e.tar.bz2 historical-827f05e782646ccfc5976f10d6e2f570342d240e.zip |
Version bump.
Package-Manager: portage-2.0.54
Diffstat (limited to 'sys-power/cpufrequtils')
-rw-r--r-- | sys-power/cpufrequtils/ChangeLog | 9 | ||||
-rw-r--r-- | sys-power/cpufrequtils/Manifest | 6 | ||||
-rw-r--r-- | sys-power/cpufrequtils/cpufrequtils-001.ebuild | 47 | ||||
-rw-r--r-- | sys-power/cpufrequtils/files/cpufrequtils-001-conf.d | 6 | ||||
-rw-r--r-- | sys-power/cpufrequtils/files/cpufrequtils-001-init.d | 19 | ||||
-rw-r--r-- | sys-power/cpufrequtils/files/digest-cpufrequtils-001 | 1 |
6 files changed, 86 insertions, 2 deletions
diff --git a/sys-power/cpufrequtils/ChangeLog b/sys-power/cpufrequtils/ChangeLog index e526f0d97bff..e59bc7450001 100644 --- a/sys-power/cpufrequtils/ChangeLog +++ b/sys-power/cpufrequtils/ChangeLog @@ -1,6 +1,13 @@ # 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.18 2006/02/13 15:47:31 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.19 2006/03/26 21:36:18 brix Exp $ + +*cpufrequtils-001 (26 Mar 2006) + + 26 Mar 2006; Henrik Brix Andersen <brix@gentoo.org> + +files/cpufrequtils-001-conf.d, +files/cpufrequtils-001-init.d, + +cpufrequtils-001.ebuild: + Version bump. 13 Feb 2006; Henrik Brix Andersen <brix@gentoo.org> -files/cpufrequtils-0.3-conf.d, -files/cpufrequtils-0.3-init.d, diff --git a/sys-power/cpufrequtils/Manifest b/sys-power/cpufrequtils/Manifest index b996016f8600..9b0d490d4399 100644 --- a/sys-power/cpufrequtils/Manifest +++ b/sys-power/cpufrequtils/Manifest @@ -1,6 +1,10 @@ -MD5 049c25413f15ada6c05138661d9819b1 ChangeLog 2854 +MD5 d7344620135505b2ac3601ce063cccff ChangeLog 3052 MD5 807a7ffb13cf26d5259c3ef3e2e59996 cpufrequtils-0.4.ebuild 987 +MD5 caffddece529746ffa0aca0422fbc90f cpufrequtils-001.ebuild 1192 MD5 ff862256db38dcc1f5d3a5f86f29edb2 files/cpufrequtils-0.4-conf.d 230 MD5 b8286b5cd3a2b122ace8f1a66c08fd67 files/cpufrequtils-0.4-init.d 498 +MD5 ff862256db38dcc1f5d3a5f86f29edb2 files/cpufrequtils-001-conf.d 230 +MD5 b68d94133a48be4c8c9d274a4941b3ae files/cpufrequtils-001-init.d 496 MD5 555ad680b73f0cd099e9c2e81d24cf9b files/digest-cpufrequtils-0.4 69 +MD5 706022fe8ddcdddc2bf9a140c6a48d23 files/digest-cpufrequtils-001 68 MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255 diff --git a/sys-power/cpufrequtils/cpufrequtils-001.ebuild b/sys-power/cpufrequtils/cpufrequtils-001.ebuild new file mode 100644 index 000000000000..efb5bd57ab6f --- /dev/null +++ b/sys-power/cpufrequtils/cpufrequtils-001.ebuild @@ -0,0 +1,47 @@ +# 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-001.ebuild,v 1.1 2006/03/26 21:36:18 brix Exp $ + +inherit toolchain-funcs + +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" +RDEPEND="sys-fs/sysfsutils" +DEPEND="sys-apps/sed + ${RDEPEND}" + +src_compile() { + local debug=false nls=false + + use debug && debug=true + use nls && nls=true + + sed -i \ + -e "s:^\(CFLAGS \:=.*\):\1 ${CFLAGS}:" \ + ${S}/Makefile + + emake -j1 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 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-001-conf.d b/sys-power/cpufrequtils/files/cpufrequtils-001-conf.d new file mode 100644 index 000000000000..5f2d91fedc54 --- /dev/null +++ b/sys-power/cpufrequtils/files/cpufrequtils-001-conf.d @@ -0,0 +1,6 @@ +# /etc/conf.d/cpufrequtils: config file for /etc/init.d/cpufrequtils + +# 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-001-init.d b/sys-power/cpufrequtils/files/cpufrequtils-001-init.d new file mode 100644 index 000000000000..4251dd7b503d --- /dev/null +++ b/sys-power/cpufrequtils/files/cpufrequtils-001-init.d @@ -0,0 +1,19 @@ +#!/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-001-init.d,v 1.1 2006/03/26 21:36:18 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-001 b/sys-power/cpufrequtils/files/digest-cpufrequtils-001 new file mode 100644 index 000000000000..ca55b5efdf60 --- /dev/null +++ b/sys-power/cpufrequtils/files/digest-cpufrequtils-001 @@ -0,0 +1 @@ +MD5 18a45856a5a6a06cd9473cbeb3e18499 cpufrequtils-001.tar.bz2 35339 |