summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2007-10-14 12:04:33 +0000
committerStefan Schweizer <genstef@gentoo.org>2007-10-14 12:04:33 +0000
commit889e966383fc0209d3bd499cad79f9d2a39fb8ff (patch)
tree1307f09604427cc54b184af1b3d61c4b4fb12b39 /sys-power/acpid/files
parentStable on x86 for bug #195707 (diff)
downloadgentoo-2-889e966383fc0209d3bd499cad79f9d2a39fb8ff.tar.gz
gentoo-2-889e966383fc0209d3bd499cad79f9d2a39fb8ff.tar.bz2
gentoo-2-889e966383fc0209d3bd499cad79f9d2a39fb8ff.zip
Fix improper expansion in default.sh, bug 186141, and start init script before hal, bug 194636, also remove old ebuilds
(Portage version: 2.1.3.12)
Diffstat (limited to 'sys-power/acpid/files')
-rwxr-xr-xsys-power/acpid/files/acpid-1.0.4-default.sh55
-rw-r--r--sys-power/acpid/files/acpid-1.0.4-gcc4.patch20
-rw-r--r--sys-power/acpid/files/acpid-1.0.4-logrotate9
-rwxr-xr-xsys-power/acpid/files/acpid-1.0.6-default.sh2
-rw-r--r--sys-power/acpid/files/acpid-1.0.6-init.d3
-rw-r--r--sys-power/acpid/files/acpid.conf.d6
-rw-r--r--sys-power/acpid/files/digest-acpid-1.0.4-r23
-rw-r--r--sys-power/acpid/files/digest-acpid-1.0.6-r1 (renamed from sys-power/acpid/files/digest-acpid-1.0.6)1
8 files changed, 3 insertions, 96 deletions
diff --git a/sys-power/acpid/files/acpid-1.0.4-default.sh b/sys-power/acpid/files/acpid-1.0.4-default.sh
deleted file mode 100755
index a71046638330..000000000000
--- a/sys-power/acpid/files/acpid-1.0.4-default.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-# /etc/acpi/default.sh
-# Default acpi script that takes an entry for all actions
-
-set $*
-
-group=${1/\/*/}
-action=${1/*\//}
-device=$2
-id=$3
-value=$4
-
-log_unhandled() {
- logger "ACPI event unhandled: $*"
-}
-
-case "$group" in
- button)
- case "$action" in
- power)
- /sbin/init 0
- ;;
-
- # if your laptop doesnt turn on/off the display via hardware
- # switch and instead just generates an acpi event, you can force
- # X to turn off the display via dpms. note you will have to run
- # 'xhost +local:0' so root can access the X DISPLAY.
- #lid)
- # xset dpms force off
- # ;;
-
- *) log_unhandled $* ;;
- esac
- ;;
-
- ac_adapter)
- case "$value" in
- # Add code here to handle when the system is unplugged
- # (maybe change cpu scaling to powersave mode)
- #*0)
- # cpufreq-set -g powersave
- # ;;
-
- # Add code here to handle when the system is plugged in
- # (maybe change cpu scaling to performance mode)
- #*1)
- # cpufreq-set -g performance
- # ;;
-
- *) log_unhandled $* ;;
- esac
- ;;
-
- *) log_unhandled $* ;;
-esac
diff --git a/sys-power/acpid/files/acpid-1.0.4-gcc4.patch b/sys-power/acpid/files/acpid-1.0.4-gcc4.patch
deleted file mode 100644
index b56901d21b11..000000000000
--- a/sys-power/acpid/files/acpid-1.0.4-gcc4.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- acpid-1.0.4/ud_socket.c 2005-04-26 10:26:29.000000000 +0000
-+++ acpid-1.0.4.az/ud_socket.c 2005-04-26 10:27:09.000000000 +0000
-@@ -60,7 +60,7 @@
- struct sockaddr_un cliaddr;
- int len = sizeof(struct sockaddr_un);
-
-- newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len);
-+ newsock = accept(listenfd, (struct sockaddr *)&cliaddr, (socklen_t *)&len);
- if (newsock < 0) {
- if (errno == EINTR) {
- continue; /* signal */
-@@ -71,7 +71,7 @@
-
- if (cred) {
- len = sizeof(struct ucred);
-- getsockopt(newsock, SOL_SOCKET, SO_PEERCRED,cred,&len);
-+ getsockopt(newsock, SOL_SOCKET, SO_PEERCRED,cred,(socklen_t *)&len);
- }
-
- return newsock;
diff --git a/sys-power/acpid/files/acpid-1.0.4-logrotate b/sys-power/acpid/files/acpid-1.0.4-logrotate
deleted file mode 100644
index 40cb90acd994..000000000000
--- a/sys-power/acpid/files/acpid-1.0.4-logrotate
+++ /dev/null
@@ -1,9 +0,0 @@
-/var/log/acpid {
- missingok
- rotate 5
- size 100k
- weekly
- postrotate
- /etc/init.d/acpid reload > /dev/null
- endscript
-}
diff --git a/sys-power/acpid/files/acpid-1.0.6-default.sh b/sys-power/acpid/files/acpid-1.0.6-default.sh
index 6db71b05cd61..9fe26a168cca 100755
--- a/sys-power/acpid/files/acpid-1.0.6-default.sh
+++ b/sys-power/acpid/files/acpid-1.0.6-default.sh
@@ -4,7 +4,7 @@
set $*
-group=${1/%%/*}
+group=${1%%/*}
action=${1#*/}
device=$2
id=$3
diff --git a/sys-power/acpid/files/acpid-1.0.6-init.d b/sys-power/acpid/files/acpid-1.0.6-init.d
index 41819ebd86e3..345df18aa2c9 100644
--- a/sys-power/acpid/files/acpid-1.0.6-init.d
+++ b/sys-power/acpid/files/acpid-1.0.6-init.d
@@ -1,13 +1,14 @@
#!/sbin/runscript
# Copyright 1999-2007 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.6-init.d,v 1.1 2007/07/17 19:42:55 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-1.0.6-init.d,v 1.2 2007/10/14 12:04:33 genstef Exp $
opts="reload"
depend() {
need localmount
use logger
+ before hald
}
checkconfig() {
diff --git a/sys-power/acpid/files/acpid.conf.d b/sys-power/acpid/files/acpid.conf.d
deleted file mode 100644
index 0e394e67f295..000000000000
--- a/sys-power/acpid/files/acpid.conf.d
+++ /dev/null
@@ -1,6 +0,0 @@
-# /etc/conf.d/acpid
-
-# Options to pass to the acpid daemon.
-# See the acpid(8) man page for more info.
-
-ACPID_OPTIONS=""
diff --git a/sys-power/acpid/files/digest-acpid-1.0.4-r2 b/sys-power/acpid/files/digest-acpid-1.0.4-r2
deleted file mode 100644
index 0d13820cfcea..000000000000
--- a/sys-power/acpid/files/digest-acpid-1.0.4-r2
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 3aff94e92186e99ed5fd6dcee2db7c74 acpid-1.0.4.tar.gz 23416
-RMD160 ddf3cb4e2df7126c71130f89086473b1aa8656b1 acpid-1.0.4.tar.gz 23416
-SHA256 032a95967f8dd8a227ee1771de4a2646becc4d0f1123568faeca931006ec8f5f acpid-1.0.4.tar.gz 23416
diff --git a/sys-power/acpid/files/digest-acpid-1.0.6 b/sys-power/acpid/files/digest-acpid-1.0.6-r1
index 1c7351ba6139..1b698088087a 100644
--- a/sys-power/acpid/files/digest-acpid-1.0.6
+++ b/sys-power/acpid/files/digest-acpid-1.0.6-r1
@@ -1,3 +1,2 @@
-MD5 5c9b705700df51d232be223b6ab6414d acpid-1.0.6.tar.gz 24226
RMD160 6abb7bae419d30b1f9f772d42fab9991771d5b13 acpid-1.0.6.tar.gz 24226
SHA256 aa3c42224ec702b6cdb69ca6501284cb6dacb87473a076d7337ee9635c96f160 acpid-1.0.6.tar.gz 24226