1 DESCRIPTION = "Linux Bluetooth Stack Userland Utilities."
4 DEPENDS = "gstreamer gst-plugins-base bluez-libs-${PV} libusb-compat dbus cups"
5 PROVIDES = "bluez-utils-dbus"
6 RPROVIDES_${PN} = "bluez-pan bluez-sdp bluez-utils-dbus"
7 RREPLACES = "bluez-utils-dbus"
8 RCONFLICTS_${PN} = "bluez-utils-nodbus"
11 SRC_URI = "http://bluez.sourceforge.net/download/bluez-utils-${PV}.tar.gz \
13 file://hciattach-ti-bts.patch;patch=1 \
14 file://handle-eintr.patch;patch=1;status=applied"
15 SRC_URI_append_r1000 = " file://hciattach.sh"
16 SRC_URI_append_ghi270 = " file://hciattach.sh"
18 # Almost all serial CF cards w/ manfid 0x0000,0x0000 seem to use the bcs protocol
19 # Let's default to that instead of 'any' until further notice...
20 SRC_URI += " file://default-manfid-0x0-to-bcps.patch;patch=1"
22 S = "${WORKDIR}/bluez-utils-${PV}"
24 EXTRA_OECONF = "--enable-initscripts --enable-bccmd --enable-bcm203x --enable-hid2hci --enable-cups"
25 # --enable-obex enable OBEX support
26 # --enable-alsa enable ALSA support
27 # --enable-cups install CUPS backend support
28 # --enable-bccmd install BCCMD interface utility
29 # --enable-avctrl install Audio/Video control utility
30 # --enable-hid2hci install HID mode switching utility
31 # --enable-dfutool install DFU firmware upgrade utility
33 inherit autotools update-rc.d
35 INITSCRIPT_NAME = "bluetooth"
36 INITSCRIPT_PARAMS = "defaults 23 19"
39 install -d ${D}${base_sbindir} ${D}${base_bindir}/ ${D}${sysconfdir}/apm/event.d/
40 mv ${D}${sbindir}/* ${D}${base_sbindir}/
41 mv ${D}${bindir}/* ${D}${base_bindir}/
42 rmdir ${D}${bindir} ${D}${sbindir}
43 chmod u+s ${D}${base_sbindir}/hciattach ${D}${base_sbindir}/hciconfig
44 install -m 0644 ${WORKDIR}/hcid.conf ${D}${sysconfdir}/bluetooth/
45 install -m 0755 ${S}/daemon/.libs/passkey-agent ${D}${base_bindir}/
48 do_install_append_r1000() {
49 install -d ${D}${sysconfdir} ${D}${sysconfdir}/bluetooth
50 install -m 0755 ${WORKDIR}/hciattach.sh ${D}${sysconfdir}/bluetooth/hciattach
53 do_install_append_ghi270() {
54 install -d ${D}${sysconfdir} ${D}${sysconfdir}/bluetooth
55 install -m 0755 ${WORKDIR}/hciattach.sh ${D}${sysconfdir}/bluetooth/hciattach
58 CONFFILES_${PN} = "${sysconfdir}/bluetooth/hcid.conf ${sysconfdir}/bluetooth/rfcomm.conf \
59 ${sysconfdir}/default/bluetooth"
61 PACKAGES =+ " bluez-cups-backend"
63 FILES_${PN} += " ${libdir}/alsa-lib/*.so "
64 FILES_${PN}-dev += " ${libdir}/alsa-lib/*.la "
66 FILES_bluez-cups-backend = "${libdir}/cups/backend/bluetooth"
67 RDEPENDS_bluez-cups-backend = "cups"