summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-10-16 18:12:29 +0000
committerChristian Heim <phreak@gentoo.org>2006-10-16 18:12:29 +0000
commit9f8c6aa09f8e8f1c6f1c71b59424bb2abc569051 (patch)
tree46e64382c7d21000a7f02c6fcbd9b55aa8388229 /sys-power
parentHandle no kernel sources with eerror instead of die, thanks to Chris Gianello... (diff)
downloadhistorical-9f8c6aa09f8e8f1c6f1c71b59424bb2abc569051.tar.gz
historical-9f8c6aa09f8e8f1c6f1c71b59424bb2abc569051.tar.bz2
historical-9f8c6aa09f8e8f1c6f1c71b59424bb2abc569051.zip
Adding the init-script for 2.2.0, thanks to Calchan for reporting it.
Package-Manager: portage-2.1.2_pre3-r2
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/cpufreqd/ChangeLog6
-rw-r--r--sys-power/cpufreqd/Manifest18
-rw-r--r--sys-power/cpufreqd/files/cpufreqd-2.2.0-init.d38
3 files changed, 54 insertions, 8 deletions
diff --git a/sys-power/cpufreqd/ChangeLog b/sys-power/cpufreqd/ChangeLog
index 0258183957eb..54a349051a75 100644
--- a/sys-power/cpufreqd/ChangeLog
+++ b/sys-power/cpufreqd/ChangeLog
@@ -1,6 +1,10 @@
# 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.37 2006/10/14 15:02:35 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.38 2006/10/16 18:12:29 phreak Exp $
+
+ 16 Oct 2006; Christian Heim <phreak@gentoo.org>
+ +files/cpufreqd-2.2.0-init.d:
+ Adding the init-script for 2.2.0, thanks to Calchan for reporting it.
14 Oct 2006; Christian Heim <phreak@gentoo.org> cpufreqd-2.2.0.ebuild:
Dropping from nvclock-0.8b2 to 0.8b (thanks to Marijn Schouten and Bernard
diff --git a/sys-power/cpufreqd/Manifest b/sys-power/cpufreqd/Manifest
index a613bed98d8f..2f6b46876ac5 100644
--- a/sys-power/cpufreqd/Manifest
+++ b/sys-power/cpufreqd/Manifest
@@ -13,6 +13,10 @@ AUX cpufreqd-2.1.1-init.d 914 RMD160 a0edb5d6151a14bc91b427912a88c888f4ac4b91 SH
MD5 ca0fa6db77839fe6855623217979b547 files/cpufreqd-2.1.1-init.d 914
RMD160 a0edb5d6151a14bc91b427912a88c888f4ac4b91 files/cpufreqd-2.1.1-init.d 914
SHA256 bb7dc7bebaf3b8adb942903f78624836dd93d7c8a34764767a5c0d5a30fa53e5 files/cpufreqd-2.1.1-init.d 914
+AUX cpufreqd-2.2.0-init.d 916 RMD160 308314f909c5f1e161882bc2c243a393e43c61e4 SHA1 f8d70c866c71c8e2380649547744bcb5e5e8ecfe SHA256 69f48f9d6a10655bf30b15c57b9720abd89d53c82dde3141421d6d9dc72fbf93
+MD5 d43184d48527811473a7d3d885150d8e files/cpufreqd-2.2.0-init.d 916
+RMD160 308314f909c5f1e161882bc2c243a393e43c61e4 files/cpufreqd-2.2.0-init.d 916
+SHA256 69f48f9d6a10655bf30b15c57b9720abd89d53c82dde3141421d6d9dc72fbf93 files/cpufreqd-2.2.0-init.d 916
AUX nvclock0.8b-fd.patch 580 RMD160 a5db5cb4f0c0f3270e3f042b1033defd6c406376 SHA1 afd021a0144b6adb4dbb936f1a8181db609592fc SHA256 5dad49a3ce2a52b37c4711c497a46c373282bdf27b9b28834a0b5bd977066bf2
MD5 786c62ca107cb9bc4e67e4cc2af34409 files/nvclock0.8b-fd.patch 580
RMD160 a5db5cb4f0c0f3270e3f042b1033defd6c406376 files/nvclock0.8b-fd.patch 580
@@ -51,10 +55,10 @@ EBUILD cpufreqd-2.2.0.ebuild 1571 RMD160 42814790f9de129051c8d3d6212eb768cbd7ab3
MD5 98ba7bf43c743ba0e7af62a9bd9dc7f0 cpufreqd-2.2.0.ebuild 1571
RMD160 42814790f9de129051c8d3d6212eb768cbd7ab3f cpufreqd-2.2.0.ebuild 1571
SHA256 76100ba6ec078c54872151275e4f1c1d396c1a5f83599c8ef603a773113a5203 cpufreqd-2.2.0.ebuild 1571
-MISC ChangeLog 8811 RMD160 af0ba43ae0950532538d06b001b386b4322e6f4e SHA1 6ae37d4d3a778672b3f992fcb67ed76ed14759dd SHA256 cf192a3bba08c70f5a26867293d7e2edeb7cecaa075081e0f6e80aa9917939ea
-MD5 d35de6a59517625a16d3173a8c5d5281 ChangeLog 8811
-RMD160 af0ba43ae0950532538d06b001b386b4322e6f4e ChangeLog 8811
-SHA256 cf192a3bba08c70f5a26867293d7e2edeb7cecaa075081e0f6e80aa9917939ea ChangeLog 8811
+MISC ChangeLog 8966 RMD160 e70c9973084766007bbdef24279723cd74884926 SHA1 ab638d7694d8b232c4ffc498d6a854b3ccce781a SHA256 27ca450bb481a6c92bcbcc0481ca6d32126341deb228a0dafcfb7afaf52ea846
+MD5 2ce3ed6d4b9a1d853651da5d90539b9a ChangeLog 8966
+RMD160 e70c9973084766007bbdef24279723cd74884926 ChangeLog 8966
+SHA256 27ca450bb481a6c92bcbcc0481ca6d32126341deb228a0dafcfb7afaf52ea846 ChangeLog 8966
MISC metadata.xml 254 RMD160 2e69b345a5604844f1c5a8256ea172c7a3cc485f SHA1 653c702fdb89577e9d15e9cbca3891e4acdba061 SHA256 9bffc4ff1cf574848699e33b09ff0f6137d6b64b69d82c7b95cafb32ee75becb
MD5 f3e68295a919220f58e91a1d3468c851 metadata.xml 254
RMD160 2e69b345a5604844f1c5a8256ea172c7a3cc485f metadata.xml 254
@@ -77,7 +81,7 @@ SHA256 ece8527560ea346e55eca1f480239b7744db81a6c842424e08a86af247f6b411 files/di
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
-iD8DBQFFMPwTyuNVb5qfaOYRAjVaAJ99dl1benr+SBswILVKjhZi0n/CcQCgjuXX
-W/Q7Lsr00d6qkhRRU9UQmL4=
-=vOW4
+iD8DBQFFM8uWyuNVb5qfaOYRAkodAJ45VEFoy79tPd+DxqWq7N/8iatdPgCgzxrh
+jaeggG8g82tY9VQaecdqRdA=
+=vsea
-----END PGP SIGNATURE-----
diff --git a/sys-power/cpufreqd/files/cpufreqd-2.2.0-init.d b/sys-power/cpufreqd/files/cpufreqd-2.2.0-init.d
new file mode 100644
index 000000000000..21fa262761eb
--- /dev/null
+++ b/sys-power/cpufreqd/files/cpufreqd-2.2.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.2.0-init.d,v 1.1 2006/10/16 18:12:29 phreak 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 ${?}
+}