[Pkg-php-commits] r963 - pear/php-db/trunk/debian

Thijs Kinkhorst thijs at alioth.debian.org
Sun Jan 20 16:58:05 UTC 2008


Author: thijs
Date: 2008-01-20 16:58:05 +0000 (Sun, 20 Jan 2008)
New Revision: 963

Modified:
   pear/php-db/trunk/debian/docs
   pear/php-db/trunk/debian/rules
Log:
revert previous revision of debian/rules, it tries to use
the standard PEAR packaging procedure, but DB does not ship
a package.xml file, making this fail. For now at least it
builds correctly again.


Modified: pear/php-db/trunk/debian/docs
===================================================================
--- pear/php-db/trunk/debian/docs	2008-01-20 16:56:22 UTC (rev 962)
+++ pear/php-db/trunk/debian/docs	2008-01-20 16:58:05 UTC (rev 963)
@@ -1 +1 @@
-DB-*/doc/*
+doc/*

Modified: pear/php-db/trunk/debian/rules
===================================================================
--- pear/php-db/trunk/debian/rules	2008-01-20 16:56:22 UTC (rev 962)
+++ pear/php-db/trunk/debian/rules	2008-01-20 16:58:05 UTC (rev 963)
@@ -1,79 +1,42 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+source=$(shell dpkg-parsechangelog | grep '^Source: ' | sed -e 's/^Source: //')
 
-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/-[^-]*$$//')
+build:
+	# Nothing to do here
 
-PEAR ?= /usr/bin/pear
-pear_pkg = $(shell ls |grep DB)
-package = php-db
-
-configure: configure-stamp
-configure-stamp:
+clean:
 	dh_testdir
-	touch configure-stamp
+	dh_testroot
+	dh_clean
 
-build: build-stamp
+binary: binary-arch binary-indep
+	# Nothing to do here
 
-build-stamp: configure-stamp 
-	dh_testdir
-	touch build-stamp
+binary-arch:
+	# Nothing to do here
 
-clean:
+binary-indep:
 	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.__uri;
+	# Custom package actions
+	cp DB.php debian/$(source)/usr/share/php/
+	cp DB/* debian/$(source)/usr/share/php/DB/
+	cp -r tests/* debian/$(source)/usr/share/php/tests/
+	chmod 755 debian/$(source)/usr/share/php/tests/driver/run.cvs \
+		debian/$(source)/usr/share/php/tests/run.cvs
 
-	# 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/data/DB/misc;
-
-	chmod 755 debian/$(package)/usr/share/php/tests/DB/tests/run.cvs
-	chmod 755 debian/$(package)/usr/share/php/tests/DB/tests/driver/run.cvs
-
-# 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
+	# Rest of the debhelper scripts
 	dh_testroot
+	dh_installchangelogs
 	dh_installdocs
-	dh_installexamples
-	dh_installchangelogs 
-	dh_compress
 	dh_fixperms
-	dh_installdeb
+	dh_compress
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
+.PHONY: binary binary-arch binary-indep build clean
 
-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/DB-${DEB_UPSTREAM_VERSION}.tgz -O php-db_${DEB_UPSTREAM_VERSION}.orig.tar.gz




More information about the Pkg-php-commits mailing list