--- /dev/null
+kinect-audio-setup for Debian
+-----------------------------
+
+kinect-audio-setup will download the actual firmware at install time,
+this is to avoid the problem of distributing the binary blob from the
+Microsoft Kinect SDK.
+
+For the device to work out of the box after kinect-audio-setup installation, a
+recent version of pulseaudio is needed, the profile for the Kinect has been
+added in commit e93b327:
+http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=e93b32744c1bafb33d5f3ee40b422bab2d017ae1
+
+pulseaudio 1.0 will include all the needed bits.
+
+ -- Antonio Ospite <ospite@studenti.unina.it> Sun, 11 Sep 2011 20:47:50 +0200
--- /dev/null
+kinect-audio-setup (0.2-3) unstable; urgency=low
+
+ * debian/kinect-audio-setup.lintian-overrides: move from debian/lintian
+ * debian/install: drop debian/lintian/kinect-audio-setup
+ * debian/control: switch to debhelper >= 9
+ * debian/gbp.conf: explicitly disable pristine-tar
+ * debian/control: specify the debian package branch in Vcs-Git
+ * debian/control: bump Standards-Version to 3.9.5
+ * debian/copyright: update to Copyright-Format 1.0
+ * debian/watch: add a watch file
+ * debian/rules: remove some unneeded comments
+ * debian/control: fix short and long descriptions
+ * debian/po/templates.pot: fill in some info in the header
+ * debian/po/it.po: add Italian translation for the debconf dialogs
+
+ -- Antonio Ospite <ospite@studenti.unina.it> Tue, 19 Nov 2013 17:49:54 +0100
+
+kinect-audio-setup (0.2-2) unstable; urgency=low
+
+ * [a3661fb] debian: depend on p7zip-full >= 9.20
+ * [cb6e177] debian: use debconf to ask if the user accepts the MSK4W EULA
+
+ -- Antonio Ospite <ospite@studenti.unina.it> Fri, 03 Feb 2012 13:02:26 +0100
+
+kinect-audio-setup (0.2-1) unstable; urgency=low
+
+ * [bb49f29] kinect_upload_fw: disable some compiler flags
+ * [061cb66] kinect_upload_fw: fix generating endian.h before compiling
+ kinect_upload_fw
+ * [d377579] kinect_upload_fw: fix a mingw32 compilation error
+ * [15a7d9a] kinect_upload_fw: fix reading the firmware file on Windows
+ * [e1bc8be] Update .gitignore
+ * [54b0fdd] Add info about building kinect_upload_fw for MS Windows
+ * [863d1b3] kinect_upload_fw: specify libraries after objects in the linking
+ command
+ * [f277611] kinect_fetch_fw: mention wget in the internal documentation
+ * [8184ae6] kinect_fetch_fw: download the latest KinectSDK-v1.0-beta2-x86.msi
+ * [c8bf462] kinect_fetch_fw: make the script less verbose when invoking 7z
+ * [73ef2c4] README: fix a typo and add some clarifications
+ * [aaf68f5] README: tell where we are getting the actual firmware from
+ * [24c4089] kinect_fetch_fw: tell where we are getting the firmware from
+ * [41a7237] Add ChangeLog for v0.2
+ * [7983d17] debian: import upstream version v0.2
+ * [c4496ae] debian: fix debian-changelog-line-too-long lintian warnings
+ * [a9c382f] debian/control: tell where the UAC firmare if downloaded from
+
+ -- Antonio Ospite <ospite@studenti.unina.it> Sun, 27 Nov 2011 13:30:53 +0100
+
+kinect-audio-setup (0.1-1) unstable; urgency=low
+
+ * Initial release (Closes: #645072)
+
+ -- Antonio Ospite <ospite@studenti.unina.it> Wed, 12 Oct 2011 12:51:53 +0200
--- /dev/null
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input critical kinect-audio-setup/accept_eula || true
+db_go
--- /dev/null
+Source: kinect-audio-setup
+Section: contrib/sound
+Priority: extra
+Maintainer: Antonio Ospite <ospite@studenti.unina.it>
+Build-Depends: debhelper (>= 9), po-debconf, libusb-1.0-0-dev, pkg-config
+Standards-Version: 3.9.5
+Homepage: http://git.ao2.it/kinect-audio-setup.git/
+Vcs-Git: git://git.ao2.it/kinect-audio-setup.git -b debian
+Vcs-Browser: http://git.ao2.it/kinect-audio-setup.git/
+
+Package: kinect-audio-setup
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, udev, wget, p7zip-full (>= 9.20)
+Description: helpers to setup audio input from the Microsoft Kinect sensor
+ When the Kinect is first plugged in the USB port it shows up as
+ a generic USB device with a bulk endpoint; after uploading a certain
+ firmware a reenumeration takes place and a USB Audio Class device
+ becomes available.
+ .
+ kinect-audio-setup provides tools to download the firmware off the net
+ at installation time —since the firmware is not redistributable—, and
+ it sets up udev rules to call the firmware loader when the device is
+ plugged in to finally get the USB Audio Class device.
+ .
+ The UAC firmware is downloaded from the Microsoft Kinect SDK at
+ http://www.kinectforwindows.org, the license of the SDK can be found at
+ http://www.kinectforwindows.org/download/EULA.htm
--- /dev/null
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: kinect-audio-setup
+Source: http://git.ao2.it/kinect-audio-setup.git
+
+Files: kinect_upload_fw/*
+Copyright: 2011 Drew Fisher <drew.m.fisher@gmail.com>
+License: BSD-2-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL DREW FISHER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+ .
+ The views and conclusions contained in the software and documentation are
+ those of the authors and should not be interpreted as representing official
+ policies, either expressed or implied, of Drew Fisher.
+
+Files: debian/*
+Copyright: 2011 Antonio Ospite <ospite@studenti.unina.it>
+License: GPL-2+
+ This package 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 2 of the License, or
+ (at your option) any later version.
+ .
+ This package 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 <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+Files: kinect_fetch_fw
+Copyright: 2011 Antonio Ospite <ospite@studenti.unina.it>
+License: WTFPL
+ This program is free software. It comes without any warranty, to
+ the extent permitted by applicable law. You can redistribute it
+ and/or modify it under the terms of the Do What The Fuck You Want
+ To Public License, Version 2, as published by Sam Hocevar. See
+ http://sam.zoy.org/wtfpl/COPYING for more details.
--- /dev/null
+[DEFAULT]
+debian-branch = debian
+upstream-branch = master
+upstream-tag = v%(version)s
+pristine-tar = False
--- /dev/null
+kinect_fetch_fw /usr/sbin
--- /dev/null
+# lib/firmware/kinect/ is indeed empty at package installation time, but this
+# is on purpose: the upstream Makefile creates the dir as a placeholder, and
+# then the kinect_fetch_fw script will copy the actual firmware there after
+# the user accepted the Microsoft EULA.
+kinect-audio-setup: package-contains-empty-directory lib/firmware/kinect/
--- /dev/null
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH KINECT_FETCH_FW 8 "September 11, 2011"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+kinect_fetch_fw \- download the Usb Audio Class firmware for the Kinect
+.SH SYNOPSIS
+.B kinect_fetch_fw <firmware destdir> [<path of kinect_upload_fw binary>]
+.SH DESCRIPTION
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBkinect_fetch_fw\fP is a program to download the Usb Audio Class device
+firmware for the Microsoft Kinect, and to set up udev rules enabling
+\fBkinect_upload_fw\fP to be called automatically when the device is detected.
+.SH SEE ALSO
+.BR kinect_upload_fw (8)
+.br
+.SH AUTHOR
+kinect_fetch_fw was written by Antonio Ospite <ospite@studenti.unina.it>.
+.PP
+This manual page was written by Antonio Ospite <ospite@studenti.unina.it>,
+for the Debian project (and may be used by others).
--- /dev/null
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH KINECT_UPLOAD_FW 8 "September 11, 2011"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+kinect_upload_fw \- Kinect firmware uploader to have an Usb Audio Class device
+.SH SYNOPSIS
+.B kinect_upload_fw <firmware file>
+.SH DESCRIPTION
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBkinect_upload_fw\fP is a program that uploads the Usb Audio Class device
+firmware to a Microsoft Kinect sensor device.
+.PP
+Before the firmware is uploaded the device shows up as a generic usb device
+with a bulk endpoint, after the firmware upload a reenumeration takes place
+and a Usb Audio Class device becomes available.
+.SH SEE ALSO
+.BR kinect_fetch_fw (8)
+.br
+.SH AUTHOR
+kinect_upload_fw was written by Drew Fisher <drew.m.fisher@gmail.com>.
+.PP
+This manual page was written by Antonio Ospite <ospite@studenti.unina.it>,
+for the Debian project (and may be used by others).
--- /dev/null
+debian/kinect_fetch_fw.8
+debian/kinect_upload_fw.8
--- /dev/null
+[type: gettext/rfc822deb] templates
--- /dev/null
+# Italian (Italy) kinect-audio-setup debconf translation
+# Copyright (C) 2013 Antonio Ospite <ospite@studenti.unina.it>
+# This file is distributed under the same license as the kinect-audio-setup package.
+# Antonio Ospite <ospite@studenti.unina.it>
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: kinect-audio-setup\n"
+"Report-Msgid-Bugs-To: kinect-audio-setup@packages.debian.org\n"
+"POT-Creation-Date: 2012-02-03 11:51+0100\n"
+"PO-Revision-Date: 2013-11-19 17:31+0100\n"
+"Last-Translator: Antonio Ospite <ospite@studenti.unina.it>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid "Do you accept the Microsoft KinectForWindows EULA?"
+msgstr "Accetti la EULA di Microsoft KinectForWindows?"
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid ""
+"In order to fetch the binary firmware needed by this package you need to "
+"agree to the EULA of the Microsoft KinectForWindows SDK:"
+msgstr ""
+"Per poter scaricare il firmware binario richiesto da questo pacchetto devi "
+"accettare la EULA dell'SDK Microsoft KinectForWindows:"
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid "http://www.kinectforwindows.org/download/EULA.htm"
+msgstr "http://www.kinectforwindows.org/download/EULA.htm"
+
+#. Type: note
+#. Description
+#: ../templates:2001
+msgid "EULA not accepted"
+msgstr "EULA non accettata"
+
+#. Type: note
+#. Description
+#: ../templates:2001
+msgid ""
+"You need to accept the EULA of Microsoft KinectForWindows SDK in order to "
+"fetch the binary firmware needed by this package."
+msgstr ""
+"Devi accettare la EULA dell'SDK Microsoft KinectForWindows per poter "
+"scaricare il firmware binario richiesto da questo pacchetto."
+
+#. Type: note
+#. Description
+#: ../templates:2001
+msgid ""
+"You can do this later by calling:\n"
+" dpkg-reconfigure kinect-audio-setup"
+msgstr ""
+"Puoi fare ciò in seguito eseguendo:\n"
+" dpkg-reconfigure kinect-audio-setup"
--- /dev/null
+# kinect-audio-setup debconf template
+# Copyright (C) 2013 Antonio Ospite <ospite@studenti.unina.it>
+# This file is distributed under the same license as the kinect-audio-setup package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: kinect-audio-setup\n"
+"Report-Msgid-Bugs-To: kinect-audio-setup@packages.debian.org\n"
+"POT-Creation-Date: 2012-02-03 11:51+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid "Do you accept the Microsoft KinectForWindows EULA?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid ""
+"In order to fetch the binary firmware needed by this package you need to "
+"agree to the EULA of the Microsoft KinectForWindows SDK:"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid "http://www.kinectforwindows.org/download/EULA.htm"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:2001
+msgid "EULA not accepted"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:2001
+msgid ""
+"You need to accept the EULA of Microsoft KinectForWindows SDK in order to "
+"fetch the binary firmware needed by this package."
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:2001
+msgid ""
+"You can do this later by calling:\n"
+" dpkg-reconfigure kinect-audio-setup"
+msgstr ""
--- /dev/null
+#!/bin/sh
+# postinst script for kinect-audio-setup
+#
+# see: dh_installdeb(1)
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+ configure)
+ db_get kinect-audio-setup/accept_eula
+ if [ "$RET" = "false" ]; then
+ db_input high kinect-audio-setup/eula_not_accepted || true
+ db_go
+ else
+ kinect_fetch_fw /lib/firmware/kinect /usr/sbin/kinect_upload_fw 1>&2 || true
+ udevadm control --reload-rules || true
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
+#!/bin/sh
+# postrm script for kinect-audio-setup
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+ purge)
+ rm -rf /lib/firmware/kinect
+ # Because piuparts complains about /lib/firmware still there
+ rmdir --ignore-fail-on-non-empty -p /lib/firmware/
+
+ if [ -e /usr/share/debconf/confmodule ];
+ then
+ . /usr/share/debconf/confmodule
+ db_purge
+ fi
+ ;;
+
+ remove|upgrade|failed-upgrade|abort-upgrade|abort-install)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
+#!/usr/bin/make -f
+
+%:
+ PREFIX=/usr dh $@
--- /dev/null
+3.0 (quilt)
--- /dev/null
+Template: kinect-audio-setup/accept_eula
+Type: boolean
+Default: false
+_Description: Do you accept the Microsoft KinectForWindows EULA?
+ In order to fetch the binary firmware needed by this package you need
+ to agree to the EULA of the Microsoft KinectForWindows SDK:
+ .
+ http://www.kinectforwindows.org/download/EULA.htm
+
+Template: kinect-audio-setup/eula_not_accepted
+Type: note
+_Description: EULA not accepted
+ You need to accept the EULA of Microsoft KinectForWindows SDK in order
+ to fetch the binary firmware needed by this package.
+ .
+ You can do this later by calling:
+ dpkg-reconfigure kinect-audio-setup
--- /dev/null
+version=3
+
+opts=downloadurlmangle=s/shortlog\/refs\/tags\/(v[\d\.]+)/snapshot\/$1.tar.gz/,\
+filenamemangle=s/.*v([\d\.]+)$/kinect-audio-setup-$1.tar.gz/ \
+ http://git.ao2.it/kinect-audio-setup.git/tags ^.*v([\d\.]+)