--- miniupnpc-1.5.orig/debian/docs
+++ miniupnpc-1.5/debian/docs
@@ -0,0 +1 @@
+README
--- miniupnpc-1.5.orig/debian/libminiupnpc.substvars
+++ miniupnpc-1.5/debian/libminiupnpc.substvars
@@ -0,0 +1,2 @@
+shlibs:Depends=libc6 (>= 2.7)
+misc:Depends=
--- miniupnpc-1.5.orig/debian/copyright
+++ miniupnpc-1.5/debian/copyright
@@ -0,0 +1,46 @@
+This package was debianized by Thomas Goirand <thomas@goirand.fr> on
+Wed, 26 Sep 2007 01:00:49 +0800
+
+It was downloaded from:
+	http://miniupnp.free.fr/
+
+Upstream Author:
+	Thomas Bernard <miniupnp@free.fr>
+
+Files: debian/*
+Copyright: (c) 2007-2010, Thomas Goirand <zigo@debian.org>
+License: BSD
+
+Files: bsdqueue.h
+Copyright: (c) 1991, 1993 The Regents of the University of California.
+License: BSD
+
+Files: *
+Copyright: (c) 2005-2010, Thomas Bernard <miniupnp@free.fr>
+License: BSD revised license
+
+Copyright notice (BSD license):
+
+	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.
+	* The name of the author may not 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.
--- miniupnpc-1.5.orig/debian/compat
+++ miniupnpc-1.5/debian/compat
@@ -0,0 +1 @@
+7
--- miniupnpc-1.5.orig/debian/control
+++ miniupnpc-1.5/debian/control
@@ -0,0 +1,67 @@
+Source: miniupnpc
+Section: net
+Priority: optional
+Maintainer: Thomas Goirand <zigo@debian.org>
+Build-Depends: debhelper (>= 7), python
+Standards-Version: 3.9.1
+Vcs-Browser: http://git.debian.org/?p=users/zigo/miniupnpc.git
+Vcs-Git: http://git.debian.org/git/users/zigo/miniupnpc.git
+Homepage: http://miniupnp.free.fr/
+
+Package: miniupnpc
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Recommends: minissdpd
+Description: UPnP IGD client lightweight library client
+ The UPnP protocol is supported by most home adsl/cable routers and Microsoft
+ Windows 2K/XP. The aim of the MiniUPnP project is to bring a free software
+ solution to support the "Internet Gateway Device" part of the protocol. The
+ MediaServer/MediaRenderer UPnP protocol is also becoming very popular.
+ .
+ Miniupnpc aims at the simplest library possible, with the smallest footprint
+ and no dependencies to other libraries such as XML parsers or HTTP
+ implementations. All the code is pure ANSI C. Compiled on a x86 PC, the
+ miniupnp client library have less than 15KB code size. For instance, the upnpc
+ sample program is around 20KB. The miniupnp daemon is much smaller than any
+ other IGD daemon and is ideal for using on low memory device for this reason.
+ .
+ This package is an example client for the library.
+
+Package: libminiupnpc5
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Recommends: minissdpd
+Description: UPnP IGD client lightweight library
+ The UPnP protocol is supported by most home adsl/cable routers and Microsoft
+ Windows 2K/XP. The aim of the MiniUPnP project is to bring a free software
+ solution to support the "Internet Gateway Device" part of the protocol. The
+ MediaServer/MediaRenderer UPnP protocol is also becoming very popular.
+ .
+ Miniupnpc aims at the simplest library possible, with the smallest footprint
+ and no dependencies to other libraries such as XML parsers or HTTP
+ implementations. All the code is pure ANSI C. Compiled on a x86 PC, the
+ miniupnp client library have less than 15KB code size. For instance, the upnpc
+ sample program is around 20KB. The miniupnp daemon is much smaller than any
+ other IGD daemon and is ideal for using on low memory device for this reason.
+ .
+ This package contains the shared library.
+
+Package: libminiupnpc-dev
+Architecture: any
+Section: libdevel
+Depends: ${misc:Depends}, ${shlibs:Depends}, libminiupnpc5 (= ${binary:Version})
+Recommends: minissdpd
+Description: UPnP IGD client lightweight library development files
+ The UPnP protocol is supported by most home adsl/cable routers and Microsoft
+ Windows 2K/XP. The aim of the MiniUPnP project is to bring a free software
+ solution to support the "Internet Gateway Device" part of the protocol. The
+ MediaServer/MediaRenderer UPnP protocol is also becoming very popular.
+ .
+ Miniupnpc aims at the simplest library possible, with the smallest footprint
+ and no dependencies to other libraries such as XML parsers or HTTP
+ implementations. All the code is pure ANSI C. Compiled on a x86 PC, the
+ miniupnp client library have less than 15KB code size. For instance, the upnpc
+ sample program is around 20KB. The miniupnp daemon is much smaller than any
+ other IGD daemon and is ideal for using on low memory device for this reason.
+ .
+ This package contains development files needed to build using libminiupnpc5
--- miniupnpc-1.5.orig/debian/miniupnpc.manpages
+++ miniupnpc-1.5/debian/miniupnpc.manpages
@@ -0,0 +1,2 @@
+debian/man/external-ip.1
+debian/man/upnpc.1
--- miniupnpc-1.5.orig/debian/rules
+++ miniupnpc-1.5/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	touch $@
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	$(MAKE)
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	$(MAKE) clean
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	$(MAKE) install PREFIX=$(CURDIR)/debian/miniupnpc
+	# Move the library in its corresponding separate package folder.
+	mkdir -p $(CURDIR)/debian/libminiupnpc5/usr
+	mv $(CURDIR)/debian/miniupnpc/usr/lib $(CURDIR)/debian/libminiupnpc5/usr
+	# Move the include files
+	mkdir -p $(CURDIR)/debian/libminiupnpc-dev/usr/lib
+	mv $(CURDIR)/debian/miniupnpc/usr/include $(CURDIR)/debian/libminiupnpc-dev/usr
+	mv $(CURDIR)/debian/libminiupnpc5/usr/lib/libminiupnpc.so $(CURDIR)/debian/libminiupnpc-dev/usr/lib
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs Changelog.txt
+	dh_installdocs
+	dh_installman
+	dh_strip
+	dh_compress
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- miniupnpc-1.5.orig/debian/changelog
+++ miniupnpc-1.5/debian/changelog
@@ -0,0 +1,18 @@
+miniupnpc (1.5-2) unstable; urgency=low
+
+  * libminiupnpc-dev now depends on libminiupnpc5 (Closes: #617774).
+
+ -- Thomas Goirand <zigo@debian.org>  Fri, 11 Mar 2011 18:59:58 +0800
+
+miniupnpc (1.5-1) unstable; urgency=low
+
+  * New upstream version.
+  * Moving from experimental to unstable (Closes: #616632).
+
+ -- Thomas Goirand <zigo@debian.org>  Thu, 10 Mar 2011 00:22:40 +0800
+
+miniupnpc (1.4.20101221-1) experimental; urgency=low
+
+  * Initial release. (Closes: #444392)
+
+ -- Thomas Goirand <zigo@debian.org>  Wed, 29 Dec 2010 16:49:20 +0800
--- miniupnpc-1.5.orig/debian/watch
+++ miniupnpc-1.5/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://miniupnp.free.fr/files/download.php\?file=miniupnpc-(\d\.\d.*).tar.gz
--- miniupnpc-1.5.orig/debian/libminiupnpc5.shlibs
+++ miniupnpc-1.5/debian/libminiupnpc5.shlibs
@@ -0,0 +1 @@
+libminiupnpc 5 libminiupnpc5
--- miniupnpc-1.5.orig/debian/man/external-ip.1
+++ miniupnpc-1.5/debian/man/external-ip.1
@@ -0,0 +1,10 @@
+.TH external-ip 1
+
+.SH NAME
+external-ip \- finds the external IP of your gateway
+
+.SH DESCRIPTION
+Display the IP address of your router and exits.
+
+.SH "SEE ALSO"
+upnpc(1)
--- miniupnpc-1.5.orig/debian/man/upnpc.1
+++ miniupnpc-1.5/debian/man/upnpc.1
@@ -0,0 +1,39 @@
+.TH upnpc 1
+
+.SH NAME
+upnpc \- miniupnpc library test client.
+
+.SH "SYNOPSIS"
+Add port redirection:
+.br
+\fBupnpc\fP [options] \-a ip port external_port protocol
+
+Delete port redirection:
+.br
+\fBupnpc\fP [options] \-d external_port protocol [port2 protocol2] [...]
+
+Get Connection status:
+.br
+\fBupnpc\fP [options] \-s
+
+List redirections:
+.br
+\fBupnpc\fP [options] \-l
+
+Add all redirections to the current host:
+.br
+\fBupnpc\fP [options] \-r port1 protocol1 [port2 protocol2] [...]
+
+.SH DESCRIPTION
+protocol is UDP or TCP
+
+.SH OPTIONS
+
+\fB-u url\fP : bypass discovery process by providing the XML root description url
+
+\fB-m address\fP : provide ip address of the interface to use for sending SSDP-multicast packets.
+
+\fB-p path\fP : use this path for MiniSSDPd socket.
+
+.SH "SEE ALSO"
+external-ip(1)
--- miniupnpc-1.5.orig/debian/source/format
+++ miniupnpc-1.5/debian/source/format
@@ -0,0 +1 @@
+1.0
