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"
6 DEPENDS_opendreambox = "expat glib-2.0 virtual/libintl"
11 http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
12 file://cross.patch;patch=1 \
13 file://tmpdir.patch;patch=1 \
14 file://fix-install-daemon.patch;patch=1 \
15 file://0001-Make-the-default-DBus-reply-timeout-configurable.patch;patch=1 \
19 S = "${WORKDIR}/dbus-${PV}"
21 inherit autotools pkgconfig update-rc.d gettext
23 EXTRA_OECONF_X = "--with-x"
24 EXTRA_OECONF_X_opendreambox = ""
33 --disable-doxygen-docs \
36 --with-dbus-default-reply-timeout=200000 \
40 do_configure_prepend_mipsel() {
41 #this fixes error like "cannot make stub section: File format not recognized" with gcc 4.4.3
42 sed -i -e 's/-Wl,--gc-sections/--gc-sections/' configure.in
45 do_compile_prepend_mipsel() {
46 sed -i -e 's/\-fPIE//' -e 's/\-pie\ \-Wl\,\-z\,relro//' bus/Makefile
50 install -d ${D}${sysconfdir}/init.d
51 install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1
52 # the stock install seems to install the libtool wrapper script, so we have to copy this manually :M:
53 if [ -e bus/.libs/dbus-daemon-launch-helper ]; then
54 install -d ${D}${libexecdir}/
55 install -m 0755 bus/.libs/dbus-daemon-launch-helper ${D}${libexecdir}/
59 oe_libinstall -so -C dbus libdbus-1 ${STAGING_LIBDIR}
60 autotools_stage_includes
61 mkdir -p ${STAGING_LIBDIR}/dbus-1.0/include/dbus/
62 install -m 0644 dbus/dbus-arch-deps.h ${STAGING_LIBDIR}/dbus-1.0/include/dbus/
65 RDEPENDS_${PN}-x11 = "${PN}"
66 RRECOMMENDS_${PN}-lib = "${PN}"
67 RCONFLICTS_${PN} = "dbus-1"
68 RREPLACES_${PN} = "dbus-1"
69 RPROVIDES_${PN} = "dbus-1"
71 PACKAGES =+ "${PN}-lib ${PN}-x11"
74 ${bindir}/dbus-daemon* \
75 ${bindir}/dbus-uuidgen \
76 ${bindir}/dbus-cleanup-sockets \
78 ${bindir}/dbus-monitor \
81 ${datadir}/dbus-1/services \
82 ${datadir}/dbus-1/system-services \
84 FILES_${PN}-lib = "${libdir}/lib*.so.*"
86 ${bindir}/dbus-launch \
88 FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool ${libdir}/"
90 pkg_postinst_${PN}() {
92 # can't do adduser stuff offline
93 if [ "x$D" != "x" ]; then
96 MESSAGEUSER=messagebus
97 MESSAGEHOME=/var/run/dbus
98 mkdir -p $MESSAGEHOME || true
99 grep -q ^$MESSAGEUSER: /etc/group || addgroup "$MESSAGEUSER"
100 chgrp "$MESSAGEUSER" "$MESSAGEHOME"
101 grep -q ^$MESSAGEUSER: /etc/passwd || adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password --ingroup "$MESSAGEUSER" "$MESSAGEUSER"
102 chown "$MESSAGEUSER"."$MESSAGEUSER" "$MESSAGEHOME"
103 grep -q netdev: /etc/group || addgroup netdev
104 chmod u+s /usr/libexec/dbus-daemon-launch-helper
107 CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session.conf"
109 INITSCRIPT_NAME = "dbus-1"
110 INITSCRIPT_PARAMS = "start 02 5 2 . stop 20 0 1 6 ."
111 INITSCRIPT_PARAMS_opendreambox = "start 02 5 2 3 . stop 20 0 1 6 ."