Ticket #3759: bluez5.patch
File bluez5.patch, 16.0 KB (added by , 10 years ago) |
---|
-
BOOK/general/sysutils/bluez.xml
6 6 7 7 <!ENTITY bluez-download-http "http://www.kernel.org/pub/linux/bluetooth/bluez-&bluez-version;.tar.xz"> 8 8 <!ENTITY bluez-download-ftp "ftp://ftp.kernel.org/pub/linux/bluetooth/bluez-&bluez-version;.tar.xz"> 9 <!ENTITY bluez-md5sum " c828c172f01f20c6ecd7f407894956a2">10 <!ENTITY bluez-size " 868 KB">11 <!ENTITY bluez-buildsize " 42 MB">12 <!ENTITY bluez-time "0. 8SBU">9 <!ENTITY bluez-md5sum "81f2ce3bc9a9ebe58ccfce6660031611"> 10 <!ENTITY bluez-size "1.2 MB"> 11 <!ENTITY bluez-buildsize "62 MB"> 12 <!ENTITY bluez-time "0.5 SBU"> 13 13 ]> 14 14 15 15 <sect1 id="bluez" xreflabel="BlueZ-&bluez-version;"> … … 74 74 75 75 <bridgehead renderas="sect4">Required</bridgehead> 76 76 <para role="required"> 77 <xref linkend="dbus"/> and 78 <xref linkend="glib2"/> 77 <xref linkend="dbus"/>, 78 <xref linkend="glib2"/>, and 79 <xref linkend="libical"/> 79 80 </para> 80 81 81 <bridgehead renderas="sect4">Optional</bridgehead>82 <para role="optional">83 <xref linkend="alsa-lib"/>,84 <xref linkend="check"/>,85 <xref linkend="gst-plugins-base"/>,86 <xref linkend="libsndfile"/>, and87 <xref linkend="libusb-compat"/>88 </para>89 90 82 <para condition="html" role="usernotes"> 91 83 User Notes: <ulink url="&blfs-wiki;/bluez"/> 92 84 </para> … … 129 121 commands: 130 122 </para> 131 123 132 <screen><userinput> 133 ./configure --prefix=/usr \ 134 --sysconfdir=/etc \ 135 --localstatedir=/var \ 136 --libexecdir=/lib \ 137 --enable-bccmd \ 138 --enable-dfutool \ 139 --enable-dund \ 140 --enable-hid2hci \ 141 --enable-hidd \ 142 --enable-pand \ 143 --enable-tools \ 144 --enable-wiimote \ 145 --disable-test \ 146 --without-systemdunitdir && 124 <screen><userinput>./configure --prefix=/usr \ 125 --sysconfdir=/etc \ 126 --localstatedir=/var \ 127 --libexecdir=/usr/lib \ 128 --enable-library && 147 129 make</userinput></screen> 148 130 149 131 <para> … … 157 139 <screen role="root"><userinput>make install</userinput></screen> 158 140 159 141 <para> 160 Install required configuration filesas the142 Install the main configuration file as the 161 143 <systemitem class="username">root</systemitem> user: 162 144 </para> 163 145 164 <screen role="root"><userinput>for CONFFILE in audio input network serial ; do 165 install -v -m644 ${CONFFILE}/${CONFFILE}.conf /etc/bluetooth/${CONFFILE}.conf 166 done 167 unset CONFFILE</userinput></screen> 146 <screen role="root"><userinput>install -v -dm755 /etc/bluetooth && 147 install -v -m644 src/main.conf /etc/bluetooth/main.conf</userinput></screen> 168 148 169 149 <para> 170 150 If desired, install the API documentation as the … … 171 151 <systemitem class="username">root</systemitem> user: 172 152 </para> 173 153 174 <screen role="root"><userinput>install -v - m755 -d/usr/share/doc/bluez-&bluez-version; &&154 <screen role="root"><userinput>install -v -dm755 /usr/share/doc/bluez-&bluez-version; && 175 155 install -v -m644 doc/*.txt /usr/share/doc/bluez-&bluez-version;</userinput></screen> 156 176 157 </sect2> 177 158 178 159 … … 180 161 <title>Command Explanations</title> 181 162 182 163 <para> 183 <parameter>--enable-bccmd</parameter>: This switch enables building of the BCCMD 184 interface utility. 164 <parameter>--enable-library</parameter>: This switch enables building of the 165 <application>BlueZ</application> 4 compatibility library which is required by 166 some applications. 185 167 </para> 186 168 187 <para>188 <parameter>--enable-dfutool</parameter>: This switch enables building of the DFU189 firmware upgrade utility.190 </para>191 192 <para>193 <parameter>--enable-dund</parameter>: This switch enables building of the DUN daemon.194 </para>195 196 <para>197 <parameter>--enable-hid2hci</parameter>: This switch enables building of the HID198 mode switching utility.199 </para>200 201 <para>202 <parameter>--enable-hidd</parameter>: This switch enables building of the HID daemon.203 </para>204 205 <para>206 <parameter>--enable-pand</parameter>: This switch enables building of the PAN daemon.207 </para>208 209 <para>210 <parameter>--enable-tools</parameter>: This switch enables building of the Bluetooth211 utilities.212 </para>213 214 <para>215 <parameter>--enable-wiimote</parameter>: This switch enables building of the Wii216 Remote plugin.217 </para>218 219 <para>220 <parameter>--disable-test</parameter>: This switch disables installation of the221 test programs.222 </para>223 224 <para>225 <parameter>--without-systemdunitdir</parameter>: This switch disables installation226 of the systemd units.227 </para>228 229 <para>230 <option>--enable-cups</option>: This switch enables CUPS backend support. Note231 that CUPS does not need to be installed for this support.232 </para>233 234 <!-- These options are automatically found and used if the packages are235 available. There is no need to use these switches.236 <para>237 <option>-enable-alsa</option>: This switch enables ALSA support. Use if you238 have <xref linkend="alsa-lib"/> installed.239 </para>240 241 <para>242 <option>-enable-gstreamer</option>: This switch enables GStreamer support. Use243 if you have <xref linkend="gst-plugins-base"/> installed.244 </para>245 246 <para>247 <option>-enable-usb</option>: This switch enables USB support. Use if you have248 <xref linkend="libusb-compat"/> installed.249 </para> -->250 251 169 </sect2> 252 170 253 171 <sect2 role="configuration"> … … 256 174 <sect3 id="bluez-config"> 257 175 <title>Config Files</title> 258 176 <para> 259 <filename>/etc/bluetooth/audio.conf</filename>, 260 <filename>/etc/bluetooth/input.conf</filename>, 261 <filename>/etc/bluetooth/main.conf</filename>, 262 <filename>/etc/bluetooth/network.conf</filename>, 263 <filename>/etc/bluetooth/rfcomm.conf</filename> and 264 <filename>/etc/bluetooth/serial.conf</filename> 177 <filename>/etc/bluetooth/main.conf</filename> 265 178 </para> 266 179 267 180 <indexterm zone="bluez bluez-config"> 268 181 <primary 269 sortas="e-etc-bluetooth-audio.conf">/etc/bluetooth/audio.conf</primary>270 </indexterm>271 272 <indexterm zone="bluez bluez-config">273 <primary274 sortas="e-etc-bluetooth-input.conf">/etc/bluetooth/input.conf</primary>275 </indexterm>276 277 <indexterm zone="bluez bluez-config">278 <primary279 182 sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary> 280 183 </indexterm> 281 184 282 <indexterm zone="bluez bluez-config">283 <primary284 sortas="e-etc-bluetooth-network.conf">/etc/bluetooth/network.conf</primary>285 </indexterm>286 287 <indexterm zone="bluez bluez-config">288 <primary289 sortas="e-etc-bluetooth-rfcomm.conf">/etc/bluetooth/rfcomm.conf</primary>290 </indexterm>291 292 <indexterm zone="bluez bluez-config">293 <primary294 sortas="e-etc-bluetooth-serial.conf">/etc/bluetooth/serial.conf</primary>295 </indexterm>296 297 185 </sect3> 298 186 299 187 <sect3 id="bluez-init"> … … 311 199 </indexterm> 312 200 313 201 <screen role="root"><userinput>make install-bluetooth</userinput></screen> 202 314 203 </sect3> 204 315 205 </sect2> 316 206 317 207 <sect2 role="content"> … … 324 214 325 215 <seglistitem> 326 216 <seg> 327 bccmd, blue toothd, ciptool, dfutool, dund, gatttool,328 hciattach, hciconfig, hci tool, hid2hci, hidd, l2ping,329 pand, rfcomm, and sdptool217 bccmd, bluemoon, bluetoothctl, bluetoothd, btmon, ciptool, 218 hciattach, hciconfig, hcidump, hcitool, hid2hci, l2ping, 219 l2test, obexd, rctest, rfcomm, and sdptool 330 220 </seg> 331 221 <seg> 332 222 libbluetooth.so … … 334 224 <seg> 335 225 /etc/bluetooth, 336 226 /usr/include/bluetooth, 337 /usr/lib/bluetooth, 338 /usr/share/doc/bluez-&bluez-version;, and 339 /var/lib/bluetooth 227 /usr/lib/bluetooth, and 228 /usr/share/doc/bluez-&bluez-version; 340 229 </seg> 341 230 </seglistitem> 342 231 </segmentedlist> … … 384 273 </listitem> 385 274 </varlistentry> 386 275 387 <varlistentry id="dfutool">388 <term><command>dfutool</command></term>389 <listitem>390 <para>391 is used to verify, archive and upgrade firmware files.392 </para>393 <indexterm zone="bluez dfutool">394 <primary sortas="b-dfutool">dfutool</primary>395 </indexterm>396 </listitem>397 </varlistentry>398 399 <varlistentry id="dund">400 <term><command>dund</command></term>401 <listitem>402 <para>403 is the Bluetooth dial-up networking daemon.404 </para>405 <indexterm zone="bluez dund">406 <primary sortas="b-dund">dund</primary>407 </indexterm>408 </listitem>409 </varlistentry>410 411 276 <varlistentry id="hciattach"> 412 277 <term><command>hciattach</command></term> 413 278 <listitem> … … 459 324 </listitem> 460 325 </varlistentry> 461 326 462 <varlistentry id="hidd">463 <term><command>hidd</command></term>464 <listitem>465 <para>466 is the Bluetooth HID daemon.467 </para>468 <indexterm zone="bluez hidd">469 <primary sortas="b-hidd">hidd</primary>470 </indexterm>471 </listitem>472 </varlistentry>473 474 327 <varlistentry id="l2ping"> 475 328 <term><command>l2ping</command></term> 476 329 <listitem> … … 484 337 </listitem> 485 338 </varlistentry> 486 339 487 <varlistentry id=" pand">488 <term><command> pand</command></term>340 <varlistentry id="rctest"> 341 <term><command>rctest</command></term> 489 342 <listitem> 490 343 <para> 491 is the Bluetooth daemon that allows you to connect to492 ethernet networks using Bluetooth.344 is used to test RFCOMM communications on the 345 Bluetooth stack. 493 346 </para> 494 <indexterm zone="bluez pand">495 <primary sortas="b- pand">pand</primary>347 <indexterm zone="bluez rctest"> 348 <primary sortas="b-rctest">rctest</primary> 496 349 </indexterm> 497 350 </listitem> 498 351 </varlistentry> … … 527 380 <term><filename class="libraryfile">libbluetooth.so</filename></term> 528 381 <listitem> 529 382 <para> 530 contains the <application>BlueZ</application> API functions.383 contains the <application>BlueZ</application> 4 API functions. 531 384 </para> 532 385 <indexterm zone="bluez libbluetooth"> 533 386 <primary sortas="c-libbluetooth">libbluetooth.so</primary> -
BOOK/general.ent
332 332 <!ENTITY acpid-version "2.0.21"> 333 333 <!ENTITY at-version "3.1.14"> 334 334 <!ENTITY autofs-version "5.0.8"> 335 <!ENTITY bluez-version " 4.101">335 <!ENTITY bluez-version "5.14"> 336 336 <!ENTITY colord-version "1.0.6"> <!-- Even minors only --> 337 337 <!ENTITY cpio-version "2.11"> 338 338 <!ENTITY dbus-version "1.8.0"> <!-- Even minors only --> -
bootscripts/Makefile
103 103 104 104 install-bluetooth: create-dirs 105 105 install -m ${MODE} blfs/init.d/bluetooth ${EXTDIR}/rc.d/init.d/bluetooth 106 install -m ${CONFMODE} blfs/sysconfig/bluetooth ${EXTDIR}/sysconfig/bluetooth107 106 ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc0.d/K27bluetooth 108 107 ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc1.d/K27bluetooth 109 108 ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc2.d/S35bluetooth … … 585 584 586 585 uninstall-bluetooth: 587 586 rm -f ${EXTDIR}/rc.d/init.d/bluetooth 588 rm -f ${EXTDIR}/sysconfig/bluetooth589 587 rm -f ${EXTDIR}/rc.d/rc0.d/K27bluetooth 590 588 rm -f ${EXTDIR}/rc.d/rc1.d/K27bluetooth 591 589 rm -f ${EXTDIR}/rc.d/rc2.d/S35bluetooth -
bootscripts/blfs/init.d/bluetooth
24 24 25 25 . /lib/lsb/init-functions 26 26 27 HIDD_ENABLE="false"28 PAND_ENABLE="false"29 DUND_ENABLE="false"30 31 RFCOMM_ENABLE="false"32 33 HIDD_OPTIONS=""34 PAND_OPTIONS=""35 DUND_OPTIONS=""36 37 if [ -f "/etc/sysconfig/bluetooth" ]; then38 . /etc/sysconfig/bluetooth39 fi40 41 27 case "${1}" in 42 28 start) 43 44 log_info_msg "Starting Bluetooth daemon bluetooth \n" 45 start_daemon /usr/sbin/bluetoothd 46 47 if [ "$HIDD_ENABLE" = "true" ]; then 48 log_info_msg "Starting Bluetooth HID daemon hidd \n" 49 start_daemon /usr/sbin/hidd "$HIDD_OPTIONS" 50 fi 51 52 if [ "$RFCOMM_ENABLE" = "true" ]; then 53 /usr/bin/rfcomm -f /etc/bluetooth/rfcomm.conf bind all || true 54 fi 55 56 if [ "$PAND_ENABLE" = "true" ]; then 57 log_info_msg "Starting Bluetooth PAN daemon pand \n" 58 start_daemon /usr/bin/pand "$PAND_OPTIONS" 59 fi 60 61 if [ "$DUND_ENABLE" = "true" ]; then 62 log_info_msg "Starting Bluetooth DUN daemon dund \n" 63 start_daemon /usr/bin/dund "$DUND_OPTIONS" 64 fi 29 log_info_msg "Starting Bluetooth daemon bluetoothd" 30 start_daemon /usr/lib/bluetooth/bluetoothd 65 31 evaluate_retval 66 67 32 ;; 68 33 69 34 stop) 70 71 if [ "$DUND_ENABLE" = "true" ]; then 72 log_info_msg "Stopping Bluetooth DUN daemon dund \n" 73 killproc /usr/bin/dund 74 fi 75 76 if [ "$PAND_ENABLE" = "true" ]; then 77 log_info_msg "Stopping Bluetooth PAN daemon pand \n" 78 killproc /usr/bin/pand 79 fi 80 81 if [ "$RFCOMM_ENABLE" = "true" ]; then 82 /usr/bin/rfcomm release all || true 83 fi 84 85 if [ "$HIDD_ENABLE" = "true" ]; then 86 log_info_msg "Stopping Bluetooth HID daemon hidd \n" 87 killproc /usr/sbin/hidd 88 fi 89 90 log_info_msg "Stopping Bluetooth daemon bluetoothd \n" 91 killproc /usr/sbin/bluetoothd 35 log_info_msg "Stopping Bluetooth daemon bluetoothd" 36 killproc /usr/lib/bluetooth/bluetoothd 92 37 evaluate_retval 93 94 38 ;; 95 39 96 40 restart) 97 98 41 ${0} stop 99 42 sleep 1 100 43 ${0} start 101 102 44 ;; 103 45 104 46 status) 105 106 statusproc /usr/sbin/bluetoothd 107 108 if [ "$HIDD_ENABLE" = "true" ]; then 109 statusproc /usr/sbin/hidd 110 fi 111 112 if [ "$PAND_ENABLE" = "true" ]; then 113 statusproc /usr/bin/pand 114 fi 115 116 if [ "$DUND_ENABLE" = "true" ]; then 117 statusproc /usr/bin/dund 118 fi 119 47 statusproc /usr/lib/bluetooth/bluetoothd 120 48 ;; 121 49 122 50 *) -
bootscripts/blfs/sysconfig/bluetooth
1 # Begin /etc/sysconfig/bluetooth2 3 # Run the bluetooth HID daemon (default: false)4 #HIDD_ENABLE="true"5 6 # Activate rfcomm ports (default: false)7 #RFCOMM_ENABLE="true"8 9 # Run bluetooth dial-up networking daemon (default: false)10 # Note: You need to pass coressponding options to the daemon11 # since it does not run without any options.12 #DUND_ENABLE="true"13 14 # Run bluetooth PAN daemon (default: false)15 # Note: You need to pass coressponding options to the daemon16 # since it does not run without any options.17 #PAND_ENABLE="true"18 19 # Options for hidd, dund and pand (default: none)20 21 # See man 1 hidd for available options.22 #HIDD_OPTIONS=""23 24 # See man 1 dund for available options.25 #DUND_OPTIONS=""26 27 # See man 1 pand for available options.28 #PAND_OPTIONS=""29 30 # End /etc/sysconfig/bluetooth