]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - acpid/acpid.nm
glib2: Update to 2.39.4.
[people/ms/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
4121e158
MT
7version = 2.0.16
8release = 1
9
10# ACPI is only available on x86 architectures.
11sup_arches = x86_64 i686
79af96d3 12
513f4535 13groups = System/Daemons
802ea3af
MT
14url = http://tedfelix.com/linux/acpid-netlink.html
15license = GPLv2+
16summary = ACPI Event Daemon.
79af96d3 17
802ea3af 18description
79af96d3 19 acpid is a daemon that dispatches ACPI events to user-space programs.
802ea3af
MT
20end
21
22source_dl = http://tedfelix.com/linux/
4121e158 23sources = %{thisapp}.tar.xz
802ea3af
MT
24
25build
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
31end
32
33packages
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 62end