--- libnatpmp-20110808.orig/debian/control
+++ libnatpmp-20110808/debian/control
@@ -0,0 +1,66 @@
+Source: libnatpmp
+Section: net
+Priority: optional
+Maintainer: Thomas Goirand <zigo@debian.org>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.9.2
+Vcs-Browser: http://git.debian.org/?p=users/zigo/libnatpmp.git
+Vcs-Git: http://git.debian.org/git/users/zigo/libnatpmp.git
+Homepage: http://miniupnp.free.fr/
+
+Package: libnatpmp1
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Suggests: natpmp-utils, minissdpd
+Description: portable and fully compliant implementation of NAT-PMP
+ NAT-PMP is the direct concurrent to the UPnP IGD specification. It is
+ providing a way to do NAT traversal. It is part of the Bonjour protocol
+ specifications. At the moment it is mainly supported by Apple software and
+ hardware. For a way to add NAT-PMP capabilities to your *BSD, Linux or
+ (Open)Solaris Router, you should have a look at MiniUPnPd which is
+ supporting NAT-PMP in addition to UPnP since December 2007 ! 
+ .
+ libnatpmp is an attempt to make a portable and fully compliant
+ implementation of the protocol NAT-PMP for the client side. It is based on non
+ blocking sockets and all calls of the API are asynchronous. It is therefore
+ very easy to integrate the NAT-PMP code to any event driven code. 
+ .
+ This package contains the shared library.
+
+Package: libnatpmp-dev
+Architecture: any
+Section: libdevel
+Depends: ${misc:Depends}, libnatpmp1 (= ${binary:Version})
+Description: portable and fully compliant implementation of NAT-PMP (dev files)
+ NAT-PMP is the direct concurrent to the UPnP IGD specification. It is
+ providing a way to do NAT traversal. It is part of the Bonjour protocol
+ specifications. At the moment it is mainly supported by Apple software and
+ hardware. For a way to add NAT-PMP capabilities to your *BSD, Linux or
+ (Open)Solaris Router, you should have a look at MiniUPnPd which is
+ supporting NAT-PMP in addition to UPnP since December 2007 ! 
+ .
+ libnatpmp is an attempt to make a portable and fully compliant
+ implementation of the protocol NAT-PMP for the client side. It is based on non
+ blocking sockets and all calls of the API are asynchronous. It is therefore
+ very easy to integrate the NAT-PMP code to any event driven code. 
+ .
+ This package contains development files needed to build using libnatpmp.
+
+Package: natpmp-utils
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Replaces: libnatpmp0, libnatpmp1 (<= 20110808-2)
+Description: portable and fully compliant implementation of NAT-PMP (userland tool)
+ NAT-PMP is the direct concurrent to the UPnP IGD specification. It is
+ providing a way to do NAT traversal. It is part of the Bonjour protocol
+ specifications. At the moment it is mainly supported by Apple software and
+ hardware. For a way to add NAT-PMP capabilities to your *BSD, Linux or
+ (Open)Solaris Router, you should have a look at MiniUPnPd which is
+ supporting NAT-PMP in addition to UPnP since December 2007 ! 
+ .
+ libnatpmp is an attempt to make a portable and fully compliant
+ implementation of the protocol NAT-PMP for the client side. It is based on non
+ blocking sockets and all calls of the API are asynchronous. It is therefore
+ very easy to integrate the NAT-PMP code to any event driven code. 
+ .
+ This package contains the natpmpc test client.
--- libnatpmp-20110808.orig/debian/changelog
+++ libnatpmp-20110808/debian/changelog
@@ -0,0 +1,70 @@
+libnatpmp (20110808-3) unstable; urgency=low
+
+  [ Thomas Goirand ]
+  * Moves the natpmpc inside a new natpmp-utils package (Closes: #639084).
+  * Removes Debian specific natpmpc.1, since upstream integrated it in his
+    upstream tarball.
+
+  [ Stanislav Maslovski ]
+  * debian/control:
+    - no need to build-depend/depend on python: python module is not built
+    - corrected libnatpmp1 dependencies
+    - corrected libnatpmp-dev dependencies
+    - natpmp-utils replaces older libnatpmp binaries
+    - linatpmp1 suggests natpmp-utils
+  * debian/rules:
+    - do not move files by hand, use dh_install
+    - install docs and changelogs only once
+  * new files:
+    - natpmp-utils.install, natpmp-utils.manpages,
+      libnatpmp-dev.install, libnatpmp1.install
+  * removed files:
+    - libnatpmp1.shibls (not needed; autogenerated by dh_makeshlibs),
+      manpages
+
+ -- Thomas Goirand <zigo@debian.org>  Wed, 24 Aug 2011 12:02:12 +0800
+
+libnatpmp (20110808-2) unstable; urgency=low
+
+  * Removes the Provides: libnatpmp0 (Closes: #638828).
+
+ -- Thomas Goirand <zigo@debian.org>  Mon, 22 Aug 2011 18:44:02 +0800
+
+libnatpmp (20110808-1) unstable; urgency=low
+
+  * New upstream version 20110808, now building on kFreeBSD (Closes: #636786).
+  * libnatpmp-dev doesn't recommends minissdpd anymore (Closes: #630334).
+
+ -- Thomas Goirand <zigo@debian.org>  Tue, 09 Aug 2011 17:09:53 +0800
+
+libnatpmp (20110730-1) unstable; urgency=low
+
+  * New upstream release:
+  - Reviewed 3 clause BSD license on file headers (Closes: #633643).
+  * Renamed libnatpmp0 into libnatpmp1, as upstream did an ABI change,
+  consequently upgraded so version.
+  * Renamed libnatpmp0.shlibs as libnatpmp1.shlibs.
+  * Moving the .a into the .dev package.
+  * debian/copyright is now in correct DEP5 format.
+
+ -- Thomas Goirand <zigo@debian.org>  Wed, 03 Aug 2011 03:21:46 +0800
+
+libnatpmp (20101211-2) unstable; urgency=low
+
+  * libnatpmp-dev now depends on libnatpmp0 (= ${binary:Version})
+  (Closes: #630335).
+  * This time, uploading to SID.
+  * Standards-Version is now 3.9.2.
+  * Doesn't Recommends minissdpd, but Suggests it now (Closes: #630334).
+  * Updated Makefile to use LDFLAGS = -Wl,--no-undefined instead of just
+  --no-undefined, as it wouldn't build otherwise.
+  * Removed the first word (an article) in the short description as it was
+  bothering lintian.
+
+ -- Thomas Goirand <zigo@debian.org>  Wed, 15 Jun 2011 21:30:24 +0800
+
+libnatpmp (20101211-1) experimental; urgency=low
+
+  * Initial release. (Closes: #608280)
+
+ -- Thomas Goirand <zigo@debian.org>  Wed, 29 Dec 2010 21:25:44 +0800
--- libnatpmp-20110808.orig/debian/watch
+++ libnatpmp-20110808/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://miniupnp.free.fr/files/download.php\?file=libnatpmp-(\d.*).tar.gz
--- libnatpmp-20110808.orig/debian/compat
+++ libnatpmp-20110808/debian/compat
@@ -0,0 +1 @@
+7
--- libnatpmp-20110808.orig/debian/libnatpmp1.install
+++ libnatpmp-20110808/debian/libnatpmp1.install
@@ -0,0 +1 @@
+usr/lib/libnatpmp*.so.*
--- libnatpmp-20110808.orig/debian/natpmp-utils.install
+++ libnatpmp-20110808/debian/natpmp-utils.install
@@ -0,0 +1 @@
+usr/bin
--- libnatpmp-20110808.orig/debian/natpmp-utils.manpages
+++ libnatpmp-20110808/debian/natpmp-utils.manpages
@@ -0,0 +1 @@
+natpmpc.1
--- libnatpmp-20110808.orig/debian/libnatpmp-dev.install
+++ libnatpmp-20110808/debian/libnatpmp-dev.install
@@ -0,0 +1,3 @@
+usr/include
+usr/lib/libnatpmp*.so
+usr/lib/libnatpmp*.a
--- libnatpmp-20110808.orig/debian/copyright
+++ libnatpmp-20110808/debian/copyright
@@ -0,0 +1,40 @@
+Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=173
+Upstream-Name: libnatpmp
+Upstream-Contact: Thomas Bernard <miniupnp@free.fr>
+Source: http://miniupnp.free.fr/files/
+
+Files: debian/*
+Copyright: (c) 2010, Thomas Goirand <zigo@debian.org>
+License: 3 clauses BSD
+
+Files: *
+Copyright: (c) 2007-2009, Thomas BERNARD <miniupnp@free.fr>
+License: 3 clauses BSD
+
+	All rights reserved.
+
+	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.
--- libnatpmp-20110808.orig/debian/rules
+++ libnatpmp-20110808/debian/rules
@@ -0,0 +1,52 @@
+#!/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-arch build-indep
+build-arch: build-stamp
+build-indep: 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/tmp
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs --link-doc=libnatpmp1
+	dh_installchangelogs
+	dh_installman
+	dh_install
+	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
--- libnatpmp-20110808.orig/debian/source/format
+++ libnatpmp-20110808/debian/source/format
@@ -0,0 +1 @@
+1.0
