--- madfuload-1.2.orig/debian/README.source +++ madfuload-1.2/debian/README.source @@ -0,0 +1,4 @@ +See /usr/share/doc/quilt/README.source + +Note that the patch system alters the configure files and you will need +to run 'autoreconf' to regenerate the make system prior to building. --- madfuload-1.2.orig/debian/copyright +++ madfuload-1.2/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Free Ekanayaka on +Wed, 21 Mar 2007 20:34:04 +0100. + +It was downloaded from http://usb-midi-fw.sourceforge.net/ + +The firmware files (*.bin) are copyrighted by M-Audio, and can be used +and redistributed only as part of this package. Since there is no +freely available source code (e.g. under the GPL) for the firmware, +this firmware must be considered non-free. + +All other files are distributed under the following license: + +Copyright (c) 2003-2006 Clemens Ladisch + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +Alternatively, this software may be distributed and/or modified 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. + +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL file. --- madfuload-1.2.orig/debian/madfuload.1 +++ madfuload-1.2/debian/madfuload.1 @@ -0,0 +1,92 @@ +.\" +.\" 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 2 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, write to the Free Software +.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +.\" +.\" +.TH MADFULOAD 1 "AUGUST 20, 2009" "" "" + +.SH NAME +madfuload \- Device firmware loader utility for M-Audio DFU devices +.SH SYNOPSIS +.B madfuload +[ \fIoption\fR ] ... +.SH DESCRIPTION +.B madfuload +is used to download firmware files to M-Audio DFU devices. These devices +require a firmware download before an operating system driver (e.g. ALSA's +snd-usb-audio) can access them. +.PP +Supported devices: +.PP +.RS + - Audiophile + - Sonica + - Ozone + - MobilePre USB (some newer models work without the loader) + - Transit +.RE +.PP +The loader is not required for some newer models of the above devices, +like the Ozone Academic. +.SH OPTIONS +.TP +.B -h, --help +Gives a list of possible options. +.TP +.B -V, --version +Prints the version number of the tool. +.TP +.BI -f " , " --firmware= "" +File containing firmware to load. +.TP +.BI -D " , " --device= "" +specify the device to use. +.TP +.B -v, --verbose +Output debugging messages. +.TP +.B -l, --logger +Output messages to system logger instead of standard output. +.TP +.B -n, --nowait +Don't wait between download requests. +.TP +.B -3, waitbyte3 +Use only the third byte of the BwPollTimeout field. +.SH FILES +.TP +.I /usr/share/usb/maudio/ma003101.bin +Audiophile firmware. +.TP +.I /usr/share/usb/maudio/ma004103.bin +MobilePre firmware. +.TP +.I /usr/share/usb/maudio/ma005101.bin +Sonica firmware. +.TP +.I /usr/share/usb/maudio/ma006100.bin +Transit firmware. +.TP +.I /usr/share/usb/maudio/ma008100.bin +Ozone firmware. +.TP +.I /lib/udev/rules.d/42-madfuload.rules +Udev rules for loading firmware automatically. +.SH AUTHOR +.PP +Written by Clemens Ladisch . +.PP +This manual page was written by Neil Wilson for +the Debian GNU/Linux system (but may be used by others). +.br --- madfuload-1.2.orig/debian/docs +++ madfuload-1.2/debian/docs @@ -0,0 +1 @@ +README --- madfuload-1.2.orig/debian/compat +++ madfuload-1.2/debian/compat @@ -0,0 +1 @@ +7 --- madfuload-1.2.orig/debian/preinst +++ madfuload-1.2/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +if [ "$1" = install ] || [ "$1" = upgrade ]; then + if [ -e "/etc/udev/rules.d/42-madfuload.rules" ]; then + if [ "`md5sum \"/etc/udev/rules.d/42-madfuload.rules\" | sed -e \"s/ .*//\"`" = \ + "`dpkg-query -W -f='${Conffiles}' madfuload | sed -n -e \"\\\\' /etc/udev/rules.d/42-madfuload.rules's/.* //p\"`" ] + then + rm -f "/etc/udev/rules.d/42-madfuload.rules" + fi + fi +fi + +#DEBHELPER# --- madfuload-1.2.orig/debian/watch +++ madfuload-1.2/debian/watch @@ -0,0 +1,3 @@ +# Site Directory Pattern Version Script +version=3 +http://heanet.dl.sourceforge.net/project/usb-midi-fw/madfu-firmware/(\d\.\d)/madfuload-(\d\.\d)\.tar\.gz debian uupdate --- madfuload-1.2.orig/debian/rules +++ madfuload-1.2/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f +%: + dh --with quilt $@ + +override_dh_auto_configure: + autoreconf -f + dh_auto_configure -- --with-udev=/lib/udev --- madfuload-1.2.orig/debian/changelog +++ madfuload-1.2/debian/changelog @@ -0,0 +1,38 @@ +madfuload (1.2-4) unstable; urgency=low + + * Imported changes from Ubuntu 1.2-2ubuntu3~karmic~ppa2 (Closes: #547336, + thanks to Neil Wilson): + + - 42-madfuload.rules.in: substitution variables need to be in lower case + + -- Free Ekanayaka Fri, 26 Mar 2010 17:23:26 +0100 + +madfuload (1.2-3) unstable; urgency=low + + * Imported changes from Ubuntu 1.2-2ubuntu2 (Closes #547336, thanks + to Scott James Remnan): + + - 42-madfuload.rules.in: Add -D $root/$name to madfuload calls so we use + /dev/bus/usb paths. + - Makefile.in, Makefile.am: Install udev rules into /lib/udev/rules.d + - configure.ac, configure: Drop attempt to figure out the path, the conf + file is always in /etc but the rules are in /lib + - configure.ac, configure: Update to call udevadm info + - debian/control: Depend on udev + + -- Free Ekanayaka Thu, 12 Nov 2009 15:28:15 +0000 + +madfuload (1.2-2) unstable; urgency=low + + * Uploading to non-free instead of main (Closes: #482342) + * Added myself as uploader + * Set maintainer to Debian Multimedia + + -- Free Ekanayaka Fri, 06 Jun 2008 09:05:46 +0100 + +madfuload (1.2-1) unstable; urgency=low + + * Initial release (Closes: #482342) + + -- Free Ekanayaka Mon, 19 May 2008 19:36:42 +0100 + --- madfuload-1.2.orig/debian/manpages +++ madfuload-1.2/debian/manpages @@ -0,0 +1 @@ +debian/madfuload.1 --- madfuload-1.2.orig/debian/control +++ madfuload-1.2/debian/control @@ -0,0 +1,24 @@ +Source: madfuload +Section: non-free/sound +Priority: extra +Maintainer: Free Ekanayaka +Build-Depends: autoconf, automake, libtool, quilt (>=0.46-7), debhelper (>= 7.0.50), udev (>= 136) +Standards-Version: 3.8.4 +Homepage: http://usb-midi-fw.sourceforge.net/ + +Package: madfuload +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, udev (>= 136) +Description: Firmware loader for M-Audio DFU audio devices + This package allows you to use M-Audio's DFU audio devices + with Linux. These devices require a firmware download before + an operating system driver (e.g. ALSA's snd-usb-audio) can + access them. + . + Supported devices: + - Sonica + - Ozone + - MobilePre USB (some newer models work without the loader) + - Transit + The loader is not required for some newer models of the above devices, + like the Ozone Academic. --- madfuload-1.2.orig/debian/patches/configure.ac.patch +++ madfuload-1.2/debian/patches/configure.ac.patch @@ -0,0 +1,13 @@ +Description: Minimal patch to configure.ac so that it calls +'udevadm --version' to obtain the version number. Upstream is out of date. +--- a/configure.ac ++++ b/configure.ac +@@ -7,7 +7,7 @@ + AC_PROG_CC + + AC_MSG_CHECKING([for udev version]) +-udev_ver=`udevinfo -V | awk '{ print $3 }'` ++udev_ver=`udevadm --version` + if test -n "$udev_ver"; then + AC_MSG_RESULT([$udev_ver]) + else --- madfuload-1.2.orig/debian/patches/fix-64-bit-implicit-declarations.patch +++ madfuload-1.2/debian/patches/fix-64-bit-implicit-declarations.patch @@ -0,0 +1,15 @@ +Ubuntu: https://bugs.launchpad.net/ubuntu/+source/madfuload/+bug/301771 +Description: Fixes the implicit declarations warnings and stops segfaults +on 64 bit architectures +--- a/madfuload.c ++++ b/madfuload.c +@@ -16,7 +16,8 @@ + #include + #include + #include +-#include ++#include ++#include + + /* USB stuff -- we can't rely on all Linux headers being there */ + --- madfuload-1.2.orig/debian/patches/series +++ madfuload-1.2/debian/patches/series @@ -0,0 +1,3 @@ +fix-64-bit-implicit-declarations.patch +42-madfuload-rules.patch +configure.ac.patch --- madfuload-1.2.orig/debian/patches/42-madfuload-rules.patch +++ madfuload-1.2/debian/patches/42-madfuload-rules.patch @@ -0,0 +1,31 @@ +Ubuntu: https://bugs.launchpad.net/ubuntu/+source/madfuload/+bug/330573 +Description: Fixes selection problems with udev that prevents the firmware +loading properly +--- madfuload.orig/42-madfuload.rules.in ++++ madfuload/42-madfuload.rules.in +@@ -1,17 +1,17 @@ + # madfuload.rules - udev rules for loading firmware into M-Audio DFU devices +- +-# DEVPATH=="/*.0" selects interface 0 only +-# (some udev versions don't work with SYSFS{bInterfaceNumber}) ++# Altered for Ubuntu udev system ++# Uses DEVTYPE and DEVNAME to ensure that the right device is selected ++# and the correct device file is opened + + # Audiophile +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/2803/*", RUN+="@sbindir@/madfuload -l -n -f @firmwaredir@/ma003101.bin" ++ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2803", RUN+="@sbindir@/madfuload -l -n -f @firmwaredir@/ma003101.bin -D $env{DEVNAME}" + # MobilePre +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/2804/*", RUN+="@sbindir@/madfuload -l -3 -f @firmwaredir@/ma004103.bin" ++ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2804", RUN+="@sbindir@/madfuload -l -3 -f @firmwaredir@/ma004103.bin -D $env{DEVNAME}" + # Sonica +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/2805/*", RUN+="@sbindir@/madfuload -l -n -f @firmwaredir@/ma005101.bin" ++ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2805", RUN+="@sbindir@/madfuload -l -n -f @firmwaredir@/ma005101.bin -D $env{DEVNAME}" + # Transit +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/2806/*", RUN+="@sbindir@/madfuload -l -3 -f @firmwaredir@/ma006100.bin" ++ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2806", RUN+="@sbindir@/madfuload -l -3 -f @firmwaredir@/ma006100.bin -D $env{DEVNAME}" + # Ozone +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/2808/*", RUN+="@sbindir@/madfuload -l -3 -f @firmwaredir@/ma008100.bin" ++ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2808", RUN+="@sbindir@/madfuload -l -3 -f @firmwaredir@/ma008100.bin -D $env{DEVNAME}" + + # vim: ft=conf