summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-11-02 19:33:24 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-11-02 19:33:24 +0000
commit03a4020b984ad89679875660db4820fe3af92a89 (patch)
treee7a5bebcc47dd67824ba5310c62a6b1c33df468d /sys-power/cpufreqd
parentAdd ~sparc keyword (needed with X-modular for some packages). (diff)
downloadgentoo-2-03a4020b984ad89679875660db4820fe3af92a89.tar.gz
gentoo-2-03a4020b984ad89679875660db4820fe3af92a89.tar.bz2
gentoo-2-03a4020b984ad89679875660db4820fe3af92a89.zip
Version bump.
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'sys-power/cpufreqd')
-rw-r--r--sys-power/cpufreqd/ChangeLog8
-rw-r--r--sys-power/cpufreqd/Manifest5
-rw-r--r--sys-power/cpufreqd/cpufreqd-2.0.0_pre2.ebuild78
-rw-r--r--sys-power/cpufreqd/files/cpufreqd-2.0.0_pre2-init.d38
-rw-r--r--sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_pre22
5 files changed, 129 insertions, 2 deletions
diff --git a/sys-power/cpufreqd/ChangeLog b/sys-power/cpufreqd/ChangeLog
index 5fa35820cfaf..d1a4fa05985e 100644
--- a/sys-power/cpufreqd/ChangeLog
+++ b/sys-power/cpufreqd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-power/cpufreqd
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.19 2005/10/22 11:02:38 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.20 2005/11/02 19:33:24 brix Exp $
+
+*cpufreqd-2.0.0_pre2 (02 Nov 2005)
+
+ 02 Nov 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/cpufreqd-2.0.0_pre2-init.d, +cpufreqd-2.0.0_pre2.ebuild:
+ Version bump.
22 Oct 2005; Henrik Brix Andersen <brix@gentoo.org>
-files/cpufreqd-2.0.0-beta4-cpu_interval_inconsistency.diff,
diff --git a/sys-power/cpufreqd/Manifest b/sys-power/cpufreqd/Manifest
index bf2f1af27874..bfdd1f59ab3f 100644
--- a/sys-power/cpufreqd/Manifest
+++ b/sys-power/cpufreqd/Manifest
@@ -1,10 +1,13 @@
MD5 ae4232c6e814691b97c24efa396281bf cpufreqd-1.2.3.ebuild 766
+MD5 fc3b86d0f91a2dfe1f156bc8ca64f40a cpufreqd-2.0.0_pre2.ebuild 1754
MD5 ec973c4afe3f59378b3e1959006d08ba cpufreqd-2.0.0_pre1-r1.ebuild 1980
-MD5 7ed88c0f03092155973224f5faa32336 ChangeLog 5739
+MD5 e449849b1c1914f28c659c4107b48ddd ChangeLog 5912
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
+MD5 f87c95a27cbaa483e8d2ffe10daea2e1 files/cpufreqd-2.0.0_pre2-init.d 813
MD5 95795535f5a0008b811ee27f41c03906 files/cpufreqd-2.0.0_pre1-init.d 924
MD5 d70bc0faf394553981b6c960b724203b files/digest-cpufreqd-2.0.0_pre1-r1 134
MD5 1ad2c167e774a2946ea647d8fd203795 files/cpufreqd-2.0.0-pre1-nv.patch 1277
+MD5 4fd32dc323c312bbedc6a5f27742e17c files/digest-cpufreqd-2.0.0_pre2 134
MD5 df90962c83f1f87437ad708213cfcd23 files/digest-cpufreqd-1.2.3 66
MD5 ef5357bf562da5e6617e64e98c47aaf3 files/cpufreqd-2.0.0-pre1-cpufreqd.conf 2128
MD5 786c62ca107cb9bc4e67e4cc2af34409 files/nvclock0.8b-fd.patch 580
diff --git a/sys-power/cpufreqd/cpufreqd-2.0.0_pre2.ebuild b/sys-power/cpufreqd/cpufreqd-2.0.0_pre2.ebuild
new file mode 100644
index 000000000000..70827015a7af
--- /dev/null
+++ b/sys-power/cpufreqd/cpufreqd-2.0.0_pre2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/cpufreqd-2.0.0_pre2.ebuild,v 1.1 2005/11/02 19:33:24 brix Exp $
+
+inherit eutils
+
+MY_P=${P/_/-}
+S=${WORKDIR}/${MY_P}
+
+NVCLOCK_VERSION="0.8b"
+
+DESCRIPTION="CPU Frequency Daemon"
+HOMEPAGE="http://cpufreqd.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
+ nvidia? ( http://www.linuxhardware.org/nvclock/nvclock${NVCLOCK_VERSION}.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE="acpi apm lm_sensors nforce2 nvidia pmu"
+DEPEND="sys-power/cpufrequtils
+ lm_sensors? ( sys-apps/lm_sensors )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ if use nvidia; then
+ cd ${WORKDIR}/nvclock${NVCLOCK_VERSION}
+ epatch ${FILESDIR}/nvclock${NVCLOCK_VERSION}-fd.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() {
+ einfo
+ einfo "Significant changes have happened since the 1.x releases, including"
+ einfo "changes in the configuration file format."
+ einfo
+ einfo "Make sure you update your /etc/cpufreqd.conf file before starting"
+ einfo "${PN}. You can use 'etc-update' to accomplish this:"
+ einfo
+ einfo " # etc-update"
+ einfo
+}
diff --git a/sys-power/cpufreqd/files/cpufreqd-2.0.0_pre2-init.d b/sys-power/cpufreqd/files/cpufreqd-2.0.0_pre2-init.d
new file mode 100644
index 000000000000..8f934afa1666
--- /dev/null
+++ b/sys-power/cpufreqd/files/cpufreqd-2.0.0_pre2-init.d
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/files/cpufreqd-2.0.0_pre2-init.d,v 1.1 2005/11/02 19:33:24 brix Exp $
+
+CONFIGFILE=/etc/cpufreqd.conf
+
+depend() {
+ need localmount
+ use logger
+}
+
+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 --quiet --exec /usr/sbin/cpufreqd -- \
+ -f ${CONFIGFILE}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping CPU Frequency Daemon"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/cpufreqd
+ eend ${?}
+}
diff --git a/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_pre2 b/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_pre2
new file mode 100644
index 000000000000..7c0c16ef7688
--- /dev/null
+++ b/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_pre2
@@ -0,0 +1,2 @@
+MD5 af918101ee328e0d3e783281ad537bfd cpufreqd-2.0.0-pre2.tar.gz 371238
+MD5 df36711124e08b3349692a8788755d14 nvclock0.8b.tar.gz 353127