[Pkg-php-commits] [php/debian-sid] Move php5-fpm.postrm to debian/rules

Ondřej Surý ondrej at sury.org
Thu Mar 17 16:38:40 UTC 2011


---
 debian/php5-fpm.postrm |    9 ---------
 debian/rules           |    2 ++
 2 files changed, 2 insertions(+), 9 deletions(-)
 delete mode 100644 debian/php5-fpm.postrm

diff --git a/debian/php5-fpm.postrm b/debian/php5-fpm.postrm
deleted file mode 100644
index 267791b..0000000
--- a/debian/php5-fpm.postrm
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#DEBHELPER
-
-dpkg-maintscript-helper mv_conffile /etc/php5/fpm/main.conf /etc/php5/fpm/php-fpm.conf 5.3.5-1 -- "$@"
-
-exit 0
diff --git a/debian/rules b/debian/rules
index f1c4fb4..918f229 100755
--- a/debian/rules
+++ b/debian/rules
@@ -646,6 +646,8 @@ binary-arch: build install
 		mv debian/php5-apache2filter.$$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
 
-- 
1.7.1




More information about the Pkg-php-commits mailing list