]>
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 |
3f54d58f | 7 | version = 2.0.34 |
4121e158 MT |
8 | release = 1 |
9 | ||
513f4535 | 10 | groups = System/Daemons |
3f54d58f | 11 | url = https://sourceforge.net/projects/acpid2/ |
802ea3af | 12 | license = GPLv2+ |
3f54d58f | 13 | summary = ACPI Event Daemon |
79af96d3 | 14 | |
802ea3af | 15 | description |
79af96d3 | 16 | acpid is a daemon that dispatches ACPI events to user-space programs. |
802ea3af MT |
17 | end |
18 | ||
7074aa59 | 19 | source_dl = https://sourceforge.net/projects/acpid2/files/ |
4121e158 | 20 | sources = %{thisapp}.tar.xz |
802ea3af MT |
21 | |
22 | build | |
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 |
28 | end | |
29 | ||
30 | packages | |
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 | 57 | end |