void-packages/srcpkgs/acpid/template
Juan RP d75fb70b52 acpid: improve handler script.
- Accept PBTN/SLPB events too; power button now works in the BBB.
- Accept open/close LID events.
2014-12-05 11:33:53 +01:00

24 lines
777 B
Text

# Template file for 'acpid'
pkgname=acpid
version=2.0.23
revision=3
build_style=gnu-configure
conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
short_desc="The ACPI Daemon (acpid) With Netlink Support"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://sourceforge.net/projects/acpid2/"
distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-$version.tar.xz"
checksum=4396aaec13510c3a1faa941a15a4b5335b6ae4fbec8438b9249b88c3b66187ee
build_options="systemd"
post_install() {
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/acpid.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/acpid.socket 644 usr/lib/systemd/system
fi
vinstall ${FILESDIR}/handler.sh 755 etc/acpi
vinstall ${FILESDIR}/anything 644 etc/acpi/events
vsv acpid
}