summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/packages/devicekit/devicekit_git.bb34
-rw-r--r--meta/packages/devicekit/files/volatile1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/packages/devicekit/devicekit_git.bb b/meta/packages/devicekit/devicekit_git.bb
new file mode 100644
index 000000000..1f08570ba
--- /dev/null
+++ b/meta/packages/devicekit/devicekit_git.bb
@@ -0,0 +1,34 @@
+LICENSE = "GPL"
+DEPENDS = "dbus-glib"
+
+SRC_URI = "git://anongit.freedesktop.org/DeviceKit/DeviceKit;protocol=git \
+ file://volatile"
+
+PV = "002+git${SRCREV}"
+SRCREV = "014d168ba4bf40c9bae487bacff8bf2aa054b5f6"
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+
+do_install_append() {
+ install -d ${D}/etc/default/volatiles
+ install -m 0644 ${WORKDIR}/volatile ${D}/etc/default/volatiles/devicekit
+}
+
+pkg_postinst_devicekit () {
+ # can't do this offline
+ if [ "x$D" != "x" ]; then
+ exit 1
+ fi
+
+ /etc/init.d/populate-volatile.sh update
+
+ DBUSPID=`pidof dbus-daemon`
+
+ if [ "x$DBUSPID" != "x" ]; then
+ /etc/init.d/dbus-1 reload
+ fi
+}
+
+FILES_${PN} += "${datadir}/dbus-1/"
diff --git a/meta/packages/devicekit/files/volatile b/meta/packages/devicekit/files/volatile
new file mode 100644
index 000000000..1e399642e
--- /dev/null
+++ b/meta/packages/devicekit/files/volatile
@@ -0,0 +1 @@
+d root root 0700 /var/run/devkit none