summaryrefslogtreecommitdiff
path: root/packages/dbus
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-11-19 11:42:50 +0000
committerKoen Kooi <koen@openembedded.org>2006-11-19 11:42:50 +0000
commiteedf08450c9b9e119a5cc09fa2e726dfed48ebd7 (patch)
treecc560bb5660b038474e965eac8a111e1450c9383 /packages/dbus
parent57df8330d593b3a609364f07a5e51c7868c88717 (diff)
dbuys 1.0.1: ensure /var/lib/dbus exists before writing to it
Diffstat (limited to 'packages/dbus')
-rw-r--r--packages/dbus/dbus-1.0.1/dbus-1.init8
-rw-r--r--packages/dbus/dbus_1.0.1.bb2
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/dbus/dbus-1.0.1/dbus-1.init b/packages/dbus/dbus-1.0.1/dbus-1.init
index 4829c0d4a8..38e7574ad5 100644
--- a/packages/dbus/dbus-1.0.1/dbus-1.init
+++ b/packages/dbus/dbus-1.0.1/dbus-1.init
@@ -10,6 +10,7 @@ NAME=dbus
DAEMONUSER=messagebus
PIDDIR=/var/run/dbus
PIDFILE=$PIDDIR/pid
+UUIDDIR=/var/lib/dbus
DESC="system message bus"
EVENTDIR=/etc/dbus-1/event.d
@@ -40,8 +41,15 @@ start_it_up()
rm -f $PIDFILE
fi
fi
+
+ if [ ! -d $UUIDDIR ]; then
+ mkdir -p $UUIDDIR
+ chown $DAEMONUSER $UUIDDIR
+ chgrp $DAEMONUSER $UUIDDIR
+ fi
dbus-uuidgen --ensure
+
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--user $DAEMONUSER --exec $DAEMON -- --system $PARAMS
diff --git a/packages/dbus/dbus_1.0.1.bb b/packages/dbus/dbus_1.0.1.bb
index 688e5c630f..49112f3ee4 100644
--- a/packages/dbus/dbus_1.0.1.bb
+++ b/packages/dbus/dbus_1.0.1.bb
@@ -6,6 +6,8 @@ DESCRIPTION = "message bus system for applications to talk to one another"
LICENSE = "GPL"
DEPENDS = "expat glib-2.0 virtual/libintl"
+PR = "r1"
+
SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
file://tmpdir.patch;patch=1 \
file://dbus-1.init \