debian/0000755000000000000000000000000011401537602007165 5ustar debian/docs0000644000000000000000000000001411273775021010041 0ustar README.txt debian/compat0000644000000000000000000000000211274024345010366 0ustar 5 debian/patches/0000755000000000000000000000000011401537441010615 5ustar debian/patches/series0000644000000000000000000000004111401537441012025 0ustar destdir remove_ident use_devname debian/patches/use_devname0000644000000000000000000000376011401537441013041 0ustar --- fxload-0.0.20081013.orig/main.c +++ fxload-0.0.20081013/main.c @@ -33,7 +33,7 @@ * * -L -- Create a symbolic link to the device. * -m -- Set the permissions on the device after download. - * -D -- Use this device, instead of $DEVICE + * -D -- Use this device, instead of $DEVNAME or $DEVICE * * -V -- Print version ID for program * @@ -42,10 +42,10 @@ * expects these environment variables which are passed by hotplug to * its sub-scripts: * - * DEVICE= - * This is the path to the device is /proc/bus/usb. It is the - * complete path to the device, that I can pass to open and - * manipulate as a USB device. + * DEVNAME=, DEVICE= + * This is the path to the device in /dev/bus/usb or + * /proc/bus/usb. It is the complete path to the device, that + * I can pass to open and manipulate as a USB device. */ # include @@ -90,13 +90,16 @@ int main(int argc, char*argv[]) { const char *link_path = 0; const char *ihex_path = 0; - const char *device_path = getenv("DEVICE"); + const char *device_path = getenv("DEVNAME"); const char *type = 0; const char *stage1 = 0; mode_t mode = 0; int opt; int config = -1; + if (!device_path) + device_path = getenv("DEVICE"); + while ((opt = getopt (argc, argv, "2vV?D:I:L:c:lm:s:t:")) != EOF) switch (opt) { @@ -190,7 +193,7 @@ usage: fputs ("\t\t[-I firmware_hexfile] ", stderr); fputs ("[-s loader] [-c config_byte]\n", stderr); fputs ("\t\t[-L link] [-m mode]\n", stderr); - fputs ("... [-D devpath] overrides DEVICE= in env\n", stderr); + fputs ("... [-D devpath] overrides DEVNAME= and DEVICE= in env\n", stderr); fputs ("... device types: one of an21, fx, fx2, fx2lp\n", stderr); fputs ("... at least one of -I, -L, -m is required\n", stderr); return -1; debian/patches/destdir0000644000000000000000000000105011274027502012172 0ustar Use 'DESTDIR' for 'prefix' * The Makefile uses the variable 'prefix' for what is normally 'DESTDIR'. Simplest workaround: set prefix from DESTDIR. * Furthermore, the default value of 'prefix' was '/'. This causes a prefix of '//' in some cases which may be a problem in e.g. cygwin. No point keeping it. --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # Builds "fxload" binaries, distribution tarball, and RPMs. # -prefix = / +prefix = $(DESTDIR) exec_prefix = ${prefix} sbindir = ${exec_prefix}/sbin mandir = ${prefix}/usr/share/man debian/patches/remove_ident0000644000000000000000000000212411363261251013217 0ustar Author: Tzafrir Cohen Subject: Remove the obsolete '#ident' pragma. Last-Updated: 2010-04-20 GCC 4.4 gives warnings for the keyword '#ident'. Just remove them. --- a/ezusb.c +++ b/ezusb.c @@ -18,7 +18,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -#ident "$Id: ezusb.c,v 1.12 2008/10/13 21:25:29 dbrownell Exp $" # include # include --- a/ezusb.h +++ b/ezusb.h @@ -19,7 +19,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -#ident "$Id: ezusb.h,v 1.4 2008/10/13 21:25:29 dbrownell Exp $" /* --- a/main.c +++ b/main.c @@ -18,7 +18,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -#ident "$Id: main.c,v 1.10 2008/10/13 21:25:29 dbrownell Exp $" /* * This program supports loading firmware into a target USB device debian/dirs0000644000000000000000000000000611273775021010053 0ustar sbin debian/watch0000644000000000000000000000061211274011110010202 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Uncomment to find new files on sourceforge, for devscripts >= 2.9 opts="uversionmangle=s/_//g;s/^/0.0./" \ http://sf.net/linux-hotplug/fxload-(.*)\.tar\.gz debian/rules0000755000000000000000000000003711357075152010254 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000135211401537474010600 0ustar Source: fxload Section: admin Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Fumitoshi UKAI Uploaders: Tzafrir Cohen Build-Depends: debhelper (>= 7) Standards-Version: 3.8.4 Homepage: http://sourceforge.net/projects/linux-hotplug/ Package: fxload Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: hotplug-utils Replaces: hotplug-utils Provides: hotplug-utils Enhances: hotplug Description: Firmware download to EZ-USB devices This program is conveniently able to download firmware into FX and FX2 ez-usb devices. It is intended to be invoked by hotplug scripts when the unprogrammed device appears on the bus. debian/copyright0000644000000000000000000000265211274030115011120 0ustar This package was debianized by Fumitoshi UKAI on Tue, 30 Apr 2002 02:46:12 +0900. It was downloaded from http://linux-hotplug.sourceforge.net/ Upstream Authors: Stephen Williams David Brownell Roger Williams Greg Kroah-Hartman Matthew Dharm Miles Lane Randy Dunlap Copyright: Copyright (c) 2001 Stephen Williams (steve@icarus.com) Copyright (c) 2001-2002 David Brownell (dbrownell@users.sourceforge.net) Copyright (c) 2008 Roger Williams (rawqux@users.sourceforge.net) License: GPL2+ This source code is free software; you can redistribute it and/or modify it in source code form 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, a copy of the GNU General Public License may be found in /usr/share/common-licenses/GPL. debian/changelog0000644000000000000000000000275411401537441011050 0ustar fxload (0.0.20081013-1ubuntu1) maverick; urgency=low * Merge from debian unstable. (LP: #587824) Remaining changes: - Use DEVNAME from the environment in preference to DEVICE (LP: #156085) -- Jean-Louis Dupond Wed, 05 May 2010 03:58:58 +0100 fxload (0.0.20081013-1) unstable; urgency=low * Adopting package (Closes: #541059). * New upstream release (Closes: #540767). * Adding myself as uploader. * Switching to dpkg v.3 format. * Patch destdir: originally in the diff. * Switching to dh. * Homepage (better than nothing). * Patch remove_ident: remove #ident lines. -- Tzafrir Cohen Tue, 20 Apr 2010 10:53:57 +0300 fxload (0.0.20020411-1.1ubuntu1) jaunty; urgency=low * Use DEVNAME from the environment in preference to DEVICE, the former contains the modern /dev/bus/usb path. LP: #156085. -- Scott James Remnant Tue, 17 Mar 2009 10:02:33 +0000 fxload (0.0.20020411-1.1) unstable; urgency=high * Non-maintainer upload. * High urgency for RC bug fix. * Fix FTBFS with linux-libc-dev: include instead of (closes: #428923). * Fix Greg K-H's name in debian/copyright. -- Julien Cristau Fri, 20 Jul 2007 15:46:32 +0200 fxload (0.0.20020411-1) unstable; urgency=low * Initial Release. * split from hotplug source tarball * renamed to fxload from hotplug-utils -- Fumitoshi UKAI Tue, 30 Apr 2002 02:46:12 +0900 debian/source/0000755000000000000000000000000011362671702010473 5ustar debian/source/format0000644000000000000000000000001411401537421011672 0ustar 3.0 (quilt)