diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-03-08 10:05:00 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-03-12 23:08:24 +0100 |
| commit | 6ca41dfd23810fc0dc94316ebda30e1f5af7ef5c (patch) | |
| tree | b3c6e411086cced905e25fc29bd964ec5da916f1 /debian/rules | |
| parent | 3d74fd8de77bc5bad6d7c172c4543f9bfa9693c0 (diff) | |
| download | php-6ca41dfd23810fc0dc94316ebda30e1f5af7ef5c.tar.gz | |
Add support for *.extra.{post,pre}{inst,rm} files
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/debian/rules b/debian/rules index 39c2385a3..47abddcd5 100755 --- a/debian/rules +++ b/debian/rules @@ -691,21 +691,20 @@ binary-arch: build install # likewise, for the different sapi implementations for tmpl in postrm links; do \ for sapi in cgi cli fpm; do \ - sed -e "s/@sapi@/$$sapi/g;s/@package@/php5-$${sapi}/g" \ - < debian/php5-sapi.$$tmpl \ - > debian/php5-$${sapi}.$$tmpl; \ + sed -e "s/@sapi@/$${sapi}/g; \ + s/@package@/php5-$${sapi}/g; \ + /#EXTRA#/ r debian/php5-$${sapi}.$${tmpl}.extra;" \ + < debian/php5-sapi.$${tmpl} \ + > debian/php5-$${sapi}.$${tmpl}; \ done; \ + for sapi in "" "filter"; do \ + sed -e "s/@sapi@/apache2$${sapi}/g; \ + s/@package@/libapache2-mod-php5$${sapi}/g; \ + /#EXTRA#/ r debian/libapache2-mod-php5$${sapi}.$${tmpl}.extra;" \ + < debian/php5-sapi.$${tmpl} \ + > debian/libapache2-mod-php5$${sapi}.$${tmpl}; \ + done; \ done - for tmpl in postrm links; do \ - sed -e "s/@sapi@/apache2/g;s/@package@/libapache2-mod-php5/g" \ - < debian/php5-sapi.$$tmpl \ - > debian/libapache2-mod-php5.$$tmpl; \ - sed -e "s/@sapi@/apache2filter/g;s/@package@/libapache2-mod-php5filter/g" \ - < debian/php5-sapi.$$tmpl \ - > debian/libapache2-mod-php5filter.$$tmpl; \ - done - - sed -i -e 's|exit 0|dpkg-maintscript-helper mv_conffile /etc/php5/fpm/main.conf /etc/php5/fpm/php-fpm.conf 5.3.5-1 -- \"\$\@\"\n\nexit 0|' debian/php5-fpm.postrm cat debian/copyright.header LICENSE Zend/LICENSE > debian/copyright dh_installdocs -s |
