summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2001-10-14 09:11:36 +0000
committerDonny Davies <woodchip@gentoo.org>2001-10-14 09:11:36 +0000
commita50f0f55d846740a3e4b9bc60d81100aa35166db (patch)
tree8e56429112edc4693dfd1e8a6eb354c05a541446 /sys-apps/apmd/files
parentapmd rc5/rc6 support (diff)
downloadgentoo-2-a50f0f55d846740a3e4b9bc60d81100aa35166db.tar.gz
gentoo-2-a50f0f55d846740a3e4b9bc60d81100aa35166db.tar.bz2
gentoo-2-a50f0f55d846740a3e4b9bc60d81100aa35166db.zip
Make it support rc5/rc6. Add rc6 initscript. Respect users CFLAGS;
previously this wasnt so. Add DEPEND, with X conditionally. Small patch to accomodate people without X in USE. Remove old files.
Diffstat (limited to 'sys-apps/apmd/files')
-rw-r--r--sys-apps/apmd/files/apmd.rc5 (renamed from sys-apps/apmd/files/apmd)0
-rw-r--r--sys-apps/apmd/files/apmd.rc625
-rw-r--r--sys-apps/apmd/files/digest-apmd-3.0.1-r1 (renamed from sys-apps/apmd/files/digest-apmd-3.0.1)0
-rw-r--r--sys-apps/apmd/files/digest-apmd-3.0.1-r61
4 files changed, 26 insertions, 0 deletions
diff --git a/sys-apps/apmd/files/apmd b/sys-apps/apmd/files/apmd.rc5
index 2f9722a8cc0e..2f9722a8cc0e 100644
--- a/sys-apps/apmd/files/apmd
+++ b/sys-apps/apmd/files/apmd.rc5
diff --git a/sys-apps/apmd/files/apmd.rc6 b/sys-apps/apmd/files/apmd.rc6
new file mode 100644
index 000000000000..18258c333ff2
--- /dev/null
+++ b/sys-apps/apmd/files/apmd.rc6
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+
+depend() {
+ need localmount
+}
+
+checkconfig() {
+ if [ ! -e /proc/apm ] ; then
+ eerror "APM support has not been compiled into the kernel"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting apmd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/apmd -- -P /etc/apm/apmd_proxy
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping apmd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/apmd.pid
+ eend $?
+}
diff --git a/sys-apps/apmd/files/digest-apmd-3.0.1 b/sys-apps/apmd/files/digest-apmd-3.0.1-r1
index 67e9a7925a22..67e9a7925a22 100644
--- a/sys-apps/apmd/files/digest-apmd-3.0.1
+++ b/sys-apps/apmd/files/digest-apmd-3.0.1-r1
diff --git a/sys-apps/apmd/files/digest-apmd-3.0.1-r6 b/sys-apps/apmd/files/digest-apmd-3.0.1-r6
new file mode 100644
index 000000000000..67e9a7925a22
--- /dev/null
+++ b/sys-apps/apmd/files/digest-apmd-3.0.1-r6
@@ -0,0 +1 @@
+MD5 cf3fb2c7165bfa5c963b38fa150527d3 apmd_3.0.1-1.tar.gz