diff options
author | Adam Conrad <adconrad@0c3.net> | 2005-12-15 14:46:56 +1100 |
---|---|---|
committer | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:35:06 -0400 |
commit | a0c8eb82d4bd618e4fba230d00b85d2c45f50d58 (patch) | |
tree | e5f41b5ea0156b440551add24961d757a9a0b454 /debian/rules | |
parent | 8891a28c15ff2c6fb9afd1694127a9d984fc2b75 (diff) | |
download | php-a0c8eb82d4bd618e4fba230d00b85d2c45f50d58.tar.gz |
Imported Debian patch 5.1.1-1debian/5.1.1-1
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules index 8bdbb3e66..f34986527 100755 --- a/debian/rules +++ b/debian/rules @@ -88,10 +88,16 @@ COMMON_CONFIG= --build=$(PHP5_BUILD_GNU_TYPE)-gnu --host=$(PHP5_HOST_GNU_TYPE)- --with-kerberos=/usr \ --with-openssl=/usr \ --enable-dbx \ + --disable-pdo \ --enable-soap \ --with-mime-magic=$(MAGIC_MIME) \ --with-exec-dir=/usr/lib/php5/libexec +BUILTIN_EXTENSION_CHECK=$$e=get_loaded_extensions(); natcasesort($$e); \ + $$s="The following extensions are built in:"; \ + foreach($$e as $$i) { $$s .= " $$i"; } \ + echo("php:Extensions=" . wordwrap($$s . ".\n", 75, "\$${Newline} ")); + patch: patch-stamp patch-stamp: dh_testdir @@ -436,10 +442,6 @@ binary-arch: build install cat debian/copyright.header LICENSE Zend/LICENSE > debian/copyright dh_installdocs -a - for i in README CODING_STANDARDS; do \ - cp pear/$$i debian/php5-common/usr/share/doc/php5-common/PEAR/; \ - done - cat debian/modulelist | while read package extname dsoname; do \ rm -rf debian/php5-$$package/usr/share/doc/php5-$$package; \ ln -s php5-common debian/php5-$$package/usr/share/doc/php5-$$package; \ @@ -484,6 +486,15 @@ binary-arch: build install echo "php:Depends=phpapi-$${phpapi}" >> debian/php5-$$package.substvars; \ done + for i in cgi cli; do \ + "$$i"-build/sapi/cli/php -n -r '$(BUILTIN_EXTENSION_CHECK)' \ + >> debian/php5-"$$i".substvars; \ + done + for i in apache apache2; do \ + "$$i"-build/sapi/cli/php -n -r '$(BUILTIN_EXTENSION_CHECK)' \ + >> debian/lib"$$i"-mod-php5.substvars; \ + done + echo "apache:Depends=apache-common (>= $(APACHE_VERSION))" >>debian/libapache-mod-php5.substvars echo "apache2:Depends=apache2-mpm-prefork (>> 2.0.52)" >>debian/libapache2-mod-php5.substvars dh_gencontrol -a |