--- php-validate-ch-0.6.0.orig/debian/changelog +++ php-validate-ch-0.6.0/debian/changelog @@ -0,0 +1,5 @@ +php-validate-ch (0.6.0-0ubuntu1~ppa1) karmic; urgency=low + + * Initial release. + + -- Daniel Holbach Fri, 03 Jul 2009 11:05:04 +0200 --- php-validate-ch-0.6.0.orig/debian/compat +++ php-validate-ch-0.6.0/debian/compat @@ -0,0 +1 @@ +5 --- php-validate-ch-0.6.0.orig/debian/watch +++ php-validate-ch-0.6.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://pear.php.net/package/Validate_CH http://download.pear.php.net/package/Validate_CH-([\d.RC]+).tgz --- php-validate-ch-0.6.0.orig/debian/copyright +++ php-validate-ch-0.6.0/debian/copyright @@ -0,0 +1,38 @@ +This package was debianized by Daniel Holbach +on Fri, 03 Jul 2009 11:05:04 +0200. + +It was downloaded from http://pear.php.net/package/Validate_CH + +Upstream Authors: + Hans-Peter Oeri + +Copyright: + Copyright (c) 1997-2005 Hans-Peter Oeri + +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, th + is 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 WA +RRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABIL +ITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR C +ONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOW +EVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILI +TY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE U +SE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +On Debian systems, this licence can be found here: +/usr/share/common-licenses/BSD + --- php-validate-ch-0.6.0.orig/debian/control +++ php-validate-ch-0.6.0/debian/control @@ -0,0 +1,17 @@ +Source: php-validate-ch +Section: web +Priority: optional +Maintainer: Daniel Holbach +Build-Depends: debhelper (>= 5.0) +Build-Depends-Indep: php-pear +Homepage: http://pear.php.net/package/Validate_CH +Standards-Version: 3.8.2 + +Package: php-validate-ch +Architecture: all +Depends: php-pear, php-validate (>= 0.5.0) +Description: PHP PEAR module for validation of data (Switzerland) + Package containes locale validation for CH such as: + * SSN + * Postal Code + * Student ID --- php-validate-ch-0.6.0.orig/debian/rules +++ php-validate-ch-0.6.0/debian/rules @@ -0,0 +1,72 @@ +#!/usr/bin/make -f + +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 Validate_CH) +package = php-validate-ch + +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/.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.doc.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; + +# 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 --- php-validate-ch-0.6.0.orig/debian/dirs +++ php-validate-ch-0.6.0/debian/dirs @@ -0,0 +1 @@ +usr/share/php/