--- hdbc-postgresql-2.3.2.1.orig/debian/gbp.conf
+++ hdbc-postgresql-2.3.2.1/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
--- hdbc-postgresql-2.3.2.1.orig/debian/control
+++ hdbc-postgresql-2.3.2.1/debian/control
@@ -0,0 +1,76 @@
+Source: hdbc-postgresql
+Priority: extra
+Section: haskell
+Uploaders: John Goerzen <jgoerzen@complete.org>
+Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
+Build-Depends: debhelper (>= 7),
+ ghc (>= 6.12),
+ ghc-prof (>= 6.12),
+ haskell-devscripts (>= 0.7.3),
+ cdbs,
+ cpphs,
+ haddock,
+ hscolour,
+ libghc-hdbc-dev (>= 2.2.0),
+ libpq-dev (>= 8.1.1),
+ libghc-mtl-dev,
+ libghc-hdbc-prof (>= 2.2.0),
+ libghc-mtl-prof
+ , libghc-convertible-dev
+ , libghc-convertible-prof
+ , libghc-parsec3-dev
+ , libghc-parsec3-prof
+ , libghc-utf8-string-dev
+ , libghc-utf8-string-prof
+Build-Depends-Indep: ghc-doc
+ , libghc-hdbc-doc
+ , libghc-mtl-doc
+ , libghc-parsec3-doc
+ , libghc-convertible-doc
+ , libghc-utf8-string-doc
+Standards-Version: 3.9.3
+Homepage: http://software.complete.org/hdbc-postgresql
+Vcs-Git: git://git.debian.org/git/pkg-haskell/hdbc-postgresql.git
+Vcs-Browser: http://git.debian.org/?p=pkg-haskell/hdbc-postgresql.git;a=summary
+
+Package: libghc-hdbc-postgresql-dev
+Architecture: any
+Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends}, libpq-dev (>= 8.1.1)
+Recommends: ${haskell:Recommends}
+Suggests: ${haskell:Suggests}
+Provides: ${haskell:Provides}
+Description: PostgreSQL HDBC (Haskell Database Connectivity) Driver for GHC
+ HDBC provides an abstraction layer between Haskell programs and SQL
+ relational databases. This lets you write database code once, in
+ Haskell, and have it work with any number of backend SQL databases.
+ .
+ This package provides the PostgreSQL database driver for HDBC under GHC.
+
+Package: libghc-hdbc-postgresql-prof
+Architecture: any
+Depends: ${haskell:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Recommends: ${haskell:Recommends}
+Suggests: ${haskell:Suggests}
+Provides: ${haskell:Provides}
+Description: PostgreSQL HDBC Driver for GHC; profiling libraries
+ HDBC provides an abstraction layer between Haskell programs and SQL
+ relational databases. This lets you write database code once, in
+ Haskell, and have it work with any number of backend SQL databases.
+ .
+ This package provides the PostgreSQL database driver for HDBC under GHC
+ compiled for profiling.
+
+Package: libghc-hdbc-postgresql-doc
+Replaces: haskell-hdbc-postgresql-doc (<< 2.2.3.1-3)
+Conflicts: haskell-hdbc-postgresql-doc (<< 2.2.3.1-3)
+Provides: haskell-hdbc-postgresql-doc, ${haskell:Provides}
+Section: doc
+Architecture: all
+Depends: ${haskell:Depends}, ${misc:Depends}
+Recommends: ${haskell:Recommends}
+Suggests: ${haskell:Suggests}
+Description: PostgreSQL HDBC (Haskell Database Connectivity) documentation
+ HDBC provides an abstraction layer between Haskell programs and SQL
+ relational databases. This lets you write database code once, in
+ Haskell, and have it work with any number of backend SQL databases.
+
--- hdbc-postgresql-2.3.2.1.orig/debian/changelog
+++ hdbc-postgresql-2.3.2.1/debian/changelog
@@ -0,0 +1,192 @@
+hdbc-postgresql (2.3.2.1-1) unstable; urgency=low
+
+ * New upstream version.
+ * Bump to Standards-Version 3.9.3.
+
+ -- Clint Adams <clint@debian.org> Wed, 07 Mar 2012 20:18:10 -0500
+
+hdbc-postgresql (2.2.3.1-5) unstable; urgency=low
+
+ * [a016c10] s/ghc6/ghc/ for GHC 7 transition
+ * [6c309c4] Use Haskell substvars, particularly haskell:Provides
+ * [0c0555c] Add prof package
+
+ -- Iain Lane <laney@debian.org> Tue, 31 May 2011 09:35:51 +0100
+
+hdbc-postgresql (2.2.3.1-4) unstable; urgency=low
+
+ * control: Use versioned Replaces: and Conflicts:
+
+ -- Marco Túlio Gontijo e Silva <marcot@debian.org> Wed, 05 May 2010 23:13:57 -0300
+
+hdbc-postgresql (2.2.3.1-3) unstable; urgency=low
+
+ [ Marco Túlio Gontijo e Silva ]
+ * Fix "please update build-depends of haskell-hdbc-doc" updating -doc
+ packages in Build-Depends to new packages names. (Closes: #576099)
+ * Use Build-Depends-Indep.
+
+ -- Joachim Breitner <nomeata@debian.org> Tue, 27 Apr 2010 12:41:55 +0200
+
+hdbc-postgresql (2.2.3.1-2) unstable; urgency=low
+
+ * debian/control: Rename -doc package.
+
+ -- Marco Túlio Gontijo e Silva <marcot@debian.org> Wed, 17 Mar 2010 19:48:05 -0300
+
+hdbc-postgresql (2.2.3.1-1) unstable; urgency=low
+
+ * New upstream version. Closes: #570880.
+ * Rebuild with GHC 6.12.
+
+ -- John Goerzen <jgoerzen@complete.org> Wed, 17 Feb 2010 15:02:32 -0600
+
+hdbc-postgresql (2.2.0.0-2) unstable; urgency=low
+
+ * Switch to hlibrary.mk (Closes: 559654)
+
+ -- Joachim Breitner <nomeata@debian.org> Sun, 06 Dec 2009 21:20:20 +0100
+
+hdbc-postgresql (2.2.0.0-1) unstable; urgency=low
+
+ * New upstream release.
+ * Switching to Haskell team maintenance.
+
+ -- John Goerzen <jgoerzen@complete.org> Tue, 03 Nov 2009 08:55:44 -0600
+
+hdbc-postgresql (2.1.0.2-1) unstable; urgency=low
+
+ * Small new features.
+
+ -- John Goerzen <jgoerzen@complete.org> Thu, 02 Jul 2009 15:09:45 -0500
+
+hdbc-postgresql (2.1.0.1-1) unstable; urgency=low
+
+ * Update for GHC 6.10.
+
+ -- John Goerzen <jgoerzen@complete.org> Fri, 06 Mar 2009 08:08:35 -0600
+
+hdbc-postgresql (2.1.0.0-1) unstable; urgency=low
+
+ * New upstream release, supporting fractions of seconds.
+ * Fix documentation package.
+
+ -- John Goerzen <jgoerzen@complete.org> Tue, 10 Feb 2009 13:34:42 -0600
+
+hdbc-postgresql (2.0.0.0-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- John Goerzen <jgoerzen@complete.org> Fri, 30 Jan 2009 14:38:59 -0600
+
+hdbc-postgresql (1.1.6.0.1) unstable; urgency=high
+
+ * Rebuild for newer GHC.
+
+ -- John Goerzen <jgoerzen@complete.org> Mon, 19 Jan 2009 16:18:56 -0600
+
+hdbc-postgresql (1.1.6.0.0) unstable; urgency=low
+
+ * New version with GHC 6.10 compatibility.
+ * Added dh_haskell_depends call.
+
+ -- John Goerzen <jgoerzen@complete.org> Tue, 30 Dec 2008 09:01:20 -0600
+
+hdbc-postgresql (1.1.4.1.1) unstable; urgency=low
+
+ * Updated build-deps and rebuilt with HDBC 1.1.5.
+ * Removed a bit of boilerplate frmo description. Closes: #447886.
+
+ -- John Goerzen <jgoerzen@complete.org> Thu, 26 Jun 2008 09:09:01 -0500
+
+hdbc-postgresql (1.1.4.1.0) unstable; urgency=low
+
+ * Deal with PostgreSQL version numbers containing "RC".
+ * Added build-dep and depends on Parsec. Closes: #461599.
+
+ -- John Goerzen <jgoerzen@complete.org> Mon, 04 Feb 2008 03:14:58 -0600
+
+hdbc-postgresql (1.1.4.0.0) unstable; urgency=low
+
+ * Updated for GHC 6 and HDBC 1.1.4.
+
+ -- John Goerzen <jgoerzen@complete.org> Fri, 11 Jan 2008 11:15:36 -0600
+
+hdbc-postgresql (1.1.3.0.1) unstable; urgency=low
+
+ * Added build-dep on libhugs-parsec. Closes: #458666.
+
+ -- John Goerzen <jgoerzen@complete.org> Thu, 03 Jan 2008 02:27:05 -0600
+
+hdbc-postgresql (1.1.3.0.0) unstable; urgency=low
+
+ * Update cabal
+ * Strictify a few functions for 1.1.3 API
+ * Improve metadata handling. Patch from Steve Harris
+ * Use better SqlValue constructors for column types. Patch from
+ Steve Harris.
+
+ -- John Goerzen <jgoerzen@complete.org> Wed, 31 Oct 2007 13:24:49 -0500
+
+hdbc-postgresql (1.1.2.1) unstable; urgency=low
+
+ * Update for GHC 6.6.1.
+
+ -- John Goerzen <jgoerzen@complete.org> Wed, 06 Jun 2007 07:05:30 -0500
+
+hdbc-postgresql (1.1.2.0) unstable; urgency=low
+
+ * Update for HDBC 1.1.2.
+
+ -- John Goerzen <jgoerzen@complete.org> Thu, 03 May 2007 04:25:11 -0500
+
+hdbc-postgresql (1.1.0.0) unstable; urgency=low
+
+ * New API thanks to Peter Thiemann.
+
+ -- John Goerzen <jgoerzen@complete.org> Wed, 02 May 2007 05:51:21 -0500
+
+hdbc-postgresql (1.0.1.1) unstable; urgency=low
+
+ * Rebuilt for GHC 6.6.
+
+ -- John Goerzen <jgoerzen@complete.org> Thu, 19 Oct 2006 22:05:41 -0500
+
+hdbc-postgresql (1.0.1.0) unstable; urgency=low
+
+ * Fix unknown column size, such as for text columns
+
+ -- John Goerzen <jgoerzen@complete.org> Sat, 22 Jul 2006 07:08:49 -0500
+
+hdbc-postgresql (1.0.0.0) unstable; urgency=low
+
+ * Blessing this version as 1.0.0.0
+ * Rebuilt with ghc6 6.4.2 for Debian
+
+ -- John Goerzen <jgoerzen@complete.org> Thu, 29 Jun 2006 19:01:02 -0500
+
+hdbc-postgresql (0.99.2.1) unstable; urgency=low
+
+ * Give wrapobj a unique name so that this module can coexist with ODBC
+ in a single program.
+
+ -- John Goerzen <jgoerzen@complete.org> Tue, 28 Mar 2006 22:19:26 -0600
+
+hdbc-postgresql (0.99.2.0) unstable; urgency=low
+
+ * Updated for 0.99.2.
+
+ -- John Goerzen <jgoerzen@complete.org> Tue, 28 Mar 2006 05:33:19 -0600
+
+hdbc-postgresql (0.99.1.0) unstable; urgency=low
+
+ * Releasing 0.99.1.0, with new memory management and column type
+ meta information.
+
+ -- John Goerzen <jgoerzen@complete.org> Mon, 27 Mar 2006 23:53:21 -0600
+
+hdbc-postgresql (0.99.0.0) unstable; urgency=low
+
+ * Initial Release.
+
+ -- John Goerzen <jgoerzen@complete.org> Tue, 27 Dec 2005 16:57:21 -0600
--- hdbc-postgresql-2.3.2.1.orig/debian/compat
+++ hdbc-postgresql-2.3.2.1/debian/compat
@@ -0,0 +1 @@
+7
--- hdbc-postgresql-2.3.2.1.orig/debian/copyright
+++ hdbc-postgresql-2.3.2.1/debian/copyright
@@ -0,0 +1,45 @@
+This is hdbc-postgresql, written and maintained by
+ John Goerzen <jgoerzen@complete.org>
+
+The original source can always be found at:
+ http://software.complete.org/hdbc-postgresql
+
+Copyright (C) 2005-2009 John Goerzen <jgoerzen@complete.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+------------------------------------------------------------------
+
+pgtypes.h comes from the psqlodbc distribution, which bears this
+copyright:
+
+ Copyright (C) 1998 Insight Distribution Systems
+ Copyright (C) 1998 - 2005 The PostgreSQL Global Development Group
+
+ Multibyte support was added by Sankyo Unyu Service, (C) 2001.
+
+ The code contained in this library is based on code written by
+ Christian Czezatke and Dan McGuirk, (C) 1996.
+
+ This library is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+Most of pgtypes.h was removed by John Goerzen since it was not
+relevant for this task.
--- hdbc-postgresql-2.3.2.1.orig/debian/docs
+++ hdbc-postgresql-2.3.2.1/debian/docs
@@ -0,0 +1 @@
+README.txt
--- hdbc-postgresql-2.3.2.1.orig/debian/rules
+++ hdbc-postgresql-2.3.2.1/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+# Standard way of building Haskell libraries .
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk