diff options
author | Ross Burton <ross@openedhand.com> | 2008-10-08 15:25:21 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2008-10-08 15:25:21 +0000 |
commit | 93cd99156acebc734f0ffc55c6120d595f5ff210 (patch) | |
tree | 3f13b1fdb08bc21102e86cb26bcc3b77a6b3c1c2 /meta/packages/devicekit | |
parent | 986e49c43bce4539e0847b2232eb91a649af291b (diff) | |
download | openembedded-core-93cd99156acebc734f0ffc55c6120d595f5ff210.tar.gz openembedded-core-93cd99156acebc734f0ffc55c6120d595f5ff210.tar.bz2 openembedded-core-93cd99156acebc734f0ffc55c6120d595f5ff210.zip |
devicekit: initial package
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5463 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/devicekit')
-rw-r--r-- | meta/packages/devicekit/devicekit_git.bb | 34 | ||||
-rw-r--r-- | meta/packages/devicekit/files/volatile | 1 |
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 0000000000..1f08570ba8 --- /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 0000000000..1e399642e0 --- /dev/null +++ b/meta/packages/devicekit/files/volatile @@ -0,0 +1 @@ +d root root 0700 /var/run/devkit none |