summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/devicekit
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:11 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:57 +0100
commitd62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch)
treef36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-extended/devicekit
parentcaab7fc509bf27706ff3248689f6afd04225cfda (diff)
downloadpoky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz
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.bb21
-rw-r--r--meta/recipes-extended/devicekit/devicekit/volatile1
-rw-r--r--meta/recipes-extended/devicekit/devicekit_003.bb16
-rw-r--r--meta/recipes-extended/devicekit/devicekit_git.bb35
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 0000000000..f69a060ef2
--- /dev/null
+++ b/meta/recipes-extended/devicekit/devicekit-power_014.bb
@@ -0,0 +1,21 @@
1DESCRIPTION = "Devicekit power"
2LICENSE = "GPLv2"
3DEPENDS = "devicekit glib-2.0 dbus-glib polkit"
4
5SRC_URI = "http://hal.freedesktop.org/releases/DeviceKit-power-${PV}.tar.gz"
6S = "${WORKDIR}/DeviceKit-power-${PV}"
7
8inherit autotools pkgconfig
9
10do_configure_prepend() {
11 sed -i -e s:-nonet:\:g ${S}/doc/man/Makefile.am
12}
13
14EXTRA_OECONF = "--with-backend=linux"
15
16FILES_${PN} += "${datadir}/dbus-1/ \
17 ${datadir}/PolicyKit \
18 ${base_libdir}/udev/* \
19 "
20
21FILES_${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 0000000000..1e399642e0
--- /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 0000000000..af812935cd
--- /dev/null
+++ b/meta/recipes-extended/devicekit/devicekit_003.bb
@@ -0,0 +1,16 @@
1DESCRIPTION = "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."
2LICENSE = "GPLv2"
3DEPENDS = "udev dbus-glib glib-2.0"
4
5PR = "r1"
6
7SRC_URI = "http://hal.freedesktop.org/releases/DeviceKit-${PV}.tar.gz"
8S = "${WORKDIR}/DeviceKit-${PV}"
9
10do_configure_prepend() {
11 sed -i -e s:-nonet:\:g ${S}/doc/man/Makefile.am
12}
13
14inherit autotools
15
16FILES_${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 0000000000..74b639f6c1
--- /dev/null
+++ b/meta/recipes-extended/devicekit/devicekit_git.bb
@@ -0,0 +1,35 @@
1LICENSE = "GPL"
2DEPENDS = "dbus-glib"
3
4SRC_URI = "git://anongit.freedesktop.org/DeviceKit/DeviceKit;protocol=git \
5 file://volatile"
6
7PV = "002+git${SRCREV}"
8PR = "r2"
9SRCREV = "014d168ba4bf40c9bae487bacff8bf2aa054b5f6"
10
11S = "${WORKDIR}/git"
12
13EXTRA_OECONF = "--disable-man-pages"
14
15inherit autotools pkgconfig
16
17do_install_append() {
18 install -d ${D}/etc/default/volatiles
19 install -m 0644 ${WORKDIR}/volatile ${D}/etc/default/volatiles/devicekit
20}
21
22pkg_postinst_devicekit () {
23 # can't do this offline
24 if [ "x$D" != "x" ]; then
25 exit 1
26 fi
27
28 DBUSPID=`pidof dbus-daemon`
29
30 if [ "x$DBUSPID" != "x" ]; then
31 /etc/init.d/dbus-1 reload
32 fi
33}
34
35FILES_${PN} += "${datadir}/dbus-1/"