debian/0000755000000000000000000000000012135505775007200 5ustar debian/docs0000644000000000000000000000000712135476227010047 0ustar README debian/changelog0000644000000000000000000000317112135476227011053 0ustar dfu-programmer (0.6.1-1) unstable; urgency=low * New upstream release. * debian/control: - remove website link in description (Closes: #642585). - use libusb-1.0 instead of libusb. - Build-Depends += dh-autoreconf - add dependency to pkg-config (thanks to Julian Taylor). - bump to debhelper 9. - bump standards version to 3.9.4. - correct hyphenation in description (thanks to Adrian Glaubitz). * debian/patches/: - update_configure.patch: make it working with ubuntu too. - escape_minus_sign_in_manpage.patch: escape remaining minus sign. * debian/rules: add autoreconf * debian/copyright: update copyright-format version. -- Rodolphe Pelloux-Prayer Tue, 23 Apr 2013 13:51:07 +0200 dfu-programmer (0.5.4-1) unstable; urgency=low * New upstream release. Closes: #590299, #633796. * New maintainer. Closes: #637949. * Switch to format 3.0 (quilt). * debian/copyright: use machine-parsable format (DEP-5). * debian/control: - bump standards version to 3.9.2. - add ${misc:Depends} to satisfy lintian … - add Vcs-* fields. - add Homepage field. - change category to electronics. * Switch debian/rules to use dh v8. -- Rodolphe Pelloux-Prayer Fri, 19 Aug 2011 09:40:33 +0200 dfu-programmer (0.5.1-1) unstable; urgency=low * New upstream release. Closes: #520358. * Add debian/watch file. -- Andrew Straw Sun, 22 Mar 2009 18:39:52 -0700 dfu-programmer (0.4.3-1) unstable; urgency=low * Initial packaging. Closes: #416436. -- Andrew Straw Mon, 10 Sep 2007 19:38:53 -0700 debian/rules0000755000000000000000000000022412135476227010255 0ustar #!/usr/bin/make -f # -*- makefile -*- #export DH_VERBOSE=1 override_dh_installchangelogs: dh_installchangelogs NEWS %: dh $@ --with autoreconf debian/watch0000644000000000000000000000010412135476227010223 0ustar version=3 http://sf.net/dfu-programmer/dfu-programmer-(.+)\.tar\.gz debian/compat0000644000000000000000000000000212135476227010375 0ustar 9 debian/control0000644000000000000000000000175012135476227010605 0ustar Source: dfu-programmer Section: electronics Priority: optional Maintainer: Rodolphe Pelloux-Prayer Standards-Version: 3.9.4 Build-Depends: debhelper (>= 9), dh-autoreconf, pkg-config, libusb-1.0-0-dev Homepage: http://dfu-programmer.sourceforge.net/ Vcs-Browser: https://gitorious.org/debian-packaging/dfu-programmer/trees/master Vcs-Git: git://gitorious.org/debian-packaging/dfu-programmer.git Package: dfu-programmer Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: device firmware update (DFU) based USB programmer for Atmel chips A Linux based command-line programmer for Atmel chips with a USB bootloader supporting in-system programming. . This is a mostly Device Firmware Update (DFU)-1.0-compliant user-space application. This program was created because the Atmel FLIP program for flashing devices does not run on Linux and because standard DFU loaders do not work for Atmel chips. debian/copyright0000644000000000000000000000235612135476227011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: dfu-programmer Source: http://dfu-programmer.sourceforge.net/ Files: * Copyright: 2005-2011, Weston Schmidt License: GPL-2+ Files: debian/* Copyright: 2007-2009, Andrew Straw 2011-2013, Rodolphe Pelloux-Prayer License: GPL-2+ License: GPL-2+ 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/source/0000755000000000000000000000000012135476227010477 5ustar debian/source/format0000644000000000000000000000001412135476227011705 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012135476227010626 5ustar debian/patches/series0000644000000000000000000000007212135476227012042 0ustar update_configure.patch escape_minus_sign_in_manpage.patch debian/patches/update_configure.patch0000644000000000000000000001055412135476227015177 0ustar Description: Update configure.ac and src/Makefile.am Use libusb-1.0 except if --with-old-libusb is set. Do not overide CFLAGS and LDFLAGS anymore, use AC_SUBST instead. Author: Rodolphe Pelloux-Prayer Bug: http://sourceforge.net/tracker/?func=detail&aid=3366346&group_id=147246&atid=767783 Forwarded: http://sourceforge.net/mailarchive/forum.php?thread_name=1317053306.2167.2.camel%40chicard&forum_name=dfu-programmer-user Last-Update: 2013-04-21 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/configure.ac +++ b/configure.ac @@ -2,68 +2,42 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -#AC_INIT(dfu-programmer, VERSION, BUG-REPORT-ADDRESS) AC_INIT([dfu-programmer],[0.6.1]) -AC_CONFIG_AUX_DIR(m4) -AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) + +AC_CONFIG_AUX_DIR([m4]) AC_CONFIG_SRCDIR([src/atmel.c]) -AM_CONFIG_HEADER([config.h]) +AC_CONFIG_HEADERS([config.h]) + +AM_INIT_AUTOMAKE() -AM_MAINTAINER_MODE +# Enable silent rules is available +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +AM_MAINTAINER_MODE([enable]) # Checks for programs. AC_PROG_CC -# Checks for libusb - from sane-backends configuration - -dnl Enable libusb-1.0, if available -disable_libusb_1_0=no -AC_ARG_ENABLE(libusb_1_0, - AC_HELP_STRING([--disable-libusb_1_0], [disable libusb-1.0 support even if available]), - [ if test "x$enableval" = "xno"; then disable_libusb_1_0=yes; fi ], []) - -dnl If libusb-1.0 is enabled and available, prefer that to the old libusb -have_libusb_1_0=no -if test "$disable_libusb_1_0" = "no"; then - ifdef([PKG_CHECK_MODULES], - [PKG_CHECK_MODULES(LIBUSB_1_0, [ libusb-1.0 >= 1.0.0 ], have_libusb_1_0=yes, have_libusb_1_0=no)], - [have_libusb_1_0=yes - LIBUSB_1_0_CFLAGS=-I/usr/include/libusb-1.0 - LIBUSB_1_0_LIBS=-L/usr/lib]) - if test "$have_libusb_1_0" = "yes"; then - AS_ECHO("using libusb_1.0"); - CFLAGS="$CFLAGS $LIBUSB_1_0_CFLAGS" - LIBS="$LIBS $LIBUSB_1_0_LIBS" - HAVE_USB=yes - fi -fi - -if test "$have_libusb_1_0" = "no"; then - dnl Fallback to the old libusb - dnl libusb >= 0.1.8 is required, as we need usb_interrupt_read() - AS_ECHO("using libusb"); - AC_CHECK_HEADER(usb.h, - AC_CHECK_LIB(usb, usb_interrupt_read, - [LIBS="$LIBS -lusb" - HAVE_USB=yes])) -fi - -dnl The following logic is useful for distributions. If they force -dnl USB support with --enable-libusb=yes then configure will fail -dnl when its detected that it can not be supported. Default is -dnl "auto" which means only enable if libraries are found and do -dnl not error out. -if test "$HAVE_USB" = "no"; then - AC_MSG_ERROR([USB support requested but required libraries not found.]) -fi -if test "$HAVE_USB" = "yes"; then - if test "$have_libusb_1_0" = "yes"; then - AC_DEFINE(HAVE_LIBUSB_1_0, 1, [Define to 1 if you have libusb-1.0.]) - else +# Checks for libusb +AC_ARG_ENABLE(old-libusb, + AS_HELP_STRING([--enable-old-libusb], + [use old libusb]), + enable_old_libusb=$enableval, + enable_old_libusb=no) + +AS_IF([test x$enable_old_libusb = xyes], [ + # libusb >= 0.1.8 is required, as we need usb_interrupt_read() + PKG_CHECK_MODULES([LIBUSB], [libusb >= 0.1.8]) AC_DEFINE(HAVE_LIBUSB, 1, [Define to 1 if you have libusb.]) - fi -fi - + AC_SUBST(LIBUSB_CFLAGS) + AC_SUBST(LIBUSB_LIBS) + ], [ + # If libusb-1.0 is enabled and available, prefer that to the old libusb + PKG_CHECK_MODULES([LIBUSB1], [libusb-1.0 >= 1.0.0]) + AC_DEFINE(HAVE_LIBUSB_1_0, 1, [Define to 1 if you have libusb-1.0.]) + AC_SUBST(LIBUSB1_CFLAGS) + AC_SUBST(LIBUSB1_LIBS) + ]) # Checks for header files. AC_HEADER_STDC @@ -75,7 +49,6 @@ # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_MEMCMP -#AC_CHECK_FUNC([memset], :, [AC_CHECK_LIB([libc], [libc])]) AC_CONFIG_FILES(fedora/dfu-programmer.spec Makefile docs/Makefile src/Makefile) AC_OUTPUT --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,8 @@ -AM_CFLAGS = -Wall bin_PROGRAMS = dfu-programmer dfu_programmer_SOURCES = main.c arguments.c arguments.h atmel.c atmel.h \ commands.c commands.h dfu.c dfu.h dfu-bool.h \ dfu-device.h intel_hex.c intel_hex.h util.c util.h +AM_CFLAGS = $(LIBUSB_CFLAGS) $(LIBUSB1_CFLAGS) + +dfu_programmer_LDADD = $(LIBUSB_LIBS) $(LIBUSB1_LIBS) debian/patches/escape_minus_sign_in_manpage.patch0000644000000000000000000000111212135476227017513 0ustar Description: Escape last minus sign in manpages Author: Rodolphe Pelloux-Prayer Last-Update: 2013-04-21 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/docs/dfu-programmer.1 +++ b/docs/dfu-programmer.1 @@ -7,13 +7,13 @@ target[:usb-bus,usb-addr] command [options] [parameters] .br .B dfu\-programmer ---help +\-\-help .br .B dfu\-programmer ---targets +\-\-targets .br .B dfu\-programmer ---version +\-\-version .SH DESCRIPTION .B dfu\-programmer is a multi-platform command line Device Firmware Upgrade (DFU) based programmer