--- pfqueue-0.5.6.orig/debian/libpfqueue-dev.install
+++ pfqueue-0.5.6/debian/libpfqueue-dev.install
@@ -0,0 +1,3 @@
+/usr/lib/*.a
+/usr/lib/*.so
+/usr/lib/*.la
--- pfqueue-0.5.6.orig/debian/libpfqueue0.install
+++ pfqueue-0.5.6/debian/libpfqueue0.install
@@ -0,0 +1 @@
+/usr/lib/*.so.*
--- pfqueue-0.5.6.orig/debian/copyright
+++ pfqueue-0.5.6/debian/copyright
@@ -0,0 +1,42 @@
+Author: Stefano Rivoir <s.rivoir@gts.it>
+Download: http://pfqueue.sourceforge.net/
+
+Files: *
+Copyright: (C) 2004-2007 Stefano Rivoir <s.rivoir@gts.it>
+License: GPL-2+
+ 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 Street, 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-2 file.
+
+Files: debian/*
+Copyright: (C) 2006-2008 Daniel Baumann <daniel@debian.org>
+License: GPL-2+
+ 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 Street, 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-2 file.
--- pfqueue-0.5.6.orig/debian/pfqueue.docs
+++ pfqueue-0.5.6/debian/pfqueue.docs
@@ -0,0 +1,2 @@
+NEWS
+TODO
--- pfqueue-0.5.6.orig/debian/libpfqueue0.shlibs
+++ pfqueue-0.5.6/debian/libpfqueue0.shlibs
@@ -0,0 +1,5 @@
+libpfqueue 0 libpfqueue0 (>= 0.5.6)
+libpfq_exim 0 libpfqueue0 (>= 0.5.6)
+libpfq_postfix1 0 libpfqueue0 (>= 0.5.6)
+libpfq_postfix2 0 libpfqueue0 (>= 0.5.6)
+libpfq_socket 0 libpfqueue0 (>= 0.5.6)
--- pfqueue-0.5.6.orig/debian/rules
+++ pfqueue-0.5.6/debian/rules
@@ -0,0 +1,79 @@
+#!/usr/bin/make -f
+
+DEB_HOST_GNU_TYPE	?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE	?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	rm -f config.guess config.sub
+
+	[ ! -f Makefile ] || $(MAKE) distclean
+
+	dh_clean
+
+config.status: configure
+	dh_testdir
+
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+
+	CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
+
+build: build-stamp
+build-stamp: config.status
+	dh_testdir
+
+	$(MAKE)
+
+	touch build-stamp
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+
+	mv debian/tmp/usr/bin debian/tmp/usr/sbin
+
+	mv debian/tmp/usr/share/man/man1 debian/tmp/usr/share/man/man8
+	mv debian/tmp/usr/share/man/man8/pfqueue.1 debian/tmp/usr/share/man/man8/pfqueue.8
+	sed -i -e 's/TH PFQUEUE 1/TH PFQUEUE 8/' debian/tmp/usr/share/man/man8/pfqueue.8
+	ln -s pfqueue.8 debian/tmp/usr/share/man/man8/spfqueue.8
+
+binary: binary-arch
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_install --fail-missing --sourcedir=debian/tmp
+	dh_strip --dbg-package=pfqueue-dbg
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-indep:
+
+.PHONY: clean build install binary binary-arch binary-indep
--- pfqueue-0.5.6.orig/debian/pfqueue.install
+++ pfqueue-0.5.6/debian/pfqueue.install
@@ -0,0 +1,2 @@
+/usr/sbin
+/usr/share/man
--- pfqueue-0.5.6.orig/debian/changelog
+++ pfqueue-0.5.6/debian/changelog
@@ -0,0 +1,78 @@
+pfqueue (0.5.6-4~bpo40+1) etch-backports; urgency=low
+
+  * Backport testing version for backports.org
+  * Reduce debhelper compatability to 5
+
+ -- Micah Anderson <micah@debian.org>  Fri,  8 Aug 2008 13:45:11 -0600
+
+pfqueue (0.5.6-4) unstable; urgency=low
+
+  * Adding debug package.
+
+ -- Daniel Baumann <daniel@debian.org>  Thu, 17 Apr 2008 10:23:00 +0200
+
+pfqueue (0.5.6-3) unstable; urgency=low
+
+  * Reordering rules file.
+  * Rewriting copyright file in machine-interpretable format.
+  * Removing watch file.
+  * Updating shlibs file.
+  * Updating libpfqueue-dev depends in control file.
+  * Adding vcs fields in control file.
+  * Updating package to debhelper 6.
+  * Reverting config.guess and config.sub to upstream.
+
+ -- Daniel Baumann <daniel@debian.org>  Thu, 17 Apr 2008 10:01:00 +0200
+
+pfqueue (0.5.6-2) unstable; urgency=low
+
+  * Bumping to new policy.
+  * Using new homepage field in control.
+  * Don't hide make errors in clean target of rules.
+  * Added fail-missing to dh_install call in rules.
+
+ -- Daniel Baumann <daniel@debian.org>  Sun, 23 Dec 2007 16:57:00 +0100
+
+pfqueue (0.5.6-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Daniel Baumann <daniel@debian.org>  Thu, 15 Mar 2007 11:44:00 +0100
+
+pfqueue (0.5.5.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Daniel Baumann <daniel@debian.org>  Thu,  1 Feb 2007 19:57:00 +0100
+
+pfqueue (0.5.4-1) unstable; urgency=low
+
+  * New upstream release (Closes: #401829):
+    - fixes segfault when having empty queue (Closes: #353743).
+
+ -- Daniel Baumann <daniel@debian.org>  Fri, 19 Jan 2007 17:24:00 +0100
+
+pfqueue (0.5.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Daniel Baumann <daniel@debian.org>  Wed, 27 Sep 2006 20:13:00 +0200
+
+pfqueue (0.5.2-3) unstable; urgency=low
+
+  * New email address.
+  * Bumping policy version.
+
+ -- Daniel Baumann <daniel@debian.org>  Thu,  6 Jul 2006 11:06:00 +0200
+
+pfqueue (0.5.2-2) unstable; urgency=low
+
+  * Corrected exim depends (Closes: #353888).
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Sun, 12 Mar 2006 09:26:00 +0100
+
+pfqueue (0.5.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #350191).
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Sat, 28 Jan 2006 07:51:00 +0100
--- pfqueue-0.5.6.orig/debian/compat
+++ pfqueue-0.5.6/debian/compat
@@ -0,0 +1 @@
+5
--- pfqueue-0.5.6.orig/debian/control
+++ pfqueue-0.5.6/debian/control
@@ -0,0 +1,49 @@
+Source: pfqueue
+Section: mail
+Priority: optional
+Maintainer: Daniel Baumann <daniel@debian.org>
+Build-Depends: debhelper (>= 5), autotools-dev, libncurses5-dev
+Standards-Version: 3.7.3
+Homepage: http://pfqueue.sourceforge.net/
+Vcs-Browser: http://git.debian.net/?p=pfqueue.git
+Vcs-Git: git://git.debian.net/git/pfqueue.git
+
+Package: pfqueue
+Section: mail
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, postfix | exim4-base
+Description: interactive console-based tool to control MTA queues
+ pfqueue is a queue manager for different MTAs (currently postfix and exim),
+ allowing to delete, hold, release, or requeue messages.
+
+Package: pfqueue-dbg
+Section: devel
+Priority: extra
+Architecture: any
+Depends: pfqueue (= ${binary:Version}), libpfqueue0 (= ${binary:Version}), libpfqueue-dev (= ${binary:Version})
+Description: interactive console-based tool to control MTA queues (debug)
+ pfqueue is a queue manager for different MTAs (currently postfix and exim),
+ allowing to delete, hold, release, or requeue messages.
+ .
+ This package contains the debugging symbols.
+
+Package: libpfqueue0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: pfqueue
+Description: interactive console-based tool to control MTA queues (library)
+ pfqueue is a queue manager for different MTAs (currently postfix and exim),
+ allowing to delete, hold, release, or requeue messages.
+ .
+ This package contains the libraries.
+
+Package: libpfqueue-dev
+Section: libdevel
+Architecture: any
+Depends: libpfqueue0 (= ${binary:Version}), libncurses5-dev
+Description: interactive console-based tool to control MTA queues (development)
+ pfqueue is a queue manager for different MTAs (currently postfix and exim),
+ allowing to delete, hold, release, or requeue messages.
+ .
+ This package contains the development files.
