void-packages/srcpkgs/acpid/template
Zev Weiss 60dcf2183e acpid: Only read cpuinfo_{min,max}_freq when needed
Previously handler.sh would unconditionally fork/exec 'cat' twice to
read these files on any invocation, though their values are only used
for ac_adapter events.  Tidy it up to only read them when handling
that case.
2024-02-22 22:00:17 -05:00

19 lines
686 B
Bash

# Template file for 'acpid'
pkgname=acpid
version=2.0.34
revision=3
build_style=gnu-configure
short_desc="ACPI Daemon (acpid) With Netlink Support"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/acpid2/"
changelog="https://sourceforge.net/p/acpid2/code/ci/master/tree/Changelog?format=raw"
distfiles="${SOURCEFORGE_SITE}/acpid2/acpid-${version}.tar.xz"
checksum=2d095c8cfcbc847caec746d62cdc8d0bff1ec1bc72ef7c674c721e04da6ab333
conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"
post_install() {
vinstall ${FILESDIR}/handler.sh 755 etc/acpi
vinstall ${FILESDIR}/anything 644 etc/acpi/events
vsv acpid
}