1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Daemons
11 url = http://www.freedesktop.org/software/dbus/
13 summary = D-BUS message bus.
16 D-BUS is a system for sending messages between applications. It is
17 used both for the system-wide message bus service, and as a
18 per-user-login-session messaging facility.
21 source_dl = http://dbus.freedesktop.org/releases/dbus/
31 configure_options += \
33 --localstatedir=/var \
37 --enable-selinux=yes \
38 --with-systemdsystemunitdir=/lib/systemd/system/ \
42 mkdir -pv %{BUILDROOT}/usr/lib
43 mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
45 #change the arch-deps.h include directory to /usr/lib instead of /lib
46 sed -e 's@-I${libdir}@-I${prefix}/lib@' -i %{BUILDROOT}/usr/lib/pkgconfig/dbus-1.pc
48 mkdir -pv %{BUILDROOT}/usr/lib/dbus-1.0/include
49 mv -v %{BUILDROOT}/lib/dbus-1.0/include/* %{BUILDROOT}/usr/lib/dbus-1.0/include
50 rm -rvf %{BUILDROOT}/lib/dbus-1.0
52 rm -vf %{BUILDROOT}/lib/libdbus-1.so
53 ln -svf ../../lib/libdbus-1.so.3 %{BUILDROOT}/usr/lib/libdbus-1.so
59 prerequires += shadow-utils
62 getent group dbus >/dev/null || groupadd -r dbus
63 getent passwd dbus >/dev/null || \
64 useradd -r -g dbus -d / -s /sbin/nologin \
65 -c "User for dbus service" dbus
69 # Just search for new unit files that were just installed.
71 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
73 # The dbus service should be started on default.
74 /bin/systemctl enable dbus.service > /dev/null 2>&1 || :
77 # Disable the service that is to be removed and stop it if it is still running.
79 /bin/systemctl --no-reload disable dbus.service >/dev/null 2>&1 || :
80 /bin/systemctl stop dbus.service >/dev/null 2>&1 || :
83 # Just tell systemd that unitfiles have been removed.
85 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
88 # Try to restart the service if it is running.
90 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
91 /bin/systemctl try-restart dbus.service >/dev/null 2>&1 || :
102 files += /usr/lib/dbus-1.0
105 package %{name}-debuginfo