summaryrefslogtreecommitdiffstats
path: root/meta/packages/bluez/bluez-utils3.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/bluez/bluez-utils3.inc')
-rw-r--r--meta/packages/bluez/bluez-utils3.inc141
1 files changed, 141 insertions, 0 deletions
diff --git a/meta/packages/bluez/bluez-utils3.inc b/meta/packages/bluez/bluez-utils3.inc
new file mode 100644
index 0000000000..e5dae635b8
--- /dev/null
+++ b/meta/packages/bluez/bluez-utils3.inc
@@ -0,0 +1,141 @@
1DESCRIPTION = "Linux Bluetooth Stack Userland Utilities."
2SECTION = "console"
3PRIORITY = "optional"
4DEPENDS = "gstreamer gst-plugins-base bluez-libs-${PV} libusb-compat dbus glib-2.0"
5PROVIDES = "bluez-utils-dbus"
6RPROVIDES_${PN} = "bluez-pan bluez-sdp bluez-utils-dbus"
7RREPLACES = "bluez-utils-dbus"
8RCONFLICTS_${PN} = "bluez-utils-nodbus"
9LICENSE = "GPL"
10
11FILESPATH = "${FILE_DIRNAME}/bluez-utils-${PV}:${FILE_DIRNAME}/bluez-utils"
12
13S = "${WORKDIR}/bluez-utils-${PV}"
14
15inherit autotools update-rc.d
16
17EXTRA_OECONF = " \
18 --enable-bccmd \
19 --enable-hid2hci \
20 --enable-alsa \
21 --enable-cups \
22 --enable-glib \
23 --disable-sdpd \
24 --enable-network \
25 --enable-serial \
26 --enable-input \
27 --enable-audio \
28 --enable-echo \
29 --enable-configfile \
30 --enable-initscripts \
31 --enable-test \
32 "
33
34# The config options are explained below:
35
36# --enable-obex enable OBEX support
37# --enable-alsa enable ALSA support, not needed for nokia770, nokia800 and om-gtao1
38# --enable-cups install CUPS backend support
39# --enable-bccmd install BCCMD interface utility
40# --enable-avctrl install Audio/Video control utility
41# --enable-hid2hci install HID mode switching utility
42# --enable-dfutool install DFU firmware upgrade utility
43
44# --enable-glib For systems that use and install GLib anyway
45# --disable-sdpd The sdpd is obsolete and should no longer be used. This of course requires that hcid will be started with -s to enable the SDP server
46
47#Following services can be enabled so far:
48# --enable-network
49# --enable-serial
50# --enable-input
51# --enable-audio
52# --enable-echo
53
54#There is no need to modify any init script. They will be started
55#automatically or on demand. Only /etc/bluetooth/*.service files should
56#be patched to change name or the autostart value.
57# --enable-configfile
58# --enable-initscripts
59
60#For even smaller -doc packages
61# --disable-manpages
62# --disable-pcmciarules
63
64#I haven't seen any embedded device with HID proxy support. So simply
65#disable it:
66# --disable-hid2hci
67
68OE_LT_RPATH_ALLOW = "any"
69OE_LT_RPATH_ALLOW[export]="1"
70
71do_install_append() {
72 install -d ${D}${base_sbindir} ${D}${base_bindir}/ ${D}${sysconfdir}/apm/event.d/
73 if [ "${sbindir}" != "${base_sbindir}" ]; then
74 mv ${D}${sbindir}/* ${D}${base_sbindir}/
75 rmdir ${D}${sbindir}
76 fi
77 if [ "${bindir}" != "${base_bindir}" ]; then
78 mv ${D}${bindir}/* ${D}${base_bindir}/
79 rmdir ${D}${bindir}
80 fi
81 chmod u+s ${D}${base_sbindir}/hciattach ${D}${base_sbindir}/hciconfig
82 install -m 0644 ${WORKDIR}/hcid.conf ${D}${sysconfdir}/bluetooth/
83 install -m 0644 ${S}/rfcomm/rfcomm.conf ${D}${sysconfdir}/bluetooth/
84 install -m 0755 ${S}/daemon/.libs/passkey-agent ${D}${base_bindir}/ ||true
85 install -m 0755 ${S}/test/.libs/passkey-agent ${D}${base_bindir}/ ||true
86}
87
88
89INITSCRIPT_NAME = "bluetooth"
90INITSCRIPT_PARAMS = "defaults 23 19"
91
92
93PACKAGES =+ "${PN}-compat"
94
95
96FILES_${PN} = " \
97 ${base_sbindir}/hcid \
98 ${libdir}/bluetooth \
99 ${sysconfdir}/init.d/bluetooth \
100 ${sysconfdir}/bluetooth/*.service \
101 ${sysconfdir}/bluetooth/hcid.conf \
102 ${sysconfdir}/default \
103 ${sysconfdir}/dbus-1 \
104 ${base_sbindir}/hciattach \
105 "
106
107FILES_${PN}-dbg += " \
108 ${libdir}/bluetooth/.debug \
109 ${libdir}/cups/backend/.debug \
110 ${libdir}/alsa-lib/.debug \
111 "
112
113FILES_${PN}-compat = " \
114 ${base_bindir}/sdptool \
115 ${base_bindir}/dund \
116 ${base_bindir}/rctest \
117 ${base_bindir}/ciptool \
118 ${base_bindir}/l2test \
119 ${base_bindir}/rfcomm \
120 ${base_bindir}/hcitool \
121 ${base_bindir}/pand \
122 ${base_bindir}/hidd \
123 ${base_bindir}/l2ping \
124 ${base_sbindir}/hciconfig \
125 ${base_sbindir}/bccmd \
126 ${base_sbindir}/hciemu \
127 ${base_sbindir}/hid2hci \
128 ${base_bindir}/passkey-agent \
129 ${sysconfdir}/bluetooth/rfcomm.conf \
130 "
131
132
133
134
135
136
137
138
139
140
141