1 DESCRIPTION = "A message bus system for inter-process communication"
2 HOMEPAGE = "http://dbus.freedesktop.org"
5 DEPENDS = "expat glib-2.0 virtual/libintl libsm libice virtual/libx11"
10 http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz;name=dbus \
13 file://fix-install-daemon.patch \
14 file://0001-Make-the-default-DBus-reply-timeout-configurable.patch \
18 S = "${WORKDIR}/dbus-${PV}"
20 inherit autotools pkgconfig update-rc.d gettext
22 EXTRA_OECONF_X = "--with-x"
31 --disable-doxygen-docs \
34 --with-dbus-default-reply-timeout=200000 \
38 # On mipsel, D-Bus fails to link with --gc-sections and segfaults before main()
39 # when built with -fPIE/-pie.
40 do_configure_prepend_mipsel() {
41 sed -i -e 's/\-fPIE//' \
42 -e 's/\-pie\ \-Wl\,\-z\,relro//' \
43 -e 's/-Wl,--gc-sections//' \
48 install -d ${D}${sysconfdir}/init.d
49 install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1
50 # the stock install seems to install the libtool wrapper script, so we have to copy this manually :M:
51 if [ -e bus/.libs/dbus-daemon-launch-helper ]; then
52 install -d ${D}${libexecdir}/
53 install -m 0755 bus/.libs/dbus-daemon-launch-helper ${D}${libexecdir}/
57 RDEPENDS_${PN}-x11 = "${PN}"
58 RRECOMMENDS_${PN}-lib = "${PN}"
59 RCONFLICTS_${PN} = "dbus-1"
60 RREPLACES_${PN} = "dbus-1"
61 RPROVIDES_${PN} = "dbus-1"
63 PACKAGES =+ "${PN}-lib ${PN}-x11"
66 ${bindir}/dbus-daemon* \
67 ${bindir}/dbus-uuidgen \
68 ${bindir}/dbus-cleanup-sockets \
70 ${bindir}/dbus-monitor \
73 ${datadir}/dbus-1/services \
74 ${datadir}/dbus-1/system-services \
76 FILES_${PN}-lib = "${libdir}/lib*.so.*"
78 ${bindir}/dbus-launch \
80 FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool ${libdir}/"
82 pkg_postinst_${PN}() {
84 # can't do adduser stuff offline
85 if [ "x$D" != "x" ]; then
88 MESSAGEUSER=messagebus
89 MESSAGEHOME=/var/run/dbus
90 mkdir -p $MESSAGEHOME || true
91 grep -q ^$MESSAGEUSER: /etc/group || addgroup "$MESSAGEUSER"
92 chgrp "$MESSAGEUSER" "$MESSAGEHOME"
93 grep -q ^$MESSAGEUSER: /etc/passwd || adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password --ingroup "$MESSAGEUSER" "$MESSAGEUSER"
94 chown "$MESSAGEUSER"."$MESSAGEUSER" "$MESSAGEHOME"
95 grep -q netdev: /etc/group || addgroup netdev
96 chmod u+s /usr/libexec/dbus-daemon-launch-helper
99 CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session.conf"
101 INITSCRIPT_NAME = "dbus-1"
102 INITSCRIPT_PARAMS = "start 02 5 2 . stop 20 0 1 6 ."