diff options
author | Steffen Nurpmeso <steffen@sdaoden.eu> | 2021-02-04 23:50:45 +0100 |
---|---|---|
committer | Steffen Nurpmeso <steffen@sdaoden.eu> | 2021-02-04 23:50:45 +0100 |
commit | 2e453fc40c82651447801fc68d32edc6ab2c5f8e (patch) | |
tree | 2ee57accd02b24e89dd80ce61e1d6cfe65bf9ceb /acpid | |
parent | f716b4440b134fcca8ddd0aefe209c854d28f011 (diff) | |
download | contrib-2e453fc40c82651447801fc68d32edc6ab2c5f8e.tar.gz contrib-2e453fc40c82651447801fc68d32edc6ab2c5f8e.tar.xz |
acpid: take port, use https
Diffstat (limited to 'acpid')
-rw-r--r-- | acpid/.signature | 6 | ||||
-rw-r--r-- | acpid/Pkgfile | 33 | ||||
-rw-r--r-- | acpid/default.sh | 29 |
3 files changed, 38 insertions, 30 deletions
diff --git a/acpid/.signature b/acpid/.signature index c3468c38e..1672d3ee7 100644 --- a/acpid/.signature +++ b/acpid/.signature @@ -1,8 +1,8 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF36BOUZGVq/ZREMpUws+DGZa8RyN4I3DgvJQJwcotJY7OCmPjV/dQvl2YU6RgpMbTYiDI8mg1L39++3OTbWwWgw8= -SHA256 (Pkgfile) = b4b7be66d7ff2d91c2257265c76cefd66ab7aaeb2bddc68bc9d6db6629eaef20 +RWSagIOpLGJF3+oeVarXfNCYcZP3WwIzDwNXVQMsq9qzpELt0U9/U5g1Dt5UNM2S+hw4PL9ZDnG/LGSfpW+vJKG5055uwu+bNAo= +SHA256 (Pkgfile) = 753815144a9ff5ee232309eb68843a4d7d23ac9bf6b5226c60106e7fb666a8fc SHA256 (.footprint) = e4da2ef20c91becc9458692dcb62589feb4e6da8e4a5724133d1e5d0456fa602 SHA256 (acpid-2.0.32.tar.xz) = f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e SHA256 (acpid.rc) = 17ad7f6f021a01f9d45578a776988f557511761467b2494dcba181ed48dd703b SHA256 (default) = 1263501c5d3abe1c0d4ce43b584d7129a6d454d312f3485d3a7b64d2839605b0 -SHA256 (default.sh) = 79caae4c0d52582f1b2094f5eadbff0fd0e86ed29935911ccd379ab130690dd9 +SHA256 (default.sh) = 41c18a4c3a707425adb17945cd7500f3de0de08979a8cf53b3bcf6c9825aa902 diff --git a/acpid/Pkgfile b/acpid/Pkgfile index 001041ea7..662b2879d 100644 --- a/acpid/Pkgfile +++ b/acpid/Pkgfile @@ -1,20 +1,25 @@ -# Description: Advanced Configuration and Power Interface event management daemon with netlink suppport -# URL: https://sourceforge.net/projects/acpid2/ -# Maintainer: Fredrik Rinnestam, fredrik at crux dot guru +# 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.32 -release=1 -source=(http://downloads.sourceforge.net/sourceforge/acpid2/$name-$version.tar.xz \ - acpid.rc default default.sh) +release=2 +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/acpid - 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 + cd $name-$version + + ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install + + install -D -m 755 "${SRC}"/acpid.rc "${PKG}"/etc/rc.d/acpid + 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 diff --git a/acpid/default.sh b/acpid/default.sh index 68af7764f..6984dd5c0 100644 --- a/acpid/default.sh +++ b/acpid/default.sh @@ -1,19 +1,22 @@ #!/bin/sh -# Default acpi script that takes an entry for all actions +#@ Default acpi script that takes an entry for all actions + +log() { + logger -t /etc/acpi/default.sh "$*" +} set $* +# In order to not cumulate ACPI events actual actions should be detached +# from/to /dev/null and backgrounded via & +( 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" - ;; +button/power) + case "$2" in + PWRF) /sbin/init 0;; + *) log "button/power action $2 not handled ($*)";; + esac + ;; +*) log "ACPI group $1 / action $2 is not defined ($*)";; esac +) </dev/null >/dev/null 2>&1 & |