summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-power/cpufreqd/ChangeLog8
-rw-r--r--sys-power/cpufreqd/Manifest5
-rw-r--r--sys-power/cpufreqd/cpufreqd-2.0.0_beta4.ebuild43
-rw-r--r--sys-power/cpufreqd/files/cpufreqd-2.0.0_beta4-init.d37
-rw-r--r--sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_beta41
5 files changed, 92 insertions, 2 deletions
diff --git a/sys-power/cpufreqd/ChangeLog b/sys-power/cpufreqd/ChangeLog
index 333fcaf2b023..59dfbfc9d488 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.9 2005/08/26 10:14:06 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.10 2005/08/26 12:06:06 brix Exp $
+
+*cpufreqd-2.0.0_beta4 (26 Aug 2005)
+
+ 26 Aug 2005; Henrik Brix Andersen <brix@gentoo.org>
+ +files/cpufreqd-2.0.0_beta4-init.d, +cpufreqd-2.0.0_beta4.ebuild:
+ New beta release, bug #103798.
26 Aug 2005; Henrik Brix Andersen <brix@gentoo.org>
-files/1.1.2-prefer-sysfs.patch, -files/cpufreqd-1.2.2-memleaks.patch,
diff --git a/sys-power/cpufreqd/Manifest b/sys-power/cpufreqd/Manifest
index c7860f4243ee..06b5f43c0c8e 100644
--- a/sys-power/cpufreqd/Manifest
+++ b/sys-power/cpufreqd/Manifest
@@ -1,6 +1,9 @@
MD5 7b4b1c111f7236d40533147bcf5c7805 cpufreqd-1.2.3.ebuild 768
+MD5 a196aed641234ffbe7ee6e6c733e310d cpufreqd-2.0.0_beta4.ebuild 1149
MD5 957cdc8541deb498c827b66b7a263bc1 cpufreqd-1.2.2.ebuild 768
-MD5 bbfb8455ab4e171ab7bd3f007abae9fa ChangeLog 3832
+MD5 65f51c9274ed1b08978b64283a513767 ChangeLog 4026
MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
+MD5 6dfe51aafe839f3c3b78cd74a950c5f2 files/cpufreqd-2.0.0_beta4-init.d 913
+MD5 de1c5ff87e87941d0975a37d0a4c53a7 files/digest-cpufreqd-2.0.0_beta4 72
MD5 67d3999fd7d01ffce53d07c879735c6e files/digest-cpufreqd-1.2.2 66
MD5 df90962c83f1f87437ad708213cfcd23 files/digest-cpufreqd-1.2.3 66
diff --git a/sys-power/cpufreqd/cpufreqd-2.0.0_beta4.ebuild b/sys-power/cpufreqd/cpufreqd-2.0.0_beta4.ebuild
new file mode 100644
index 000000000000..cdd686a36237
--- /dev/null
+++ b/sys-power/cpufreqd/cpufreqd-2.0.0_beta4.ebuild
@@ -0,0 +1,43 @@
+# 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_beta4.ebuild,v 1.1 2005/08/26 12:06:06 brix Exp $
+
+inherit flag-o-matic linux-info
+
+MY_P=${P/_/-}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="CPU Frequency Daemon"
+HOMEPAGE="http://cpufreqd.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE=""
+DEPEND="sys-power/cpufrequtils"
+RDEPEND="${DEPEND}"
+
+CONFIG_CHECK="CPU_FREQ"
+ERROR_CPU_FREQ="${P} requires support for CPU Frequency scaling (CONFIG_CPU_FREQ)"
+
+src_install() {
+ emake DESTDIR=${D} install || die "emake 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_beta4-init.d b/sys-power/cpufreqd/files/cpufreqd-2.0.0_beta4-init.d
new file mode 100644
index 000000000000..0029692a25a3
--- /dev/null
+++ b/sys-power/cpufreqd/files/cpufreqd-2.0.0_beta4-init.d
@@ -0,0 +1,37 @@
+#!/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_beta4-init.d,v 1.1 2005/08/26 12:06:06 brix Exp $
+
+CONFIGFILE=/etc/cpufreqd.conf
+
+depend() {
+ need localmount
+}
+
+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_beta4 b/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_beta4
new file mode 100644
index 000000000000..576f49f75e13
--- /dev/null
+++ b/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_beta4
@@ -0,0 +1 @@
+MD5 ead34f298bc2e2e6f227ea03350e588f cpufreqd-2.0.0-beta4.tar.gz 456917