acpid: dropped
This commit is contained in:
parent
80fa44a2d1
commit
f75234540c
@ -1,19 +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/sbin/
|
|
||||||
-rwxr-xr-x root/root usr/sbin/acpid
|
|
||||||
-rwxr-xr-x root/root usr/sbin/kacpimon
|
|
||||||
drwxr-xr-x root/root usr/share/
|
|
||||||
drwxr-xr-x root/root usr/share/man/
|
|
||||||
drwxr-xr-x root/root usr/share/man/man8/
|
|
||||||
-rw-r--r-- root/root usr/share/man/man8/acpi_listen.8.gz
|
|
||||||
-rw-r--r-- root/root usr/share/man/man8/acpid.8.gz
|
|
||||||
-rw-r--r-- root/root usr/share/man/man8/kacpimon.8.gz
|
|
@ -1,8 +0,0 @@
|
|||||||
untrusted comment: verify with /etc/ports/contrib.pub
|
|
||||||
RWSagIOpLGJF34Blm9cundfs8VXciytWfQpHbo5NePD9Y1wvOCVkb1LBZZQhv2wuOWrfIQwYKo1yUCSjNYzjr15lGrcE+A9UPAw=
|
|
||||||
SHA256 (Pkgfile) = 40d3320a47a91ffec3e833f4beaa2bca820a727e5b358b3884d02aa0d7eba080
|
|
||||||
SHA256 (.footprint) = e4da2ef20c91becc9458692dcb62589feb4e6da8e4a5724133d1e5d0456fa602
|
|
||||||
SHA256 (acpid-2.0.34.tar.xz) = 2d095c8cfcbc847caec746d62cdc8d0bff1ec1bc72ef7c674c721e04da6ab333
|
|
||||||
SHA256 (acpid.rc) = 70ec38cfc4c48b700218cd946f44c6c10ed541a2e84154284431c429144c74a8
|
|
||||||
SHA256 (default) = 1263501c5d3abe1c0d4ce43b584d7129a6d454d312f3485d3a7b64d2839605b0
|
|
||||||
SHA256 (default.sh) = e92b712cd19553c4fcd51b28bf86a13549a920b58427d895a11d4aae6d3d3562
|
|
@ -1,27 +0,0 @@
|
|||||||
# Description: ACPI event management daemon with netlink support
|
|
||||||
# URL: https://sourceforge.net/projects/acpid2/
|
|
||||||
# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu
|
|
||||||
|
|
||||||
name=acpid
|
|
||||||
version=2.0.34
|
|
||||||
release=1
|
|
||||||
source=(
|
|
||||||
https://downloads.sourceforge.net/sourceforge/\
|
|
||||||
acpid2/${name}-${version}.tar.xz
|
|
||||||
acpid.rc default default.sh
|
|
||||||
)
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd ${name}-${version}
|
|
||||||
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make
|
|
||||||
make DESTDIR="${PKG}" install
|
|
||||||
|
|
||||||
install -D -m 755 "${SRC}"/acpid.rc "${PKG}"/etc/rc.d/${name}
|
|
||||||
install -D -m 755 "${SRC}"/default.sh "${PKG}"/etc/acpi/default.sh
|
|
||||||
install -D -m 644 "${SRC}"/default "${PKG}"/etc/acpi/events/default
|
|
||||||
rm -r "${PKG}"/usr/share/doc
|
|
||||||
}
|
|
||||||
|
|
||||||
# s-sh-mode
|
|
@ -1,46 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#@ acpid2 startup script.
|
|
||||||
|
|
||||||
RD=/var/run
|
|
||||||
CONFDIR=/etc/acpi/events
|
|
||||||
PID=${RD}/acpid.pid
|
|
||||||
LCK=${RD}/acpid.lck
|
|
||||||
SCK=${RD}/acpid.socket
|
|
||||||
|
|
||||||
SSD=/sbin/start-stop-daemon
|
|
||||||
PROG=/usr/sbin/acpid
|
|
||||||
OPTS="-c ${CONFDIR} -L ${LCK} -p ${PID} -s ${SCK}"
|
|
||||||
|
|
||||||
case "${1}" in
|
|
||||||
start)
|
|
||||||
exec "${SSD}" --start --pidfile "${PID}" --exec "${PROG}" -- ${OPTS}
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
"${SSD}" --stop --retry 10 --pidfile "${PID}" --exec "${PROG}"
|
|
||||||
e=${?}
|
|
||||||
[ ${e} -eq 0 ] && rm -f ${RD}/acpid.socket
|
|
||||||
exit ${e}
|
|
||||||
;;
|
|
||||||
reload)
|
|
||||||
"${SSD}" --status --pidfile "${PID}" --exec "${PROG}" &&
|
|
||||||
kill -HUP $(cat ${PID})
|
|
||||||
;;
|
|
||||||
restart)
|
|
||||||
"${SSD}" --status --pidfile "${PID}" --exec "${PROG}" && "${0}" stop
|
|
||||||
exec "${0}" start
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
"${SSD}" --status --pidfile "${PID}" --exec "${PROG}"
|
|
||||||
e=${?}
|
|
||||||
case ${e} in
|
|
||||||
0) echo "${PROG} is running with pid $(cat ${PID})";;
|
|
||||||
1) echo "${PROG} is not running but the pid file ${PID} exists";;
|
|
||||||
3) echo "${PROG} is not running";;
|
|
||||||
4) echo "Unable to determine the program status";;
|
|
||||||
esac
|
|
||||||
exit ${e}
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "usage: ${0} start|stop|reload|restart|status"
|
|
||||||
;;
|
|
||||||
esac
|
|
@ -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
|
|
@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#@ Default acpi script that takes an entry for all actions
|
|
||||||
|
|
||||||
log() {
|
|
||||||
logger -t /etc/acpi/default.sh "${*}"
|
|
||||||
}
|
|
||||||
|
|
||||||
unhandled() {
|
|
||||||
t=${1}
|
|
||||||
shift
|
|
||||||
log "ACPI: no handler for event ${t}, data: ${*}"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
set ${*}
|
|
||||||
|
|
||||||
# In order to not cumulate actions of ACPI event they should be detached via
|
|
||||||
# ( ACTION ) </dev/null >/dev/null 2>&1 &
|
|
||||||
# (At least setting volume or other things which depend on hardware which might
|
|
||||||
# block and cause the script not to return for a while.)
|
|
||||||
case "${1}" in
|
|
||||||
button/power)
|
|
||||||
case "${2}" in
|
|
||||||
PWRF)
|
|
||||||
/sbin/init 0;;
|
|
||||||
*)
|
|
||||||
unhandled "${#}: ${@}";;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
unhandled "${#}: $@";;
|
|
||||||
esac
|
|
Loading…
Reference in New Issue
Block a user