[crux-commits] ports/contrib (3.6): acpid: tweaks

crux at crux.nu crux at crux.nu
Mon Feb 8 23:09:47 UTC 2021


commit eef8cee76f520a870d2c33456deb0fcea359668e
Author: Steffen Nurpmeso <steffen at sdaoden.eu>
Date:   Mon Feb 8 23:56:12 2021 +0100

    acpid: tweaks

diff --git a/acpid/.signature b/acpid/.signature
index ed3e62f22..d7c410ae5 100644
--- a/acpid/.signature
+++ b/acpid/.signature
@@ -1,8 +1,8 @@
 untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF315liaehwUmIOQ4EAlCNb7mfi7TRsfSBTBYj0ZLtY/dXftwte3tVxKqF68kA+qYWlBimCqxCmv98j/TKdA3NFwQ=
-SHA256 (Pkgfile) = 25db93bc45e5029c74d6bbb41de8146b5445e9e1880ebfec4f6f9c860810d166
+RWSagIOpLGJF3+6R/hnpC8JBl5rZ1W8BRneobnugk6vdHrPlbBg5zmBeCco8LIRUKvKelUOrsicwKDYjU7/4p4vUCjRs+kjisAY=
+SHA256 (Pkgfile) = e479d9528d93c8b6ca683d742da204b79209f22c52dda058dc4b740c0a3be89e
 SHA256 (.footprint) = e4da2ef20c91becc9458692dcb62589feb4e6da8e4a5724133d1e5d0456fa602
 SHA256 (acpid-2.0.32.tar.xz) = f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e
 SHA256 (acpid.rc) = 17ad7f6f021a01f9d45578a776988f557511761467b2494dcba181ed48dd703b
 SHA256 (default) = 1263501c5d3abe1c0d4ce43b584d7129a6d454d312f3485d3a7b64d2839605b0
-SHA256 (default.sh) = 41c18a4c3a707425adb17945cd7500f3de0de08979a8cf53b3bcf6c9825aa902
+SHA256 (default.sh) = 97be75867cad9c0e976474f1303547225b0036e94d1fdea11e8297adc6e02f6c
diff --git a/acpid/Pkgfile b/acpid/Pkgfile
index 4ffccb0c2..ab87ad989 100644
--- a/acpid/Pkgfile
+++ b/acpid/Pkgfile
@@ -6,18 +6,19 @@ name=acpid
 version=2.0.32
 release=2
 source=(
-   https://downloads.sourceforge.net/sourceforge/acpid2/$name-$version.tar.xz
+   https://downloads.sourceforge.net/sourceforge/\
+acpid2/${name}-${version}.tar.xz
    acpid.rc default default.sh
 )
 
 build() {
-   cd "${name}"-"${version}"
+   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}"/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
diff --git a/acpid/default.sh b/acpid/default.sh
index 6984dd5c0..423bbff03 100644
--- a/acpid/default.sh
+++ b/acpid/default.sh
@@ -2,21 +2,21 @@
 #@ Default acpi script that takes an entry for all actions
 
 log() {
-	logger -t /etc/acpi/default.sh "$*"
+	logger -t /etc/acpi/default.sh "${*}"
 }
 
-set $*
+set ${*}
 
 # In order to not cumulate ACPI events actual actions should be detached
 # from/to /dev/null and backgrounded via &
 (
-case "$1" in
+case "${1}" in
 button/power)
-	case "$2" in
+	case "${2}" in
 	PWRF)	/sbin/init 0;;
-	*)	log "button/power action $2 not handled ($*)";;
+	*)	log "button/power action ${2} not handled (${*})";;
 	esac
 	;;
-*)	log "ACPI group $1 / action $2 is not defined ($*)";;
+*)	log "ACPI group ${1} / action ${2} is not defined (${*})";;
 esac
 ) </dev/null >/dev/null 2>&1 &


More information about the crux-commits mailing list