]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame_incremental - dbus/dbus.nm
pcre: Disable jit compiler support.
[people/ms/ipfire-3.x.git] / dbus / dbus.nm
... / ...
CommitLineData
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = dbus
7version = 1.4.20
8release = 1
9
10maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
11groups = System/Daemons
12url = http://www.freedesktop.org/software/dbus/
13license = GPLv2+ AFL
14summary = D-BUS message bus.
15
16description
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.
20end
21
22source_dl = http://dbus.freedesktop.org/releases/dbus/
23
24build
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
38end
39
40packages
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
91end