diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2006-06-20 22:45:56 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2006-06-20 22:45:56 +0000 |
commit | 185edb464022dd9821b58fa3aa692784fbe53369 (patch) | |
tree | 0eb5c3b05f54af8a1992f53045dd58784a6b6c99 /sys-power/cpufreqd | |
parent | Keyworded ~sparc wrt #137192 (diff) | |
download | gentoo-2-185edb464022dd9821b58fa3aa692784fbe53369.tar.gz gentoo-2-185edb464022dd9821b58fa3aa692784fbe53369.tar.bz2 gentoo-2-185edb464022dd9821b58fa3aa692784fbe53369.zip |
Version bump, thanks to Alon Bar-Lev in bug #137396.
(Portage version: 2.1)
Diffstat (limited to 'sys-power/cpufreqd')
-rw-r--r-- | sys-power/cpufreqd/ChangeLog | 8 | ||||
-rw-r--r-- | sys-power/cpufreqd/cpufreqd-2.1.0.ebuild | 67 | ||||
-rw-r--r-- | sys-power/cpufreqd/files/cpufreqd-2.1.0-init.d | 38 | ||||
-rw-r--r-- | sys-power/cpufreqd/files/digest-cpufreqd-2.0.0 | 2 | ||||
-rw-r--r-- | sys-power/cpufreqd/files/digest-cpufreqd-2.1.0 | 6 |
5 files changed, 120 insertions, 1 deletions
diff --git a/sys-power/cpufreqd/ChangeLog b/sys-power/cpufreqd/ChangeLog index aff3262b2896..cad669346b33 100644 --- a/sys-power/cpufreqd/ChangeLog +++ b/sys-power/cpufreqd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-power/cpufreqd # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.30 2006/05/11 20:48:39 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.31 2006/06/20 22:45:56 brix Exp $ + +*cpufreqd-2.1.0 (20 Jun 2006) + + 20 Jun 2006; Henrik Brix Andersen <brix@gentoo.org> + +files/cpufreqd-2.1.0-init.d, +cpufreqd-2.1.0.ebuild: + Version bump, thanks to Alon Bar-Lev in bug #137396. 11 May 2006; Henrik Brix Andersen <brix@gentoo.org> files/cpufreqd-2.0.0-init.d: diff --git a/sys-power/cpufreqd/cpufreqd-2.1.0.ebuild b/sys-power/cpufreqd/cpufreqd-2.1.0.ebuild new file mode 100644 index 000000000000..161161497d2c --- /dev/null +++ b/sys-power/cpufreqd/cpufreqd-2.1.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/cpufreqd-2.1.0.ebuild,v 1.1 2006/06/20 22:45:56 brix Exp $ + +inherit eutils + +NVCLOCK_VERSION="0.8b" + +DESCRIPTION="CPU Frequency Daemon" +HOMEPAGE="http://cpufreqd.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 + nvidia? ( http://www.linuxhardware.org/nvclock/nvclock${NVCLOCK_VERSION}.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +IUSE="acpi apm lm_sensors nforce2 nvidia pmu" +RDEPEND="sys-power/cpufrequtils + lm_sensors? ( sys-apps/lm_sensors )" +DEPEND="sys-apps/sed + ${RDEPEND}" + +src_unpack() { + unpack ${A} + + sed -i -e "s:acpi_event:acpi:" ${S}/cpufreqd.conf + + if use nvidia; then + cd ${WORKDIR}/nvclock${NVCLOCK_VERSION} + epatch ${FILESDIR}/nvclock${NVCLOCK_VERSION}-fd.patch + epatch ${FILESDIR}/nvclock${NVCLOCK_VERSION}-fpic.patch + fi +} + +src_compile() { + local config + + if use nvidia; then + cd ${WORKDIR}/nvclock${NVCLOCK_VERSION} + econf \ + --disable-gtk \ + --disable-qt \ + --disable-nvcontrol \ + || die "econf nvclock failed" + emake -j1 || die "emake nvclock failed" + config="--enable-nvclock=${WORKDIR}/nvclock${NVCLOCK_VERSION}" + fi + + cd "${S}" + econf \ + $(use_enable acpi) \ + $(use_enable apm) \ + $(use_enable lm_sensors sensors) \ + $(use_enable nforce2) \ + $(use_enable pmu) \ + ${config} \ + || die "econf failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + dodoc AUTHORS ChangeLog NEWS README TODO + + newinitd ${FILESDIR}/${P}-init.d ${PN} +} diff --git a/sys-power/cpufreqd/files/cpufreqd-2.1.0-init.d b/sys-power/cpufreqd/files/cpufreqd-2.1.0-init.d new file mode 100644 index 000000000000..5a9f4d91302c --- /dev/null +++ b/sys-power/cpufreqd/files/cpufreqd-2.1.0-init.d @@ -0,0 +1,38 @@ +#!/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/cpufreqd/files/cpufreqd-2.1.0-init.d,v 1.1 2006/06/20 22:45:56 brix Exp $ + +CONFIGFILE=/etc/cpufreqd.conf + +depend() { + need localmount + use logger lm_sensors +} + +checkconfig() { + if [[ ! -f ${CONFIGFILE} ]]; then + eerror "Configuration file ${CONFIGFILE} not found" + return 1 + fi + + if [[ ! -e /proc/cpufreq ]] && [[ ! -e /sys/devices/system/cpu/cpu0/cpufreq ]]; then + eerror "cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ" + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting CPU Frequency Daemon" + start-stop-daemon --start --exec /usr/sbin/cpufreqd -- \ + -f ${CONFIGFILE} + eend ${?} +} + +stop() { + ebegin "Stopping CPU Frequency Daemon" + start-stop-daemon --stop --exec /usr/sbin/cpufreqd + eend ${?} +} diff --git a/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0 b/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0 index ee7bb19c007e..1f388f584a2b 100644 --- a/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0 +++ b/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0 @@ -2,3 +2,5 @@ MD5 26a6e0795624114cc15aa48ad8b6ca6b cpufreqd-2.0.0.tar.bz2 256423 RMD160 97ae4ccf77f00db2aa2afebde4e5d0cb7dd24439 cpufreqd-2.0.0.tar.bz2 256423 SHA256 c56e41a1c530cbb0648132660ace4861c9262d241753876c038697120f45fa8c cpufreqd-2.0.0.tar.bz2 256423 MD5 df36711124e08b3349692a8788755d14 nvclock0.8b.tar.gz 353127 +RMD160 66cac5993dc141d00efaa95d8f5ec38ed53854f6 nvclock0.8b.tar.gz 353127 +SHA256 a1fbdb82837c33869c0ebfcb95b6e11fc53b86919e8d1d17265d1af71eb04393 nvclock0.8b.tar.gz 353127 diff --git a/sys-power/cpufreqd/files/digest-cpufreqd-2.1.0 b/sys-power/cpufreqd/files/digest-cpufreqd-2.1.0 new file mode 100644 index 000000000000..ddfda53bc5da --- /dev/null +++ b/sys-power/cpufreqd/files/digest-cpufreqd-2.1.0 @@ -0,0 +1,6 @@ +MD5 3d0028502e7674b13f9318a20441f45d cpufreqd-2.1.0.tar.bz2 281762 +RMD160 7f4c8efea26f456ddda20092ebe954f366e8d633 cpufreqd-2.1.0.tar.bz2 281762 +SHA256 852efb0afecd62e848ede20490dd1bddc3d09dbf055d817ae052b5a5d299cb26 cpufreqd-2.1.0.tar.bz2 281762 +MD5 df36711124e08b3349692a8788755d14 nvclock0.8b.tar.gz 353127 +RMD160 66cac5993dc141d00efaa95d8f5ec38ed53854f6 nvclock0.8b.tar.gz 353127 +SHA256 a1fbdb82837c33869c0ebfcb95b6e11fc53b86919e8d1d17265d1af71eb04393 nvclock0.8b.tar.gz 353127 |