devicekit: initial package

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5463 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Ross Burton 2008-10-08 15:25:21 +00:00
parent 986e49c43b
commit 93cd99156a
2 changed files with 35 additions and 0 deletions

View File

@ -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/"

View File

@ -0,0 +1 @@
d root root 0700 /var/run/devkit none