summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Bunk <adrian.bunk@movial.com>2011-06-03 09:18:45 +0000
committerAdrian Bunk <adrian.bunk@movial.com>2011-06-03 09:18:45 +0000
commit5352e0a7ab852820b03518ba392a69f3d76d9a00 (patch)
treef270d0001ea535fbc8dc190ba309336891034621
parent799757ccf1d03c33c75bc597cd5ef77741dcb6a7 (diff)
4.91-0ubuntu1snowball1packaging-4.91-0ubuntu1snowball1
-rw-r--r--debian/NEWS167
-rw-r--r--debian/README.Debian148
-rw-r--r--debian/README.examples2
-rw-r--r--debian/bluetooth-agent.115
-rw-r--r--debian/bluetooth-dbus.conf37
-rw-r--r--debian/bluetooth.lintian-overrides2
-rw-r--r--debian/bluez-alsa.install1
-rw-r--r--debian/bluez-alsa.preinst30
-rw-r--r--debian/bluez-compat.README.Debian14
-rw-r--r--debian/bluez-compat.dirs2
-rw-r--r--debian/bluez-cups.README.Debian11
-rw-r--r--debian/bluez-cups.install1
-rw-r--r--debian/bluez-gstreamer.install2
-rw-r--r--debian/bluez-pcmcia-support.install1
-rw-r--r--debian/bluez-pcmcia-support.postinst3
-rw-r--r--debian/bluez-simple-agent.159
-rw-r--r--debian/bluez-utils.lintian-overrides2
-rw-r--r--debian/bluez-utils.postrm6
-rw-r--r--debian/bluez.bluetooth.init76
-rw-r--r--debian/bluez.dirs1
-rw-r--r--debian/bluez.docs2
-rw-r--r--debian/bluez.examples2
-rw-r--r--debian/bluez.install8
-rw-r--r--debian/bluez.lintian-overrides23
-rw-r--r--debian/bluez.manpages4
-rw-r--r--debian/bluez.postinst53
-rw-r--r--debian/bluez.preinst66
-rw-r--r--debian/bluez_agent.udev8
-rw-r--r--debian/changelog958
-rw-r--r--debian/compat1
-rw-r--r--debian/control139
-rw-r--r--debian/copyright112
-rw-r--r--debian/hcitrace.122
-rw-r--r--debian/l2test.145
-rw-r--r--debian/libbluetooth-dev.install4
-rw-r--r--debian/libbluetooth3.install1
-rw-r--r--debian/libbluetooth3.symbols215
-rw-r--r--debian/patches/01_lower_sink_ranking.patch13
-rw-r--r--debian/patches/02_disable_hal.patch175
-rw-r--r--debian/patches/enable_cg2900_on_upstream_4.91.patch88
-rw-r--r--debian/patches/series3
-rwxr-xr-xdebian/rules104
-rw-r--r--debian/source.lintian-overrides5
-rw-r--r--debian/source/format1
-rw-r--r--debian/source_bluez.py40
-rw-r--r--debian/watch2
46 files changed, 2674 insertions, 0 deletions
diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 0000000..07d854f
--- /dev/null
+++ b/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 <filippo@debian.org> 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 <filippo@debian.org> 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 <filippo@debian.org> 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 <filippo@debian.org> 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 <filippo@debian.org> 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 <filippo@debian.org> 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 <filippo@debian.org> 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 <ejad@debian.org> 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 <ejad@debian.org> 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 <ejad@debian.org> 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 <bdaddr> to connect
+ to your keyboard or mouse.
+
+ -- Edd Dumbill <ejad@debian.org> 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 <ejad@debian.org> 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 <ejad@debian.org> 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 <ejad@debian.org> 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 <ejad@debian.org> 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 <ejad@debian.org> Thu, 28 Aug 2003 12:38:35 +0100
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..049c046
--- /dev/null
+++ b/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 <BT address>
+ }
+
+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
+<http://bluez.sourceforge.net/contrib/HOWTO-PAN>
+
+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 <bdaddr>
+ 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 <bdaddr> 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 <bdaddr>
+
+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 <bdaddr>".
+ 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.
diff --git a/debian/README.examples b/debian/README.examples
new file mode 100644
index 0000000..0b6f30a
--- /dev/null
+++ b/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.
diff --git a/debian/bluetooth-agent.1 b/debian/bluetooth-agent.1
new file mode 100644
index 0000000..5c0a111
--- /dev/null
+++ b/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] <passkey> [<device>]
+.SH AUTHOR
+This manual page was written by Nobuhiro Iwamatsu <iwamatsu@debian.org>,
+for the Debian GNU/Linux system (but may be used by others).
+
diff --git a/debian/bluetooth-dbus.conf b/debian/bluetooth-dbus.conf
new file mode 100644
index 0000000..78ddd73
--- /dev/null
+++ b/debian/bluetooth-dbus.conf
@@ -0,0 +1,37 @@
+<!-- This configuration file specifies the required security policies
+ for Bluetooth core daemon to work. -->
+
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+ <!-- ../system.conf have denied everything, so we just punch some holes -->
+
+ <policy user="root">
+ <allow own="org.bluez"/>
+ <allow send_destination="org.bluez"/>
+
+ <!-- allow root to send to agents -->
+ <allow send_interface="org.bluez.Agent"/>
+ </policy>
+
+ <!-- allow users at the console, see consolekit or libpam-foreground -->
+ <policy at_console="true">
+ <allow send_destination="org.bluez"/>
+ </policy>
+
+ <!-- allow users of bluetooth group to communicate with hcid -->
+ <policy group="bluetooth">
+ <allow send_destination="org.bluez"/>
+ </policy>
+
+ <!-- allow users of lp group (printing subsystem) to communicate with hcid -->
+ <policy group="lp">
+ <allow send_destination="org.bluez"/>
+ </policy>
+
+ <policy context="default">
+ <deny send_destination="org.bluez"/>
+ </policy>
+
+</busconfig>
diff --git a/debian/bluetooth.lintian-overrides b/debian/bluetooth.lintian-overrides
new file mode 100644
index 0000000..41f6aea
--- /dev/null
+++ b/debian/bluetooth.lintian-overrides
@@ -0,0 +1,2 @@
+# package description looks fine, "Bluetooth stack utilities"
+bluetooth binary: description-starts-with-package-name
diff --git a/debian/bluez-alsa.install b/debian/bluez-alsa.install
new file mode 100644
index 0000000..a3272db
--- /dev/null
+++ b/debian/bluez-alsa.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/alsa-lib/*.so
diff --git a/debian/bluez-alsa.preinst b/debian/bluez-alsa.preinst
new file mode 100644
index 0000000..c94567a
--- /dev/null
+++ b/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#
diff --git a/debian/bluez-compat.README.Debian b/debian/bluez-compat.README.Debian
new file mode 100644
index 0000000..1635daa
--- /dev/null
+++ b/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
diff --git a/debian/bluez-compat.dirs b/debian/bluez-compat.dirs
new file mode 100644
index 0000000..98d1583
--- /dev/null
+++ b/debian/bluez-compat.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/man/man1
diff --git a/debian/bluez-cups.README.Debian b/debian/bluez-cups.README.Debian
new file mode 100644
index 0000000..a5d57b6
--- /dev/null
+++ b/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 <ejad@debian.org>, Fri Jul 16 19:25:21 BST 2004
diff --git a/debian/bluez-cups.install b/debian/bluez-cups.install
new file mode 100644
index 0000000..fd6f5ea
--- /dev/null
+++ b/debian/bluez-cups.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/cups/backend/*
diff --git a/debian/bluez-gstreamer.install b/debian/bluez-gstreamer.install
new file mode 100644
index 0000000..0e7ecaf
--- /dev/null
+++ b/debian/bluez-gstreamer.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/gstreamer-*/*.so
+
diff --git a/debian/bluez-pcmcia-support.install b/debian/bluez-pcmcia-support.install
new file mode 100644
index 0000000..4cf0c1c
--- /dev/null
+++ b/debian/bluez-pcmcia-support.install
@@ -0,0 +1 @@
+scripts/bluetooth_serial /lib/udev
diff --git a/debian/bluez-pcmcia-support.postinst b/debian/bluez-pcmcia-support.postinst
new file mode 100644
index 0000000..07fe0c2
--- /dev/null
+++ b/debian/bluez-pcmcia-support.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh -e
+
+#DEBHELPER#
diff --git a/debian/bluez-simple-agent.1 b/debian/bluez-simple-agent.1
new file mode 100644
index 0000000..93e08ae
--- /dev/null
+++ b/debian/bluez-simple-agent.1
@@ -0,0 +1,59 @@
+'\" t
+.\" Title: BLUEZ-SIMPLE=AGENT
+.\" Author: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
+.\" 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\ [<hciX>]\ [<bdaddr>]\ [remove]\fR\ 'u
+\fBbluez\-simple\-agent [<hciX>] [<bdaddr>] [remove]\fR
+.SH "DESCRIPTION"
+.PP
+bluez\-simple\-agent is pass agent program for bluetooth\&.
+.SH "OPTIONS"
+.PP
+\fB<hciX>\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<bdaddr>\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
diff --git a/debian/bluez-utils.lintian-overrides b/debian/bluez-utils.lintian-overrides
new file mode 100644
index 0000000..79b8398
--- /dev/null
+++ b/debian/bluez-utils.lintian-overrides
@@ -0,0 +1,2 @@
+# empty transitional postrm
+bluez-utils: maintainer-script-empty postrm
diff --git a/debian/bluez-utils.postrm b/debian/bluez-utils.postrm
new file mode 100644
index 0000000..20bef02
--- /dev/null
+++ b/debian/bluez-utils.postrm
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+#Dummy transitional postrm script
+#Don't do anything.
+
+#DEBHELPER#
diff --git a/debian/bluez.bluetooth.init b/debian/bluez.bluetooth.init
new file mode 100644
index 0000000..8724e44
--- /dev/null
+++ b/debian/bluez.bluetooth.init
@@ -0,0 +1,76 @@
+#! /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 <ejad@debian.org>
+# LSB 3.0 compilance and enhancements by Filippo Giunchedi <filippo@debian.org>
+#
+# Updated for bluez 4.7 by Mario Limonciello <mario_limonciello@dell.com>
+#
+# 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
+
+test -f /usr/sbin/bluetoothd || exit 0
+
+test -f /etc/default/rcS && . /etc/default/rcS
+
+. /lib/lsb/init-functions
+
+set -e
+
+case "$1" in
+ start)
+ #currently this init script exists only because of what appears to be
+ #an egg and chicken problem
+ # bluetoothd normally starts up by udev rules. it needs dbus to function,
+ # but dbus doesn't start up until after udev finishes triggering
+ #
+ log_daemon_msg "Starting $DESC"
+
+ if [ ! -f /sbin/udevadm.upgrade ]; then
+ udevadm trigger --subsystem-match=bluetooth --action=add
+ log_progress_msg "bluetoothd"
+ fi
+
+ log_end_msg 0
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC"
+ pkill -TERM bluetoothd || true
+ log_progress_msg "bluetoothd"
+ 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
diff --git a/debian/bluez.dirs b/debian/bluez.dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/bluez.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/bluez.docs b/debian/bluez.docs
new file mode 100644
index 0000000..f628312
--- /dev/null
+++ b/debian/bluez.docs
@@ -0,0 +1,2 @@
+*/*-api.txt
+debian/README.Debian
diff --git a/debian/bluez.examples b/debian/bluez.examples
new file mode 100644
index 0000000..e0db3f1
--- /dev/null
+++ b/debian/bluez.examples
@@ -0,0 +1,2 @@
+test/list-devices
+test/monitor-bluetooth
diff --git a/debian/bluez.install b/debian/bluez.install
new file mode 100644
index 0000000..774663e
--- /dev/null
+++ b/debian/bluez.install
@@ -0,0 +1,8 @@
+debian/source_bluez.py usr/share/apport/package-hooks
+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*
+debian/tmp/lib/udev/*
diff --git a/debian/bluez.lintian-overrides b/debian/bluez.lintian-overrides
new file mode 100644
index 0000000..d82af16
--- /dev/null
+++ b/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
diff --git a/debian/bluez.manpages b/debian/bluez.manpages
new file mode 100644
index 0000000..af7dc7d
--- /dev/null
+++ b/debian/bluez.manpages
@@ -0,0 +1,4 @@
+debian/bluetooth-agent.1
+debian/bluez-simple-agent.1
+debian/l2test.1
+debian/hcitrace.1
diff --git a/debian/bluez.postinst b/debian/bluez.postinst
new file mode 100644
index 0000000..bfef8ef
--- /dev/null
+++ b/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#
diff --git a/debian/bluez.preinst b/debian/bluez.preinst
new file mode 100644
index 0000000..3373729
--- /dev/null
+++ b/debian/bluez.preinst
@@ -0,0 +1,66 @@
+#!/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
+
+ if dpkg --compare-versions "$2" le "4.45-1"; then
+ rm_conffile bluez "/etc/default/bluetooth"
+ fi
+esac
+
+#DEBHELPER#
diff --git a/debian/bluez_agent.udev b/debian/bluez_agent.udev
new file mode 100644
index 0000000..11888bd
--- /dev/null
+++ b/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 "$@"
+) &
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..49284d4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,958 @@
+bluez (4.91-0ubuntu1snowball1) natty; urgency=low
+
+ * Replaced debian/patches/snowball.patch with
+ debian/patches/enable_cg2900_on_upstream_4.91.patch
+
+ -- Adrian Bunk <adrian.bunk@movial.com> Fri, 27 May 2011 14:22:49 +0000
+
+bluez (4.91-0ubuntu1linaro1) natty; urgency=low
+
+ * debian/patches/snowball.patch: Add support for ST-Ericsson CG2900
+ chip. Thanks to Mario Boikov <mario.boikov@stericsson.com>. Closes
+ LP: #758804.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 14 Apr 2011 22:16:49 -0700
+
+bluez (4.91-0ubuntu1) natty; urgency=low
+
+ * New upstream release
+ * debian/libbluetooth3.symbols:
+ - Updated
+
+ -- Robert Ancell <robert.ancell@canonical.com> Tue, 05 Apr 2011 10:09:16 +1000
+
+bluez (4.90-0ubuntu1) natty; urgency=low
+
+ * New upstream release
+
+ -- Robert Ancell <robert.ancell@canonical.com> Thu, 24 Mar 2011 10:27:09 +1100
+
+bluez (4.89-0ubuntu1) natty; urgency=low
+
+ * New upstream release
+
+ -- Robert Ancell <robert.ancell@canonical.com> Mon, 21 Feb 2011 11:50:59 +1100
+
+bluez (4.88-0ubuntu1) natty; urgency=low
+
+ * New upstream release
+
+ -- Robert Ancell <robert.ancell@canonical.com> Mon, 14 Feb 2011 15:48:03 +1100
+
+bluez (4.87-1ubuntu1) natty; urgency=low
+
+ * Merge from debian experimental. Remaining changes: (LP: #708770)
+ - debian/bluetooth-dbus.conf:
+ + Allow access to the D-Bus resource "org.bluez" also for the "lp"
+ group so that the "bluetooth" CUPS backend can access when it is
+ run by CUPS for discovery of Bluetooth printers.
+ - debian/bluez.bluetooth.default:
+ + Drop. Doesn't do anything now.
+ - debian/bluez.preinst:
+ + Cleanup /etc/default/bluetooth as it's not used anymore.
+ - debian/control:
+ + Add udev to build-depends. Allows pkg-config to query udev data
+ directory variable.
+ - debian/rules:
+ + Don't build hid2hci anymore. It's part of udev now.
+ + Don't install bluez_agent.udev, doesn't work in Ubuntu.
+ + Drop simple-patchsys.mk
+ - debian/source/format: Use source format 3.0.
+ - debian/source_bluez.py, debian/bluez.install:
+ + Apport hook made by Baptiste Mille-Mathias.
+ - debian/bluez.bluetooth.init:
+ + Drop most calls in this script as now all it serves as
+ is to workaround a problem with dbus not being ready early
+ enough. Once dbus is started by an upstart service, this
+ should be able to be converted to an upstart service too.
+
+ -- Artur Rona <ari-tczew@ubuntu.com> Thu, 27 Jan 2011 18:00:26 +0100
+
+bluez (4.87-1) experimental; urgency=low
+
+ * New upstream release.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org> 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 <iwamatsu@debian.org> Mon, 24 Jan 2011 11:49:55 +0900
+
+bluez (4.85-0ubuntu1) natty; urgency=low
+
+ * New upstream release
+
+ -- Robert Ancell <robert.ancell@canonical.com> Tue, 18 Jan 2011 10:41:30 +1100
+
+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 <iwamatsu@debian.org> Wed, 12 Jan 2011 17:23:25 +0900
+
+bluez (4.84-0ubuntu1) natty; urgency=low
+
+ * New upstream release
+
+ -- Robert Ancell <robert.ancell@canonical.com> Fri, 07 Jan 2011 13:21:49 +1100
+
+bluez (4.82-1) experimental; urgency=low
+
+ * New upstream release.
+ * Add manpages of bluetooth-agent.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org> Mon, 20 Dec 2010 01:39:43 +0900
+
+bluez (4.82-0ubuntu1) natty; urgency=low
+
+ * New upstream release
+
+ -- Robert Ancell <robert.ancell@canonical.com> Mon, 20 Dec 2010 16:08:47 +1100
+
+bluez (4.81-1ubuntu1) natty; urgency=low
+
+ * debian/control:
+ - Add Vcs-Bzr link
+ * debian/rules:
+ - Drop simple-patchsys.mk
+ * debian/source/format:
+ - Use source format 3.0
+
+ [ Michael Terry ]
+ * Merge with Debian experimental (LP: #687701), remaining Ubuntu changes:
+ + debian/bluetooth-dbus.conf:
+ - Allow access to the D-Bus resource "org.bluez" also for the "lp"
+ group so that the "bluetooth" CUPS backend can access when it is
+ run by CUPS for discovery of Bluetooth printers.
+ + debian/bluez.bluetooth.default:
+ - Drop. Doesn't do anything now.
+ + debian/bluez.preinst:
+ - Cleanup /etc/default/bluetooth as it's not used anymore.
+ + debian/control:
+ - Add udev to build-depends. Allows pkg-config to query udev data
+ directory variable.
+ + debian/rules:
+ - Don't build hid2hci anymore. It's part of udev now.
+ - Don't install bluez_agent.udev, doesn't work in Ubuntu.
+ + debian/source_bluez.py, debian/bluez.install:
+ - Apport hook made by Baptiste Mille-Mathias. (LP: #545551)
+ + debian/bluez.bluetooth.init:
+ - Drop most calls in this script as now all it serves as
+ is to workaround a problem with dbus not being ready early
+ enough. Once dbus is started by an upstart service, this
+ should be able to be converted to an upstart service too.
+
+ -- Robert Ancell <robert.ancell@canonical.com> Mon, 20 Dec 2010 14:59:20 +1100
+
+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 <iwamatsu@debian.org> 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 <iwamatsu@debian.org> 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 <iwamatsu@debian.org> Wed, 28 Jul 2010 13:44:34 +0900
+
+bluez (4.69-0ubuntu2) maverick; urgency=low
+
+ * debian/bluez.bluetooth.init: udev's default action for "trigger" changed
+ to "change", so explicitly request "add" actions; that's what our rule
+ matches on. Fixes detection of BT devices at boot. (LP: #621911)
+
+ -- Martin Pitt <martin.pitt@ubuntu.com> Sun, 22 Aug 2010 16:58:16 +0200
+
+bluez (4.69-0ubuntu1) maverick; urgency=low
+
+ * New upstream version
+ * debian/control, debian/rules:
+ - use dh-autoreconf there
+ * debian/libbluetooth3.symbols:
+ - new version update
+
+ -- Sebastien Bacher <seb128@ubuntu.com> Thu, 12 Aug 2010 21:38:04 +0200
+
+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 <iwamatsu@debian.org> Tue, 22 Jun 2010 12:45:57 +0900
+
+bluez (4.64-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org> Sat, 15 May 2010 15:44:23 +0900
+
+bluez (4.64-0ubuntu1) maverick; urgency=low
+
+ * New upstream release:
+ - Fix invalid memory access in headset_get_nrec function.
+ - Fix issue with disconnect event on higher protocol layers.
+ - Fix issue with list parsing in sdp_set_supp_features function.
+ - Fix device object reference counting for SDP browse requests.
+ - Add missing memory checks whenever memory is allocated for SDP.
+ - Add support for exporting local services via D-Bus.
+ - Add more L2CAP Enhanced Retransmission test options.
+ * debian/patches/01_disable_hal.patch:
+ - updated
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Tue, 02 May 2010 11:49:15 +0200
+
+bluez (4.63-2) unstable; urgency=low
+
+ * Remove some contents from debian/NEWS. (Closes: #579817)
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org> Thu, 06 May 2010 06:50:14 +0900
+
+bluez (4.63-1) unstable; urgency=low
+
+ * Update debian/control.
+ - Remove Filippo Giunchedi <filippo@debian.org> 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 <iwamatsu@debian.org> Tue, 20 Apr 2010 06:08:24 +0900
+
+bluez (4.63-0ubuntu1) UNRELEASED; urgency=low
+
+ * New upstream release.
+ - Fix avdtp_abort not canceling pending requests.
+ - Fix stale connection when abort gets rejected.
+ * debian/patches/01_disable_hal.patch:
+ - updated
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Tue, 02 May 2010 11:35:38 +0200
+
+bluez (4.62-0ubuntu1) UNRELEASED; urgency=low
+
+ * New upstream release:
+ - Fix accidental symbol breakage with inquiry transmit power.
+ - Fix using invalid data from previous headset connection.
+ - Fix double free on AVDTP Abort response.
+ - Fix possible crash while verifying AVDTP version.
+ - Fix missing inuse flag when AVDTP stream is configured.
+ - Add support for Bluetooth controller types.
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Sun, 02 May 2010 11:30:45 +0200
+
+bluez (4.61-0ubuntu1) UNRELEASED; urgency=low
+
+ * New upstream release:
+ - Fix issues with Read Inquiry Response Transmit Power Level.
+ - Fix possible invalid read when removing a temporary device.
+ - Fix mode restoration when remember_powered is false.
+ - Fix conference call releasing in telephony-maemo.
+ - Fix segmentation fault with authorization during headset disconnects.
+ - Add support for handling unanswered AVDTP request on disconnect.
+ - Add support for handling Inquiry Response Transmit Power Level.
+ - Add support for caching of remote host features.
+ - Add preliminary voice dialing support for HSP.
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Sun, 02 May 2010 11:24:40 +0200
+
+bluez (4.60-1) unstable; urgency=low
+
+ * New upstream release.
+ * debian/control:
+ - Add Nobuhiro Iwamatsu to Uploaders (Closes #564569).
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org> Sat, 23 Jan 2010 16:03:01 +0900
+
+bluez (4.60-0ubuntu8) lucid; urgency=low
+
+ * debian/rules: install serial.conf (LP: #544150)
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Tue, 06 Apr 2010 21:07:22 +0200
+
+bluez (4.60-0ubuntu7) lucid; urgency=low
+
+ [ Baptiste Mille-Mathias ]
+ * Fixes to the apport hook to get the output stored in the report.
+
+ -- James Westby <james.westby@ubuntu.com> Tue, 30 Mar 2010 15:02:03 -0400
+
+bluez (4.60-0ubuntu6) lucid; urgency=low
+
+ * debian/source_bluez.py:
+ - Apport hook made by Baptiste Mille-Mathias. (LP: #545551)
+ * debian/bluez.install:
+ - ship the new apport hook.
+
+ -- Nigel Babu <nigelbabu@ubuntu.com> Wed, 24 Mar 2010 20:17:53 +0530
+
+bluez (4.60-0ubuntu5) lucid; urgency=low
+
+ * debian/patches/02_lower_sink_ranking.patch:
+ - restore this change it's not in the new version and still required
+ to unbreak the gstreamer easy codec installation
+
+ -- Sebastien Bacher <seb128@ubuntu.com> Fri, 26 Feb 2010 02:46:36 +0100
+
+bluez (4.60-0ubuntu4) lucid; urgency=low
+
+ * Revert previous upload as per
+ https://lists.ubuntu.com/archives/ubuntu-devel/2010-February/030283.html
+
+ -- Harald Sitter <apachelogger@ubuntu.com> Mon, 22 Feb 2010 22:28:47 +0100
+
+bluez (4.60-0ubuntu3) lucid; urgency=low
+
+ * bluetooth suggest bluez-gstreamer instead of recommending it. Not every
+ setup features GStreamer applications (e.g. a Kubuntu system)
+
+ -- Harald Sitter <apachelogger@ubuntu.com> Mon, 22 Feb 2010 20:56:16 +0100
+
+bluez (4.60-0ubuntu2) lucid; urgency=low
+
+ * Add 01_disable_hal.patch: 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.
+
+ -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 15 Feb 2010 15:04:25 +0100
+
+bluez (4.60-0ubuntu1) lucid; urgency=low
+
+ * New upstream release (lp: #506149)
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Mon, 11 Jan 2010 22:00:47 +0100
+
+bluez (4.57-1) unstable; urgency=low
+
+ * New upstream bug fix release.
+
+ -- Andrea Veri <andrea.veri89@gmail.com> Thu, 12 Nov 2009 21:27:54 +0100
+
+bluez (4.57-0ubuntu1) karmic; urgency=low
+
+ * New upstream release
+ * debian/patches/01_lower_sink_ranking.patch:
+ - dropped, now upstream
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Sun, 01 Nov 2009 11:48:53 +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 <andrea.veri89@gmail.com> 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 <andrea.veri89@gmail.com> Mon, 12 Oct 2009 15:40:02 +0200
+
+bluez (4.51-0ubuntu2) karmic; urgency=low
+
+ * debian/patches/01_lower_sink_ranking.patch:
+ - lower the gsta2dpsink ranking so it's not autoconfigured, right now it
+ claims to handle mpeg but has no decoder for it which breaks easy codec
+ installation, the sink cannot be used without configuring a device
+ which means it doesn't need to be used by default, thanks slomo who
+ looked at the issue and adviced about the change (lp: #412927)
+
+ -- Sebastien Bacher <seb128@ubuntu.com> Thu, 24 Sep 2009 23:12:24 +0200
+
+bluez (4.51-0ubuntu1) karmic; urgency=low
+
+ * New upstream version. (LP: #420811)
+ - Add utility for basic AVDTP testing.
+ - Add support for configuring L2CAP FCS option.
+ - Fix discovery mode for CUPS 1.4.x and later.
+ - Fix global state tracking of audio service.
+ - Fix last issues with the new build system.
+ - Fix issue with missing manual pages in distribution.
+ - Fix issue with the configuration and state directories.
+ - Fix issue with creating include directory.
+ - Fix dependencies of include file generation.
+ - Add simple test program for basic GAP testing.
+ - Add support for confirmation requests to agent example.
+ - Add support for full non-recursive build.
+ - Add five millisecond delay for Simple Pairing auto-accept.
+ - Fix Class of Device setting when InitiallyPowered=false.
+ * Drop 10_bluetooth-cups-backend-report-printers-immediately.patch
+ as it's now upstream.
+
+ -- Mario Limonciello <mario_limonciello@dell.com> Thu, 03 Sep 2009 12:20:43 -0500
+
+bluez (4.48-0ubuntu2) karmic; urgency=low
+
+ * debian/patches/10_bluetooth-cups-backend-report-printers-immediately.patch:
+ Let bluetooth CUPS backend immediately output a printer entry when it
+ discovers a printer instead of outputtting the whole printer list after the
+ timeout. This is needed for the new device discovery environment of CUPS.
+ (LP: #418465)
+
+ -- Till Kamppeter <till.kamppeter@gmail.com> Wed, 26 Aug 2009 18:42:33 +0200
+
+bluez (4.48-0ubuntu1) karmic; urgency=low
+
+ * New upstream version.
+ - Add library function for comparing UUID values.
+ - Add support for creating all plugins as builtins.
+ - Add support for async handling of service class changes.
+ - Add support for source interface to audio IPC.
+ - Fix device name settings when device is off or down.
+ - Fix issue with enabled SCO server when not necessary.
+ - Fix missing D-Bus access policy for CUPS backend.
+ - Fix discovery results of CUPS backend.
+ - Fix initialization handling of Maemo telephony.
+ * Drop cups-bluetooth-discovery-improvements.patch as it's now
+ upstream.
+
+ -- Mario Limonciello <superm1@ubuntu.com> Sun, 16 Aug 2009 23:43:06 -0500
+
+bluez (4.47-0ubuntu2) karmic; urgency=low
+
+ * debian/bluetooth-dbus.conf: Allow access to the D-Bus resource "org.bluez"
+ also for the "lp" group so that the "bluetooth" CUPS backend can access
+ when it is run by CUPS for discovery of Bluetooth printers.
+ * debian/patches/cups-bluetooth-discovery-improvements.patch: Improved
+ device discovery mode output of the "bluetooth" CUPS backend. Once, fill
+ the device make-and-model field, and second, let the device class be
+ "direct" and not network, so that the printer setup tools list the
+ Bluetooth printer as a local printer. (LP: #411610)
+
+ -- Till Kamppeter <till.kamppeter@gmail.com> Mon, 10 Aug 2009 21:18:33 +0200
+
+bluez (4.47-0ubuntu1) karmic; urgency=low
+
+ * New upstream version. (LP: #405263)
+ - Fixes issues with service record updates
+ - Adds native RFKILL support for 2.6.31+
+ - Supports static serial proxy configurations
+ - Fixes many memory leaks and wrong pointer usages
+ - Support for A2DP sinks added
+
+ -- Mario Limonciello <mario_limonciello@dell.com> Fri, 07 Aug 2009 11:34:48 -0500
+
+bluez (4.45-0ubuntu4) karmic; urgency=low
+
+ * Fix upgrade breakage from 4.45-0ubuntu{1,2} (lp: #399482)
+
+ -- Michael Bienia <geser@ubuntu.com> Thu, 16 Jul 2009 11:04:02 +0200
+
+bluez (4.45-0ubuntu3) karmic; urgency=low
+
+ * debian/bluez.bluetooth.init:
+ - Guard the stop action in case bluetoothd isn't running. (LP: #399482)
+
+ -- Mario Limonciello <mario_limonciello@dell.com> Tue, 14 Jul 2009 17:02:42 -0500
+
+bluez (4.45-0ubuntu2) karmic; urgency=low
+
+ * debian/bluez.bluetooth.init:
+ - Fix an error that broke LSB compliance in last upload (LP: #399158)
+ - Check for /sbin/udevadm.upgrade. If it exists, we shouldn't be running
+ any triggers. (LP: #399287)
+
+ -- Mario Limonciello <mario_limonciello@dell.com> Tue, 14 Jul 2009 13:33:26 -0500
+
+bluez (4.45-0ubuntu1) karmic; urgency=low
+
+ * New upstream version.
+ - Improvements in audio support
+ - Ability to start bluetoothd from udev
+ - Fixes some Phonebook access interaction with EDS bugs.
+ - 3 way calling fixes with handsfree support.
+ * debian/bluez.bluetooth.default:
+ - Drop. Doesn't do anything now.
+ * debian/bluez.bluetooth.init:
+ - Drop most calls in this script as now all it serves as
+ is to workaround a problem with dbus not being ready early
+ enough. Once dbus is started by an upstart service, this
+ should be able to be converted to an upstart service too.
+ * debian/bluez.preinst:
+ - Cleanup /etc/default/bluetooth as it's not used anymore.
+ * debian/bluez.install:
+ - Install udev rule
+ * debian/rules:
+ - Enable udev rules.
+ - Remove mv line since we don't still have l2ping section patch.
+ - Drop references to init script.
+ * debian/control:
+ - Add udev to build-depends. Allows pkg-config to query udev data
+ directory variable.
+ * Drop unnecessary patches:
+ - 001_test_agent_default_adapter.patch (No longer applies, no longer necessary)
+ - 006_a2dpsink_marginal.patch (upstream)
+ - 003_configure_amd64_rpath.patch (no longer applies, not necessary)
+ - 005_l2ping_section.patch (upstream)
+
+ -- Mario Limonciello <mario_limonciello@dell.com> Mon, 13 Jul 2009 18:01:11 -0500
+
+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 <filippo@debian.org> 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 <filippo@debian.org> Sun, 21 Jun 2009 14:01:04 +0200
+
+bluez (4.41-0ubuntu2) karmic; urgency=low
+
+ * debian/rules:
+ - Don't build hid2hci anymore. It's part of udev-extras now.
+
+ -- Mario Limonciello <superm1@ubuntu.com> Mon, 15 Jun 2009 01:25:04 -0500
+
+bluez (4.41-0ubuntu1) karmic; urgency=low
+
+ * Debian has adopted the Ubuntu bluez package. Merge
+ with debian packaging. Remaining delta:
+ - Drop 010_udev_rules_agent.patch. Ubuntu doesn't have
+ /lib/udev/hotplug.functions, so this wouldn't stand a chance
+ working.
+ - Don't advertise hid2hci in bluetooth.default or bluetooth.init
+ - Don't install bluez_agent.udev, doesn't work in Ubuntu.
+ * New upstream version (4.41):
+ - Multiple fixes for the audio subsystem
+ - Makes the Bluetooth daemon itself more and more stable.
+
+ -- Mario Limonciello <mario_limonciello@dell.com> Tue, 09 Jun 2009 09:34:12 -0500
+
+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 <filippo@debian.org> 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 <filippo@debian.org> Fri, 22 May 2009 14:56:07 +0200
+
+bluez (4.40-0ubuntu1) karmic; urgency=low
+
+ * New upstream release
+ - Add telephony driver for oFono telephony stack.
+ - Add support for Dell specific HID proxy switching.
+ - Add support for running hid2hci from udev.
+ - Add mapping for AVRCP Play and Pause to dedicated key codes.
+ - Fix AVRCP keycodes to better match existing X keymap support.
+ - Fix various quoting issues within telephony support.
+ - Fix memory allocation issue when generating PDUs for SDP.
+ - Fix race condition on device removal.
+ - Fix non-cancelable issue with CreateDevice method.
+ - Fix non-working CancelDiscovery method call.
+ * debian/rules:
+ - Adjust for upstream modifications to udev rules.
+ * debian/hid2hci.rules:
+ - Drop. This has been added upstream now.
+ * patches/hid2hci_pm-utils.patch:
+ - Drop for now, until a better solution has been developed.
+ hid2hci now requires arguments for the device, so it will probably
+ be better to reset the USB device upon entering or leaving S3.
+ * debian/bluez.bluetooth.init:
+ - Drop references to hid2hci
+ * debian/bluez.bluetooth.default:
+ - Drop references to hid2hci
+
+ -- Mario Limonciello <mario_limonciello@dell.com> Tue, 19 May 2009 17:04:16 -0500
+
+bluez (4.39-0ubuntu1) karmic; urgency=low
+
+ * New upstream release (LP: #372428)
+ - Add workaround for dealing with unknown inquiry complete.
+ - Fix discovering when using software scheduler.
+ - Fix wrong NoInputNoOutput IO capability string.
+ - Fix race condition with agent during pairing.
+ - Fix agent cancellation for security mode 3 acceptor failure.
+ - Fix temporary flag removal when device creation fails.
+ - Fix hciattach to use ppoll instead of poll.
+ - Fix service class update when adapter is down.
+ - Fix service classes race condition during startup.
+ - Fix release of audio client before freeing the device.
+ * debian/rules:
+ - remove "--enable-hal" to DEB_CONFIGURE_EXTRA_FLAGS. This is not a
+ supported flag.
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Wed, 13 May 2009 10:32:23 +0200
+
+bluez (4.38-0ubuntu1) karmic; urgency=low
+
+ * New upstream release
+ - Add support for builtin plugins.
+ - Add framework for adapter operations.
+ - Add constants for Enhanced Retransmission modes.
+ - Fix HCI socket leak in device_remove_bonding.
+ - Fix various format string issues.
+ - Fix crashes with various free functions.
+ - Fix issues with Headset and A2DP drivers to load again.
+ - Fix sending AVRCP button released passthrough messages
+ - Fix bug which prevent input devices to work after restart.
+ - Fix issue with interpretation of UUID-128 as channel.
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Tue, 05 May 2009 22:47:19 +0200
+
+bluez (4.37-0ubuntu1) karmic; urgency=low
+
+ * New upstream version (LP: #367056)
+ * debian/hid2hci.rules:
+ - Update rule to work properly with newer version of udev. (LP: #330934)
+ * debian/rules:
+ - ALSA conf that gets installed is now called bluetooth.conf.
+
+ -- Mario Limonciello <superm1@ubuntu.com> Tue, 28 Apr 2009 09:40:54 -0500
+
+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 <filippo@debian.org> Wed, 01 Apr 2009 12:20:01 +0200
+
+bluez (4.32-0ubuntu4) jaunty; urgency=low
+
+ * debian/bluez-utils.preinst: Correct think-o. LP: #350393.
+
+ -- Scott James Remnant <scott@ubuntu.com> Wed, 01 Apr 2009 09:47:32 +0100
+
+bluez (4.32-0ubuntu3) jaunty; urgency=low
+
+ * debian/bluez-utils.preinst: Remove /etc/modprobe.d/bluez on upgrade
+
+ -- Scott James Remnant <scott@ubuntu.com> Wed, 25 Mar 2009 13:43:00 +0000
+
+bluez (4.32-0ubuntu2) jaunty; urgency=low
+
+ * No-change rebuild to fix lpia shared library dependencies.
+
+ -- Colin Watson <cjwatson@ubuntu.com> Thu, 19 Mar 2009 12:16:56 +0000
+
+bluez (4.32-0ubuntu1) jaunty; urgency=low
+
+ * New upstream release (LP: #)
+ - Fix broken SDP record handling.
+ - Fix SDP data buffer parsing.
+ - Fix more SDP memory leaks.
+ - Fix read scan enable calls.
+ - Fix A2DP stream handling.
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Mon, 02 Mar 2009 08:06:39 +0100
+
+bluez (4.31-0ubuntu1) jaunty; urgency=low
+
+ * New upstream release (LP: #335045)
+ - Add support for new BtIO helper library.
+ - Fix AVDTP session close issue.
+ - Fix SDP memory leaks.
+ - Fix various uninitialized memory issues.
+ - Fix duplicate signal emissions.
+ - Fix property changes request handling.
+ - Fix class of device storage handling.
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Thu, 26 Feb 2009 18:59:54 +0100
+
+bluez (4.30-0ubuntu1) jaunty; urgency=low
+
+ * New upstream release (LP: #329223)
+ - Add CID field to L2CAP socket address structure.
+ - Fix reset of authentication requirements after bonding.
+ - Fix storing of link keys when using dedicated bonding.
+ - Fix storing of pre-Bluetooth 2.1 link keys.
+ - Fix resetting trust settings on every reboot.
+ - Fix handling of local name changes.
+ - Fix memory leaks in hciconfig and hcitool
+ * debian/control:
+ - add ${misc:Depends} for each binary package as recommanded by lintian
+ * debian/bluez-utils.postrm:
+ - add #DEBHELPER# as requested by lintian
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Fri, 13 Feb 2009 21:42:34 +0100
+
+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 <baptiste.millemathias@gmail.com> 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 <baptiste.millemathias@gmail.com> 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 <mario_limonciello@dell.com> 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 <scott@ubuntu.com> 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 <scott@ubuntu.com> 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 <scott@ubuntu.com> 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 <scott@ubuntu.com> 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 <scott@ubuntu.com> Wed, 07 Jan 2009 11:35:39 +0000
+
+bluez (4.25-0ubuntu1) jaunty; urgency=low
+
+ * New upstream release. (LP: #312087)
+
+ -- Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> Tue, 30 Dec 2008 19:53:44 +0100
+
+bluez (4.21-0ubuntu1) jaunty; urgency=low
+
+ * New upstream version. (LP: #304109)
+
+ -- Mario Limonciello <mario_limonciello@dell.com> 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 <mario_limonciello@dell.com> 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 <superm1@ubuntu.com> 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 <mario_limonciello@dell.com> 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 <mario_limonciello@dell.com> 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 <mario_limonciello@dell.com> 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 <superm1@ubuntu.com> Tue, 07 Oct 2008 12:10:29 -0500
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..66b4488
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,139 @@
+Source: bluez
+Section: admin
+Priority: optional
+Maintainer: Igloo Maintainers <packages@igloocommunity.org>
+XSBC-Original-Maintainer: Debian Bluetooth Maintainers <pkg-bluetooth-maintainers@lists.alioth.debian.org>
+Uploaders: Andrea Veri <andrea.veri89@gmail.com>, Nobuhiro Iwamatsu <iwamatsu@debian.org>
+DM-Upload-Allowed: yes
+Build-Depends: debhelper (>= 7),
+ autotools-dev,
+ cdbs,
+ flex,
+ bison,
+ gstreamer-tools,
+ libasound2-dev,
+ libdbus-1-dev,
+ libdbus-glib-1-dev,
+ libglib2.0-dev,
+ libgstreamer0.10-dev,
+ libgstreamer-plugins-base0.10-dev,
+ libnl-dev,
+ libsndfile1-dev,
+ libusb-dev,
+ libcap-ng-dev,
+ udev
+XS-Debian-Vcs-Svn: svn://svn.debian.org/svn/pkg-bluetooth/packages/bluez/trunk
+XS-Debian-Vcs-Browser: http://svn.debian.org/wsvn/pkg-bluetooth/packages/bluez/trunk
+Vcs-Bzr: https://code.launchpad.net/~linaro-maintainers/ubuntu/bluez/natty/overlay
+Homepage: http://www.bluez.org
+Standards-Version: 3.9.1
+
+Package: libbluetooth3
+Section: libs
+Conflicts: libsdp2 (<= 1.5-2)
+Replaces: libsdp2 (<= 1.5-2)
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Architecture: any
+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: any
+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: any
+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: any
+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: any
+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: any
+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: any
+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: any
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7d10398
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,112 @@
+This package was debianized by Edd Dumbill <edd@usefulinc.com> 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 <marcel@holtmann.org>
+ Copyright (C) 2006-2009 Nokia Corporation
+ Copyright (C) 2000-2003 Maxim Krasnyansky <maxk@qualcomm.com>
+ Copyright (C) 2002-2003 Jean Tourrilhes <jt@hpl.hp.com>
+ Copyright (C) 2007-2008 Frederic Dalleau <fdalleau@free.fr>
+ Copyright (C) 2007-2008 Texas Instruments, Inc.
+ Copyright (C) 2000-2005 CSR Ltd.
+ Copyright (C) 2005-2008 Brad Midgley <bmidgley@xmission.com>
+ Copyright (C) 2007-2008 David Stockwell <dstockwell@frequency-one.com>
+ Copyright (C) 2007-2008 Fabien Chevalier <fabchevalier@free.fr>
+ Copyright (C) 2005-2006 Claudio Takahasi <claudio.takahasi@indt.org.br>
+ Copyright (C) 2006-2007 Luiz von Dentz <luiz.dentz@indt.org.br>
+ Copyright (C) 2005-2007 Johan Hedberg <johan.hedberg@nokia.com>
+ Copyright (C) 2005-2006 Brad Midgley <bmidgley@xmission.com>
+ Copyright (C) 2004-2005 Henryk Ploetz <henryk@ploetzli.ch>
+ Copyright (C) 2002-2003 Stephen Crane <steve.crane@rococosoft.com>
+ Copyright (C) 2000-2001 Qualcomm Incorporated
+ Copyright (C) 2008 Joao Paulo Rechi Vita
+ Copyright (C) 2009 Lennart Poettering
+ Copyright (C) 2004 Scott James Remnant <scott@netsplit.com>
+ 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'.
diff --git a/debian/hcitrace.1 b/debian/hcitrace.1
new file mode 100644
index 0000000..62014f1
--- /dev/null
+++ b/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 <iwamatsu@debian.org>,
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/l2test.1 b/debian/l2test.1
new file mode 100644
index 0000000..336846d
--- /dev/null
+++ b/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 <mode> [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 <iwamatsu@debian.org>,
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/libbluetooth-dev.install b/debian/libbluetooth-dev.install
new file mode 100644
index 0000000..8ec9dff
--- /dev/null
+++ b/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/*
diff --git a/debian/libbluetooth3.install b/debian/libbluetooth3.install
new file mode 100644
index 0000000..c45ebcf
--- /dev/null
+++ b/debian/libbluetooth3.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/lib*.so.*
diff --git a/debian/libbluetooth3.symbols b/debian/libbluetooth3.symbols
new file mode 100644
index 0000000..48d47f6
--- /dev/null
+++ b/debian/libbluetooth3.symbols
@@ -0,0 +1,215 @@
+libbluetooth.so.3 libbluetooth3 #MINVER#
+ ba2oui@Base 4.43
+ ba2str@Base 4.43
+ bachk@Base 4.43
+ bafprintf@Base 4.43
+ baprintf@Base 4.43
+ basnprintf@Base 4.43
+ basprintf@Base 4.43
+ baswap@Base 4.43
+ batostr@Base 4.43
+ bt_compidtostr@Base 4.43
+ bt_error@Base 4.43
+ bt_free@Base 4.43
+ bt_malloc@Base 4.43
+ 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.43
+ hci_bustostr@Base 4.43
+ hci_change_link_key@Base 4.43
+ hci_close_dev@Base 4.43
+ hci_cmdtostr@Base 4.43
+ hci_commandstostr@Base 4.43
+ hci_create_connection@Base 4.43
+ hci_delete_stored_link_key@Base 4.43
+ hci_devba@Base 4.43
+ hci_devid@Base 4.43
+ hci_devinfo@Base 4.43
+ hci_dflagstostr@Base 4.43
+ hci_disconnect@Base 4.43
+ hci_dtypetostr@Base 4.43
+ hci_encrypt_link@Base 4.43
+ hci_exit_park_mode@Base 4.43
+ hci_for_each_dev@Base 4.43
+ hci_get_route@Base 4.43
+ hci_inquiry@Base 4.43
+ 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.66
+ hci_le_read_white_list_size@Base 4.91
+ hci_le_rm_white_list@Base 4.91
+ hci_le_set_advertise_enable@Base 4.66
+ hci_le_set_scan_enable@Base 4.66
+ hci_le_set_scan_parameters@Base 4.66
+ hci_lmtostr@Base 4.66
+ hci_lptostr@Base 4.66
+ hci_open_dev@Base 4.66
+ hci_park_mode@Base 4.66
+ hci_ptypetostr@Base 4.66
+ hci_read_afh_map@Base 4.66
+ hci_read_afh_mode@Base 4.66
+ hci_read_bd_addr@Base 4.66
+ hci_read_class_of_dev@Base 4.66
+ hci_read_clock@Base 4.66
+ hci_read_clock_offset@Base 4.66
+ hci_read_current_iac_lap@Base 4.66
+ hci_read_ext_inquiry_response@Base 4.66
+ hci_read_inq_response_tx_power_level@Base 4.66
+ hci_read_inquiry_mode@Base 4.66
+ hci_read_inquiry_scan_type@Base 4.66
+ hci_read_inquiry_transmit_power_level@Base 4.66
+ hci_read_link_policy@Base 4.66
+ hci_read_link_quality@Base 4.66
+ hci_read_link_supervision_timeout@Base 4.66
+ hci_read_local_commands@Base 4.66
+ hci_read_local_ext_features@Base 4.66
+ hci_read_local_features@Base 4.66
+ hci_read_local_name@Base 4.66
+ hci_read_local_oob_data@Base 4.66
+ hci_read_local_version@Base 4.66
+ hci_read_remote_ext_features@Base 4.66
+ hci_read_remote_features@Base 4.66
+ hci_read_remote_name@Base 4.66
+ hci_read_remote_name_cancel@Base 4.66
+ hci_read_remote_name_with_clock_offset@Base 4.66
+ hci_read_remote_version@Base 4.66
+ hci_read_rssi@Base 4.66
+ hci_read_simple_pairing_mode@Base 4.66
+ hci_read_stored_link_key@Base 4.66
+ hci_read_transmit_power_level@Base 4.66
+ hci_read_voice_setting@Base 4.66
+ hci_scoptypetostr@Base 4.66
+ hci_send_cmd@Base 4.66
+ hci_send_req@Base 4.66
+ hci_set_afh_classification@Base 4.66
+ hci_strtolm@Base 4.66
+ hci_strtolp@Base 4.66
+ hci_strtoptype@Base 4.66
+ hci_strtoscoptype@Base 4.66
+ hci_strtover@Base 4.66
+ hci_switch_role@Base 4.66
+ hci_typetostr@Base 4.66
+ hci_vertostr@Base 4.66
+ hci_write_afh_mode@Base 4.66
+ hci_write_class_of_dev@Base 4.66
+ hci_write_current_iac_lap@Base 4.66
+ hci_write_ext_inquiry_response@Base 4.66
+ hci_write_inquiry_mode@Base 4.66
+ hci_write_inquiry_scan_type@Base 4.66
+ hci_write_inquiry_transmit_power_level@Base 4.66
+ hci_write_link_policy@Base 4.66
+ hci_write_link_supervision_timeout@Base 4.66
+ hci_write_local_name@Base 4.66
+ hci_write_simple_pairing_mode@Base 4.66
+ hci_write_stored_link_key@Base 4.66
+ hci_write_voice_setting@Base 4.66
+ lmp_featurestostr@Base 4.66
+ lmp_strtover@Base 4.66
+ lmp_vertostr@Base 4.66
+ sdp_append_to_buf@Base 4.66
+ sdp_append_to_pdu@Base 4.66
+ sdp_attr_add@Base 4.66
+ sdp_attr_add_new@Base 4.66
+ sdp_attr_remove@Base 4.66
+ sdp_attr_replace@Base 4.66
+ sdp_attrid_comp_func@Base 4.66
+ sdp_close@Base 4.66
+ sdp_connect@Base 4.66
+ sdp_copy_record@Base 4.66
+ sdp_create@Base 4.66
+ sdp_data_alloc@Base 4.66
+ sdp_data_alloc_with_length@Base 4.66
+ sdp_data_free@Base 4.66
+ sdp_data_get@Base 4.66
+ sdp_device_record_register@Base 4.66
+ sdp_device_record_register_binary@Base 4.66
+ sdp_device_record_unregister@Base 4.66
+ sdp_device_record_unregister_binary@Base 4.66
+ sdp_device_record_update@Base 4.66
+ sdp_device_record_update_binary@Base 4.66
+ sdp_extract_attr@Base 4.66
+ sdp_extract_pdu@Base 4.66
+ sdp_extract_seqtype@Base 4.66
+ sdp_gen_pdu@Base 4.66
+ sdp_gen_record_pdu@Base 4.66
+ sdp_gen_tid@Base 4.66
+ sdp_general_inquiry@Base 4.66
+ sdp_get_access_protos@Base 4.66
+ sdp_get_add_access_protos@Base 4.66
+ sdp_get_database_state@Base 4.66
+ sdp_get_error@Base 4.66
+ sdp_get_group_id@Base 4.66
+ sdp_get_int_attr@Base 4.66
+ sdp_get_lang_attr@Base 4.66
+ sdp_get_profile_descs@Base 4.66
+ sdp_get_proto_desc@Base 4.66
+ sdp_get_proto_port@Base 4.66
+ sdp_get_record_state@Base 4.66
+ sdp_get_server_ver@Base 4.66
+ sdp_get_service_avail@Base 4.66
+ sdp_get_service_id@Base 4.66
+ sdp_get_service_ttl@Base 4.66
+ sdp_get_socket@Base 4.66
+ sdp_get_string_attr@Base 4.66
+ sdp_get_supp_feat@Base 4.66
+ sdp_get_uuidseq_attr@Base 4.66
+ sdp_list_append@Base 4.66
+ sdp_list_free@Base 4.66
+ sdp_list_insert_sorted@Base 4.66
+ sdp_list_remove@Base 4.66
+ sdp_pattern_add_uuid@Base 4.66
+ sdp_pattern_add_uuidseq@Base 4.66
+ sdp_process@Base 4.66
+ sdp_profile_uuid2strn@Base 4.66
+ sdp_proto_uuid2strn@Base 4.66
+ sdp_record_alloc@Base 4.66
+ sdp_record_free@Base 4.66
+ sdp_record_print@Base 4.66
+ sdp_record_register@Base 4.66
+ sdp_record_unregister@Base 4.66
+ sdp_record_update@Base 4.66
+ sdp_send_req_w4_rsp@Base 4.66
+ sdp_seq_alloc@Base 4.66
+ sdp_seq_alloc_with_length@Base 4.66
+ sdp_seq_append@Base 4.66
+ sdp_service_attr_async@Base 4.66
+ sdp_service_attr_req@Base 4.66
+ sdp_service_search_async@Base 4.66
+ sdp_service_search_attr_async@Base 4.66
+ sdp_service_search_attr_req@Base 4.66
+ sdp_service_search_req@Base 4.66
+ sdp_set_access_protos@Base 4.66
+ sdp_set_add_access_protos@Base 4.66
+ sdp_set_attrid@Base 4.66
+ sdp_set_group_id@Base 4.66
+ sdp_set_info_attr@Base 4.66
+ sdp_set_lang_attr@Base 4.66
+ sdp_set_notify@Base 4.66
+ sdp_set_profile_descs@Base 4.66
+ sdp_set_seq_len@Base 4.66
+ sdp_set_service_id@Base 4.66
+ sdp_set_supp_feat@Base 4.66
+ sdp_set_url_attr@Base 4.66
+ sdp_set_uuidseq_attr@Base 4.66
+ sdp_svclass_uuid2strn@Base 4.66
+ sdp_uuid128_cmp@Base 4.66
+ sdp_uuid128_create@Base 4.66
+ sdp_uuid128_to_uuid@Base 4.66
+ sdp_uuid16_cmp@Base 4.66
+ sdp_uuid16_create@Base 4.66
+ sdp_uuid16_to_uuid128@Base 4.66
+ sdp_uuid2strn@Base 4.66
+ sdp_uuid32_create@Base 4.66
+ sdp_uuid32_to_uuid128@Base 4.66
+ sdp_uuid_cmp@Base 4.66
+ sdp_uuid_extract@Base 4.66
+ sdp_uuid_to_proto@Base 4.66
+ sdp_uuid_to_uuid128@Base 4.66
+ str2ba@Base 4.66
+ strtoba@Base 4.66
diff --git a/debian/patches/01_lower_sink_ranking.patch b/debian/patches/01_lower_sink_ranking.patch
new file mode 100644
index 0000000..4792dbf
--- /dev/null
+++ b/debian/patches/01_lower_sink_ranking.patch
@@ -0,0 +1,13 @@
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571595
+Index: bluez-4.91/audio/gsta2dpsink.c
+===================================================================
+--- bluez-4.91.orig/audio/gsta2dpsink.c 2011-02-14 07:40:34.000000000 +1100
++++ bluez-4.91/audio/gsta2dpsink.c 2011-04-05 10:12:02.731315917 +1000
+@@ -725,6 +725,6 @@
+ 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);
+ }
+
diff --git a/debian/patches/02_disable_hal.patch b/debian/patches/02_disable_hal.patch
new file mode 100644
index 0000000..5abd6c8
--- /dev/null
+++ b/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 <martin.pitt@ubuntu.com>
+Origin: Ubuntu
+Updated by Michael Biebl <biebl@debian.org>
+Updated by Nobuhiro Iwamatsu <iwamatsu@debian.org>
+Debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599023
+
+Index: bluez-4.91/audio/telephony-maemo5.c
+===================================================================
+--- bluez-4.91.orig/audio/telephony-maemo5.c 2010-12-19 06:12:17.000000000 +1100
++++ bluez-4.91/audio/telephony-maemo5.c 2011-04-05 10:12:06.121315919 +1000
+@@ -1385,6 +1385,7 @@
+ return type == DBUS_TYPE_INVALID ? TRUE : FALSE;
+ }
+
++#if 0 /* Disable hal */
+ static void hal_battery_level_reply(DBusPendingCall *call, void *user_data)
+ {
+ DBusError err;
+@@ -1501,6 +1502,7 @@
+ dbus_message_iter_next(&array);
+ }
+ }
++#endif /* Disable hal */
+
+ static void csd_call_free(struct csd_call *call)
+ {
+@@ -1715,6 +1717,7 @@
+ dbus_message_unref(reply);
+ }
+
++#if 0 /* Disable hal */
+ static void hal_find_device_reply(DBusPendingCall *call, void *user_data)
+ {
+ DBusError err;
+@@ -1768,6 +1771,7 @@
+ done:
+ dbus_message_unref(reply);
+ }
++#endif /* Disable hal */
+
+ static void phonebook_read_reply(DBusPendingCall *call, void *user_data)
+ {
+@@ -2018,9 +2022,11 @@
+ 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);
+@@ -2077,6 +2083,7 @@
+
+ telephony_ready_ind(features, maemo_indicators, BTRH_NOT_SUPPORTED,
+ chld_str);
++#if 0 /* Disable hal */
+ if (send_method_call("org.freedesktop.Hal",
+ "/org/freedesktop/Hal/Manager",
+ "org.freedesktop.Hal.Manager",
+@@ -2085,7 +2092,7 @@
+ DBUS_TYPE_STRING, &battery_cap,
+ DBUS_TYPE_INVALID) < 0)
+ error("Unable to send HAL method call");
+-
++#endif /* Disable hal */
+ return 0;
+ }
+
+Index: bluez-4.91/audio/telephony-maemo6.c
+===================================================================
+--- bluez-4.91.orig/audio/telephony-maemo6.c 2011-03-29 19:53:53.000000000 +1100
++++ bluez-4.91/audio/telephony-maemo6.c 2011-04-05 10:12:06.121315919 +1000
+@@ -1369,6 +1369,7 @@
+ return type == DBUS_TYPE_INVALID ? TRUE : FALSE;
+ }
+
++#if 0 /* Disable hal */
+ static void hal_battery_level_reply(DBusPendingCall *call, void *user_data)
+ {
+ DBusError err;
+@@ -1484,6 +1485,7 @@
+ dbus_message_iter_next(&array);
+ }
+ }
++#endif /* Disable hal */
+
+ static void csd_call_free(struct csd_call *call)
+ {
+@@ -1834,9 +1836,11 @@
+ 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);
+@@ -1855,6 +1859,7 @@
+ 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;
+@@ -1905,6 +1910,8 @@
+ remove_pending(call);
+ }
+
++#endif /* Disable hal */
++
+ int telephony_init(void)
+ {
+ const char *battery_cap = "battery";
+@@ -1944,6 +1951,7 @@
+
+ telephony_ready_ind(features, maemo_indicators, BTRH_NOT_SUPPORTED,
+ chld_str);
++#if 0 /* Disable hal */
+ if (send_method_call("org.freedesktop.Hal",
+ "/org/freedesktop/Hal/Manager",
+ "org.freedesktop.Hal.Manager",
+@@ -1952,7 +1960,7 @@
+ DBUS_TYPE_STRING, &battery_cap,
+ DBUS_TYPE_INVALID) < 0)
+ error("Unable to send HAL method call");
+-
++#endif
+ return 0;
+ }
+
+Index: bluez-4.91/audio/telephony-ofono.c
+===================================================================
+--- bluez-4.91.orig/audio/telephony-ofono.c 2011-03-29 19:53:53.000000000 +1100
++++ bluez-4.91/audio/telephony-ofono.c 2011-04-05 10:12:06.121315919 +1000
+@@ -1350,6 +1350,7 @@
+ return TRUE;
+ }
+
++#if 0 /* Disable hal */
+ static void hal_battery_level_reply(DBusPendingCall *call, void *user_data)
+ {
+ DBusMessage *reply;
+@@ -1533,6 +1534,7 @@
+ dbus_message_unref(reply);
+ remove_pending(call);
+ }
++#endif /* Disable hal */
+
+ static void handle_service_connect(DBusConnection *conn, void *user_data)
+ {
+@@ -1581,6 +1583,7 @@
+
+ watches = g_slist_prepend(watches, GUINT_TO_POINTER(watch));
+
++#if 0 /* Disable hal */
+ ret = send_method_call("org.freedesktop.Hal",
+ "/org/freedesktop/Hal/Manager",
+ "org.freedesktop.Hal.Manager",
+@@ -1590,7 +1593,7 @@
+ DBUS_TYPE_INVALID);
+ if (ret < 0)
+ return ret;
+-
++#endif
+ DBG("telephony_init() successfully");
+
+ return ret;
diff --git a/debian/patches/enable_cg2900_on_upstream_4.91.patch b/debian/patches/enable_cg2900_on_upstream_4.91.patch
new file mode 100644
index 0000000..02b84c4
--- /dev/null
+++ b/debian/patches/enable_cg2900_on_upstream_4.91.patch
@@ -0,0 +1,88 @@
+diff -Naupr bluez-4.91/tools/hciattach.c bluez-4.91.cg2900/tools/hciattach.c
+--- bluez-4.91/tools/hciattach.c 2010-11-30 15:50:48.000000000 +0100
++++ bluez-4.91.cg2900/tools/hciattach.c 2011-05-20 10:47:45.849685569 +0200
+@@ -1066,6 +1066,11 @@ struct uart_t uart[] = {
+ { "texasalt", 0x0000, 0x0000, HCI_UART_LL, 115200, 115200,
+ FLOW_CTL, DISABLE_PM, NULL, texasalt, NULL },
+
++ /* ST-Ericsson CG2900 GPS FM Bluetooth combo controller */
++ { "cg2900", 0x0000, 0x0000, HCI_UART_STE, 115200, 115200,
++ FLOW_CTL, DISABLE_PM, NULL, NULL },
++
++
+ /* ST Microelectronics minikits based on STLC2410/STLC2415 */
+ { "st", 0x0000, 0x0000, HCI_UART_H4, 57600, 115200,
+ FLOW_CTL, DISABLE_PM, NULL, st },
+@@ -1157,10 +1162,10 @@ static struct uart_t * get_by_type(char
+ }
+
+ /* Initialize UART driver */
+-static int init_uart(char *dev, struct uart_t *u, int send_break, int raw)
++static int init_uart(char *dev, struct uart_t *u, int send_break, int raw, int line_disc)
+ {
+ struct termios ti;
+- int fd, i;
++ int fd;
+ unsigned long flags = 0;
+
+ if (raw)
+@@ -1217,8 +1222,7 @@ static int init_uart(char *dev, struct u
+ }
+
+ /* Set TTY to N_HCI line discipline */
+- i = N_HCI;
+- if (ioctl(fd, TIOCSETD, &i) < 0) {
++ if (ioctl(fd, TIOCSETD, &line_disc) < 0) {
+ perror("Can't set line discipline");
+ return -1;
+ }
+@@ -1243,7 +1247,7 @@ static void usage(void)
+ {
+ printf("hciattach - HCI UART driver initialization utility\n");
+ printf("Usage:\n");
+- printf("\thciattach [-n] [-p] [-b] [-r] [-t timeout] [-s initial_speed] <tty> <type | id> [speed] [flow|noflow] [bdaddr]\n");
++ printf("\thciattach [-n] [-p] [-a line_disc_nr] [-b] [-r] [-t timeout] [-s initial_speed] <tty> <type | id> [speed] [flow|noflow] [bdaddr]\n");
+ printf("\thciattach -l\n");
+ }
+
+@@ -1252,6 +1256,7 @@ int main(int argc, char *argv[])
+ struct uart_t *u = NULL;
+ int detach, printpid, raw, opt, i, n, ld, err;
+ int to = 10;
++ int line_disc = N_HCI;
+ int init_speed = 0;
+ int send_break = 0;
+ pid_t pid;
+@@ -1264,8 +1269,11 @@ int main(int argc, char *argv[])
+ printpid = 0;
+ raw = 0;
+
+- while ((opt=getopt(argc, argv, "bnpt:s:lr")) != EOF) {
++ while ((opt=getopt(argc, argv, "bnpt:s:lra:")) != EOF) {
+ switch(opt) {
++ case 'a':
++ line_disc = atoi(optarg);
++ break;
+ case 'b':
+ send_break = 1;
+ break;
+@@ -1381,7 +1389,7 @@ int main(int argc, char *argv[])
+ alarm(to);
+ bcsp_max_retries = to;
+
+- n = init_uart(dev, u, send_break, raw);
++ n = init_uart(dev, u, send_break, raw, line_disc);
+ if (n < 0) {
+ perror("Can't initialize device");
+ exit(1);
+diff -Naupr bluez-4.91/tools/hciattach.h bluez-4.91.cg2900/tools/hciattach.h
+--- bluez-4.91/tools/hciattach.h 2010-11-30 15:50:48.000000000 +0100
++++ bluez-4.91.cg2900/tools/hciattach.h 2011-05-20 10:47:48.199685573 +0200
+@@ -39,6 +39,7 @@
+ #define HCI_UART_H4DS 3
+ #define HCI_UART_LL 4
+ #define HCI_UART_ATH3K 5
++#define HCI_UART_STE 6
+
+ #define HCI_UART_RAW_DEVICE 0
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2126886
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+01_lower_sink_ranking.patch
+02_disable_hal.patch
+enable_cg2900_on_upstream_4.91.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..757f301
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,104 @@
+#!/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/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-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
diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides
new file mode 100644
index 0000000..62af592
--- /dev/null
+++ b/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
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source_bluez.py b/debian/source_bluez.py
new file mode 100644
index 0000000..b265f3f
--- /dev/null
+++ b/debian/source_bluez.py
@@ -0,0 +1,40 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+'''apport package hook for bluez
+
+(c) 2010 Free Software Foundation
+Author:
+Baptiste Mille-Mathias <baptistem@src.gnome.org>
+
+'''
+from apport.hookutils import *
+import re
+
+def add_info(report, ui):
+ report['syslog'] = recent_syslog(re.compile(r'bluetooth', re.IGNORECASE))
+ attach_hardware(report)
+ if command_available('hciconfig'):
+ report['hciconfig'] = command_output('hciconfig')
+ if command_available('rfkill'):
+ report['rfkill'] = command_output(['rfkill','list'])
+ if command_available('getfacl'):
+ report['getfacl'] = command_output(['getfacl','/dev/rfkill'])
+
+ interesting_modules = ('btusb', 'rfcomm', 'sco', 'bnep', 'l2cap', 'bluetooth')
+ interesting_modules_loaded = []
+
+ for line in open('/proc/modules'):
+ module = line.split()[0]
+ if module in interesting_modules:
+ interesting_modules_loaded.append(module)
+
+ if interesting_modules_loaded:
+ report['InterestingModules'] = ' '.join(interesting_modules_loaded)
+
+ ui.information("""Your bug report will be processed in few seconds.
+If you can reproduce it, please follow the next steps:
+ - Open a new terminal
+ - Run the command "sudo hcidump -XYt > $HOME/hci.log"
+ - Reproduce the actions until the error happens
+ - On the terminal, press Ctrl+C to stop hcidump.
+ - Attach the file hci.log to the bug report.""")
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0f3e3b7
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.kernel.org/pub/linux/bluetooth/ .*bluez-([.\d]+)\.tar\.gz