--- slugimage-0.0+r104.orig/debian/control
+++ slugimage-0.0+r104/debian/control
@@ -0,0 +1,19 @@
+Source: slugimage
+Section: admin
+Priority: extra
+Build-Depends: debhelper (>= 7), dpkg-dev (>= 1.9.0), bsdmainutils
+Maintainer: Marc Singer <elf@debian.org>
+Uploaders: Martin Michlmayr <tbm@cyrius.com>, Rod Whitby <rod@whitby.id.au>
+Standards-Version: 3.7.3
+Vcs-Svn: svn://svn.debian.org/collab-maint/deb-maint/slugimage/trunk
+
+Package: slugimage
+Architecture: all
+Recommends: devio
+Suggests: upslug2
+Conflicts: nslu2-utils (<< 0.10+r58-2)
+Replaces: nslu2-utils (<< 0.10+r58-2)
+Depends: ${misc:Depends}
+Description: NSLU2 firmware image manipulation utility
+ This is the slugimage program, which can be used to manipulate
+ NSLU2 firmware images.
--- slugimage-0.0+r104.orig/debian/compat
+++ slugimage-0.0+r104/debian/compat
@@ -0,0 +1 @@
+7
--- slugimage-0.0+r104.orig/debian/changelog
+++ slugimage-0.0+r104/debian/changelog
@@ -0,0 +1,33 @@
+slugimage (1:0.0+r104-5) unstable; urgency=low
+
+  * Adoption by Marc Singer.
+
+ --  <elf@buici.com>  Tue, 03 Jun 2008 20:20:26 -0700
+
+slugimage (1:0.0+r104-4) UNRELEASED; urgency=low
+
+  * Use debhelper v7; rules file minimisation.
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 24 Apr 2008 02:41:48 -0400
+
+slugimage (1:0.0+r104-3) unstable; urgency=low
+
+  * Build-Depend on bsdmainutils, for hexdump, which is used in the test
+    suite. Closes: #451462
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 15 Nov 2007 21:23:32 -0500
+
+slugimage (1:0.0+r104-2) unstable; urgency=low
+
+  * Add an epoch as the version number scheme has changed.
+
+ -- Joey Hess <joeyh@debian.org>  Wed, 07 Nov 2007 13:26:37 -0500
+
+slugimage (0.0+r104-1) unstable; urgency=low
+
+  * Split out from nslu2-utils.
+  * New upstream version SVN r104.
+  * Add get-orig-source target.
+  * Include test suite, run during build.
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 28 Sep 2007 19:59:29 -0400
--- slugimage-0.0+r104.orig/debian/copyright
+++ slugimage-0.0+r104/debian/copyright
@@ -0,0 +1,33 @@
+This package was put together by Joey Hess <joeyh@debian.org>, using
+sources from the SVN repository at:
+http://svn.nslu2-linux.org/svnroot/slugimage/trunk
+
+Files: *
+Copyright: (c) 2004, 2006, Dwayne Fontenot & Rod Whitby
+License: BSD-3
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ . 
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 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.
+ Neither the name of the NSLU2-Linux Development Team nor the names
+ of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written
+ permission.
+ . 
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 THE
+ COPYRIGHT OWNER 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.
--- slugimage-0.0+r104.orig/debian/rules
+++ slugimage-0.0+r104/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+# There's no upstream tarball, so get one out of svn.
+get-orig-source:
+	mkdir tmp
+	svn co http://svn.nslu2-linux.org/svnroot/slugimage/trunk tmp/slugimage.svn
+	svn export tmp/slugimage.svn tmp/slugimage
+	cd tmp && tar czf ../slugimage_0.0+r`svn info slugimage.svn | grep '^Last Changed Rev:' | sed 's/.*: //'`.orig.tar.gz slugimage
+	rm -rf tmp
+
+%:
+	dh $@
+
+binary-indep: build
+	dh binary-indep --until dh_prep
+	dh_install slugimage usr/bin
+	dh_installman slugimage.1
+	dh binary-indep --remaining
+
+binary: binary-indep binary-arch
