diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:11 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:57 +0100 |
commit | d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch) | |
tree | f36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-extended/devicekit | |
parent | caab7fc509bf27706ff3248689f6afd04225cfda (diff) | |
download | openembedded-core-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz openembedded-core-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.bz2 openembedded-core-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.xz openembedded-core-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.zip |
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/devicekit')
-rw-r--r-- | meta/recipes-extended/devicekit/devicekit-power_014.bb | 21 | ||||
-rw-r--r-- | meta/recipes-extended/devicekit/devicekit/volatile | 1 | ||||
-rw-r--r-- | meta/recipes-extended/devicekit/devicekit_003.bb | 16 | ||||
-rw-r--r-- | meta/recipes-extended/devicekit/devicekit_git.bb | 35 |
4 files changed, 73 insertions, 0 deletions
diff --git a/meta/recipes-extended/devicekit/devicekit-power_014.bb b/meta/recipes-extended/devicekit/devicekit-power_014.bb new file mode 100644 index 000000000..f69a060ef --- /dev/null +++ b/meta/recipes-extended/devicekit/devicekit-power_014.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "Devicekit power" +LICENSE = "GPLv2" +DEPENDS = "devicekit glib-2.0 dbus-glib polkit" + +SRC_URI = "http://hal.freedesktop.org/releases/DeviceKit-power-${PV}.tar.gz" +S = "${WORKDIR}/DeviceKit-power-${PV}" + +inherit autotools pkgconfig + +do_configure_prepend() { + sed -i -e s:-nonet:\:g ${S}/doc/man/Makefile.am +} + +EXTRA_OECONF = "--with-backend=linux" + +FILES_${PN} += "${datadir}/dbus-1/ \ + ${datadir}/PolicyKit \ + ${base_libdir}/udev/* \ + " + +FILES_${PN}-dbg += "${base_libdir}/udev/.debug" diff --git a/meta/recipes-extended/devicekit/devicekit/volatile b/meta/recipes-extended/devicekit/devicekit/volatile new file mode 100644 index 000000000..1e399642e --- /dev/null +++ b/meta/recipes-extended/devicekit/devicekit/volatile @@ -0,0 +1 @@ +d root root 0700 /var/run/devkit none diff --git a/meta/recipes-extended/devicekit/devicekit_003.bb b/meta/recipes-extended/devicekit/devicekit_003.bb new file mode 100644 index 000000000..af812935c --- /dev/null +++ b/meta/recipes-extended/devicekit/devicekit_003.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "DeviceKit is a simple system service that a) can enumerate devices; b) emits signals when devices are added removed; c) provides a way to merge device information / quirks onto devices." +LICENSE = "GPLv2" +DEPENDS = "udev dbus-glib glib-2.0" + +PR = "r1" + +SRC_URI = "http://hal.freedesktop.org/releases/DeviceKit-${PV}.tar.gz" +S = "${WORKDIR}/DeviceKit-${PV}" + +do_configure_prepend() { + sed -i -e s:-nonet:\:g ${S}/doc/man/Makefile.am +} + +inherit autotools + +FILES_${PN} += "${datadir}/dbus-1/" diff --git a/meta/recipes-extended/devicekit/devicekit_git.bb b/meta/recipes-extended/devicekit/devicekit_git.bb new file mode 100644 index 000000000..74b639f6c --- /dev/null +++ b/meta/recipes-extended/devicekit/devicekit_git.bb @@ -0,0 +1,35 @@ +LICENSE = "GPL" +DEPENDS = "dbus-glib" + +SRC_URI = "git://anongit.freedesktop.org/DeviceKit/DeviceKit;protocol=git \ + file://volatile" + +PV = "002+git${SRCREV}" +PR = "r2" +SRCREV = "014d168ba4bf40c9bae487bacff8bf2aa054b5f6" + +S = "${WORKDIR}/git" + +EXTRA_OECONF = "--disable-man-pages" + +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 + + DBUSPID=`pidof dbus-daemon` + + if [ "x$DBUSPID" != "x" ]; then + /etc/init.d/dbus-1 reload + fi +} + +FILES_${PN} += "${datadir}/dbus-1/" |