]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - dbus/dbus.nm
file: Update to 5.18.
[people/ms/ipfire-3.x.git] / dbus / dbus.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = dbus
7 version = 1.4.20
8 release = 1
9
10 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
11 groups = System/Daemons
12 url = http://www.freedesktop.org/software/dbus/
13 license = GPLv2+ AFL
14 summary = D-BUS message bus.
15
16 description
17 D-BUS is a system for sending messages between applications. It is
18 used both for the system-wide message bus service, and as a
19 per-user-login-session messaging facility.
20 end
21
22 source_dl = http://dbus.freedesktop.org/releases/dbus/
23
24 build
25 requires
26 audit-devel
27 expat-devel
28 libcap-ng-devel
29 libselinux-devel
30 systemd-units
31 end
32
33 configure_options += \
34 --enable-libaudit \
35 --enable-selinux=yes \
36 --with-systemdsystemunitdir=%{unitdir} \
37 --with-dbus-user=dbus
38 end
39
40 packages
41 package %{name}
42 prerequires += shadow-utils
43
44 script prein
45 getent group dbus >/dev/null || groupadd -r dbus
46 getent passwd dbus >/dev/null || \
47 useradd -r -g dbus -d / -s /sbin/nologin \
48 -c "User for dbus service" dbus
49 exit 0
50 end
51
52 # Just search for new unit files that were just installed.
53 script postin
54 systemctl daemon-reload >/dev/null 2>&1 || :
55
56 # The dbus service should be started on default.
57 systemctl enable dbus.service > /dev/null 2>&1 || :
58 end
59
60 # Disable the service that is to be removed and stop it if it is still running.
61 script preun
62 systemctl --no-reload disable dbus.service >/dev/null 2>&1 || :
63 systemctl stop dbus.service >/dev/null 2>&1 || :
64 end
65
66 # Just tell systemd that unitfiles have been removed.
67 script postun
68 systemctl daemon-reload >/dev/null 2>&1 || :
69 end
70
71 # Try to restart the service if it is running.
72 script postup
73 systemctl daemon-reload >/dev/null 2>&1 || :
74 systemctl try-restart dbus.service >/dev/null 2>&1 || :
75 end
76 end
77
78 package %{name}-libs
79 template LIBS
80 end
81
82 package %{name}-devel
83 template DEVEL
84
85 files += %{libdir}/dbus-1.0
86 end
87
88 package %{name}-debuginfo
89 template DEBUGINFO
90 end
91 end