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/
33 configure_options += \
34 --with-systemdsystemunitdir=%{unitdir} \
37 export LD_LIBRARY_PATH = %{DIR_APP}/dbus/.libs
46 prerequires += shadow-utils
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
56 # Just search for new unit files that were just installed.
58 systemctl daemon-reload >/dev/null 2>&1 || :
60 # The dbus service should be started on default.
61 systemctl enable dbus.service > /dev/null 2>&1 || :
64 # Disable the service that is to be removed and stop it if it is still running.
66 systemctl --no-reload disable dbus.service >/dev/null 2>&1 || :
67 systemctl stop dbus.service >/dev/null 2>&1 || :
70 # Just tell systemd that unitfiles have been removed.
72 systemctl daemon-reload >/dev/null 2>&1 || :
75 # Try to restart the service if it is running.
77 systemctl daemon-reload >/dev/null 2>&1 || :
78 systemctl try-restart dbus.service >/dev/null 2>&1 || :
89 files += %{libdir}/dbus-1.0
92 package %{name}-debuginfo