diff options
author | Richard Purdie <richard@openedhand.com> | 2007-05-08 15:30:16 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-05-08 15:30:16 +0000 |
commit | 4c5caa6764150e68775e7d4774e82b5a27e475f8 (patch) | |
tree | 5f14cf02be03663e124f04b9a6c548e42a5f57ec /meta/packages/bluez/bluez-utils.inc | |
parent | 81547613652cbcc65dfc1e832e6845f3f167c2be (diff) | |
download | poky-4c5caa6764150e68775e7d4774e82b5a27e475f8.tar.gz |
bluez: Move from meta-extras to meta since required by syncml/openobex
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1612 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/bluez/bluez-utils.inc')
-rw-r--r-- | meta/packages/bluez/bluez-utils.inc | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/packages/bluez/bluez-utils.inc b/meta/packages/bluez/bluez-utils.inc new file mode 100644 index 0000000000..ff3916ea94 --- /dev/null +++ b/meta/packages/bluez/bluez-utils.inc | |||
@@ -0,0 +1,60 @@ | |||
1 | DESCRIPTION = "Linux Bluetooth Stack Userland Utilities." | ||
2 | SECTION = "console" | ||
3 | PRIORITY = "optional" | ||
4 | DEPENDS = "bluez-libs-${PV} pcmcia-cs" | ||
5 | RPROVIDES_${PN} = "bluez-pan bluez-sdp bluez-utils" | ||
6 | LICENSE = "GPL" | ||
7 | |||
8 | SRC_URI = "http://bluez.sourceforge.net/download/bluez-utils-${PV}.tar.gz \ | ||
9 | file://base.patch;patch=1 \ | ||
10 | file://blueboxes.patch;patch=1 \ | ||
11 | file://no-user-include.patch;patch=1 \ | ||
12 | file://hcid.conf \ | ||
13 | file://bluetooth.default \ | ||
14 | file://bluetooth.conf \ | ||
15 | file://02dtl1_cs.sh" | ||
16 | |||
17 | # Almost all serial CF cards w/ manfid 0x0000,0x0000 seem to use the bcs protocol | ||
18 | # Let's default to that instead of 'any' until further notice... | ||
19 | SRC_URI += " file://default-manfid-0x0-to-bcps.patch;patch=1" | ||
20 | |||
21 | S = "${WORKDIR}/bluez-utils-${PV}" | ||
22 | |||
23 | # We don't depend on openobex, fuse, alsa or usb but we set paths into staging | ||
24 | # otherwise /usr/lib and /usr/include make it onto command lines with unpredictable results | ||
25 | # Ideally acinclude.m4 needs fixing | ||
26 | EXTRA_OECONF = "--with-bluez-libs=${STAGING_LIBDIR} --with-bluez-includes=${STAGING_INCDIR} \ | ||
27 | --enable-pcmcia --enable-initscripts --enable-bcm203x --enable-hid2hci \ | ||
28 | --disable-obex --disable-alsa \ | ||
29 | --with-openobex=${STAGING_DIR}/${HOST_SYS} --with-fuse=${STAGING_DIR}/${HOST_SYS} \ | ||
30 | --with-alsa=${STAGING_DIR}/${HOST_SYS} --with-usb=${STAGING_DIR}/${HOST_SYS} \ | ||
31 | --with-bluez=${STAGING_LIBDIR}/${HOST_SYS}" | ||
32 | |||
33 | inherit autotools update-rc.d | ||
34 | |||
35 | INITSCRIPT_NAME = "bluetooth" | ||
36 | INITSCRIPT_PARAMS = "defaults 23 19" | ||
37 | |||
38 | do_compile_prepend() { | ||
39 | find ${S} -name Makefile | xargs sed -i 's:/usr/include:${STAGING_INCDIR}:' | ||
40 | } | ||
41 | |||
42 | do_install_append() { | ||
43 | install -d ${D}${base_sbindir} ${D}${base_bindir}/ ${D}${sysconfdir}/apm/event.d/ | ||
44 | mv ${D}${sbindir}/* ${D}${base_sbindir}/ | ||
45 | mv ${D}${bindir}/* ${D}${base_bindir}/ | ||
46 | rmdir ${D}${bindir} ${D}${sbindir} | ||
47 | chmod u+s ${D}${base_sbindir}/hciattach ${D}${base_sbindir}/hciconfig | ||
48 | chmod 755 ${D}${sysconfdir}/pcmcia/bluetooth | ||
49 | install -m 0644 ${WORKDIR}/hcid.conf ${D}${sysconfdir}/bluetooth/ | ||
50 | install -m 0644 ${WORKDIR}/bluetooth.default ${D}${sysconfdir}/default/bluetooth | ||
51 | cat ${WORKDIR}/bluetooth.conf >> ${D}${sysconfdir}/pcmcia/bluetooth.conf | ||
52 | install -m 0755 ${WORKDIR}/02dtl1_cs.sh ${D}${sysconfdir}/apm/event.d/ | ||
53 | } | ||
54 | |||
55 | CONFFILES_${PN} = "${sysconfdir}/bluetooth/hcid.conf ${sysconfdir}/bluetooth/rfcomm.conf \ | ||
56 | ${sysconfdir}/bluetooth/pin ${sysconfdir}/default/bluetooth" | ||
57 | |||
58 | PACKAGES =+ "${PN}-ciptool ${PN}-bluepin" | ||
59 | FILES_${PN}-ciptool = "/bin/ciptool" | ||
60 | FILES_${PN}-bluepin = "/bin/bluepin" | ||