diff --git a/acpid/.footprint b/acpid/.footprint deleted file mode 100644 index 68e90d58a..000000000 --- a/acpid/.footprint +++ /dev/null @@ -1,16 +0,0 @@ -drwxr-xr-x root/root etc/ -drwxr-xr-x root/root etc/acpi/ --rwxr-xr-x root/root etc/acpi/default.sh -drwxr-xr-x root/root etc/acpi/events/ --rw-r--r-- root/root etc/acpi/events/default -drwxr-xr-x root/root etc/rc.d/ --rwxr-xr-x root/root etc/rc.d/acpid -drwxr-xr-x root/root usr/ -drwxr-xr-x root/root usr/bin/ --rwxr-xr-x root/root usr/bin/acpi_listen -drwxr-xr-x root/root usr/man/ -drwxr-xr-x root/root usr/man/man8/ --rw-r--r-- root/root usr/man/man8/acpi_listen.8.gz --rw-r--r-- root/root usr/man/man8/acpid.8.gz -drwxr-xr-x root/root usr/sbin/ --rwxr-x--- root/root usr/sbin/acpid diff --git a/acpid/.md5sum b/acpid/.md5sum deleted file mode 100644 index 10faf4ad8..000000000 --- a/acpid/.md5sum +++ /dev/null @@ -1,5 +0,0 @@ -46c4f1ebf9328babd6664ded6fb5f1e6 acpid-1.0.4-gcc4.patch -3aff94e92186e99ed5fd6dcee2db7c74 acpid-1.0.4.tar.gz -41e6969cfea8e28bdc44142e977c0aa5 acpid.rc -a0d3f9a8480faf602a7415d03267f49f default -270a4cddfe84c89c0fe534ece700d98b default.sh diff --git a/acpid/Pkgfile b/acpid/Pkgfile deleted file mode 100644 index 5ac9d5cca..000000000 --- a/acpid/Pkgfile +++ /dev/null @@ -1,21 +0,0 @@ -# Description: Advanced Configuration and Power Interface event management daemon -# URL: http://acpid.sf.net -# Maintainer: -# Packager: - -name=acpid -version=1.0.4 -release=2 -source=(http://dl.sourceforge.net/acpid/acpid-$version.tar.gz \ - acpid.rc default default.sh acpid-1.0.4-gcc4.patch) - -build() { - cd $name-$version - patch -p1 -i $SRC/acpid-1.0.4-gcc4.patch - mkdir -p $PKG/usr/{bin,sbin,man/man8} - make INSTPREFIX=/usr - make INSTPREFIX=$PKG MAN8DIR=$PKG/usr/man/man8 install - install -D -m 755 ../acpid.rc $PKG/etc/rc.d/acpid - install -D -m 644 ../default $PKG/etc/acpi/events/default - install -D -m 755 ../default.sh $PKG/etc/acpi/default.sh -} diff --git a/acpid/acpid-1.0.4-gcc4.patch b/acpid/acpid-1.0.4-gcc4.patch deleted file mode 100644 index 6e9381d12..000000000 --- a/acpid/acpid-1.0.4-gcc4.patch +++ /dev/null @@ -1,34 +0,0 @@ -# this patch originates from Fedora ---- acpid-1.0.4/ud_socket.c.warning 2003-11-17 16:24:58.000000000 -0500 -+++ acpid-1.0.4/ud_socket.c 2005-03-16 17:51:40.000000000 -0500 -@@ -58,7 +58,7 @@ - while (1) { - int newsock = 0; - struct sockaddr_un cliaddr; -- int len = sizeof(struct sockaddr_un); -+ socklen_t len = sizeof(struct sockaddr_un); - - newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len); - if (newsock < 0) { ---- acpid-1.0.4/acpid.c.warning 2004-10-17 18:33:51.000000000 -0400 -+++ acpid-1.0.4/acpid.c 2005-03-16 17:52:23.000000000 -0500 -@@ -61,7 +61,7 @@ - main(int argc, char **argv) - { - int event_fd; -- int sock_fd; -+ int sock_fd = -1; - - /* learn who we really are */ - progname = (const char *)strrchr(argv[0], '/'); -@@ -386,9 +386,7 @@ - umask(0); - - /* get outta the way */ -- chdir("/"); -- -- return 0; -+ return chdir("/"); - } - - static int diff --git a/acpid/acpid.rc b/acpid/acpid.rc deleted file mode 100644 index aa00999f1..000000000 --- a/acpid/acpid.rc +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh -###################################################################### -# acpid: starts/stops ACPI daemon -###################################################################### - - daemon="/usr/sbin/acpid" -options="-c /etc/acpi/events -l /var/log/acpid" - -###################################################################### -# Start/Stop/Reload/Status Functions -###################################################################### -start() { - if [ -e /proc/acpi ]; then - # call acpid with default config/logfiles - $daemon $options - return $? - fi -} -stop() { - pkill -o -x ${daemon##*/} - return $? -} -reload() { - pkill -HUP -o -x ${daemon##*/} - return $? -} -status() { - base=${daemon##*/} - dpid=`pidof -o $$ -o $PPID -o %PPID -x ${base}` - if [ "$dpid" != "" ]; then - echo "${base} (pid $dpid) is running..." - elif [ -s /var/run/${base}.pid ]; then - echo "${base} is dead but pid file exists..." - else - echo "${base} is stopped." - fi - return -} -###################################################################### -# See how we were called -###################################################################### -case "$1" in - start) start ;; - stop) stop ;; - reload) reload ;; - restart) stop;start ;; - status) status ;; - *) echo "Usage: $0 {start|stop|reload|restart|status}" ; exit 1 -esac -exit $? diff --git a/acpid/default b/acpid/default deleted file mode 100644 index d1ca63c64..000000000 --- a/acpid/default +++ /dev/null @@ -1,18 +0,0 @@ -# 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/acpid/default.sh b/acpid/default.sh deleted file mode 100644 index 68af7764f..000000000 --- a/acpid/default.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -# Default acpi script that takes an entry for all actions - -set $* - -case "$1" in - button/power) - case "$2" in - PWRF) /sbin/init 0 - ;; - *) logger "ACPI action $2 is not defined" - ;; - esac - ;; - - *) - logger "ACPI group $1 / action $2 is not defined" - ;; -esac