2
# template debian/rules provided by dh-make-php.
4
DEB_COMPRESS_EXCLUDE=package.xml
6
include /usr/share/cdbs/1/rules/debhelper.mk
7
include /usr/share/cdbs/1/class/pear.mk
3
# Uncomment this to turn on verbose mode.
6
DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
7
DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
8
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
11
pear_pkg = $(shell ls |grep Net_UserAgent_Detect)
12
package = php-net-useragent-detect
14
configure: configure-stamp
21
build-stamp: configure-stamp
28
if [ -f $(pear_pkg)/package.xml ]; then \
29
rm $(pear_pkg)/package.xml; \
31
dh_clean build-stamp configure-stamp
40
# Add here commands to install the package into debian/package.
41
cp package.xml $(pear_pkg)/package.xml;
42
$(PEAR) install -f -n -R debian/$(package) $(pear_pkg)/package.xml;
43
rm -f debian/$(package)/usr/share/php/.filemap;
44
rm -f debian/$(package)/usr/share/php/.lock;
45
rm -rf debian/$(package)/usr/share/php/.channels;
46
rm -rf debian/$(package)/usr/share/php/.depdblock;
47
rm -rf debian/$(package)/usr/share/php/.depdb;
48
rm -rf debian/$(package)/usr/share/php/.registry/.channel.pecl.php.net;
49
rm -rf debian/$(package)/usr/share/php/.registry/.channel.doc.php.net;
50
rm -rf debian/$(package)/usr/share/php/.registry/.channel.__uri;
51
rm -rf debian/$(package)/tmp
53
# remove duplicated files, these files are in /usr/share/doc/package
54
rm -rf debian/$(package)/usr/share/php/docs;
55
rm -rf debian/$(package)/usr/share/php/tests;
57
# Build architecture-dependent files here.
58
binary-arch: build install
59
# We have nothing to do by default.
61
# Build architecture-independent files here.
62
binary-indep: build install
75
binary: binary-indep binary-arch
76
.PHONY: build clean binary-indep binary-arch binary install configure