]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - acpid/acpid.nm
acpid: Update to 2.0.34
[people/stevee/ipfire-3.x.git] / acpid / acpid.nm
CommitLineData
79af96d3 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
79af96d3
MT
4###############################################################################
5
802ea3af 6name = acpid
3f54d58f 7version = 2.0.34
4121e158
MT
8release = 1
9
513f4535 10groups = System/Daemons
3f54d58f 11url = https://sourceforge.net/projects/acpid2/
802ea3af 12license = GPLv2+
3f54d58f 13summary = ACPI Event Daemon
79af96d3 14
802ea3af 15description
79af96d3 16 acpid is a daemon that dispatches ACPI events to user-space programs.
802ea3af
MT
17end
18
7074aa59 19source_dl = https://sourceforge.net/projects/acpid2/files/
4121e158 20sources = %{thisapp}.tar.xz
802ea3af
MT
21
22build
802ea3af
MT
23 install_cmds
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/
802ea3af
MT
27 end
28end
29
30packages
31 package %{name}
4121e158
MT
32 script postin
33 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
34
35 # ACPI is enabled by default.
36 /usr/bin/systemctl --no-reload enable acpid.service >/dev/null 2>&1 || :
37 end
38
39 script preun
40 /usr/bin/systemctl --no-reload disable acpid.service >/dev/null 2>&1 || :
41 /usr/bin/systemctl stop acpid.service >/dev/null 2>&1 || :
42 end
43
44 script postun
45 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
46 end
47
48 script postup
49 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
50 /usr/bin/systemctl try-restart acpid.service >/dev/null 2>&1 || :
51 end
802ea3af 52 end
1f9bc2f0
MT
53
54 package %{name}-debuginfo
55 template DEBUGINFO
56 end
802ea3af 57end