--- php-pager-2.4.6.orig/debian/control
+++ php-pager-2.4.6/debian/control
@@ -0,0 +1,18 @@
+Source: php-pager
+Section: web
+Priority: optional
+Maintainer: Charles Fry <cfry@debian.org>
+Build-Depends: dh-make-php (>= 0.1.1), debhelper (>= 5), cdbs
+Depends: phpapi-20041030 | phpapi-20050606 | phpapi-20020918
+Standards-Version: 3.8.0
+Homepage: http://pear.php.net/package/Pager/
+
+Package: php-pager
+Architecture: all
+Description: Pages an array of data, creating links to previous and next pages
+ Takes an array of data as input and pages it according to various
+ parameters, building links within a specified range. For example, an
+ array of alphabetical letters could be paged, resulting in pages with
+ three letters per page, and links to the previous and next two pages.
+ Can be configured to use "Jumping" and "Sliding" window styles.
+ .
--- php-pager-2.4.6.orig/debian/copyright
+++ php-pager-2.4.6/debian/copyright
@@ -0,0 +1,32 @@
+This package was debianized by Charles Fry <debian@frogcircus.org> using dh-make-pear
+on Fri, 24 Jun 2005 11:44:05 -0400.
+
+It was downloaded from http://pear.php.net/package/Pager
+
+Upstream Authors:
+    Lorenzo Alberton <l.alberton@quipo.it>
+    Richard Heyes <richard@phpguru.org>
+
+Copyright 2003-2008 Lorenzo Alberton, Richard Heyes
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. 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.
+3. 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 AUTHOR "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 FREEBSD PROJECT 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.
--- php-pager-2.4.6.orig/debian/changelog
+++ php-pager-2.4.6/debian/changelog
@@ -0,0 +1,75 @@
+php-pager (2.4.6-1) unstable; urgency=low
+
+  * New upstream release (Closes: #429808)
+  * Updated watch file (Closes: #450249)
+  * Updated copyright
+
+ -- Charles Fry <cfry@debian.org>  Thu, 24 Jul 2008 11:38:01 -0400
+
+php-pager (2.4.3-1) unstable; urgency=low
+
+  * New upstream release (Closes: #429808)
+
+ -- Charles Fry <cfry@debian.org>  Thu, 12 Jul 2007 14:15:23 -0400
+
+php-pager (2.4.2-2) unstable; urgency=low
+
+  * Explicitly depend on cdbs (in addition to dh-make-php) to please lintian
+  * Debhelper compatability level 5
+  * New maintainer email address
+
+ -- Charles Fry <cfry@debian.org>  Wed,  5 Jul 2006 23:18:45 -0400
+
+php-pager (2.4.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Build with dh-make-php
+
+ -- Charles Fry <debian@frogcircus.org>  Thu,  8 Jun 2006 09:26:54 -0400
+
+php-pager (2.4.0-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Charles Fry <debian@frogcircus.org>  Tue, 25 Apr 2006 19:46:42 -0400
+
+php-pager (2.3.6-2) unstable; urgency=low
+
+  * Removed new files in /usr/share/php hidden directories
+
+ -- Charles Fry <debian@frogcircus.org>  Mon, 27 Feb 2006 10:32:03 -0500
+
+php-pager (2.3.6-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Charles Fry <debian@frogcircus.org>  Tue,  7 Feb 2006 16:08:41 -0500
+
+php-pager (2.3.4-3) unstable; urgency=low
+
+  * Use xmlstarlet instead of Perl xpath to avoid network access when
+    building, thanks to Daniel Schepler <daniel@frobnitz.homelinux.net>
+    (Closes: #337439)
+
+ -- Charles Fry <debian@frogcircus.org>  Fri,  4 Nov 2005 21:34:13 -0500
+
+php-pager (2.3.4-2) unstable; urgency=low
+
+  * Integrated pear.mk
+
+ -- Charles Fry <debian@frogcircus.org>  Tue,  4 Oct 2005 10:25:22 -0400
+
+php-pager (2.3.4-1) unstable; urgency=low
+
+  * New upstream release
+  * Moved to CDBS
+  * Move docs to correct location
+
+ -- Charles Fry <debian@frogcircus.org>  Thu, 29 Sep 2005 09:54:04 -0400
+
+php-pager (2.3.3-1) unstable; urgency=low
+
+  * Initial Release (Closes: #315368)
+
+ -- Charles Fry <debian@frogcircus.org>  Fri, 24 Jun 2005 11:57:10 -0400
+
--- php-pager-2.4.6.orig/debian/dirs
+++ php-pager-2.4.6/debian/dirs
@@ -0,0 +1 @@
+usr/share/php
--- php-pager-2.4.6.orig/debian/watch
+++ php-pager-2.4.6/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pear.php.net/package/Pager/download .*/Pager-([\d.]+)\.tgz debian svn-upgrade
--- php-pager-2.4.6.orig/debian/rules
+++ php-pager-2.4.6/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/pear.mk
+
+common-install-indep::
+	# must patch after pear install to avoid breaking checksum
+	patch -p0 < debian/patches/01_simpletest.patch
--- php-pager-2.4.6.orig/debian/compat
+++ php-pager-2.4.6/debian/compat
@@ -0,0 +1 @@
+5
--- php-pager-2.4.6.orig/debian/patches/01_simpletest.patch
+++ php-pager-2.4.6/debian/patches/01_simpletest.patch
@@ -0,0 +1,12 @@
+diff -urNad --exclude=CVS --exclude=.svn ./debian/php-pager/usr/share/doc/php-pager/tests/simple_include.php /tmp/dpep-work.6DWVl8/php-pager/debian/php-pager/usr/share/doc/php-pager/tests/simple_include.php
+--- ./debian/php-pager/usr/share/doc/php-pager/tests/simple_include.php	2004-02-01 09:41:49.000000000 -0500
++++ /tmp/dpep-work.6DWVl8/php-pager/debian/php-pager/usr/share/doc/php-pager/tests/simple_include.php	2005-09-15 00:36:23.000000000 -0400
+@@ -6,7 +6,7 @@
+ // http://www.lastcraft.com/simple_test.php
+ //
+ if (!defined('SIMPLE_TEST')) {
+-    define('SIMPLE_TEST', '../simpletest/');
++    define('SIMPLE_TEST', '/usr/share/php/simpletest/');
+ }
+ 
+ require_once(SIMPLE_TEST . 'unit_tester.php');
