1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Daemons
11 url = https://sourceforge.net/projects/acpid2/
13 summary = ACPI Event Daemon
16 acpid is a daemon that dispatches ACPI events to user-space programs.
19 source_dl = https://sourceforge.net/projects/acpid2/files/
20 sources = %{thisapp}.tar.xz
24 mkdir -pv %{BUILDROOT}/etc/acpi/{actions,events}
25 cp -vf %{DIR_SOURCE}/power %{BUILDROOT}/etc/acpi/events/
26 cp -vf %{DIR_SOURCE}/power.sh %{BUILDROOT}/etc/acpi/actions/
33 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
35 # ACPI is enabled by default.
36 /usr/bin/systemctl --no-reload enable acpid.service >/dev/null 2>&1 || :
40 /usr/bin/systemctl --no-reload disable acpid.service >/dev/null 2>&1 || :
41 /usr/bin/systemctl stop acpid.service >/dev/null 2>&1 || :
45 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
49 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
50 /usr/bin/systemctl try-restart acpid.service >/dev/null 2>&1 || :
54 package %{name}-debuginfo