]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - acpid/acpid.nm
glibc: Disable multilib support on X86_64
[people/stevee/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.34
8 release = 1
9
10 groups = System/Daemons
11 url = https://sourceforge.net/projects/acpid2/
12 license = GPLv2+
13 summary = ACPI Event Daemon
14
15 description
16 acpid is a daemon that dispatches ACPI events to user-space programs.
17 end
18
19 source_dl = https://sourceforge.net/projects/acpid2/files/
20 sources = %{thisapp}.tar.xz
21
22 build
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/
27 end
28 end
29
30 packages
31 package %{name}
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
52 end
53
54 package %{name}-debuginfo
55 template DEBUGINFO
56 end
57 end