diff options
author | 2006-11-30 16:42:10 +0000 | |
---|---|---|
committer | 2006-11-30 16:42:10 +0000 | |
commit | 6d10f225e489ac32f9d473541a14899db604e707 (patch) | |
tree | 5af6c9a69c8bf62263d897f7f5c3b6f43dd43c6f /sys-power | |
parent | Update xerces dep for upcoming 2.6 slotmove. (diff) | |
download | gentoo-2-6d10f225e489ac32f9d473541a14899db604e707.tar.gz gentoo-2-6d10f225e489ac32f9d473541a14899db604e707.tar.bz2 gentoo-2-6d10f225e489ac32f9d473541a14899db604e707.zip |
Version bump.
(Portage version: 2.1.2_rc2-r3)
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/cpufreqd/ChangeLog | 8 | ||||
-rw-r--r-- | sys-power/cpufreqd/cpufreqd-2.2.1.ebuild | 77 | ||||
-rw-r--r-- | sys-power/cpufreqd/files/cpufreqd-2.2.1-init.d | 43 | ||||
-rw-r--r-- | sys-power/cpufreqd/files/digest-cpufreqd-2.2.1 | 6 |
4 files changed, 133 insertions, 1 deletions
diff --git a/sys-power/cpufreqd/ChangeLog b/sys-power/cpufreqd/ChangeLog index d3a38e6fe948..4f2e23033802 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.45 2006/11/30 16:14:55 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.46 2006/11/30 16:42:10 peper Exp $ + +*cpufreqd-2.2.1 (30 Nov 2006) + + 30 Nov 2006; Piotr Jaroszyński <peper@gentoo.org> + +files/cpufreqd-2.2.1-init.d, +cpufreqd-2.2.1.ebuild: + Version bump. 30 Nov 2006; Piotr Jaroszyński <peper@gentoo.org> -files/cpufreqd-2.0.0-init.d, -files/cpufreqd-2.1.0-init.d, diff --git a/sys-power/cpufreqd/cpufreqd-2.2.1.ebuild b/sys-power/cpufreqd/cpufreqd-2.2.1.ebuild new file mode 100644 index 000000000000..542ca02c885f --- /dev/null +++ b/sys-power/cpufreqd/cpufreqd-2.2.1.ebuild @@ -0,0 +1,77 @@ +# 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.2.1.ebuild,v 1.1 2006/11/30 16:42:10 peper Exp $ + +inherit eutils autotools + +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-002 + lm_sensors? ( sys-apps/lm_sensors )" +DEPEND="sys-apps/sed + ${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i -e "s:acpi_event:acpi:" "${S}"/cpufreqd.conf + + if use nvidia; then + cd "${WORKDIR}"/nvclock${NVCLOCK_VERSION} + 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} +} + +pkg_postinst() { + if [ -f "${ROOT}"/etc/conf.d/cpufreqd ] ; then + ewarn "Please make sure, you remove \"/etc/conf.d/cpufreqd\". It breaks" + ewarn "the init-script! (#152096)" + ewarn + ewarn "Use this if you don't know how to do it:" + ewarn "# rm /etc/conf.d/cpufreqd" + fi +} diff --git a/sys-power/cpufreqd/files/cpufreqd-2.2.1-init.d b/sys-power/cpufreqd/files/cpufreqd-2.2.1-init.d new file mode 100644 index 000000000000..b7ffa4f0a2ed --- /dev/null +++ b/sys-power/cpufreqd/files/cpufreqd-2.2.1-init.d @@ -0,0 +1,43 @@ +#!/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.2.1-init.d,v 1.1 2006/11/30 16:42:10 peper 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 ]] ; then + for cpu in /sys/devices/system/cpu/cpu[0-9]* ; do + # We need just one cpu supporting freq scaling. + [[ -e ${cpu}/cpufreq ]] && return 0 + done + eerror "cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ" + eerror "Make sure that the appropiate drivers for your CPU are available." + 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.2.1 b/sys-power/cpufreqd/files/digest-cpufreqd-2.2.1 new file mode 100644 index 000000000000..4ee4483432c5 --- /dev/null +++ b/sys-power/cpufreqd/files/digest-cpufreqd-2.2.1 @@ -0,0 +1,6 @@ +MD5 e66f22915c8ce609cd0c8f254da11c08 cpufreqd-2.2.1.tar.bz2 287628 +RMD160 ea2e66176edad38383f57143ce39bf0567aec812 cpufreqd-2.2.1.tar.bz2 287628 +SHA256 7aa39922c2aeecbd37916e445560aab8350e645b004cac4390a2ae547be7eb0a cpufreqd-2.2.1.tar.bz2 287628 +MD5 df36711124e08b3349692a8788755d14 nvclock0.8b.tar.gz 353127 +RMD160 66cac5993dc141d00efaa95d8f5ec38ed53854f6 nvclock0.8b.tar.gz 353127 +SHA256 a1fbdb82837c33869c0ebfcb95b6e11fc53b86919e8d1d17265d1af71eb04393 nvclock0.8b.tar.gz 353127 |