--- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/bluetooth-touch-android.conf +++ bluetooth-touch-0.3.3+16.04.20160201/debian/bluetooth-touch-android.conf @@ -0,0 +1,4 @@ +# bluetooth-touch-android - Android Bluetooth initialization +# +# Bluetooth initialization upstart job to be overriden by +# a device tarball --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/bluetooth-touch-flo.conf +++ bluetooth-touch-0.3.3+16.04.20160201/debian/bluetooth-touch-flo.conf @@ -0,0 +1,11 @@ +# bluetooth-touch-flo - Bluetooth initialization +# +# Bluetooth initialization job, specifically for the Nexus 7 2013 device (flo), +# starts the hciattach job in the android container to run hci_qcomm_init, +# which will write the bluetooth address and bring up the chip. +# + +description "Nexus 7 (flo) bluetooth initialization" + +task +exec /usr/share/bluetooth-touch/flo --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/bluetooth-touch-grouper.conf +++ bluetooth-touch-0.3.3+16.04.20160201/debian/bluetooth-touch-grouper.conf @@ -0,0 +1,13 @@ +# bluetooth-touch-grouper - Bluetooth initialization +# +# Bluetooth initialization job, specifically for the Nexus 7 device (grouper), +# uses brcm-patchram-plus to patch firmware, set line discipline and write +# the bluetooth address for the device. +# + +description "Nexus 7 bluetooth initialization" + +stop on stopping bluetooth + +expect fork +exec /usr/share/bluetooth-touch/grouper --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/bluetooth-touch-maguro.conf +++ bluetooth-touch-0.3.3+16.04.20160201/debian/bluetooth-touch-maguro.conf @@ -0,0 +1,13 @@ +# bluetooth-touch-maguro - Bluetooth initialization +# +# Bluetooth initialization job, specifically for the Galaxy Nexus device +# (maguro), uses brcm-patchram-plus to patch firmware, set line discipline and +# write the bluetooth address for the device. +# + +description "Galaxy Nexus bluetooth initialization" + +stop on stopping bluetooth + +expect fork +exec /usr/share/bluetooth-touch/maguro --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/bluetooth-touch-mako.conf +++ bluetooth-touch-0.3.3+16.04.20160201/debian/bluetooth-touch-mako.conf @@ -0,0 +1,13 @@ +# bluetooth-touch-mako - Bluetooth initialization +# +# Bluetooth initialization job, specifically for the Nexus 4 device (mako), +# starts the hciattach job in the android container to run hci_qcomm_init, +# which will write the bluetooth address and bring up the chip. +# + +description "Nexus 4 bluetooth initialization" + +stop on stopping bluetooth + +task +exec /usr/share/bluetooth-touch/mako --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/bluetooth-touch.conf +++ bluetooth-touch-0.3.3+16.04.20160201/debian/bluetooth-touch.conf @@ -0,0 +1,23 @@ +# Bluetooth device initialization. +# +# This is a generic script for starting device-specific jobs for bluetooth +# initialization. +# + +description "generic bluetooth initialization" + +start on starting bluetooth + +task + +script + if [ -x `which getprop` ]; then + device=`getprop ro.product.device` + if [ -e /etc/init/bluetooth-touch-$device.conf ]; then + start bluetooth-touch-$device + else + start bluetooth-touch-android + fi + fi +end script + --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/bluetooth-touch.install +++ bluetooth-touch-0.3.3+16.04.20160201/debian/bluetooth-touch.install @@ -0,0 +1,4 @@ +debian/bluetooth-touch*.conf etc/init/ +brcm_patchram_plus usr/bin/ +40-brcm_patchram_plus-disable var/lib/lxc/android/pre-start.d/ +scripts/* usr/share/bluetooth-touch/ --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/bluetooth-touch.service +++ bluetooth-touch-0.3.3+16.04.20160201/debian/bluetooth-touch.service @@ -0,0 +1,13 @@ +[Unit] +Description=Bluetooth init for Touch devices +Before=bluetooth.service +ConditionFileIsExecutable=/usr/bin/getprop + +[Service] +# Set Type=forking even for oneshot scripts as some are forking. +# This enables to have pre-start always to be executed before bluetooth.service +Type=forking +ExecStart=/bin/sh -ec 'SCRIPT=/usr/share/bluetooth-touch/`getprop ro.product.device`; [ \( ! -x $SCRIPT \) -o \( ! -f $SCRIPT \) ] || exec $SCRIPT' + +[Install] +WantedBy=bluetooth.target --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/changelog +++ bluetooth-touch-0.3.3+16.04.20160201/debian/changelog @@ -0,0 +1,73 @@ +bluetooth-touch (0.3.3+16.04.20160201-0ubuntu1) xenial; urgency=medium + + * Correctly check for upstart job configuration file + + -- Simon Fels Mon, 01 Feb 2016 11:17:45 +0000 + +bluetooth-touch (0.3.3+16.04.20160118-0ubuntu1) xenial; urgency=medium + + [ Simon Fels ] + * Add citrain support + * Add citrain support removed: debian/source/ debian/source/format + added: .bzr-builddeb/ .bzr-builddeb/default.conf + * Add option to override upstart job for Bluetooth initialization + added: debian/bluetooth-touch-android.conf + * Drop unwanted bzr-builddeb configuration removed: debian/bzr- + builddeb.conf + + -- Thomas Voß Mon, 18 Jan 2016 15:04:19 +0000 + +bluetooth-touch (0.3.2) wily; urgency=medium + + * Update the systemd job to check that $SCRIPT is a regular file before + attempting to run it. (LP: #1437671) + + -- Christopher James Halse Rogers Mon, 19 Oct 2015 10:17:56 +1100 + +bluetooth-touch (0.3.1) vivid; urgency=medium + + * Adding missing +x to the scripts, otherwise every bluetooth touch + job will fail + + -- Ricardo Salveti de Araujo Fri, 16 Jan 2015 18:34:16 -0200 + +bluetooth-touch (0.3.0) vivid; urgency=medium + + * Separate upstart jobs content in independent scripts installed in + usr/share/bluetooth-touch. + * Change upstart jobs to point at those scripts. + * Add a systemd unit running only on Touch executing the right script + depending on the platform. + * Add some COPYING file to precise license info of those scripts + * Bump Standards-Version. + + -- Didier Roche Thu, 15 Jan 2015 12:14:18 +0100 + +bluetooth-touch (0.2.3) utopic; urgency=medium + + * Use dpkg-buildflags when compiling, ensuring all hardening flags are used + and debug symbols are available. + + -- Steve Langasek Thu, 24 Jul 2014 11:43:47 -0700 + +bluetooth-touch (0.2.2) trusty; urgency=medium + + * add upstart job for flo device + + -- Oliver Grawert Wed, 26 Feb 2014 20:20:00 +0100 + +bluetooth-touch (0.2.1) saucy; urgency=low + + * 40-brcm_patchram_plus-disable: Disable brcm_patchram_plus in the Android + container, so as not to interfere with our own copy that runs in the rootfs. + (LP: #1236247) + + -- Mathieu Trudel-Lapierre Fri, 11 Oct 2013 10:26:18 -0400 + +bluetooth-touch (0.2.0) saucy; urgency=low + + * Rename Source and Binary to bluetooth-touch to be more generic. + * Add/revise upstart jobs for maguro, mako and grouper. + * debian/source/format: we're using source format 3.0 (native). + + -- Mathieu Trudel-Lapierre Tue, 13 Aug 2013 16:42:48 -0400 --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/compat +++ bluetooth-touch-0.3.3+16.04.20160201/debian/compat @@ -0,0 +1 @@ +9 --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/control +++ bluetooth-touch-0.3.3+16.04.20160201/debian/control @@ -0,0 +1,17 @@ +Source: bluetooth-touch +Section: utils +Priority: optional +Maintainer: Ubuntu Developers +Build-Depends: debhelper (>= 9), dh-systemd +Standards-Version: 3.9.6 +Vcs-Bzr: lp:bluetooth-touch + +Package: bluetooth-touch +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, rfkill +Conflicts: brcm-patchram-plus-nexus7 +Replaces: brcm-patchram-plus-nexus7 +Description: Firmware patching utility and config for bluetooth + Different devices use different bluetooth chipsets which may require + various methods to patch firmware, write the bluetooth address, or + set power management. --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/copyright +++ bluetooth-touch-0.3.3+16.04.20160201/debian/copyright @@ -0,0 +1,40 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: brcm_patchram_plus.c +Source: http://code.google.com/p/broadcom-bluetooth/source/browse/brcm_patchram_plus.c + +Files: debian/* +Copyright: 2013-2015 Canonical Ltd. +License: GPL-3 + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General Public + License version 2 can be found in "/usr/share/common-licenses/GPL-3". + +Files: brcm_patchram_plus.c +Copyright: 2009-2011 Broadcom Corporation +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache License version 2.0 + can be found in "/usr/share/common-licenses/Apache-2.0". --- bluetooth-touch-0.3.3+16.04.20160201.orig/debian/rules +++ bluetooth-touch-0.3.3+16.04.20160201/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +CFLAGS := $(shell dpkg-buildflags --get CFLAGS) +CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) +LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) + +%: + dh $@ --with systemd + +override_dh_auto_clean: + rm brcm_patchram_plus || true + +override_dh_auto_build: + gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o brcm_patchram_plus brcm_patchram_plus.c + +override_dh_install: + dh_install + chmod 755 debian/bluetooth-touch/var/lib/lxc/android/pre-start.d/40-brcm_patchram_plus-disable