--- bluez-4.93.orig/debian/bluez.examples +++ bluez-4.93/debian/bluez.examples @@ -0,0 +1,2 @@ +test/list-devices +test/monitor-bluetooth --- bluez-4.93.orig/debian/watch +++ bluez-4.93/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.kernel.org/pub/linux/bluetooth/ .*bluez-([.\d]+)\.tar\.gz --- bluez-4.93.orig/debian/bluez-pcmcia-support.install +++ bluez-4.93/debian/bluez-pcmcia-support.install @@ -0,0 +1 @@ +scripts/bluetooth_serial /lib/udev --- bluez-4.93.orig/debian/bluez_agent.udev +++ bluez-4.93/debian/bluez_agent.udev @@ -0,0 +1,8 @@ +#!/bin/sh -e +# /usr is not guaranteed to be mounted when udev starts + +( + . /lib/udev/hotplug.functions + wait_for_file /usr/sbin/hid2hci + exec /usr/sbin/hid2hci "$@" +) & --- bluez-4.93.orig/debian/bluez-cups.README.Debian +++ bluez-4.93/debian/bluez-cups.README.Debian @@ -0,0 +1,11 @@ +bluez-cups + +To configure a Bluetooth printer, set it up in CUPS like it was connected to +your parallel or USB port. Then edit your /etc/cups/printers.conf and replace +the device URI with a bluetooth one. + +The printer's URI will look something like this: bluetooth://00408C5E5DA4/spp +If your printer uses HCRP (hardcopy cable replacement protocol) then remove +the "/spp" from the end. SPP is serial port protocol. + + -- Edd Dumbill , Fri Jul 16 19:25:21 BST 2004 --- bluez-4.93.orig/debian/copyright +++ bluez-4.93/debian/copyright @@ -0,0 +1,112 @@ +This package was debianized by Edd Dumbill on +Sat, 13 Apr 2002 16:09:02 +0100. + +It was downloaded from http://www.bluez.org/ + +BlueZ - Bluetooth protocol stack for Linux + +Copyright: + Copyright (C) 2001-2009 Marcel Holtmann + Copyright (C) 2006-2009 Nokia Corporation + Copyright (C) 2000-2003 Maxim Krasnyansky + Copyright (C) 2002-2003 Jean Tourrilhes + Copyright (C) 2007-2008 Frederic Dalleau + Copyright (C) 2007-2008 Texas Instruments, Inc. + Copyright (C) 2000-2005 CSR Ltd. + Copyright (C) 2005-2008 Brad Midgley + Copyright (C) 2007-2008 David Stockwell + Copyright (C) 2007-2008 Fabien Chevalier + Copyright (C) 2005-2006 Claudio Takahasi + Copyright (C) 2006-2007 Luiz von Dentz + Copyright (C) 2005-2007 Johan Hedberg + Copyright (C) 2005-2006 Brad Midgley + Copyright (C) 2004-2005 Henryk Ploetz + Copyright (C) 2002-2003 Stephen Crane + Copyright (C) 2000-2001 Qualcomm Incorporated + Copyright (C) 2008 Joao Paulo Rechi Vita + Copyright (C) 2009 Lennart Poettering + Copyright (C) 2004 Scott James Remnant + Copyright (C) 2009 Intel Corporation + +License: + audio/ + a2dp.c a2dp.h avdtp.c avdtp.h control.c control.h device.c device.h + gateway.c gateway.h headset.c headset.h main.c manager.c manager.h + sink.c sink.h telephony-dummy.c telephony-maemo.c telephony.h + unix.c unix.h + + License: GPL version 2 or any later version + + gsta2dpsink.c gsta2dpsink.h gstavdtpsink.c + gstavdtpsink.h gstbluetooth.c gstrtpsbcpay.c gstrtpsbcpay.h + gstsbcdec.c gstsbcdec.h gstsbcenc.c gstsbcenc.h + gstsbcparse.c gstsbcparse.h gstsbcutil.c gstsbcutil.h + pcm_bluetooth.c gstbluetooth.c: ctl_bluetooth.c + ipc.c ipc.h rtp.h + ipctest.c + + License: LGPL version 2.1 or any later version + + sbc/ + formats.h sbcdec.c sbcenc.c sbcinfo.c + sbctester.c + + License: GPL version 2 or any later version + + sbc.c sbc.h + sbc_math.h sbc_primitives.c sbc_primitives.h + sbc_primitives_mmx.c sbc_primitives_mmx.h sbc_primitives_neon.c + sbc_primitives_neon.h sbc_tables.h + + License: LGPL version 2.1 or any later version + + tools/ + ubcsp.c ubcsp.h + + License: MIT License + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + avctrl.c bccmd.c avinfo.c + ciptool.c csr.c csr.h csr_3wire.c csr_bcsp.c csr_h4.c + csr_hci.c csr_usb.c dfu.c dfu.h dfubabel.c dfutool.c + hciattach.h hciattach_st.c hciattach_tialt.c hid2hci.c ppporc.c + hciattach_ti.c + hciattach.c hciconfig.c hcitool.c l2ping.c + hcisecfilter.c sdptool.c + + License: GPL version 2 or any later version + + doc/ + All files. + + License: GFDL version 1.1 or any later version + No Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. + + other: + License: GPL version 2 or any later version + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License can be found in `/usr/share/common-licenses/GPL', the GNU Lesser +General Public License can be found in `/usr/share/common-licenses/LGPL' and +the GNU Free Documentation License can be found in +`/usr/share/common-licenses/GFDL'. --- bluez-4.93.orig/debian/bluez-pcmcia-support.postinst +++ bluez-4.93/debian/bluez-pcmcia-support.postinst @@ -0,0 +1,3 @@ +#!/bin/sh -e + +#DEBHELPER# --- bluez-4.93.orig/debian/bluez-gstreamer.install +++ bluez-4.93/debian/bluez-gstreamer.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/gstreamer-*/*.so + --- bluez-4.93.orig/debian/libbluetooth3.install +++ bluez-4.93/debian/libbluetooth3.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/lib*.so.* --- bluez-4.93.orig/debian/bluez-alsa.preinst +++ bluez-4.93/debian/bluez-alsa.preinst @@ -0,0 +1,30 @@ +#!/bin/sh -e + +# snippet from http://wiki.debian.org/DpkgConffileHandling + +# Remove a no-longer used conffile +rm_conffile() { + PKGNAME="$1" + CONFFILE="$2" + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} + +case "$1" in +install|upgrade) + if dpkg --compare-versions "$2" le "3.24-1+b1"; then + rm_conffile bluez-audio "/etc/bluetooth/audio.service" + fi +esac + +#DEBHELPER# --- bluez-4.93.orig/debian/NEWS +++ bluez-4.93/debian/NEWS @@ -0,0 +1,167 @@ +bluez-utils (4.40-1) unstable; urgency=low + + This version includes a new hid2hci program which expects the vendor ID and + product ID of the device to be switched to HID/HCI mode, this means the + switching is no longer done in init script but via udev rules for supported + devices. Adding new devices can be done by dropping rules into + /etc/udev/rules.d/ similar to ones found in + /lib/udev/rules.d/62-bluez-hid2hci.rules or by manually running hid2hci, see + hid2hci(8) manpage for further information. + + This version also ships a simple commandline agent (bluetooth-agent) to do + pairing on the command line + + -- Filippo Giunchedi Fri, 22 May 2009 15:21:35 +0200 + +bluez-utils (3.36-3) unstable; urgency=low + + This version includes an new d-bus policy with updated access control. + As a result of this, only users of netdev group or which are in front of the + computer (i.e. match the at_console="true" rule) are able to communicate + with hcid via dbus. See also #510644. + + -- Filippo Giunchedi Thu, 08 Jan 2009 18:35:38 +0100 + +bluez-utils (3.30-2) unstable; urgency=low + + This upstream version switches the service infrastructure from external + processes to shared objects. Services (i.e. audio) are started automatically + and do not require a .service file in /etc/bluetooth/. audio.service will be + removed automatically by the upgrade unless modified. + + -- Filippo Giunchedi Mon, 14 Apr 2008 17:34:21 +0200 + +bluez-utils (3.7-1) unstable; urgency=low + + This version reverts the /etc/bluetooth/passkeys infrastructure as agents for + passkeys are not supposed to be system-wide. + A bluez-passkey-gnome is provided as a passkey agent, plus there's a example + passkey-agent in /usr/share/doc/bluez-utils/examples/passkey-agent.c + + -- Filippo Giunchedi Sat, 7 Oct 2006 11:43:09 +0200 + +bluez-utils (3.1-3) unstable; urgency=low + + This version includes a new management for outgoing passkey (PIN) requests + while the incoming passkeys defaults to 1234 in /etc/bluetooth/hcid.conf. + See README.Debian for further informations. + + -- Filippo Giunchedi Wed, 26 Jul 2006 11:37:14 +0200 + +bluez-utils (3.1-1) unstable; urgency=low + + This new upstream version removes the need for external pin helper, pin + requests are handled via dbus. The default pin (or now-called "passkey") is + set to 1234 for backward compatibility. + + Also, udev rules for pcmcia card are included along with + /lib/udev/bluetooth.sh (setserial required) in the bluez-pcmcia-support. + + -- Filippo Giunchedi Wed, 26 Jul 2006 11:37:02 +0200 + +bluez-utils (2.24-1) unstable; urgency=low + + This version moves /etc/{init.d,default}/bluez-utils to + /etc/{init.d,default}/bluetooth for LSB compilance. + If local modifications are detected the new files will be installed with + the ".dpkg-new" suffix + + -- Filippo Giunchedi Wed, 7 Jun 2006 13:57:35 +0200 + +bluez-utils (2.19-1) unstable; urgency=high + + * Includes new D-BUS support: sends signals for inquiry results and + remote name resolves. + + * Also adds support for device-specific SDP records. + + -- Edd Dumbill Fri, 19 Aug 2005 01:12:02 +0100 + +bluez-utils (2.9-1) unstable; urgency=low + + * This release improves input device support: EPoX keyboards and + their new HID presenters should now work correctly in report + protocol mode. + + -- Edd Dumbill Sun, 8 Aug 2004 15:19:24 +0100 + +bluez-utils (2.8-1) unstable; urgency=low + + * Users of dongles with HID proxy capability (this is where the dongle + pretends to be a keyboard and mouse until it is switched into Bluetooth + mode, allowing Bluetooth input devices to be used in BIOS etc.) are + now supported. The switch is made as part of the bluez-utils init + script. + + -- Edd Dumbill Mon, 14 Jun 2004 14:24:12 +0100 + +bluez-utils (2.7-1) experimental; urgency=low + + * Upstream has merged bluez-pan with this package. You should + remove the /etc/init.d/bluez-pan script, and use + /etc/default/bluez-utils to configure dund and pand, although + for the moment the old /etc/default/bluez-pan is also read. + + * This source package now has Bluetooth printing support, which + is built into the bluez-cups binary package. + + * DBUS support has been enabled in this build. To use it, add + 'dbus_pin_helper' into the options section, and comment out + the pin_helper. DBUS-aware pin helpers such as that in + bluez-pin will now be used. + + * Bluetooth HID devices (eg, mouse, keyboard) are now supported + for Linux 2.6.6 or better running the hidp patch from bluez.org. + If running these, set HIDD_ENABLED to 1 in /etc/default/bluez-utils + to enable support, then run hidd --connect to connect + to your keyboard or mouse. + + -- Edd Dumbill Wed, 26 May 2004 12:43:08 +0100 + +bluez-utils (2.6-1) experimental; urgency=low + + * Upstream has merged bluez-sdp with this package. The sdp tools + are now in this package. You should remove the /etc/init.d/bluez-sdp + script. + + * All tools from /sbin now live in /usr/sbin: hciattach hciconfig + hcid l2ping. + + -- Edd Dumbill Thu, 6 May 2004 11:58:16 +0100 + +bluez-utils (2.4-4) unstable; urgency=high + + * If you still use the old 'bluepin' PIN assistant: note it has moved + from /bin/ to /usr/bin/. You will need to update your hcid.conf + accordingly. Even better, install bluez-pin and use the helper from + there instead. + * hcitool has also moved to /usr/bin, and l2ping to /sbin. + + -- Edd Dumbill Wed, 15 Jan 2004 18:37:32 +0000 + +bluez-utils (2.4-3) unstable; urgency=low + + * If you're using devfsd and a recent Linux kernel (2.4.22 or later, or + 2.6.x), remove the file /etc/devfs/devices.d/bluez and run update-devfsd. + This will stop your system complaining when devfsd is started. This + package no longer installs that file, but you must remove it yourself. + If you need it in future, you can find it in /usr/share/doc/bluez-utils. + + -- Edd Dumbill Wed, 14 Jan 2004 21:14:35 +0000 + +bluez-utils (2.4-1) unstable; urgency=low + + * The rfcomm program has changed slightly: you now need a "bind yes" + in each entry in /etc/bluetooth/rfcomm.conf to ensure they are bound + at startup time. See man rfcomm for more details. + + -- Edd Dumbill Thu, 1 Jan 2004 18:38:35 +0100 + +bluez-utils (2.3-2) unstable; urgency=low + + * This package now depends on a new PIN helper bluez-pin. If you are + upgrading this package and want to use the new helper instead of the + default one (highly recommended) then alter your pin_helper line in + /etc/bluetooth/hcid.conf to specify /usr/bin/bluez-pin. + + -- Edd Dumbill Thu, 28 Aug 2003 12:38:35 +0100 --- bluez-4.93.orig/debian/bluez-compat.README.Debian +++ bluez-4.93/debian/bluez-compat.README.Debian @@ -0,0 +1,14 @@ +bluez compatibility daemons +=========================== +This package contains old daemons like dund/pand/hidd which have been obsoleted +by bluetoothd and the D-Bus API, they are provided for backward compatibility. + +It is possibile to start the daemons at boot if needed via /etc/rc.local file. + +If options were used via /etc/default/bluetooth this can be accomplished by a +snippet like: + +test -f /etc/default/bluetooth && . /etc/default/bluetooth +[ "$HIDD_ENABLED" -eq 1 ] && /usr/bin/hidd $HIDD_OPTIONS +[ "$PAND_ENABLED" -eq 1 ] && /usr/bin/pand $PAND_OPTIONS +[ "$DUND_ENABLED" -eq 1 ] && /usr/bin/dund $DUND_OPTIONS --- bluez-4.93.orig/debian/bluez.lintian-overrides +++ bluez-4.93/debian/bluez.lintian-overrides @@ -0,0 +1,23 @@ +bluez: binary-without-manpage usr/bin/bluez-simple-service +bluez: binary-without-manpage usr/bin/bluez-test-adapter +bluez: binary-without-manpage usr/bin/bluez-test-audio +bluez: binary-without-manpage usr/bin/bluez-test-device +bluez: binary-without-manpage usr/bin/bluez-test-discovery +bluez: binary-without-manpage usr/bin/bluez-test-input +bluez: binary-without-manpage usr/bin/bluez-test-manager +bluez: binary-without-manpage usr/bin/bluez-test-network +bluez: binary-without-manpage usr/bin/bluez-test-serial +bluez: binary-without-manpage usr/bin/bluez-test-service +bluez: binary-without-manpage usr/bin/bluez-test-telephony +bluez: python-script-but-no-python-dep ./usr/bin/bluez-simple-agent +bluez: python-script-but-no-python-dep ./usr/bin/bluez-simple-service +bluez: python-script-but-no-python-dep ./usr/bin/bluez-test-adapter +bluez: python-script-but-no-python-dep ./usr/bin/bluez-test-audio +bluez: python-script-but-no-python-dep ./usr/bin/bluez-test-device +bluez: python-script-but-no-python-dep ./usr/bin/bluez-test-discovery +bluez: python-script-but-no-python-dep ./usr/bin/bluez-test-input +bluez: python-script-but-no-python-dep ./usr/bin/bluez-test-manager +bluez: python-script-but-no-python-dep ./usr/bin/bluez-test-network +bluez: python-script-but-no-python-dep ./usr/bin/bluez-test-serial +bluez: python-script-but-no-python-dep ./usr/bin/bluez-test-service +bluez: python-script-but-no-python-dep ./usr/bin/bluez-test-telephony --- bluez-4.93.orig/debian/compat +++ bluez-4.93/debian/compat @@ -0,0 +1 @@ +7 --- bluez-4.93.orig/debian/bluez-alsa.install +++ bluez-4.93/debian/bluez-alsa.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/alsa-lib/*.so --- bluez-4.93.orig/debian/bluez.manpages +++ bluez-4.93/debian/bluez.manpages @@ -0,0 +1,4 @@ +debian/bluetooth-agent.1 +debian/bluez-simple-agent.1 +debian/l2test.1 +debian/hcitrace.1 --- bluez-4.93.orig/debian/bluetooth-agent.1 +++ bluez-4.93/debian/bluetooth-agent.1 @@ -0,0 +1,15 @@ +.TH BLUETOOTH-AGENT "1" "March 2010" +.SH NAME +bluetooth-agent \- Bluetooth pass agent +.SH SYNOPSIS +.B bluetooth-agent +.SH DESCRIPTION +\fBBluetooth-agent\fP is pass agent program for bluetooth. + +.SH USAGE +.TP +bluetooth-agent [\fB--adapter\fP adapter-path] [\fB--path\fP agent-path] [] +.SH AUTHOR +This manual page was written by Nobuhiro Iwamatsu , +for the Debian GNU/Linux system (but may be used by others). + --- bluez-4.93.orig/debian/hcitrace.1 +++ bluez-4.93/debian/hcitrace.1 @@ -0,0 +1,22 @@ +.TH HCITRACE "1" "June 2010" +.SH NAME +hcitrace \- hcitrace daemon +.SH SYNOPSIS +.B hcitrace +.SH DESCRIPTION +\fBhcitrace\fP daemon allow per advanced tracing capabilities +with multiple HCI controllers per stream. + +.SH USAGE +hcitrace [OPTION...] + +Help Options: + \fB-h\fP, \fB--help\fP Show help options + +Application Options: + \fB-n\fP, \fB--nodaemon\fP Don't run as daemon in background + \fB-d\fP, \fB--debug\fP Enable debug information output + +.SH AUTHOR +This manual page was written by Nobuhiro Iwamatsu , +for the Debian GNU/Linux system (but may be used by others). --- bluez-4.93.orig/debian/bluez-cups.install +++ bluez-4.93/debian/bluez-cups.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/cups/backend/* --- bluez-4.93.orig/debian/bluez.bluetooth.default +++ bluez-4.93/debian/bluez.bluetooth.default @@ -0,0 +1,20 @@ +# Defaults for bluez + +# start bluetooth on boot? +# compatibility note: if this variable is _not_ found bluetooth will start +BLUETOOTH_ENABLED=1 + +# This setting used to switch HID devices (e.g mouse/keyboad) to HCI mode, that +# is you will have bluetooth functionality from your dongle instead of only +# HID. This is accomplished for supported devices by udev in +# /lib/udev/rules.d/62-bluez-hid2hci.rules by invoking hid2hci with correct +# parameters. +# See /usr/share/doc/bluez/NEWS.Debian.gz for further information. + +# Older daemons like pand dund and hidd can be found in bluez-compat package as +# they are deprecated and provided for backward compatibility only. + +# Note that not every bluetooth dongle is capable of switching back to HID mode, +# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=355497 +HID2HCI_ENABLED=0 +HID2HCI_UNDO=0 --- bluez-4.93.orig/debian/bluez-simple-agent.1 +++ bluez-4.93/debian/bluez-simple-agent.1 @@ -0,0 +1,59 @@ +'\" t +.\" Title: BLUEZ-SIMPLE=AGENT +.\" Author: Nobuhiro Iwamatsu +.\" Generator: DocBook XSL Stylesheets v1.75.2 +.\" Date: 09/09/2010 +.\" Manual: bluez-simple-agent +.\" Source: http://bluez.org +.\" Language: English +.\" +.TH "BLUEZ\-SIMPLE=AGENT" "1" "09/09/2010" "http://bluez\&.org" "bluez-simple-agent" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +bluez-simple-agent \- A PIN management and agent program for pairing to Bluetooth device\&. +.SH "SYNOPSIS" +.HP \w'\fBbluez\-simple\-agent\ []\ []\ [remove]\fR\ 'u +\fBbluez\-simple\-agent [] [] [remove]\fR +.SH "DESCRIPTION" +.PP +bluez\-simple\-agent is pass agent program for bluetooth\&. +.SH "OPTIONS" +.PP +\fB\fR +.RS 4 +The command is applied to device hciX , which must be the name of an installed Blue\(hy tooth device\&. If not specified, the command will be sent to the first available Blue\(hy tooth device\&. +.RE +.PP +\fB\fR +.RS 4 +bdaddr of device doing pairing\&. +.RE +.PP +\fBremove\fR +.RS 4 +Remove intended bdaddr from database\&. +.RE +.SH "AUTHOR" +.PP +\fBNobuhiro Iwamatsu\fR <\&iwamatsu@nigauri\&.org\&> +.RS 4 +Wrote this manpage for the Debian system\&. +.RE --- bluez-4.93.orig/debian/bluez.bluetooth.init +++ bluez-4.93/debian/bluez.bluetooth.init @@ -0,0 +1,203 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: bluetooth +# Required-Start: $local_fs $syslog $remote_fs dbus +# Required-Stop: $local_fs $syslog $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start bluetooth daemons +### END INIT INFO +# +# bluez Bluetooth subsystem starting and stopping +# +# originally from bluez's scripts/bluetooth.init +# +# Edd Dumbill +# LSB 3.0 compilance and enhancements by Filippo Giunchedi +# +# Updated for bluez 4.7 by Mario Limonciello +# +# Note: older daemons like dund pand hidd are now shipped inside the +# bluez-compat package + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DESC=bluetooth + +DAEMON=/usr/sbin/bluetoothd +HCIATTACH=/usr/sbin/hciattach + +HID2HCI=/usr/sbin/hid2hci +HID2HCI_ENABLED=1 +HID2HCI_UNDO=1 + +UART_CONF=/etc/bluetooth/uart + +RFCOMM=/usr/bin/rfcomm +RFCOMM_NAME=rfcomm +RFCOMM_CONF=/etc/bluetooth/rfcomm.conf +SDPTOOL=/usr/bin/sdptool + +SSD_OPTIONS="--oknodo --quiet --exec $DAEMON" + +test -f /usr/sbin/bluetoothd || exit 0 + +test -f /etc/default/bluetooth && . /etc/default/bluetooth +test -f /etc/default/rcS && . /etc/default/rcS + +. /lib/lsb/init-functions + +set -e + +run_sdptool() +{ + test -x $SDPTOOL || return 1 + + if ! test -z "$SDPTOOL_OPTIONS" ; then + oldifs="$IFS" + IFS=";" + for o in $SDPTOOL_OPTIONS ; do + #echo "execing $SDPTOOL $o" + IFS=" " + if [ "$VERBOSE" != "no" ]; then + $SDPTOOL $o + else + $SDPTOOL $o >/dev/null 2>&1 + fi + done + IFS="$oldifs" + fi + +} + +enable_hci_input() +{ + log_progress_msg "switching to HID/HCI no longer done in init script, see /usr/share/doc/bluez/NEWS.Debian.gz" +} + +disable_hci_input() +{ + log_progress_msg "switching to HID/HCI no longer done in init script, see /usr/share/doc/bluez/NEWS.Debian.gz" +} + +start_uarts() +{ + [ -f $HCIATTACH ] && [ -f $UART_CONF ] || return + grep -v '^#' $UART_CONF | while read i; do + if [ "$VERBOSE" != no ]; then + $HCIATTACH $i + else + $HCIATTACH $i >/dev/null 2>&1 + fi + done +} + +stop_uarts() +{ + killall hciattach > /dev/null 2>&1 || true +} + +start_rfcomm() +{ + if [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] ; then + # rfcomm must always succeed for now: users + # may not yet have an rfcomm-enabled kernel + if [ "$VERBOSE" != no ]; then + log_progress_msg "rfcomm" + $RFCOMM -f $RFCOMM_CONF bind all || true + else + $RFCOMM -f $RFCOMM_CONF bind all >/dev/null 2>&1 || true + fi + fi +} + +stop_rfcomm() +{ + if [ -x $RFCOMM ] ; then + if [ "$VERBOSE" != no ]; then + log_progress_msg "rfcomm" + $RFCOMM unbind all || true + else + $RFCOMM unbind all >/dev/null 2>&1 || true + fi + fi +} + +restart_rfcomm() +{ + if [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] ; then + if [ "$VERBOSE" != no ]; then + log_progress_msg "rfcomm" + $RFCOMM unbind all || true + $RFCOMM -f $RFCOMM_CONF bind all || true + else + $RFCOMM unbind all >/dev/null 2>&1|| true + $RFCOMM -f $RFCOMM_CONF bind all >/dev/null 2>&1 || true + fi + fi +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" + + if test "$BLUETOOTH_ENABLED" = "0"; then + log_progress_msg "disabled. see /etc/default/bluetooth" + log_end_msg 0 + exit 0 + fi + + start-stop-daemon --start $SSD_OPTIONS + log_progress_msg "bluetoothd" + + run_sdptool || true + + start_uarts || true + + if test "$HID2HCI_ENABLED" = "1"; then + enable_hci_input || true + fi + start_rfcomm || true + + if test "$HIDD_ENABLED" = "1" || + test "$PAND_ENABLED" = "1" || + test "$DUND_ENABLED" = "1"; then + log_progress_msg "compatibily daemons not started, see bluez-compat package" + fi + + log_end_msg 0 + ;; + stop) + log_daemon_msg "Stopping $DESC" + if test "$BLUETOOTH_ENABLED" = "0"; then + log_progress_msg "disabled." + log_end_msg 0 + exit 0 + fi + stop_rfcomm || true + if test "$HID2HCI_UNDO" = "1"; then + disable_hci_input || true + fi + start-stop-daemon --stop $SSD_OPTIONS + log_progress_msg "bluetoothd" + stop_uarts || true + log_end_msg 0 + ;; + restart|force-reload) + $0 stop + sleep 1 + $0 start + ;; + status) + status_of_proc "$DAEMON" "$DESC" && exit 0 || exit $? + ;; + *) + N=/etc/init.d/bluetooth + # echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 + +# vim:noet --- bluez-4.93.orig/debian/bluez.docs +++ bluez-4.93/debian/bluez.docs @@ -0,0 +1,2 @@ +*/*-api.txt +debian/README.Debian --- bluez-4.93.orig/debian/bluez-compat.dirs +++ bluez-4.93/debian/bluez-compat.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- bluez-4.93.orig/debian/README.Debian +++ bluez-4.93/debian/README.Debian @@ -0,0 +1,148 @@ +bluez for Debian +================ + +The /dev/rfcomm* serial devices entries are automatically created for using +RFCOMM with legacy applications -- see rfcomm(8). Users must be in group +'dialout' to have privileges to use these devices. + +You can edit /etc/bluetooth/rfcomm.conf to have some rfcomm devices bound +automatically at boot time. + +If you wish to install PCMCIA card services support for your Bluetooth +devices you should install the bluez-pcmcia-support package. + +Some USB dongles require firmware to make them work: bluez-firmware from the +"non-free" section provides the required firmware. + + +Mailing lists and documentation +------------------------------- +The old sourceforge lists have been discontinued, the new lists can be found at: + +http://www.bluez.org/development/lists/ + +plus a wiki at: http://wiki.bluez.org/ + +PIN (or passkey) management +--------------------------- +Interaction with the local user can be required while BT connection is +being established (pairing process) and the PIN is not yet known or +needs to be changed. + +To retrieve the passkey (or PIN) from the user a service program (agent) +running in user's interactive session needs to be prepared and listen +for requests of the bluez daemon when pairing begins. + +Examples of such programs are kblueplugd (kdebluetooth package) and +bluetooth-applet (bluez-gnome or gnome-bluetooth packages). A minimal +command-line agent is also provided by bluez-simple-agent. + +Headset support +--------------- +There's support for bluetooth headset both via ALSA and GStreamer, respectively +via bluez-alsa and bluez-gstreamer packages. + +ALSA +~~~~ +You might setup your headset by discovering it with gnome-bluetooth, once setup +add the following configuration to ~/.asoundrc: + + pcm.bluetooth { + type bluetooth + device + } + +then audio can be played with supported player, e.g. mplayer: + + mplayer -ao alsa:device=bluetooth + +See also: http://wiki.bluez.org/wiki/HOWTO/AudioDevices + +Legacy daemons +-------------- +The bluez-compat package includes old legacy daemons such as dund, pand and hidd +for enabling dial-up, ethernet networking and input devices over bluetooth. + +Bluetooth Networking Quickstart with legacy daemons ++++++++++++++++++++++++++++++++++++++++++++++++++++ +1. Start dund and pand at boot time + +2. PPP over RFCOMM + +This is what most devices call "LAN Access" or "Serial Access". It +uses normal PPP over a serial connection. Most PDAs will be able to +connect using this method. + +Use the 'dund' tool to accept incoming connections. Configure pppd +as per the instructions in the ppp package. Then run: + +dund --listen --sdp --nodetach + +Try and connect your device and you'll see something like: + +dund[9801]: DUN daemon ver 1.1pre4 +dund[9811]: New connection from 00:02:31:24:17:6A + +The --sdp option causes the DUN access to be advertised to other +devices via the SDP protocol. Most devices need this in order to be +able to connect. + +Run dund --help to see the various other options available to you. + +If you want to make an outgoing connection using PPP, for instance to +a mobile phone, use the 'rfcomm' program from bluez-utils to bind a +/dev/rfcommX serial port to the phone, and then then use pppd as you +would with a normal modem. + +3. PAN + +The 'pand' tool allows you to use ethernet style networking over +Bluetooth. It creates a network interface on your machine that can be +configured in the same way normal network devices are. + +For full details see the PAN HOWTO at + + +Keyboard and mouse support +++++++++++++++++++++++++++++++++++++ +hidd daemon is included in a bluez-compat package. +We use bluez-simple-agent and bluez-test-input in bluez now. + +1. Discover you mouse or keyboard bluetooth address (bdaddr) by running + "hcitool scan". + +2. Start bluez-simple-agent + + $ sudo bluez-simple-agent hci0 + RequestPinCode (/org/bluez/22302/hci0/dev_00_XX_XX_XX_XX_XX) + Enter PIN Code: 0000 <-- Please input PIN code + Release + New device (/org/bluez/22302/hci0/dev_00_XX_XX_XX_XX_XX) + + Bluetooth mouse set simple PIN code as "0000". + PIN code are different depending on mouse. + Please check the PIN code of your mouse. + +3. With bluez-test-device, set *trusted* to the device. + + $ sudo bluez-test-device trusted yet + + When you did not execute this, you use bluez-test-input after suspend + and resume (and reboot) have to connect a device again. + +4. With bluez-test-input, connected to the device. + + $ sudo bluez-test-input connect + +NOTE: If you want to use hidd daemon, please install bluez-compat package. + + You must then connect to your keyboard or mouse using + "sudo hidd --connect ". + On first connection, pairing is likely and you should + press "connect" button on mice/keyboard, if any. Mice normally have a + preset PIN which should be in the manufacturer's documentation, try 0000. + For keyboards, type the PIN on the Bluetooth keyboard and hit enter, and + then supply it to the passkey agent + (using a cable-attached keyboard. e.g. bluez-simple-agent). + In future your keyboard or mouse should reconnect to your computer + automatically. You must invoke hidd as root. --- bluez-4.93.orig/debian/control +++ bluez-4.93/debian/control @@ -0,0 +1,136 @@ +Source: bluez +Section: admin +Priority: optional +Maintainer: Debian Bluetooth Maintainers +Uploaders: Andrea Veri , Nobuhiro Iwamatsu +DM-Upload-Allowed: yes +Build-Depends: debhelper (>= 7), + autotools-dev, + cdbs, + flex, + bison, + gstreamer-tools, + libasound2-dev, + libdbus-glib-1-dev, + libglib2.0-dev (>= 2.16), + libgstreamer0.10-dev (>= 0.10.30), + libgstreamer-plugins-base0.10-dev (>= 0.10.30), + libnl-dev, + libsndfile1-dev, + libusb-dev, + libcap-ng-dev, + libudev-dev +Vcs-Svn: svn://svn.debian.org/svn/pkg-bluetooth/packages/bluez/trunk +Vcs-Browser: http://svn.debian.org/wsvn/pkg-bluetooth/packages/bluez/trunk +Homepage: http://www.bluez.org +Standards-Version: 3.9.2 + +Package: libbluetooth3 +Section: libs +Conflicts: libsdp2 (<= 1.5-2) +Replaces: libsdp2 (<= 1.5-2) +Depends: ${shlibs:Depends}, ${misc:Depends} +Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390 sparc alpha armhf avr32 hppa m68k powerpcspe sh4 sparc64 +Description: Library to use the BlueZ Linux Bluetooth stack + BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source + project distributed under GNU General Public License (GPL). + +Package: libbluetooth-dev +Section: libdevel +Provides: libbluetooth3-dev +Conflicts: libbluetooth-dev, libsdp2-dev (<= 1.5.2), bluez-pan +Replaces: libsdp2-dev (<= 1.5.2) +Depends: libbluetooth3 (= ${binary:Version}), libc6-dev | libc-dev, ${misc:Depends} +Suggests: pkg-config +Priority: extra +Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390 sparc alpha armhf avr32 hppa m68k powerpcspe sh4 sparc64 +Description: Development files for using the BlueZ Linux Bluetooth library + BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source + project distributed under GNU General Public License (GPL). + +Package: bluetooth +Architecture: all +Depends: bluez +Recommends: bluez-alsa, bluez-cups, bluez-gstreamer +Description: Bluetooth support + This package provides all of the different plugins supported + by the Bluez bluetooth stack. + +Package: bluez +Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390 sparc alpha armhf avr32 hppa m68k powerpcspe sh4 sparc64 +Depends: ${shlibs:Depends}, ${misc:Depends}, module-init-tools, udev | makedev, lsb-base, dbus, python-gobject, python-dbus +Replaces: bluez-input, bluez-network, bluez-serial, bluez-utils (<= 3.36-3), bluez-audio (<= 3.36-3) +Conflicts: bluez-utils (<= 3.36-3), bluez-audio (<= 3.36-3) +Description: Bluetooth tools and daemons + This package contains tools and system daemons for using Bluetooth devices. + . + BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source + project distributed under GNU General Public License (GPL). + +Package: bluez-alsa +Replaces: bluez-audio +Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390 sparc alpha armhf avr32 hppa m68k powerpcspe sh4 sparc64 +Depends: ${shlibs:Depends}, ${misc:Depends}, bluez +Description: Bluetooth ALSA support + This package contains a driver operate with the ALSA stack. + . + BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source + project distributed under GNU General Public License (GPL). + +Package: bluez-gstreamer +Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390 sparc alpha armhf avr32 hppa m68k powerpcspe sh4 sparc64 +Depends: ${shlibs:Depends}, ${misc:Depends}, bluez +Replaces: bluez-audio +Description: Bluetooth GStreamer support + This package contains a plugin to operate with GStreamer applications. + . + BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source + project distributed under GNU General Public License (GPL). + +Package: bluez-cups +Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390 sparc alpha armhf avr32 hppa m68k powerpcspe sh4 sparc64 +Depends: ${shlibs:Depends}, cups, ${misc:Depends} +Description: Bluetooth printer driver for CUPS + This package contains a driver to let CUPS print to Bluetooth-connected + printers. + . + BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source + project distributed under GNU General Public License (GPL). + +Package: bluez-pcmcia-support +Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390 sparc alpha armhf avr32 hppa m68k powerpcspe sh4 sparc64 +Priority: extra +Depends: pcmciautils, ${misc:Depends} +Recommends: setserial +Description: PCMCIA support files for BlueZ 2.0 Bluetooth tools + This package contains files to enable PCMCIA card services to recognise + and initialise PCMCIA Bluetooth devices. + . + BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source + project distributed under GNU General Public License (GPL). + +Package: bluez-compat +Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390 sparc alpha armhf avr32 hppa m68k powerpcspe sh4 sparc64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: BlueZ 3.x compatibility binaries + This package provides the legacy binaries that were reminiscent of the + BlueZ 3.x pairing methods. These binaries are not supported, and will + go away again in the future. The provided binaries are: + . + hidd + dund + pand + +Package: bluez-utils +Depends: bluetooth +Architecture: all +Description: Transitional package + This is a transitional package to assist with moving people to the + BlueZ 4.x stack. + +Package: bluez-audio +Depends: bluez-alsa (>= 4), bluez-gstreamer (>= 4) +Architecture: all +Description: Transitional package + This is a transitional package to assist with moving people to the + BlueZ 4.x stack. --- bluez-4.93.orig/debian/changelog +++ bluez-4.93/debian/changelog @@ -0,0 +1,439 @@ +bluez (4.93-1) unstable; urgency=low + + * New upstream release. + * Update debian/control. + - Add libudev-dev to Build-Depends. + * Update debian/bluetooth-dbus.conf. + Add policy for lp group. + + -- Nobuhiro Iwamatsu Fri, 20 May 2011 10:31:07 +0900 + +bluez (4.91-1) unstable; urgency=low + + * New upstream release. + * Updte debian/control + + Update to S-V 3.9.2: no changes needed. + + Remove libdbus-1-dev from Build-Depends. + This is interpolated by libdbus-1-dev. + * Update debian/libbluetooth3.symbols. + + -- Nobuhiro Iwamatsu Tue, 12 Apr 2011 11:50:49 +0900 + +bluez (4.89-1) unstable; urgency=low + + * New upstream release. + + -- Nobuhiro Iwamatsu Sat, 05 Mar 2011 17:08:40 +0900 + +bluez (4.87-2) unstable; urgency=low + + * Upload to unstable. + + -- Nobuhiro Iwamatsu Wed, 09 Feb 2011 01:38:45 +0900 + +bluez (4.87-1) experimental; urgency=low + + * New upstream release. + + -- Nobuhiro Iwamatsu Wed, 26 Jan 2011 07:58:27 +0900 + +bluez (4.86-1) experimental; urgency=low + + * New upstream release. + * Update debian/rules. + - Enable health plugin and attrib plugin. + + -- Nobuhiro Iwamatsu Mon, 24 Jan 2011 11:49:55 +0900 + +bluez (4.84-1) experimental; urgency=low + + * New upstream release. + * Update README.Debian. + - Update section of Keyboard and mouse support + (Closes: #599894, #535929). + + -- Nobuhiro Iwamatsu Wed, 12 Jan 2011 17:23:25 +0900 + +bluez (4.82-1) experimental; urgency=low + + * New upstream release. + * Add manpages of bluetooth-agent. + + -- Nobuhiro Iwamatsu Mon, 20 Dec 2010 01:39:43 +0900 + +bluez (4.81-1) experimental; urgency=low + + * New upstream release. + * Drop patches/010_udev_rules_agent.patch (Closes: ##588034). + Connection of bluetooth is cut off after system start, + if applied this patch. And this patch is not already necessary. + * Disabled HAL (Closes: 599023). + Add patches/02_disable_hal.patch + * Update debian/rules + - Provide again bluetooth-agent utility (Closes: #598982). + - Remove --enable-netlink option of configure. + This option was not provided. + * Update debian/bluez.install + Remove path of plugins. + * Update libbluetooth-dev.install + Remove path of plugins. + + -- Nobuhiro Iwamatsu Thu, 02 Dec 2010 12:17:48 +0900 + +bluez (4.70-1) unstable; urgency=low + + * New upstream release. + * Update debian/bluez.bluetooth.init (Closes: #593172). + * Update debian/bluez.preinst (Closes: #592982, #568301). + * Update debian/control. + - python-gobject and python-dbus move from Suggests to Depends. + * Replase bluetooth-agent to bluez-simple-agent. + * Some test program move to usr/bin. + + -- Nobuhiro Iwamatsu Fri, 03 Sep 2010 08:43:02 +0900 + +bluez (4.69-1) unstable; urgency=low + + * New upstream release (Closes: #589727). + * Update debian/control. + - bumped standards-version to 3.9.1. + * Update libbluetooth3.symbols. + + -- Nobuhiro Iwamatsu Wed, 28 Jul 2010 13:44:34 +0900 + +bluez (4.66-1) unstable; urgency=low + + * New upstream release. + * Update debian/control. + - Add libcap-ng-dev to Build-depends. + * Update debian/rules. + - Add serial.conf (Closes: #559672). + - Update configure option. + Remove --enable-manpages. + Change --enable-pcmciarules to --enable-pcmcia. + Add --enable-pnat, --enable-tracer, --enable-udevrules, + --enable-configfiles and --enable-capng. + * Add man file of hcitrace. + * Update udev rule (Closes: #535075). + Thanks to Sjoerd Simons. + * Add patch 01_lower_sink_ranking.patch (Closes: #571595). + Thanks to Sebastian Dröge. + + -- Nobuhiro Iwamatsu Tue, 22 Jun 2010 12:45:57 +0900 + +bluez (4.64-1) unstable; urgency=low + + * New upstream release. + + -- Nobuhiro Iwamatsu Sat, 15 May 2010 15:44:23 +0900 + +bluez (4.63-2) unstable; urgency=low + + * Remove some contents from debian/NEWS. (Closes: #579817) + + -- Nobuhiro Iwamatsu Thu, 06 May 2010 06:50:14 +0900 + +bluez (4.63-1) unstable; urgency=low + + * Update debian/control. + - Remove Filippo Giunchedi from uploaders. + - bumped standards-version to 3.8.4. + * Add man files. + bluetooth-agent.1, l2test.1. + * Update libbluetooth3.symbols. + Add hci_bustostr@Base, hci_read_inq_response_tx_power_level@Base, + hci_typetostr@Base, sdp_get_supp_feat@Base, sdp_set_supp_feat@Base + * Update debian/NEWS. + * Add debian/source/format. + + -- Nobuhiro Iwamatsu Tue, 20 Apr 2010 06:08:24 +0900 + +bluez (4.60-1) unstable; urgency=low + + * New upstream release. + * debian/control: + - Add Nobuhiro Iwamatsu to Uploaders (Closes #564569). + + -- Nobuhiro Iwamatsu Sat, 23 Jan 2010 16:03:01 +0900 + +bluez (4.57-1) unstable; urgency=low + + * New upstream bug fix release. + + -- Andrea Veri Thu, 12 Nov 2009 21:27:54 +0100 + +bluez (4.56-2) unstable; urgency=low + + * debian/control: + - makedev re-added as alternate depend of udev, as + it's needed by postints. Thanks to Guillem Jover + for the report. (Closes: #546860) + + -- Andrea Veri Wed, 14 Oct 2009 00:19:19 +0200 + +bluez (4.56-1) unstable; urgency=low + + * New upstream release. (Closes: #539361) + * rctest man page is no more missing. (Closes: #535949) + * debian/control: + - bumped standards-version to 3.8.3. No changes needed. + - added myself into uploaders plus DM tag. + - removed makedev depends. (Closes: #546860) + * debian/copyright: + - added missing copyright holders. + * debian/patches/001_agent_fixes.patch: + - removed, applied upstream + * debian/patches/002_a2dpsink_marginal.patch: + - removed, applied upstream. + * debian/patches/005_l2ping_section.patch: + - removed, applied upstream. + * debian/rules: + - removed the hack to have man page installed correctly. + It has been fixed upstream and points to the right section. (8) + * debian/libbluetooth3.symbols: + - refreshed. + * debian/bluez.examples: + - test/test-* removed and added all needed examples by hand to avoid + the installation of useless stuff. + + -- Andrea Veri Mon, 12 Oct 2009 15:40:02 +0200 + +bluez (4.42-2) unstable; urgency=low + + * Fix "Bashisms in init script" (Closes: #534511) + * Handle upgrade of old /etc/modprobe.d/bluez (Closes: #523050) + * Conflict/Replace bluez-audio in bluez (Closes: #535089) + + -- Filippo Giunchedi Tue, 30 Jun 2009 20:05:13 +0200 + +bluez (4.42-1) unstable; urgency=low + + * New upstream release + + drop not needed debian/patches/003_configure_amd64_rpath.patch + * Provide transitional bluez-audio to migrate to bluez-alsa and + bluez-gstreamer (Closes: #531449) + * Install README.Debian in binary bluez (Closes: #532018) + * Make bluez-{alsa,gstreamer} depend on bluez + * Switch to group bluetooth from netdev for authorized users + (Closes: #534118) + * Mention pand/hidd/dund move to bluez-compat in init script and default + (Closes: #532622) + * debian/patches/002_test_agent_newapi.patch port bluetooth-agent to new + D-Bus API + * Update to S-V 3.8.2: no changes + * Introduce common SSD_OPTIONS in init script and sleep 1 on restart + + -- Filippo Giunchedi Sun, 21 Jun 2009 14:01:04 +0200 + +bluez (4.40-2) unstable; urgency=low + + * Ship a libbluetooth3.symbols file instead of shlibs + * Ship more examples from test/, thus suggest: python-gobject and + python-dbus together with README.examples + * Provide a script in /lib/udev/bluez for waiting on /usr being available + and a patch udev rules to use it + + -- Filippo Giunchedi Tue, 26 May 2009 00:02:53 +0200 + +bluez (4.40-1) unstable; urgency=low + + * New upstream release + - scripts/bluetooth.rules -> scripts/bluetooth-serial.rules + * Upload to unstable + * Change usage for hid2hci: install udev rules and issue a warning from init + script + + -- Filippo Giunchedi Fri, 22 May 2009 14:56:07 +0200 + +bluez (4.34-0exp1) experimental; urgency=low + + * First upload of bluez 4.x (Closes: #499529) + - include parts of the packaging from ubuntu, thanks! + - bluez-utils and bluez-libs are now a single source package + - libbluetooth2 -> libbluetooth3 bump + - conflict bluez with bluez-utils (<= 3.36-3) + - update debian/copyright, thanks to Nobuhiro Iwamatsu + * Remove hid2hci patches/script + * Remove broken link to documentation (Closes: #504675) + * Install a sample commandline agent from test/ into bluetooth-agent + - add 001_test_agent_default_adapter.patch to get the default adapter + * Install test/simple-agent and test/list-devices as examples + * Remove old commented code from maintainer scripts (pcmcia-support postinst + and bluez preinst) + * Update watch file to match bluez only + * Add #DEBHELPER# to debian/bluez-utils.postrm + * Update to S-V 3.8.1: no changes needed + * Fix lintian warnings: + - add -e to remaining maintainer scripts + - remove full path to update-rc.d in debian/bluez.postinst + - override "bluez-utils: maintainer-script-empty postrm" for transitional + bluez-utils postrm + * Use 7 in debian/compat + * Fix debian/bluez.preinst to use dpkg-query, thus removing the lintian + override + + -- Filippo Giunchedi Wed, 01 Apr 2009 12:20:01 +0200 + +bluez (4.29-0ubuntu1) jaunty; urgency=low + + * New upstream version (LP: #326811) + - Use AVRCP version 1.0 for now. + - Decrease AVDTP idle timeout to one second. + - Delay AVRCP connection when remote device connects A2DP. + - Add workaround for AVDTP stream setup with broken headsets. + - Add missing three-way calling feature bit for Handsfree. + - Fix handsfree callheld indicator updating. + - Fix parsing of all AT commands within the buffer. + - Fix authentication replies when disconnected. + - Fix handling of debug combination keys. + - Fix handling of changed combination keys. + - Fix handling of link keys when using no bonding. + - Fix handling of invalid/unknown authentication requirements. + - Fix closing of L2CAP raw socket used for dedicated bonding. + + -- Baptiste Mille-Mathias Sun, 08 Feb 2009 10:48:36 +0100 + +bluez (4.28-0ubuntu1) jaunty; urgency=low + + * New upstream version. (LP: #324492) + - Add AVDTP signal fragmentation support. + - Add more SBC performance optimizations. + - Add more SBC audio quality improvements. + - Use native byte order for audio plugins. + - Set the adapter alias only after checking the EIR data. + - Fix auto-disconnect issue with explicit A2DP connections. + - Fix invalid memory access of ALSA plugin. + - Fix compilation with -Wsign-compare. + + -- Baptiste Mille-Mathias Mon, 02 Feb 2009 21:57:08 +0100 + +bluez (4.27-0ubuntu1) jaunty; urgency=low + + * New upstream version. (LP: #304784) + - Improves interoperability and security handling + with Bluetooth 2.1 based devices. + + -- Mario Limonciello Tue, 27 Jan 2009 12:44:39 -0600 + +bluez (4.25-0ubuntu6) jaunty; urgency=low + + * Drop previous patch, bluez is a bit strange and this is basically ok. + + -- Scott James Remnant Mon, 19 Jan 2009 17:01:14 +0000 + +bluez (4.25-0ubuntu5) jaunty; urgency=low + + * debian/patches/ubuntu_dbus_policy.patch: + - Drop send_interface allow which isn't service-specific. LP: #318740. + + -- Scott James Remnant Mon, 19 Jan 2009 15:38:43 +0000 + +bluez (4.25-0ubuntu4) jaunty; urgency=low + + * Add Breaks to ensure the right udev version is used. + + -- Scott James Remnant Fri, 09 Jan 2009 11:35:06 +0000 + +bluez (4.25-0ubuntu3) jaunty; urgency=low + + * debian/hid2hci.rules: Update to use ATTRS{} instead of SYSFS{} + + -- Scott James Remnant Wed, 07 Jan 2009 14:18:52 +0000 + +bluez (4.25-0ubuntu2) jaunty; urgency=low + + * debian/rules: Install rules into /lib/udev/rules.d + * debian/bluez.preinst: Remove old rule if unchanged. + + -- Scott James Remnant Wed, 07 Jan 2009 11:35:39 +0000 + +bluez (4.25-0ubuntu1) jaunty; urgency=low + + * New upstream release. (LP: #312087) + + -- Baptiste Mille-Mathias Tue, 30 Dec 2008 19:53:44 +0100 + +bluez (4.21-0ubuntu1) jaunty; urgency=low + + * New upstream version. (LP: #304109) + + -- Mario Limonciello Wed, 03 Dec 2008 15:56:03 -0600 + +bluez (4.17-0ubuntu1) jaunty; urgency=low + + * New upstream version. (LP: #284039) + * Drop the following patches that landed upstream: + - logitech_5500_ids.patch + - dell_bt_365.patch + - sco_connect_git.patch + + -- Mario Limonciello Wed, 05 Nov 2008 13:28:35 -0600 + +bluez (4.12-0ubuntu5) intrepid; urgency=low + + * Add debian/hid2hci.rules to enable running hid2hci + as soon as some bluetooth dongles get plugged in. (LP: #288294) + * debian/bluez.postinst: + - Update udev rules on postinst. + * debian/rules: + - Install debian/hid2hci.rules to 62-bluez-hid2hci.rules + + -- Mario Limonciello Sat, 25 Oct 2008 23:32:00 -0500 + +bluez (4.12-0ubuntu4) intrepid; urgency=low + + * Add hid2hci.patch to enable hid2hci to be ran after + suspending a machine. (LP: #268877) + * debian/rules: + - Install new script from above patch. + * Add logitech_5500_ids.patch for enabling hid2hci on + more logitech devices. (LP: #272352) + + -- Mario Limonciello Wed, 22 Oct 2008 16:01:59 -0500 + +bluez (4.12-0ubuntu3) intrepid; urgency=low + + * debian/bluez.postinst: + - Don't show output for MAKEDEV. (LP: 280360) + * Add dell_bt_365.patch which will enable putting the Dell BT365 + adapter into HCI mode upon bootup. (LP: #286724) + * debian/control: + - Add one more binary package for old compatibility binaries. (LP: #281580) + * debian/rules: + - Enable compatibility binaries. These are HIGHLY discouraged from usage + and will not necessarily be here in the future. + * debian/bluez.install: + - Adjust what binaries get installed, to be able to pull out hidd, dund, + and pand as necessary. + + -- Mario Limonciello Mon, 20 Oct 2008 20:37:24 -0500 + +bluez (4.12-0ubuntu2) intrepid; urgency=low + + * debian/control: + - Move libbluetooth3 to the top of the list so that it is the + package that gets to keep the real changelog rather than symlinks. + - Only Replaces: packages rather than conflicts to help with + upgrades (LP: #279954) + + -- Mario Limonciello Tue, 07 Oct 2008 16:32:31 -0500 + +bluez (4.12-0ubuntu1) intrepid; urgency=low + + * Initial Release. (LP: #274950) + - This package replaces bluez-utils and bluez-libs source packages. + - It was generated by merging the contents of bluez-utils and bluez-libs + and updating content. + - Legacy functionality for hidd, dund, and pand are not present, and + have been removed from all configuration files. + * This release introduces encryption (LP: #182191) + * debian/patches: + - bluez-utils-oui-usage.patch was borrowed from the Fedora 10 packaging. + - sco-connect-git.patch was taken from bluez git shortly after 4.12 release. + It should "help" with some sco headset issues. + * debian/control: + - Update different packages per upstream's recommendations. + - Update conflicts/replaces for earlier packages. + - Add a transitional bluez-utils package to help with the transition. + + -- Mario Limonciello Tue, 07 Oct 2008 12:10:29 -0500 --- bluez-4.93.orig/debian/libbluetooth3.symbols +++ bluez-4.93/debian/libbluetooth3.symbols @@ -0,0 +1,215 @@ +libbluetooth.so.3 libbluetooth3 #MINVER# + ba2oui@Base 4.91 + ba2str@Base 4.91 + bachk@Base 4.91 + bafprintf@Base 4.91 + baprintf@Base 4.91 + basnprintf@Base 4.91 + basprintf@Base 4.91 + baswap@Base 4.91 + batostr@Base 4.91 + bt_compidtostr@Base 4.91 + bt_error@Base 4.91 + bt_free@Base 4.91 + bt_malloc@Base 4.91 + bt_string_to_uuid@Base 4.91 + bt_uuid128_create@Base 4.91 + bt_uuid16_create@Base 4.91 + bt_uuid32_create@Base 4.91 + bt_uuid_cmp@Base 4.91 + bt_uuid_to_string@Base 4.91 + bt_uuid_to_uuid128@Base 4.91 + hci_authenticate_link@Base 4.91 + hci_bustostr@Base 4.91 + hci_change_link_key@Base 4.91 + hci_close_dev@Base 4.91 + hci_cmdtostr@Base 4.91 + hci_commandstostr@Base 4.91 + hci_create_connection@Base 4.91 + hci_delete_stored_link_key@Base 4.91 + hci_devba@Base 4.91 + hci_devid@Base 4.91 + hci_devinfo@Base 4.91 + hci_dflagstostr@Base 4.91 + hci_disconnect@Base 4.91 + hci_dtypetostr@Base 4.91 + hci_encrypt_link@Base 4.91 + hci_exit_park_mode@Base 4.91 + hci_for_each_dev@Base 4.91 + hci_get_route@Base 4.91 + hci_inquiry@Base 4.91 + hci_le_add_white_list@Base 4.91 + hci_le_clear_white_list@Base 4.91 + hci_le_conn_update@Base 4.91 + hci_le_create_conn@Base 4.91 + hci_le_read_white_list_size@Base 4.91 + hci_le_rm_white_list@Base 4.91 + hci_le_set_advertise_enable@Base 4.91 + hci_le_set_scan_enable@Base 4.91 + hci_le_set_scan_parameters@Base 4.91 + hci_lmtostr@Base 4.91 + hci_lptostr@Base 4.91 + hci_open_dev@Base 4.91 + hci_park_mode@Base 4.91 + hci_ptypetostr@Base 4.91 + hci_read_afh_map@Base 4.91 + hci_read_afh_mode@Base 4.91 + hci_read_bd_addr@Base 4.91 + hci_read_class_of_dev@Base 4.91 + hci_read_clock@Base 4.91 + hci_read_clock_offset@Base 4.91 + hci_read_current_iac_lap@Base 4.91 + hci_read_ext_inquiry_response@Base 4.91 + hci_read_inq_response_tx_power_level@Base 4.91 + hci_read_inquiry_mode@Base 4.91 + hci_read_inquiry_scan_type@Base 4.91 + hci_read_inquiry_transmit_power_level@Base 4.91 + hci_read_link_policy@Base 4.91 + hci_read_link_quality@Base 4.91 + hci_read_link_supervision_timeout@Base 4.91 + hci_read_local_commands@Base 4.91 + hci_read_local_ext_features@Base 4.91 + hci_read_local_features@Base 4.91 + hci_read_local_name@Base 4.91 + hci_read_local_oob_data@Base 4.91 + hci_read_local_version@Base 4.91 + hci_read_remote_ext_features@Base 4.91 + hci_read_remote_features@Base 4.91 + hci_read_remote_name@Base 4.91 + hci_read_remote_name_cancel@Base 4.91 + hci_read_remote_name_with_clock_offset@Base 4.91 + hci_read_remote_version@Base 4.91 + hci_read_rssi@Base 4.91 + hci_read_simple_pairing_mode@Base 4.91 + hci_read_stored_link_key@Base 4.91 + hci_read_transmit_power_level@Base 4.91 + hci_read_voice_setting@Base 4.91 + hci_scoptypetostr@Base 4.91 + hci_send_cmd@Base 4.91 + hci_send_req@Base 4.91 + hci_set_afh_classification@Base 4.91 + hci_strtolm@Base 4.91 + hci_strtolp@Base 4.91 + hci_strtoptype@Base 4.91 + hci_strtoscoptype@Base 4.91 + hci_strtover@Base 4.91 + hci_switch_role@Base 4.91 + hci_typetostr@Base 4.91 + hci_vertostr@Base 4.91 + hci_write_afh_mode@Base 4.91 + hci_write_class_of_dev@Base 4.91 + hci_write_current_iac_lap@Base 4.91 + hci_write_ext_inquiry_response@Base 4.91 + hci_write_inquiry_mode@Base 4.91 + hci_write_inquiry_scan_type@Base 4.91 + hci_write_inquiry_transmit_power_level@Base 4.91 + hci_write_link_policy@Base 4.91 + hci_write_link_supervision_timeout@Base 4.91 + hci_write_local_name@Base 4.91 + hci_write_simple_pairing_mode@Base 4.91 + hci_write_stored_link_key@Base 4.91 + hci_write_voice_setting@Base 4.91 + lmp_featurestostr@Base 4.91 + lmp_strtover@Base 4.91 + lmp_vertostr@Base 4.91 + sdp_append_to_buf@Base 4.91 + sdp_append_to_pdu@Base 4.91 + sdp_attr_add@Base 4.91 + sdp_attr_add_new@Base 4.91 + sdp_attr_remove@Base 4.91 + sdp_attr_replace@Base 4.91 + sdp_attrid_comp_func@Base 4.91 + sdp_close@Base 4.91 + sdp_connect@Base 4.91 + sdp_copy_record@Base 4.91 + sdp_create@Base 4.91 + sdp_data_alloc@Base 4.91 + sdp_data_alloc_with_length@Base 4.91 + sdp_data_free@Base 4.91 + sdp_data_get@Base 4.91 + sdp_device_record_register@Base 4.91 + sdp_device_record_register_binary@Base 4.91 + sdp_device_record_unregister@Base 4.91 + sdp_device_record_unregister_binary@Base 4.91 + sdp_device_record_update@Base 4.91 + sdp_device_record_update_binary@Base 4.91 + sdp_extract_attr@Base 4.91 + sdp_extract_pdu@Base 4.91 + sdp_extract_seqtype@Base 4.91 + sdp_gen_pdu@Base 4.91 + sdp_gen_record_pdu@Base 4.91 + sdp_gen_tid@Base 4.91 + sdp_general_inquiry@Base 4.91 + sdp_get_access_protos@Base 4.91 + sdp_get_add_access_protos@Base 4.91 + sdp_get_database_state@Base 4.91 + sdp_get_error@Base 4.91 + sdp_get_group_id@Base 4.91 + sdp_get_int_attr@Base 4.91 + sdp_get_lang_attr@Base 4.91 + sdp_get_profile_descs@Base 4.91 + sdp_get_proto_desc@Base 4.91 + sdp_get_proto_port@Base 4.91 + sdp_get_record_state@Base 4.91 + sdp_get_server_ver@Base 4.91 + sdp_get_service_avail@Base 4.91 + sdp_get_service_id@Base 4.91 + sdp_get_service_ttl@Base 4.91 + sdp_get_socket@Base 4.91 + sdp_get_string_attr@Base 4.91 + sdp_get_supp_feat@Base 4.91 + sdp_get_uuidseq_attr@Base 4.91 + sdp_list_append@Base 4.91 + sdp_list_free@Base 4.91 + sdp_list_insert_sorted@Base 4.91 + sdp_list_remove@Base 4.91 + sdp_pattern_add_uuid@Base 4.91 + sdp_pattern_add_uuidseq@Base 4.91 + sdp_process@Base 4.91 + sdp_profile_uuid2strn@Base 4.91 + sdp_proto_uuid2strn@Base 4.91 + sdp_record_alloc@Base 4.91 + sdp_record_free@Base 4.91 + sdp_record_print@Base 4.91 + sdp_record_register@Base 4.91 + sdp_record_unregister@Base 4.91 + sdp_record_update@Base 4.91 + sdp_send_req_w4_rsp@Base 4.91 + sdp_seq_alloc@Base 4.91 + sdp_seq_alloc_with_length@Base 4.91 + sdp_seq_append@Base 4.91 + sdp_service_attr_async@Base 4.91 + sdp_service_attr_req@Base 4.91 + sdp_service_search_async@Base 4.91 + sdp_service_search_attr_async@Base 4.91 + sdp_service_search_attr_req@Base 4.91 + sdp_service_search_req@Base 4.91 + sdp_set_access_protos@Base 4.91 + sdp_set_add_access_protos@Base 4.91 + sdp_set_attrid@Base 4.91 + sdp_set_group_id@Base 4.91 + sdp_set_info_attr@Base 4.91 + sdp_set_lang_attr@Base 4.91 + sdp_set_notify@Base 4.91 + sdp_set_profile_descs@Base 4.91 + sdp_set_seq_len@Base 4.91 + sdp_set_service_id@Base 4.91 + sdp_set_supp_feat@Base 4.91 + sdp_set_url_attr@Base 4.91 + sdp_set_uuidseq_attr@Base 4.91 + sdp_svclass_uuid2strn@Base 4.91 + sdp_uuid128_cmp@Base 4.91 + sdp_uuid128_create@Base 4.91 + sdp_uuid128_to_uuid@Base 4.91 + sdp_uuid16_cmp@Base 4.91 + sdp_uuid16_create@Base 4.91 + sdp_uuid16_to_uuid128@Base 4.91 + sdp_uuid2strn@Base 4.91 + sdp_uuid32_create@Base 4.91 + sdp_uuid32_to_uuid128@Base 4.91 + sdp_uuid_cmp@Base 4.91 + sdp_uuid_extract@Base 4.91 + sdp_uuid_to_proto@Base 4.91 + sdp_uuid_to_uuid128@Base 4.91 + str2ba@Base 4.91 + strtoba@Base 4.91 --- bluez-4.93.orig/debian/libbluetooth-dev.install +++ bluez-4.93/debian/libbluetooth-dev.install @@ -0,0 +1,4 @@ +debian/tmp/usr/include/* +debian/tmp/usr/lib/lib*.so +debian/tmp/usr/lib/*.la +debian/tmp/usr/lib/pkgconfig/* --- bluez-4.93.orig/debian/bluez.preinst +++ bluez-4.93/debian/bluez.preinst @@ -0,0 +1,62 @@ +#!/bin/sh -e + +# snippet from http://www.dpkg.org/dpkg/ConffileHandling + +# Prepare to move a conffile without triggering a dpkg question +prep_mv_conffile() { + CONFFILE="$1" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" = "$old_md5sum" ]; then + rm -f "$CONFFILE" + fi + fi +} + +# Remove a no-longer used conffile +rm_conffile() { + PKGNAME="$1" + CONFFILE="$2" + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} + +case "$1" in +install|upgrade) + if dpkg --compare-versions "$2" le "3.7-1"; then + prep_mv_conffile "/etc/dbus-1/system.d/bluez-hcid.conf" + fi + + if dpkg --compare-versions "$2" le "3.30-1"; then + rm_conffile bluez-utils "/etc/bluetooth/network.service" + rm_conffile bluez-utils "/etc/bluetooth/serial.service" + rm_conffile bluez-utils "/etc/bluetooth/input.service" + fi + + # now that modprobe whines remove this old conffile, will be + # http://bugs.debian.org/523050 + base="/etc/modprobe.d/bluez" + rm_conffile bluez "$base" + if [ -e "$base.dpkg-bak" ]; then + if [ -e "$base.conf" ]; then + echo "$base.conf exists, not touching" + else + echo "Moving $base.dpkg-bak to $base.conf" + mv -f "$base.dpkg-bak" "$base.conf" + fi + fi +esac + +#DEBHELPER# --- bluez-4.93.orig/debian/rules +++ bluez-4.93/debian/rules @@ -0,0 +1,106 @@ +#!/usr/bin/make -f +# build rules for bluez + +include /usr/share/cdbs/1/rules/buildcore.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/class/autotools.mk + +DEB_UPDATE_RCD_PARAMS = "start 25 2 3 4 5 . stop 74 0 1 6 ." +DEB_DH_INSTALLINIT_ARGS = "--name=bluetooth" +DEB_CONFIGURE_EXTRA_FLAGS := --enable-health \ + --enable-attrib \ + --enable-gstreamer \ + --enable-alsa \ + --enable-usb \ + --enable-tools \ + --enable-test \ + --enable-bccmd \ + --enable-hid2hci \ + --enable-dfutool \ + --enable-cups \ + --enable-pcmcia \ + --enable-debug \ + --enable-hidd \ + --enable-pand \ + --enable-dund \ + --enable-pnat \ + --enable-tracer \ + --enable-udevrules \ + --enable-configfiles \ + --enable-capng + +DEB_DESTDIR := $(CURDIR)/debian/tmp + +TEST_PROGRAM_LIST = simple-agent simple-service test-adapter test-audio test-device \ + test-discovery test-input test-manager test-network test-serial \ + test-service test-telephony + +#install/bluetooth:: + #install -D -m 0644 $(CURDIR)/debian/bluetooth.override \ + $(CURDIR)/debian/bluetooth/usr/share/lintian/overrides/bluetooth + +install/bluez:: + # conf files + install -D -m 0644 $(CURDIR)/input/input.conf \ + $(CURDIR)/debian/bluez/etc/bluetooth/input.conf + install -D -m 0644 $(CURDIR)/audio/audio.conf \ + $(CURDIR)/debian/bluez/etc/bluetooth/audio.conf + install -D -m 0644 $(CURDIR)/network/network.conf \ + $(CURDIR)/debian/bluez/etc/bluetooth/network.conf + install -D -m 0644 $(CURDIR)/serial/serial.conf \ + $(CURDIR)/debian/bluez/etc/bluetooth/serial.conf + + # udev rules, actually upstream version is changed with + # sed -i 's@RUN+="/usr/sbin/hid2hci@RUN+="/lib/udev/bluez@' + # scripts/bluetooth-hid2hci.rules + # and the diff is in debian/patches/010_udev_rules_agent.patch + install -D -m 0644 $(CURDIR)/scripts/bluetooth-hid2hci.rules \ + $(CURDIR)/debian/bluez/lib/udev/rules.d/62-bluez-hid2hci.rules + install -D -m 0755 $(CURDIR)/debian/bluez_agent.udev \ + $(CURDIR)/debian/bluez/lib/udev/bluez + + # misc + install -D -m 0755 $(CURDIR)/test/agent \ + $(CURDIR)/debian/bluez/usr/bin/bluetooth-agent + for d in $(TEST_PROGRAM_LIST) ; do \ + install -D -m 0755 $(CURDIR)/test/$$d \ + $(CURDIR)/debian/bluez/usr/bin/bluez-$$d ; \ + done + + install -D -m 0644 $(CURDIR)/debian/README.examples \ + $(CURDIR)/debian/bluez/usr/share/doc/bluez/examples/README + +#install/bluez-utils:: + #install -D -m 0644 $(CURDIR)/debian/bluez-utils.override \ + # $(CURDIR)/debian/bluez-utils/usr/share/lintian/overrides/bluez-utils + +install/bluez-alsa:: + install -D -m 0644 $(CURDIR)/audio/bluetooth.conf \ + $(CURDIR)/debian/bluez-alsa/usr/share/alsa/bluetooth.conf + +install/bluez-pcmcia-support:: + cp -f $(CURDIR)/scripts/bluetooth-serial.rules \ + $(CURDIR)/debian/bluez-pcmcia-support.udev + +binary-install/bluez-compat:: + for d in pand dund hidd; do \ + mv -v $(CURDIR)/debian/bluez/usr/bin/$$d \ + $(CURDIR)/debian/bluez-compat/usr/bin/;\ + mv -v $(CURDIR)/debian/bluez/usr/share/man/man1/$$d* \ + $(CURDIR)/debian/bluez-compat/usr/share/man/man1/;\ + done + +binary-install/bluez-gstreamer:: + LD_LIBRARY_PATH="$(CURDIR)/debian/tmp/usr/lib:$(LD_LIBRARY_PATH)" \ + dh_gstscancodecs -pbluez-gstreamer + +binary-install/bluez:: + install -D -m 0644 $(CURDIR)/debian/bluetooth-dbus.conf \ + $(CURDIR)/debian/bluez/etc/dbus-1/system.d/bluetooth.conf + +binary-install/bluez-pcmcia-support:: + chmod a+x $(CURDIR)/debian/bluez-pcmcia-support/lib/udev/bluetooth_serial + +clean:: + -rm -f $(CURDIR)/debian/bluez-pcmcia-support.udev --- bluez-4.93.orig/debian/l2test.1 +++ bluez-4.93/debian/l2test.1 @@ -0,0 +1,45 @@ +.TH BLUETOOTH-AGENT "1" "March 2010" +.SH NAME +l2test \- L2CAP testing +.SH SYNOPSIS +.B l2test +.SH DESCRIPTION +\fBl2test\fP is L2CAP testing program. + +.SH USAGE +l2test [options] [bdaddr] +Modes: +\fB-r\fP listen and receive +\fB-w\fP listen and send +\fB-d\fP listen and dump incoming data +\fB-x\fP listen, then send, then dump incoming data +\fB-s\fP connect and send +\fB-u\fP connect and receive +\fB-n\fP connect and be silent +\fB-y\fP connect, then send, then dump incoming data +\fB-c\fP connect, disconnect, connect, \.\.\. +\fB-m\fP multiple connects +\fB-p\fP trigger dedicated bonding +\fB-z\fP information request +Options: +[\fB-b\fP bytes] [\fB-i\fP device] [\fB-P\fP psm] +[\fB-I\fP imtu] [\fB-O\fP omtu] +[\fB-L\fP seconds] enable SO_LINGER +[\fB-W\fP seconds] enable deferred setup +[\fB-B\fP filename] use data packets from file +[\fB-N\fP num] send num frames (default = infinite) +[\fB-C\fP num] send num frames before delay (default = 1) +[\fB-D\fP milliseconds] delay after sending num frames (default = 0) +[\fB-X\fP mode] select retransmission/flow-control mode +[\fB-F\fP fcs] use CRC16 check (default = 1) +[\fB-R\fP] reliable mode +[\fB-G\fP] use connectionless channel (datagram) +[\fB-A\fP] request authentication +[\fB-E\fP] request encryption +[\fB-S\fP] secure connection +[\fB-M\fP] become master +[\fB-T\fP] enable timestamps + +.SH AUTHOR +This manual page was written by Nobuhiro Iwamatsu , +for the Debian GNU/Linux system (but may be used by others). --- bluez-4.93.orig/debian/bluetooth-dbus.conf +++ bluez-4.93/debian/bluetooth-dbus.conf @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --- bluez-4.93.orig/debian/source.lintian-overrides +++ bluez-4.93/debian/source.lintian-overrides @@ -0,0 +1,5 @@ +# transitional packages +bluez source: debhelper-but-no-misc-depends bluez-utils +bluez source: debhelper-but-no-misc-depends bluez-audio +# metapackage +bluez source: debhelper-but-no-misc-depends bluetooth --- bluez-4.93.orig/debian/bluetooth.lintian-overrides +++ bluez-4.93/debian/bluetooth.lintian-overrides @@ -0,0 +1,2 @@ +# package description looks fine, "Bluetooth stack utilities" +bluetooth binary: description-starts-with-package-name --- bluez-4.93.orig/debian/bluez-utils.lintian-overrides +++ bluez-4.93/debian/bluez-utils.lintian-overrides @@ -0,0 +1,2 @@ +# empty transitional postrm +bluez-utils: maintainer-script-empty postrm --- bluez-4.93.orig/debian/bluez-utils.postrm +++ bluez-4.93/debian/bluez-utils.postrm @@ -0,0 +1,6 @@ +#!/bin/sh -e + +#Dummy transitional postrm script +#Don't do anything. + +#DEBHELPER# --- bluez-4.93.orig/debian/bluez.dirs +++ bluez-4.93/debian/bluez.dirs @@ -0,0 +1 @@ +usr/bin --- bluez-4.93.orig/debian/bluez.postinst +++ bluez-4.93/debian/bluez.postinst @@ -0,0 +1,53 @@ +#!/bin/sh +# snippet from http://www.dpkg.org/dpkg/ConffileHandling + +# Move a conffile without triggering a dpkg question +mv_conffile() { + OLDCONFFILE="$1" + NEWCONFFILE="$2" + + if [ -e "$OLDCONFFILE" ]; then + echo "Preserving user changes to $NEWCONFFILE ..." + mv -f "$NEWCONFFILE" "$NEWCONFFILE".dpkg-new + mv -f "$OLDCONFFILE" "$NEWCONFFILE" + fi +} + +set -e +case "$1" in + configure) + if [ -e /etc/init.d/bluez-utils ]; then + update-rc.d -f bluez-utils remove + # maybe a (medium/low debconf?) notice is best suited here + fi + + # use MAKEDEV instead of the original bluez script below as per policy 10.6 + if [ -x /dev/MAKEDEV ]; then + echo "Creating device nodes ..." + cd /dev && ./MAKEDEV bluetooth 1>/dev/null 2>/dev/null + fi + + # create bluetooth group if not already present + if ! getent group bluetooth > /dev/null; then + addgroup --quiet --system bluetooth + fi + + # reload dbus config file + if [ -x /etc/init.d/dbus ]; then + invoke-rc.d dbus force-reload || true + fi + + #reload udev rules + if [ -x /etc/init.d/udev ]; then + invoke-rc.d udev reload || true + fi + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +#DEBHELPER# --- bluez-4.93.orig/debian/README.examples +++ bluez-4.93/debian/README.examples @@ -0,0 +1,2 @@ +These examples are from the test/ directory of bluez distribution, you'll need +python-gobject and python-dbus to run some of them. --- bluez-4.93.orig/debian/bluez.install +++ bluez-4.93/debian/bluez.install @@ -0,0 +1,6 @@ +debian/tmp/etc/bluetooth/main.conf +debian/tmp/etc/bluetooth/rfcomm.conf +debian/tmp/etc/dbus*/* +debian/tmp/usr/sbin/* +debian/tmp/usr/bin/* +debian/tmp/usr/share/man/man* --- bluez-4.93.orig/debian/source/format +++ bluez-4.93/debian/source/format @@ -0,0 +1 @@ +1.0 --- bluez-4.93.orig/debian/patches/01_lower_sink_ranking.patch +++ bluez-4.93/debian/patches/01_lower_sink_ranking.patch @@ -0,0 +1,13 @@ +# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571595 +diff --git a/audio/gsta2dpsink.c b/audio/gsta2dpsink.c +index 52b65e5..89794fb 100644 +--- a/audio/gsta2dpsink.c ++++ b/audio/gsta2dpsink.c +@@ -697,6 +697,6 @@ static void gst_a2dp_sink_init(GstA2dpSink *self, + gboolean gst_a2dp_sink_plugin_init(GstPlugin *plugin) + { + return gst_element_register(plugin, "a2dpsink", +- GST_RANK_MARGINAL, GST_TYPE_A2DP_SINK); ++ GST_RANK_MARGINAL-1, GST_TYPE_A2DP_SINK); + } + --- bluez-4.93.orig/debian/patches/02_disable_hal.patch +++ bluez-4.93/debian/patches/02_disable_hal.patch @@ -0,0 +1,175 @@ +Description: Disable usage of Hal in the telephony plugins, and disable the hal plugin. They do not do very useful things anyway, and just cause hal to start up, which is expensive. +Author: Martin Pitt +Origin: Ubuntu +Updated by Michael Biebl +Updated by Nobuhiro Iwamatsu +Debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599023 + +diff --git a/audio/telephony-maemo5.c b/audio/telephony-maemo5.c +index 4d0134c..a1547d3 100644 +--- a/audio/telephony-maemo5.c ++++ b/audio/telephony-maemo5.c +@@ -1395,6 +1395,7 @@ static gboolean iter_get_basic_args(DBusMessageIter *iter, + return type == DBUS_TYPE_INVALID ? TRUE : FALSE; + } + ++#if 0 /* Disable hal */ + static void hal_battery_level_reply(DBusPendingCall *call, void *user_data) + { + DBusError err; +@@ -1511,6 +1512,7 @@ static void handle_hal_property_modified(DBusMessage *msg) + dbus_message_iter_next(&array); + } + } ++#endif /* Disable hal */ + + static void csd_call_free(struct csd_call *call) + { +@@ -1725,6 +1727,7 @@ done: + dbus_message_unref(reply); + } + ++#if 0 /* Disable hal */ + static void hal_find_device_reply(DBusPendingCall *call, void *user_data) + { + DBusError err; +@@ -1778,6 +1781,7 @@ static void hal_find_device_reply(DBusPendingCall *call, void *user_data) + done: + dbus_message_unref(reply); + } ++#endif /* Disable hal */ + + static void phonebook_read_reply(DBusPendingCall *call, void *user_data) + { +@@ -2034,9 +2038,11 @@ static DBusHandlerResult signal_filter(DBusConnection *conn, + else if (dbus_message_is_signal(msg, NETWORK_INTERFACE, + "signal_strength_change")) + handle_signal_strength_change(msg); ++#if 0 /* Disable hal */ + else if (dbus_message_is_signal(msg, "org.freedesktop.Hal.Device", + "PropertyModified")) + handle_hal_property_modified(msg); ++#endif /* Disable hal */ + else if (dbus_message_is_signal(msg, SSC_DBUS_IFACE, + "modem_state_changed_ind")) + handle_modem_state(msg); +@@ -2093,6 +2099,7 @@ int telephony_init(void) + + telephony_ready_ind(features, maemo_indicators, response_and_hold, + chld_str); ++#if 0 /* Disable hal */ + if (send_method_call("org.freedesktop.Hal", + "/org/freedesktop/Hal/Manager", + "org.freedesktop.Hal.Manager", +@@ -2101,7 +2108,7 @@ int telephony_init(void) + DBUS_TYPE_STRING, &battery_cap, + DBUS_TYPE_INVALID) < 0) + error("Unable to send HAL method call"); +- ++#endif /* Disable hal */ + return 0; + } + +diff --git a/audio/telephony-maemo6.c b/audio/telephony-maemo6.c +index f671a42..14adbd6 100644 +--- a/audio/telephony-maemo6.c ++++ b/audio/telephony-maemo6.c +@@ -1319,6 +1319,7 @@ static void remove_pending(DBusPendingCall *call) + dbus_pending_call_unref(call); + } + ++#if 0 /* Disable hal */ + static void hal_battery_level_reply(DBusPendingCall *call, void *user_data) + { + DBusError err; +@@ -1434,6 +1435,7 @@ static void handle_hal_property_modified(DBusMessage *msg) + dbus_message_iter_next(&array); + } + } ++#endif /* Disable hal */ + + static void csd_call_free(struct csd_call *call) + { +@@ -1885,9 +1887,11 @@ static gboolean signal_filter(DBusConnection *conn, DBusMessage *msg, + else if (dbus_message_is_signal(msg, CSD_CSNET_SIGNAL, + "SignalBarsChanged")) + handle_signal_bars_changed(msg); ++#if 0 /* Disable hal */ + else if (dbus_message_is_signal(msg, "org.freedesktop.Hal.Device", + "PropertyModified")) + handle_hal_property_modified(msg); ++#endif + else if (dbus_message_is_signal(msg, SSC_DBUS_IFACE, + "modem_state_changed_ind")) + handle_modem_state(msg); +@@ -1906,6 +1910,7 @@ static void add_watch(const char *sender, const char *path, + watches = g_slist_prepend(watches, GUINT_TO_POINTER(watch)); + } + ++#if 0 /* Disable hal */ + static void hal_find_device_reply(DBusPendingCall *call, void *user_data) + { + DBusError err; +@@ -1956,6 +1961,8 @@ done: + remove_pending(call); + } + ++#endif /* Disable hal */ ++ + int telephony_init(void) + { + const char *battery_cap = "battery"; +@@ -1999,6 +2006,7 @@ int telephony_init(void) + + telephony_ready_ind(features, maemo_indicators, response_and_hold, + chld_str); ++#if 0 /* Disable hal */ + if (send_method_call("org.freedesktop.Hal", + "/org/freedesktop/Hal/Manager", + "org.freedesktop.Hal.Manager", +@@ -2007,7 +2015,7 @@ int telephony_init(void) + DBUS_TYPE_STRING, &battery_cap, + DBUS_TYPE_INVALID) < 0) + error("Unable to send HAL method call"); +- ++#endif + return 0; + } + +diff --git a/audio/telephony-ofono.c b/audio/telephony-ofono.c +index 693207c..e104bd6 100644 +--- a/audio/telephony-ofono.c ++++ b/audio/telephony-ofono.c +@@ -889,6 +889,7 @@ static gboolean handle_vcmanager_property_changed(DBusConnection *conn, + return TRUE; + } + ++#if 0 /* Disable hal */ + static void hal_battery_level_reply(DBusPendingCall *call, void *user_data) + { + DBusMessage *reply; +@@ -1061,6 +1062,7 @@ static void hal_find_device_reply(DBusPendingCall *call, void *user_data) + done: + dbus_message_unref(reply); + } ++#endif /* Disable hal */ + + int telephony_init(void) + { +@@ -1087,6 +1089,7 @@ int telephony_init(void) + if (ret < 0) + return ret; + ++#if 0 /* Disable hal */ + ret = send_method_call("org.freedesktop.Hal", + "/org/freedesktop/Hal/Manager", + "org.freedesktop.Hal.Manager", +@@ -1096,7 +1099,7 @@ int telephony_init(void) + DBUS_TYPE_INVALID); + if (ret < 0) + return ret; +- ++#endif + DBG("telephony_init() successfully"); + + return ret;