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 | poky-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.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 0000000000..f69a060ef2 --- /dev/null +++ b/meta/recipes-extended/devicekit/devicekit-power_014.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | DESCRIPTION = "Devicekit power" | ||
2 | LICENSE = "GPLv2" | ||
3 | DEPENDS = "devicekit glib-2.0 dbus-glib polkit" | ||
4 | |||
5 | SRC_URI = "http://hal.freedesktop.org/releases/DeviceKit-power-${PV}.tar.gz" | ||
6 | S = "${WORKDIR}/DeviceKit-power-${PV}" | ||
7 | |||
8 | inherit autotools pkgconfig | ||
9 | |||
10 | do_configure_prepend() { | ||
11 | sed -i -e s:-nonet:\:g ${S}/doc/man/Makefile.am | ||
12 | } | ||
13 | |||
14 | EXTRA_OECONF = "--with-backend=linux" | ||
15 | |||
16 | FILES_${PN} += "${datadir}/dbus-1/ \ | ||
17 | ${datadir}/PolicyKit \ | ||
18 | ${base_libdir}/udev/* \ | ||
19 | " | ||
20 | |||
21 | 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 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 @@ | |||
1 | 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." | ||
2 | LICENSE = "GPLv2" | ||
3 | DEPENDS = "udev dbus-glib glib-2.0" | ||
4 | |||
5 | PR = "r1" | ||
6 | |||
7 | SRC_URI = "http://hal.freedesktop.org/releases/DeviceKit-${PV}.tar.gz" | ||
8 | S = "${WORKDIR}/DeviceKit-${PV}" | ||
9 | |||
10 | do_configure_prepend() { | ||
11 | sed -i -e s:-nonet:\:g ${S}/doc/man/Makefile.am | ||
12 | } | ||
13 | |||
14 | inherit autotools | ||
15 | |||
16 | 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 0000000000..74b639f6c1 --- /dev/null +++ b/meta/recipes-extended/devicekit/devicekit_git.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | LICENSE = "GPL" | ||
2 | DEPENDS = "dbus-glib" | ||
3 | |||
4 | SRC_URI = "git://anongit.freedesktop.org/DeviceKit/DeviceKit;protocol=git \ | ||
5 | file://volatile" | ||
6 | |||
7 | PV = "002+git${SRCREV}" | ||
8 | PR = "r2" | ||
9 | SRCREV = "014d168ba4bf40c9bae487bacff8bf2aa054b5f6" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | |||
13 | EXTRA_OECONF = "--disable-man-pages" | ||
14 | |||
15 | inherit autotools pkgconfig | ||
16 | |||
17 | do_install_append() { | ||
18 | install -d ${D}/etc/default/volatiles | ||
19 | install -m 0644 ${WORKDIR}/volatile ${D}/etc/default/volatiles/devicekit | ||
20 | } | ||
21 | |||
22 | pkg_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 | |||
35 | FILES_${PN} += "${datadir}/dbus-1/" | ||