--- avarice-2.10.orig/debian/watch
+++ avarice-2.10/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/avarice/avarice-(.+)\.tar\.bz2 debian uupdate
--- avarice-2.10.orig/debian/changelog
+++ avarice-2.10/debian/changelog
@@ -0,0 +1,97 @@
+avarice (2.10-3) unstable; urgency=medium
+
+  * Patch usb_dev_handle to fix a FTBFS. Closes: #565280.
+    Thanks to Nobuhiro Iwamatsu.
+
+ -- Shaun Jackman <sjackman@debian.org>  Sun, 24 Jan 2010 11:21:12 -0800
+
+avarice (2.10-2) unstable; urgency=medium
+
+  * libbfd requires libz and libdl. Closes: #552977.
+
+ -- Shaun Jackman <sjackman@debian.org>  Wed, 13 Jan 2010 23:05:38 -0800
+
+avarice (2.10-1) unstable; urgency=low
+
+  * New upstream release.
+  * Update the Debian policy to version 3.8.3.
+  * Bump debhelper to version 7.
+  * Use dh_prep rather than dh_clean -k.
+  * Acknowledge NMU. Closes: #521901.
+
+ -- Shaun Jackman <sjackman@debian.org>  Sun, 16 Aug 2009 11:17:09 -0700
+
+avarice (2.9-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS because of missing zlib import.  Add zlib1g-dev as a
+    Build-Depency.  (Closes: #521901)
+  * Added a Build-Conflicts on binutils-multiarch as that diverts
+    the static archive of libbfd away.
+
+ -- Philipp Kern <pkern@debian.org>  Wed, 06 May 2009 23:57:50 +0200
+
+avarice (2.9-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Shaun Jackman <sjackman@debian.org>  Mon, 30 Mar 2009 19:09:40 -0700
+
+avarice (2.8-1) unstable; urgency=low
+
+  * New upstream release.
+  * Update the Debian policy to version 3.8.0.1.
+
+ -- Shaun Jackman <sjackman@debian.org>  Fri, 21 Nov 2008 22:00:12 -0800
+
+avarice (2.7-2) unstable; urgency=low
+
+  * Add the AVR Dragon to the udev rules. Closes: #461986.
+  * Update the Debian policy to version 3.7.3.
+
+ -- Shaun Jackman <sjackman@debian.org>  Mon, 21 Jan 2008 12:42:25 -0800
+
+avarice (2.7-1) unstable; urgency=low
+
+  * New upstream release.
+  * Fix lintian warning: debian-rules-ignores-make-clean-error.
+
+ -- Shaun Jackman <sjackman@debian.org>  Sat, 17 Nov 2007 21:34:22 -0700
+
+avarice (2.6-2) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Shaun Jackman <sjackman@debian.org>  Thu,  5 Jul 2007 10:25:08 -0600
+
+avarice (2.6-1) experimental; urgency=low
+
+  * New upstream release.
+
+ -- Shaun Jackman <sjackman@debian.org>  Fri, 23 Feb 2007 09:57:06 -0700
+
+avarice (2.5-1) unstable; urgency=low
+
+  * New upstream release.
+  * Update the Debian policy to version 3.7.2.2.
+
+ -- Shaun Jackman <sjackman@debian.org>  Thu, 30 Nov 2006 09:42:26 -0700
+
+avarice (2.4-3) unstable; urgency=medium
+
+  * Link statically against libbfd. Closes: #381505.
+
+ -- Shaun Jackman <sjackman@debian.org>  Tue,  8 Aug 2006 14:11:45 -0600
+
+avarice (2.4-2) unstable; urgency=medium
+
+  * Add binutils-dev to Build-Depends. Closes: #381136.
+
+ -- Shaun Jackman <sjackman@debian.org>  Wed,  2 Aug 2006 17:35:41 -0600
+
+avarice (2.4-1) unstable; urgency=low
+
+  * Initial release. Closes: #380695.
+
+ -- Shaun Jackman <sjackman@debian.org>  Tue,  1 Aug 2006 09:33:10 -0600
+
--- avarice-2.10.orig/debian/avarice.rules
+++ avarice-2.10/debian/avarice.rules
@@ -0,0 +1,9 @@
+SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avarice_end"
+
+# Atmel Corp. JTAG ICE mkII
+SYSFS{idVendor}=="03eb", SYSFS{idProduct}=="2103", MODE="660", GROUP="dialout"
+
+# Atmel Corp. AVR Dragon
+SYSFS{idVendor}=="03eb", SYSFS{idProduct}=="2107", MODE="660", GROUP="dialout"
+
+LABEL="avarice_end"
--- avarice-2.10.orig/debian/compat
+++ avarice-2.10/debian/compat
@@ -0,0 +1 @@
+7
--- avarice-2.10.orig/debian/control
+++ avarice-2.10/debian/control
@@ -0,0 +1,16 @@
+Source: avarice
+Section: electronics
+Priority: optional
+Maintainer: Shaun Jackman <sjackman@debian.org>
+Build-Depends: binutils-dev, libusb-dev, zlib1g-dev, debhelper (>> 7)
+Build-Conflicts: binutils-multiarch
+Standards-Version: 3.8.3
+
+Package: avarice
+Section: electronics
+Architecture: any
+Depends: ${shlibs:Depends}
+Recommends: gdb-avr
+Description: use GDB with Atmel's JTAG ICE for the AVR
+ AVaRICE translates between GDB's remote debug protocol and the AVR
+ JTAG ICE protocol.
--- avarice-2.10.orig/debian/copyright
+++ avarice-2.10/debian/copyright
@@ -0,0 +1,26 @@
+Upstream Author: Joerg Wunsch <j.gnu@uriah.heep.sax.de>
+URL: http://sourceforge.net/projects/avarice
+
+Copyright:
+
+Copyright 2008 Joerg Wunsch
+Copyright 2004 James Harris
+Copyright 2004 Intel Corporation
+Copyright 2001 Scott Finneran
+
+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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in /usr/share/common-licenses/GPL.
--- avarice-2.10.orig/debian/rules
+++ avarice-2.10/debian/rules
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+
+build: build-stamp
+build-stamp:
+	./configure
+	$(MAKE) avarice_LDADD=-lz
+	touch $@
+
+clean:
+	rm -f build-stamp 
+	dh_clean 
+	[ ! -f Makefile ] || $(MAKE) distclean
+
+binary-indep:
+
+binary-arch binary:
+	dh_prep
+	dh_install -a
+	dh_installchangelogs -a ChangeLog
+	dh_installdocs -a
+	dh_installman -a
+	dh_link -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_strip -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+.PHONY: build clean binary-indep binary-arch binary
--- avarice-2.10.orig/debian/install
+++ avarice-2.10/debian/install
@@ -0,0 +1,2 @@
+src/avarice usr/bin
+debian/avarice.rules etc/udev
--- avarice-2.10.orig/debian/manpages
+++ avarice-2.10/debian/manpages
@@ -0,0 +1 @@
+doc/avarice.1
--- avarice-2.10.orig/debian/docs
+++ avarice-2.10/debian/docs
@@ -0,0 +1 @@
+doc/*.txt
--- avarice-2.10.orig/debian/links
+++ avarice-2.10/debian/links
@@ -0,0 +1 @@
+etc/udev/avarice.rules etc/udev/rules.d/z60_avarice.rules
