]> git.ipfire.org Git - ipfire-3.x.git/blob - dbus/dbus.nm
kernel: update to 5.2.1
[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.11.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 /usr/bin/xsltproc
27 expat-devel
28 libcap-ng-devel
29 systemd-devel
30 xmlto
31 end
32
33 configure_options += \
34 --with-systemdsystemunitdir=%{unitdir} \
35 --with-dbus-user=dbus
36
37 export LD_LIBRARY_PATH = %{DIR_APP}/dbus/.libs
38
39 test
40 make check
41 end
42 end
43
44 packages
45 package %{name}
46 prerequires += shadow-utils
47
48 script prein
49 getent group dbus >/dev/null || groupadd -r dbus
50 getent passwd dbus >/dev/null || \
51 useradd -r -g dbus -d / -s /sbin/nologin \
52 -c "User for dbus service" dbus
53 exit 0
54 end
55
56 # Just search for new unit files that were just installed.
57 script postin
58 systemctl daemon-reload >/dev/null 2>&1 || :
59
60 # The dbus service should be started on default.
61 systemctl enable dbus.service > /dev/null 2>&1 || :
62 end
63
64 # Disable the service that is to be removed and stop it if it is still running.
65 script preun
66 systemctl --no-reload disable dbus.service >/dev/null 2>&1 || :
67 systemctl stop dbus.service >/dev/null 2>&1 || :
68 end
69
70 # Just tell systemd that unitfiles have been removed.
71 script postun
72 systemctl daemon-reload >/dev/null 2>&1 || :
73 end
74
75 # Try to restart the service if it is running.
76 script postup
77 systemctl daemon-reload >/dev/null 2>&1 || :
78 systemctl try-restart dbus.service >/dev/null 2>&1 || :
79 end
80 end
81
82 package %{name}-libs
83 template LIBS
84 end
85
86 package %{name}-devel
87 template DEVEL
88
89 files += %{libdir}/dbus-1.0
90 end
91
92 package %{name}-debuginfo
93 template DEBUGINFO
94 end
95 end