[Pkg-php-commits] r1021 - pear/php-auth/trunk/debian
Gregory Colpart
reg-guest at alioth.debian.org
Mon Apr 28 01:07:32 UTC 2008
Author: reg-guest
Date: 2008-04-28 01:07:32 +0000 (Mon, 28 Apr 2008)
New Revision: 1021
Modified:
pear/php-auth/trunk/debian/rules
Log:
update from http://wiki.debian.org/GregoryColpart/PearPolicyDraft
Modified: pear/php-auth/trunk/debian/rules
===================================================================
--- pear/php-auth/trunk/debian/rules 2008-04-21 23:39:40 UTC (rev 1020)
+++ pear/php-auth/trunk/debian/rules 2008-04-28 01:07:32 UTC (rev 1021)
@@ -1,5 +1,9 @@
#!/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 Auth)
package = php-auth
@@ -31,21 +35,30 @@
# 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;
+ $(PEAR) \
+ -c debian/pearrc \
+ -d include_path=/usr/share/php \
+ -d php_bin=/usr/bin/php \
+ -d bin_dir=/usr/bin \
+ -d php_dir=/usr/share/php \
+ -d data_dir=/usr/share/php/data \
+ -d doc_dir=/usr/share/php/docs \
+ -d test_dir=/usr/share/php/tests \
+ install -n -f -P debian/$(package) $(pear_pkg)/package.xml
- # remove duplicated files, these files are in /usr/share/doc/package
- rm -rf debian/$(package)/usr/share/php/tests;
- rm -rf debian/$(package)/usr/share/php/docs;
+ # remove unwanted files
+ 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;
+ rm -rf debian/$(package)/tmp
- # remove created tmp dir
- rm -rf debian/$(package)/tmp
+ # remove duplicated files, these files are in /usr/share/doc/package
+ rm -rf debian/$(package)/usr/share/php/tests \
+ debian/$(package)/usr/share/php/docs
# Build architecture-dependent files here.
binary-arch: build install
@@ -68,3 +81,7 @@
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/Log-${DEB_UPSTREAM_VERSION}.tgz \
+ -O php-log_${DEB_UPSTREAM_VERSION}.orig.tar.gz
+
More information about the Pkg-php-commits
mailing list