1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
11 groups = System/Daemons
12 url = http://www.freedesktop.org/software/dbus/
14 summary = D-BUS message bus.
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.
22 source_dl = http://dbus.freedesktop.org/releases/dbus/
34 configure_options += \
36 --with-systemdsystemunitdir=%{unitdir} \
42 prerequires += shadow-utils
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
52 # Just search for new unit files that were just installed.
54 systemctl daemon-reload >/dev/null 2>&1 || :
56 # The dbus service should be started on default.
57 systemctl enable dbus.service > /dev/null 2>&1 || :
60 # Disable the service that is to be removed and stop it if it is still running.
62 systemctl --no-reload disable dbus.service >/dev/null 2>&1 || :
63 systemctl stop dbus.service >/dev/null 2>&1 || :
66 # Just tell systemd that unitfiles have been removed.
68 systemctl daemon-reload >/dev/null 2>&1 || :
71 # Try to restart the service if it is running.
73 systemctl daemon-reload >/dev/null 2>&1 || :
74 systemctl try-restart dbus.service >/dev/null 2>&1 || :
85 files += %{libdir}/dbus-1.0
88 package %{name}-debuginfo