diff options
-rw-r--r-- | sys-power/cpufrequtils/ChangeLog | 10 | ||||
-rw-r--r-- | sys-power/cpufrequtils/cpufrequtils-005.ebuild | 50 | ||||
-rw-r--r-- | sys-power/cpufrequtils/files/cpufrequtils-conf.d-005 | 7 | ||||
-rw-r--r-- | sys-power/cpufrequtils/files/cpufrequtils-init.d-005 | 16 |
4 files changed, 82 insertions, 1 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/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 $? +} |