]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - acpid/acpid.nm
libnl3: New package.
[people/ms/ipfire-3.x.git] / acpid / acpid.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = acpid
7 version = 2.0.16
8 release = 1
9
10 # ACPI is only available on x86 architectures.
11 sup_arches = x86_64 i686
12
13 groups = System/Daemons
14 url = http://tedfelix.com/linux/acpid-netlink.html
15 license = GPLv2+
16 summary = ACPI Event Daemon.
17
18 description
19 acpid is a daemon that dispatches ACPI events to user-space programs.
20 end
21
22 source_dl = http://tedfelix.com/linux/
23 sources = %{thisapp}.tar.xz
24
25 build
26 install_cmds
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/
30 end
31 end
32
33 packages
34 package %{name}
35 groups += Base
36
37 script postin
38 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
39
40 # ACPI is enabled by default.
41 /usr/bin/systemctl --no-reload enable acpid.service >/dev/null 2>&1 || :
42 end
43
44 script preun
45 /usr/bin/systemctl --no-reload disable acpid.service >/dev/null 2>&1 || :
46 /usr/bin/systemctl stop acpid.service >/dev/null 2>&1 || :
47 end
48
49 script postun
50 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
51 end
52
53 script postup
54 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
55 /usr/bin/systemctl try-restart acpid.service >/dev/null 2>&1 || :
56 end
57 end
58
59 package %{name}-debuginfo
60 template DEBUGINFO
61 end
62 end