diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-15 19:15:53 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-15 19:15:53 +0000 |
commit | 04ba108a1f9b69901812f19aa5c1ab035c22c75a (patch) | |
tree | 6da36ceeac54ba8d25a6caacba25b4a76ca2ea80 /sys-power/acpid/files | |
parent | Keywording for ~sparc - makes manifest signing so much nicer. Bug 85376 (diff) | |
download | gentoo-2-04ba108a1f9b69901812f19aa5c1ab035c22c75a.tar.gz gentoo-2-04ba108a1f9b69901812f19aa5c1ab035c22c75a.tar.bz2 gentoo-2-04ba108a1f9b69901812f19aa5c1ab035c22c75a.zip |
Moved from sys-apps/acpid to sys-power/acpid.
Diffstat (limited to 'sys-power/acpid/files')
-rw-r--r-- | sys-power/acpid/files/acpid-1.0.4-default | 22 | ||||
-rwxr-xr-x | sys-power/acpid/files/acpid-1.0.4-default.sh | 26 | ||||
-rwxr-xr-x | sys-power/acpid/files/acpid.rc6 | 28 | ||||
-rw-r--r-- | sys-power/acpid/files/default.sh-gentoo.patch | 27 | ||||
-rw-r--r-- | sys-power/acpid/files/digest-acpid-1.0.1 | 1 | ||||
-rw-r--r-- | sys-power/acpid/files/digest-acpid-1.0.2-r1 | 1 | ||||
-rw-r--r-- | sys-power/acpid/files/digest-acpid-1.0.2-r2 | 1 | ||||
-rw-r--r-- | sys-power/acpid/files/digest-acpid-1.0.4 | 1 |
8 files changed, 107 insertions, 0 deletions
diff --git a/sys-power/acpid/files/acpid-1.0.4-default b/sys-power/acpid/files/acpid-1.0.4-default new file mode 100644 index 000000000000..ae001fdbe3b8 --- /dev/null +++ b/sys-power/acpid/files/acpid-1.0.4-default @@ -0,0 +1,22 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-1.0.4-default,v 1.1 2005/03/15 19:15:53 ciaranm Exp $ + +# This is the ACPID default configuration, it takes all +# events and passes them to /etc/acpi/default.sh for further +# processing. + +# event keeps a regular expression matching the event. To get +# power events only, just use something like "event=button power.*" +# to catch it. +# action keeps the command to be executed after an event occurs +# In case of the power event above, your entry may look this way: +#event=button power.* +#action=/sbin/init 0 + +# Optionally you can specify the placeholder %e. It will pass +# through the whole kernel event message to the program you've +# specified. + +event=.* +action=/etc/acpi/default.sh %e diff --git a/sys-power/acpid/files/acpid-1.0.4-default.sh b/sys-power/acpid/files/acpid-1.0.4-default.sh new file mode 100755 index 000000000000..f7255d435f9e --- /dev/null +++ b/sys-power/acpid/files/acpid-1.0.4-default.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-1.0.4-default.sh,v 1.1 2005/03/15 19:15:53 ciaranm Exp $ + +# Default acpi script that takes an entry for all actions + +set $* + +group=${1/\/*/} +action=${1/*\//} + +case "$group" in + button) + case "$action" in + power) /sbin/init 0 + ;; + *) logger "ACPI action $action is not defined" + ;; + esac + ;; + + *) + logger "ACPI group $group / action $action is not defined" + ;; +esac diff --git a/sys-power/acpid/files/acpid.rc6 b/sys-power/acpid/files/acpid.rc6 new file mode 100755 index 000000000000..29a8629774ff --- /dev/null +++ b/sys-power/acpid/files/acpid.rc6 @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid.rc6,v 1.1 2005/03/15 19:15:53 ciaranm Exp $ + +depend() { + need localmount +} + +checkconfig() { + if [ ! -e /proc/acpi ] ; then + eerror "ACPI support has not been compiled into the kernel" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting acpid" + start-stop-daemon --start --quiet --exec /usr/sbin/acpid -- -c /etc/acpi/events + eend $? +} + +stop() { + ebegin "Stopping acpid" + start-stop-daemon --stop --quiet --exec /usr/sbin/acpid + eend $? +} diff --git a/sys-power/acpid/files/default.sh-gentoo.patch b/sys-power/acpid/files/default.sh-gentoo.patch new file mode 100644 index 000000000000..6da547d2ded1 --- /dev/null +++ b/sys-power/acpid/files/default.sh-gentoo.patch @@ -0,0 +1,27 @@ +--- acpi/default.sh 2003-07-27 19:06:47.000000000 +0200 ++++ acpi-gentoo/default.sh 2003-07-27 19:11:45.000000000 +0200 +@@ -3,17 +3,20 @@ + + set $* + +-case "$1" in ++group=${1/\/*/} ++action=${1/*\//} ++ ++case "$group" in + button) +- case "$2" in ++ case "$action" in + power) /sbin/init 0 + ;; +- *) logger "ACPI action $2 is not defined" ++ *) logger "ACPI action $action is not defined" + ;; + esac + ;; + + *) +- logger "ACPI group $1 / action $2 is not defined" ++ logger "ACPI group $group / action $action is not defined" + ;; + esac diff --git a/sys-power/acpid/files/digest-acpid-1.0.1 b/sys-power/acpid/files/digest-acpid-1.0.1 new file mode 100644 index 000000000000..57cc4183c33a --- /dev/null +++ b/sys-power/acpid/files/digest-acpid-1.0.1 @@ -0,0 +1 @@ +MD5 0c03d957aec557857ffc7941243083d9 acpid-1.0.1.tar.gz 15762 diff --git a/sys-power/acpid/files/digest-acpid-1.0.2-r1 b/sys-power/acpid/files/digest-acpid-1.0.2-r1 new file mode 100644 index 000000000000..ea5c9cf27a55 --- /dev/null +++ b/sys-power/acpid/files/digest-acpid-1.0.2-r1 @@ -0,0 +1 @@ +MD5 15884aaf0b82717954f9366b5c00808b acpid-1.0.2.tar.gz 23554 diff --git a/sys-power/acpid/files/digest-acpid-1.0.2-r2 b/sys-power/acpid/files/digest-acpid-1.0.2-r2 new file mode 100644 index 000000000000..ea5c9cf27a55 --- /dev/null +++ b/sys-power/acpid/files/digest-acpid-1.0.2-r2 @@ -0,0 +1 @@ +MD5 15884aaf0b82717954f9366b5c00808b acpid-1.0.2.tar.gz 23554 diff --git a/sys-power/acpid/files/digest-acpid-1.0.4 b/sys-power/acpid/files/digest-acpid-1.0.4 new file mode 100644 index 000000000000..37c23c5f0323 --- /dev/null +++ b/sys-power/acpid/files/digest-acpid-1.0.4 @@ -0,0 +1 @@ +MD5 3aff94e92186e99ed5fd6dcee2db7c74 acpid-1.0.4.tar.gz 23416 |