From patchwork Fri May 27 13:40:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: dbus 1.4.1: create UUIDDIR in postinst Date: Fri, 27 May 2011 13:40:25 -0000 From: Koen Kooi X-Patchwork-Id: 4901 Message-Id: <1306503625-719-1-git-send-email-koen@dominion.thruhere.net> To: openembedded-core@lists.openembedded.org Cc: Koen Kooi This fixes dbus usage in non-sysV init systems. Signed-off-by: Koen Kooi --- meta/recipes-core/dbus/dbus.inc | 4 ++++ meta/recipes-core/dbus/dbus_1.4.1.bb | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc index 2a5f8bd..75a4d9d 100644 --- a/meta/recipes-core/dbus/dbus.inc +++ b/meta/recipes-core/dbus/dbus.inc @@ -49,13 +49,17 @@ pkg_postinst_dbus() { MESSAGEUSER=messagebus MESSAGEHOME=/var/run/dbus + UUIDDIR=/var/lib/dbus mkdir -p $MESSAGEHOME || true + mkdir -p $UUIDDIR || true chgrp "$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || addgroup "$MESSAGEUSER" chown "$MESSAGEUSER"."$MESSAGEUSER" "$MESSAGEHOME" 2>/dev/null || \ adduser --system --home "$MESSAGEHOME" --no-create-home --disabled-password \ --ingroup "$MESSAGEUSER" "$MESSAGEUSER" + chown "$MESSAGEUSER"."$MESSAGEUSER" "$UUIDDIR" + grep -q netdev: /etc/group || addgroup netdev chown root:"$MESSAGEUSER" /usr/libexec/dbus-daemon-launch-helper diff --git a/meta/recipes-core/dbus/dbus_1.4.1.bb b/meta/recipes-core/dbus/dbus_1.4.1.bb index 1c8aeaa..f65ef35 100644 --- a/meta/recipes-core/dbus/dbus_1.4.1.bb +++ b/meta/recipes-core/dbus/dbus_1.4.1.bb @@ -1,6 +1,6 @@ include dbus.inc -PR = "r4" +PR = "r5" SRC_URI[md5sum] = "99cb057700c0455fb68f8d57902f77ac" SRC_URI[sha256sum] = "caa1a0ded2d0f2e95c1d4ec7e3c8bd44834928c5b0ed41a7189963f3593983bd"