1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 # ACPI is only available on x86 architectures.
11 sup_arches = x86_64 i686
13 groups = System/Daemons
14 url = http://tedfelix.com/linux/acpid-netlink.html
16 summary = ACPI Event Daemon.
19 acpid is a daemon that dispatches ACPI events to user-space programs.
22 source_dl = http://tedfelix.com/linux/
23 sources = %{thisapp}.tar.xz
27 mkdir -pv %{BUILDROOT}/etc/acpi/{actions,events}
28 cp -vf %{DIR_SOURCE}/power %{BUILDROOT}/etc/acpi/events/
29 cp -vf %{DIR_SOURCE}/power.sh %{BUILDROOT}/etc/acpi/actions/
38 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
40 # ACPI is enabled by default.
41 /usr/bin/systemctl --no-reload enable acpid.service >/dev/null 2>&1 || :
45 /usr/bin/systemctl --no-reload disable acpid.service >/dev/null 2>&1 || :
46 /usr/bin/systemctl stop acpid.service >/dev/null 2>&1 || :
50 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
54 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
55 /usr/bin/systemctl try-restart acpid.service >/dev/null 2>&1 || :
59 package %{name}-debuginfo