From c82e88dd00d1b0b7fcfb4e5628d99611388cef6f Mon Sep 17 00:00:00 2001 From: rawnix ports Date: Sat, 26 Sep 2026 18:19:05 +0000 Subject: sync 2026-09-26 18:19 UTC 1672 files changed, 151396 insertions(+) --- opt/acpid/.footprint | 34 ++++++++++++++++++++ opt/acpid/.signature | 7 ++++ opt/acpid/MAKEPKG | 84 ++++++++++++++++++++++++++++++++++++++++++++++++ opt/acpid/fix-musl.patch | 18 +++++++++++ 4 files changed, 143 insertions(+) create mode 100644 opt/acpid/.footprint create mode 100644 opt/acpid/.signature create mode 100644 opt/acpid/MAKEPKG create mode 100644 opt/acpid/fix-musl.patch (limited to 'opt/acpid') diff --git a/opt/acpid/.footprint b/opt/acpid/.footprint new file mode 100644 index 0000000..22cdd70 --- /dev/null +++ b/opt/acpid/.footprint @@ -0,0 +1,34 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/acpi/ +-rwxr-xr-x root/root etc/acpi/handler.sh +drwxr-xr-x root/root etc/acpi/events/ +-rw-r--r-- root/root etc/acpi/events/anything +drwxr-xr-x root/root etc/sv/ +drwxr-xr-x root/root etc/sv/acpid/ +-rwxr-xr-x root/root etc/sv/acpid/run +drwxr-xr-x root/root etc/sv/acpid/log/ +-rwxr-xr-x root/root etc/sv/acpid/log/run +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/doc/ +drwxr-xr-x root/root usr/share/doc/acpid/ +-rw-r--r-- root/root usr/share/doc/acpid/COPYING +-rw-r--r-- root/root usr/share/doc/acpid/Changelog +-rw-r--r-- root/root usr/share/doc/acpid/README +-rw-r--r-- root/root usr/share/doc/acpid/TESTPLAN +-rw-r--r-- root/root usr/share/doc/acpid/TODO +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 +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/lib/ +drwxr-xr-x root/root var/lib/pkg/ +drwxr-xr-x root/root var/lib/pkg/meta/ +-rw-r--r-- root/root var/lib/pkg/meta/acpid diff --git a/opt/acpid/.signature b/opt/acpid/.signature new file mode 100644 index 0000000..8d0fef3 --- /dev/null +++ b/opt/acpid/.signature @@ -0,0 +1,7 @@ +RWTZ9IduCSQ/mDuFXRcyXqT2sBceMXn3N8Alakd0d0/GdAEG9NH4b27Zy3/HXc6lRPKGzvz7IO/nZ8IhQ+zYDp3CeP4uASCimQI= + +SHA256 (MAKEPKG) = 05cebfaf4d3ee14e9dbdffbd8402c72e1e77859b326783211d0d2bda08b7c136 +SHA256 (.footprint) = 99eb8a0e521c561862d76f3dd41fbc18b9c2320842ed59453bf8f7ccf58f1fc4 +SHA256 (acpid-2.0.34.tar.xz) = 2d095c8cfcbc847caec746d62cdc8d0bff1ec1bc72ef7c674c721e04da6ab333 +SHA256 (fix-musl.patch) = bbab52f0121c215655f145428d163e36ac019090cc07323980e746413dcb97e8 +SHA256 (acpid#2.0.34-1.pkg.tar.gz) = 1c3f827ddd77a08321a8711be7c288a584c24f9695073082fb85b480d9c99cb7 diff --git a/opt/acpid/MAKEPKG b/opt/acpid/MAKEPKG new file mode 100644 index 0000000..54bb5be --- /dev/null +++ b/opt/acpid/MAKEPKG @@ -0,0 +1,84 @@ +#!/bin/mkpkg +# description: Daemon for delivering ACPI power management events +# url: https://sourceforge.net/projects/acpid2/ + +name=acpid +version=2.0.34 +release=1 +depends=() +services=(acpid) +source=( + https://downloads.sourceforge.net/acpid2/acpid-${version}.tar.xz + fix-musl.patch +) +sha256sums=( + "2d095c8cfcbc847caec746d62cdc8d0bff1ec1bc72ef7c674c721e04da6ab333" + "bbab52f0121c215655f145428d163e36ac019090cc07323980e746413dcb97e8" +) +patch() { + cd ${name}-${version} + patch -p1 < ../fix-musl.patch +} + +build() { + cd ${name}-${version} + + ./configure --prefix=/usr --sbindir=/usr/sbin + + make + make DESTDIR=${PKG} install + + install -d ${PKG}/etc/acpi/events + + printf '%s\n' \ + 'event=.*' \ + 'action=/etc/acpi/handler.sh %e' \ + > ${PKG}/etc/acpi/events/anything + + printf '%s\n' \ + '#!/bin/sh' \ + '' \ + 'case "$1" in' \ + ' button/power)' \ + ' logger "ACPI: power button pressed"' \ + ' ;;' \ + ' button/lid)' \ + ' case "$3" in' \ + ' close) logger "ACPI: lid closed" ;;' \ + ' open) logger "ACPI: lid opened" ;;' \ + ' esac' \ + ' ;;' \ + ' *)' \ + ' logger "ACPI: unhandled event $*"' \ + ' ;;' \ + 'esac' \ + > ${PKG}/etc/acpi/handler.sh + + chmod 755 ${PKG}/etc/acpi/handler.sh +} + +post_build() { + # runit service + install -d ${PKG}/etc/sv/acpid/log + + printf '%s\n' \ + '#!/bin/sh' \ + 'exec 2>&1' \ + 'exec acpid -f' \ + > ${PKG}/etc/sv/acpid/run + + printf '%s\n' \ + '#!/bin/sh' \ + 'mkdir -p /var/log/acpid' \ + 'exec svlogd -tt /var/log/acpid' \ + > ${PKG}/etc/sv/acpid/log/run + + chmod 755 ${PKG}/etc/sv/acpid/run + chmod 755 ${PKG}/etc/sv/acpid/log/run +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} +# vim: filetype=sh diff --git a/opt/acpid/fix-musl.patch b/opt/acpid/fix-musl.patch new file mode 100644 index 0000000..ee32eb0 --- /dev/null +++ b/opt/acpid/fix-musl.patch @@ -0,0 +1,18 @@ +From 6c4c7636f9629914d85531ea1dfe6abc275164ac Mon Sep 17 00:00:00 2001 +From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org> +Date: Wed, 25 Oct 2023 15:23:20 +0000 +Subject: [PATCH] community/acpid: fix lfs64 usage + +--- a/sock.c ++++ b/sock.c +@@ -54,8 +54,8 @@ + static int + isfdtype(int fd, int fdtype) + { +- struct stat64 st; +- if (fstat64(fd, &st) != 0) ++ struct stat st; ++ if (fstat(fd, &st) != 0) + return -1; + return ((st.st_mode & S_IFMT) == (mode_t)fdtype); + } -- cgit v1.3.1