From: Antonio Ospite Date: Fri, 6 Dec 2013 16:52:09 +0000 (+0100) Subject: Merge tag 'v0.3' into debian X-Git-Tag: debian/0.3-1~7 X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/commitdiff_plain/8d323104209365362b9262d3be5b70a0982f5908?hp=d1e5053b659a5ec31e577443f2b44b91009f691a Merge tag 'v0.3' into debian Release v0.3 --- diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..5f5ed87 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,15 @@ +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 Sun, 11 Sep 2011 20:47:50 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ad263e3 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,53 @@ +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 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 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 Sun, 27 Nov 2011 13:30:53 +0100 + +kinect-audio-setup (0.1-1) unstable; urgency=low + + * Initial release (Closes: #645072) + + -- Antonio Ospite Wed, 12 Oct 2011 12:51:53 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/config b/debian/config new file mode 100755 index 0000000..06a4425 --- /dev/null +++ b/debian/config @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_input critical kinect-audio-setup/accept_eula || true +db_go diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..ab9dd17 --- /dev/null +++ b/debian/control @@ -0,0 +1,27 @@ +Source: kinect-audio-setup +Section: contrib/sound +Priority: extra +Maintainer: Antonio Ospite +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 diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c4f3468 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,61 @@ +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 +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 +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 + . + 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 +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. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..7ac6ffb --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,5 @@ +[DEFAULT] +debian-branch = debian +upstream-branch = master +upstream-tag = v%(version)s +pristine-tar = False diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..de33cc8 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +kinect_fetch_fw /usr/sbin diff --git a/debian/kinect-audio-setup.lintian-overrides b/debian/kinect-audio-setup.lintian-overrides new file mode 100644 index 0000000..4494df7 --- /dev/null +++ b/debian/kinect-audio-setup.lintian-overrides @@ -0,0 +1,5 @@ +# 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/ diff --git a/debian/kinect_fetch_fw.8 b/debian/kinect_fetch_fw.8 new file mode 100644 index 0000000..6af2cd7 --- /dev/null +++ b/debian/kinect_fetch_fw.8 @@ -0,0 +1,36 @@ +.\" 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 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 [] +.SH DESCRIPTION +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\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 . +.PP +This manual page was written by Antonio Ospite , +for the Debian project (and may be used by others). diff --git a/debian/kinect_upload_fw.8 b/debian/kinect_upload_fw.8 new file mode 100644 index 0000000..ed02980 --- /dev/null +++ b/debian/kinect_upload_fw.8 @@ -0,0 +1,39 @@ +.\" 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 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 +.SH DESCRIPTION +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\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 . +.PP +This manual page was written by Antonio Ospite , +for the Debian project (and may be used by others). diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..cd10218 --- /dev/null +++ b/debian/manpages @@ -0,0 +1,2 @@ +debian/kinect_fetch_fw.8 +debian/kinect_upload_fw.8 diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 0000000..cef83a3 --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates diff --git a/debian/po/it.po b/debian/po/it.po new file mode 100644 index 0000000..f7f0af1 --- /dev/null +++ b/debian/po/it.po @@ -0,0 +1,65 @@ +# Italian (Italy) kinect-audio-setup debconf translation +# Copyright (C) 2013 Antonio Ospite +# This file is distributed under the same license as the kinect-audio-setup package. +# Antonio Ospite +# +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 \n" +"Language-Team: LANGUAGE \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" diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 0000000..b10a19c --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,60 @@ +# kinect-audio-setup debconf template +# Copyright (C) 2013 Antonio Ospite +# This file is distributed under the same license as the kinect-audio-setup package. +# FIRST AUTHOR , 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 \n" +"Language-Team: LANGUAGE \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 "" diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..b51bed0 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,36 @@ +#!/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 diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..ea092fa --- /dev/null +++ b/debian/postrm @@ -0,0 +1,35 @@ +#!/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 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..284d9e9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + PREFIX=/usr dh $@ 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/templates b/debian/templates new file mode 100644 index 0000000..d5cb6ab --- /dev/null +++ b/debian/templates @@ -0,0 +1,17 @@ +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 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..b9ca162 --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +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\.]+)