--- uif2iso-0.1.7a.orig/debian/rules
+++ uif2iso-0.1.7a/debian/rules
@@ -0,0 +1,28 @@
+#!/usr/bin/make -f
+
+build: build-stamp
+build-stamp:
+	dh build --before auto_configure
+	make -C src prefix=/usr
+	dh build --after auto_build
+	touch build-stamp
+
+clean:
+	dh clean --before auto_clean
+	make -C src clean
+	dh clean --after auto_clean
+
+install: build install-stamp
+install-stamp:
+	dh install --before auto_install
+	make -C src prefix=/usr DESTDIR=$(CURDIR)/debian/uif2iso install
+	dh install --after auto_install
+	touch install-stamp
+
+binary-arch: install
+	dh binary-arch
+
+binary-indep: install
+	dh binary-indep
+
+binary: binary-arch binary-indep
--- uif2iso-0.1.7a.orig/debian/copyright
+++ uif2iso-0.1.7a/debian/copyright
@@ -0,0 +1,78 @@
+
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
+Upstream-Name: UIF2ISO
+Upstream-Maintainer: Luigi Auriemma <aluigi@autistici.org>
+Upstream-Source: http://aluigi.org/mytoolz/uif2iso.zip
+
+Files: *
+Copyright: Copyright 2007-2008, Luigi Auriemma
+License: GPL-2+
+ On Debian systems the full text of the GNU General Public License can be
+ found in the `/usr/share/common-licenses/GPL' file.
+
+Files: blowfish.c
+Copyright: Copyright 2008, Luigi Auriemma
+Copyright: Copyright, Bruce Schneier
+License: GPL-2+
+ The original code was put in the Public Domain by Bruce Schneier. The
+ modified code by Luigi Auriemma is now licensed under the GPL.
+
+ On Debian systems the full text of the GNU General Public License can be
+ found in the `/usr/share/common-licenses/GPL' file.
+
+Files: bf_tab.h, blowfish.h
+Copyright: Copyright, Bruce Schneier
+License: PD (Public Domain)
+  This code may be freely distributed.
+
+Files: des.c, des.h
+Copyright: Copyright 2006-2007, Christophe Devine
+Licence: LGPL2.1
+ On Debian systems the full text of the GNU Lesser General Public License
+ version 2.1 can be found in the `/usr/share/common-licenses/LGPL-2.1' file.
+
+Files: gost.c
+Copyright: Copyright 2008, Luigi Auriemma
+Copyright: Copyright, A. Zabotin, G.P. Glazkov, and V.B. Isaeva.
+License: GPL-2+
+ The original code was placed in the Public Domain by A. Zabotin, G.P.
+ Glazkov, and V.B. Isaeva.  The modified code by Luigi Auriemma is now
+ licensed under the GPL.
+
+ On Debian systems the full text of the GNU General Public License can be
+ found in the `/usr/share/common-licenses/GPL' file.
+
+Files: idea.c
+Copyright: Copyright 2008, Luigi Auriemma
+Copyright: Copyright 1997, 1998, 1999 by Werner Koch (dd9jn)
+Copyright: Copyright 1996, Bruce Schneier
+License: GPL-2+
+ The original code was licensed by Werner Koch under the MIT license.  The
+ modified code by Luigi Auriemma is now licensed under the GPL.
+
+ On Debian systems the full text of the GNU General Public License can be
+ found in the `/usr/share/common-licenses/GPL' file.
+
+Files: loki91.c, loki.h, loki.i
+Copyright: Copyright 2008, Luigi Auriemma
+Copyright: Copyright 1989-1991 by Lawrence Brown and UNSW
+License: GPL-2+
+ The original code was licensed under a non-commercial license by Lawrence
+ Brown.  However, he has stated that uif2iso is allowed to use his code 
+ under the terms of the GPL, thus allowing the relicencing of these files
+ and the modifications done by Luigi Auriemma under the GPL.
+ 
+ On Debian systems the full text of the GNU General Public License can be
+ found in the `/usr/share/common-licenses/GPL' file.
+
+Files: LzmaDec.c, LzmaDec.h, Types.h
+Copyright: Copyright 1999-2008 Igor Pavlov
+License: LGPL
+ On Debian systems the full text of the GNU Lesser General Public License
+ can be found in the `/usr/share/common-licenses/LGPL' file.
+
+Files: debian/*
+Copyright: Copyright 2009, Margarita Manterola
+License: GPL-2+
+ On Debian systems the full text of the GNU General Public License can be
+ found in the `/usr/share/common-licenses/GPL' file.
--- uif2iso-0.1.7a.orig/debian/changelog
+++ uif2iso-0.1.7a/debian/changelog
@@ -0,0 +1,7 @@
+uif2iso (0.1.7a-1) unstable; urgency=low
+
+  * Initial release (Closes: #463139)
+  * Repackaged upstream since it came in a zipped file with no parent
+    directory.
+
+ -- Margarita Manterola <marga@debian.org>  Wed, 07 Jan 2009 16:18:40 +0000
--- uif2iso-0.1.7a.orig/debian/control
+++ uif2iso-0.1.7a/debian/control
@@ -0,0 +1,15 @@
+Source: uif2iso
+Section: utils
+Priority: extra
+Maintainer: Margarita Manterola <marga@debian.org>
+Build-Depends: debhelper (>= 7), zlib1g-dev
+Standards-Version: 3.8.0
+Homepage: http://aluigi.org/mytoolz.htm#uif2iso
+
+Package: uif2iso
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: converts UIF files (used by MagicISO) to ISO or other formats
+ uif2iso is a command-line tool for converting single and multipart UIF images
+ (Universal Image Format, used by MagicISO) to uncompressed images according to
+ the original input file: ISO, BIN/CUE, MDS/MDF, CCD/IMG/SUB, NRG.
--- uif2iso-0.1.7a.orig/debian/compat
+++ uif2iso-0.1.7a/debian/compat
@@ -0,0 +1 @@
+7
--- uif2iso-0.1.7a.orig/debian/uif2iso.1
+++ uif2iso-0.1.7a/debian/uif2iso.1
@@ -0,0 +1,31 @@
+.TH UIF2ISO "1" "January 2009" "uif2iso " "User Commands"
+.SH NAME
+uif2iso \- converts uif files to iso or other formats.
+.SH SYNOPSIS
+.B uif2iso
+\fI<input.UIF> <output>\fR
+.SH DESCRIPTION
+.PP
+UIF2ISO converts single and multipart UIF (Universal Image Format) images
+(generated by the MagicISO program) to their original format.
+.PP
+The output format (iso, cue/bin, mds/mdf, ccd, nrg) and corresponding
+extension are automatically chosen by the tool, depending on what the
+original format of the input file was.
+.SH KNOWN ISSUES
+When extracting a NRG image, the resulting file might be invalid.  However,
+in these cases, an additional valid CUE file is created. So if the NRG file
+were to not work, the CUE file can be used instead.
+.SH SEE ALSO
+For more information regarding why this tool is needed and what the output
+formats are, see the uif2iso.txt file provided along with this program.
+.SH AUTHOR
+uif2iso was written by Luigi Auriemma
+.br 
+e\-mail: aluigi@autistici.org
+.br 
+web: http://www.aluigi.org
+.PP
+This manual page was written by Margarita Manterola <marga@debian.org>,
+for the Debian project (and may be used by others).
+
--- uif2iso-0.1.7a.orig/debian/docs
+++ uif2iso-0.1.7a/debian/docs
@@ -0,0 +1,2 @@
+README
+uif2iso.txt
--- uif2iso-0.1.7a.orig/debian/manpages
+++ uif2iso-0.1.7a/debian/manpages
@@ -0,0 +1 @@
+debian/uif2iso.1
