--- php-mdb2-2.5.0b2.orig/debian/changelog +++ php-mdb2-2.5.0b2/debian/changelog @@ -0,0 +1,16 @@ +php-mdb2 (2.5.0b2-1) unstable; urgency=low + + [ Mark A. Hershberger ] + * New upstream version. (Closes: #520897) + + [ Vincent Bernat ] + * Bump Standards-Version to 3.8.1. No changes required. + + -- Mark A. Hershberger Fri, 24 Apr 2009 15:03:30 -0400 + +php-mdb2 (2.4.1-1) unstable; urgency=low + + * Initial Release. (Closes: #441637) + + -- Mark A. Hershberger Sat, 29 Nov 2008 19:42:16 +0100 + --- php-mdb2-2.5.0b2.orig/debian/rules +++ php-mdb2-2.5.0b2/debian/rules @@ -0,0 +1,81 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') +DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-) +DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//') + +PEAR ?= /usr/bin/pear +pear_pkg = $(shell ls |grep MDB2) +package = php-mdb2 + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + touch build-stamp + +clean: + dh_testdir + dh_testroot + if [ -f $(pear_pkg)/package.xml ]; then \ + rm $(pear_pkg)/package.xml; \ + fi + dh_clean build-stamp configure-stamp + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/package. + cp package.xml $(pear_pkg)/package.xml + $(PEAR) install -f -n -R debian/$(package) $(pear_pkg)/package.xml + rm -f debian/$(package)/usr/share/php/.filemap + rm -f debian/$(package)/usr/share/php/.lock + rm -rf debian/$(package)/usr/share/php/data + rm -rf debian/$(package)/usr/share/php/.channels + rm -rf debian/$(package)/usr/share/php/.depdblock + rm -rf debian/$(package)/usr/share/php/.depdb + rm -rf debian/$(package)/usr/share/php/.registry/.channel.pecl.php.net + rm -rf debian/$(package)/usr/share/php/.registry/.channel.__uri + rm -rf debian/$(package)/tmp + + # remove duplicated files, these files are in /usr/share/doc/package + rm -rf debian/$(package)/usr/share/php/docs + rm -rf debian/$(package)/usr/share/php/tests + rm -rf debian/$(package)/usr/share/php/data/MDB2 + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installchangelogs + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure + +get-orig-source: + wget http://download.pear.php.net/package/MDB2-${DEB_UPSTREAM_VERSION}.tgz -O php-mdb2_${DEB_UPSTREAM_VERSION}.orig.tar.gz --- php-mdb2-2.5.0b2.orig/debian/compat +++ php-mdb2-2.5.0b2/debian/compat @@ -0,0 +1 @@ +5 --- php-mdb2-2.5.0b2.orig/debian/watch +++ php-mdb2-2.5.0b2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://pear.php.net/package/MDB2 http://download.pear.php.net/package/MDB2-([\d.bRC]+).tgz --- php-mdb2-2.5.0b2.orig/debian/copyright +++ php-mdb2-2.5.0b2/debian/copyright @@ -0,0 +1,51 @@ +This package was debianized by Mark A. Hershberger + and is currently maintained by the +Debian PHP Maintainers + +The upstream authors are + Lukas Kahwe Smith + Lorenzo Alberton + Paul Cooper + +It was downloaded from http://pear.php.net/package/MDB2 + +Following is the (BSD-style) MDB2 copyright: + +// +----------------------------------------------------------------------+ +// | Copyright (c) 1998-2006 Manuel Lemos, Tomas V.V.Cox, | +// | Stig. S. Bakken, Lukas Smith | +// | All rights reserved. | +// +----------------------------------------------------------------------+ +// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB | +// | API as well as database abstraction for PHP applications. | +// | This LICENSE is in the BSD license style. | +// | | +// | 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. | +// | | +// | Neither the name of Manuel Lemos, Tomas V.V.Cox, Stig. S. Bakken, | +// | Lukas Smith nor the names of his contributors may 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 | +// | REGENTS 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-mdb2-2.5.0b2.orig/debian/control +++ php-mdb2-2.5.0b2/debian/control @@ -0,0 +1,49 @@ +Source: php-mdb2 +Section: web +Priority: optional +Maintainer: Debian PHP Maintainers +Uploaders: Mark A. Hershberger , Vincent Bernat +Build-Depends: debhelper (>= 5) +Build-Depends-Indep: php-pear +Vcs-Svn: svn://svn.debian.org/pkg-php/pear/php-mdb2/trunk +Vcs-Browser: http://svn.debian.org/wsvn/pkg-php/pear/php-mdb2/trunk +Homepage: http://pear.php.net/package/MDB2 +Standards-Version: 3.8.1 + +Package: php-mdb2 +Architecture: all +Depends: php-pear (>=5.2.0-8) +Description: PHP PEAR module to provide a common API for supported RDBMS + PEAR MDB2 is a merge of the PEAR DB and Metabase php database + abstraction layers. + . + It provides a common API for all supported RDBMS. The main difference + to most other DB abstraction packages is that MDB2 goes much further + to ensure portability. MDB2 provides most of its many features + optionally that can be used to construct portable SQL statements: + . + * Object-Oriented API + * A DSN (data source name) or array format for specifying database + servers + * Datatype abstraction and on demand datatype conversion + * Various optional fetch modes to fix portability issues + * Portable error codes + * Sequential and non sequential row fetching as well as bulk fetching + * Ability to make buffered and unbuffered queries + * Ordered array and associative array for the fetched rows + * Prepare/execute (bind) named and unnamed placeholder emulation + * Sequence/autoincrement emulation + * Replace emulation + * Limited sub select emulation + * Row limit emulation + * Transactions/savepoint support + * Large Object support + * Index/Unique Key/Primary Key support + * Pattern matching abstraction + * Module framework to load advanced functionality on demand + * Ability to read the information schema + * RDBMS management methods (creating, dropping, altering) + * Reverse engineering schemas from an existing database + * SQL function call abstraction + * Full integration into the PEAR Framework + * PHPDoc API documentation --- php-mdb2-2.5.0b2.orig/debian/svn-deblayout +++ php-mdb2-2.5.0b2/debian/svn-deblayout @@ -0,0 +1,3 @@ +origDir=../../upstream +buildArea=../../build-area +