]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = acpid |
4121e158 MT |
7 | version = 2.0.16 |
8 | release = 1 | |
9 | ||
10 | # ACPI is only available on x86 architectures. | |
11 | sup_arches = x86_64 i686 | |
79af96d3 | 12 | |
513f4535 | 13 | groups = System/Daemons |
802ea3af MT |
14 | url = http://tedfelix.com/linux/acpid-netlink.html |
15 | license = GPLv2+ | |
16 | summary = ACPI Event Daemon. | |
79af96d3 | 17 | |
802ea3af | 18 | description |
79af96d3 | 19 | acpid is a daemon that dispatches ACPI events to user-space programs. |
802ea3af MT |
20 | end |
21 | ||
22 | source_dl = http://tedfelix.com/linux/ | |
4121e158 | 23 | sources = %{thisapp}.tar.xz |
802ea3af MT |
24 | |
25 | build | |
802ea3af MT |
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/ | |
802ea3af MT |
30 | end |
31 | end | |
32 | ||
33 | packages | |
34 | package %{name} | |
513f4535 | 35 | groups += Base |
4121e158 MT |
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 | |
802ea3af | 57 | end |
1f9bc2f0 MT |
58 | |
59 | package %{name}-debuginfo | |
60 | template DEBUGINFO | |
61 | end | |
802ea3af | 62 | end |