From: Dragan Dosen Date: Wed, 2 Apr 2008 10:04:32 +0000 (+0200) Subject: Added a dependency on debconf (debian/control). X-Git-Tag: v5.3.3+3~15 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=0afc3c15999bbb2ef281abf83c95649645b7e97c;p=php5-cn.git Added a dependency on debconf (debian/control). In debian/postinst, using 'printf' instead of 'echo -e'. --- diff --git a/debian/control b/debian/control index de9a31f..fae7f90 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Standards-Version: 3.6.1 Package: php5-cn Architecture: all -Depends: libapache2-mod-php5, php5-cli, php5-mysql, carnet-tools-cn (>= 2.4) +Depends: libapache2-mod-php5, php5-cli, php5-mysql, debconf, carnet-tools-cn (>= 2.4) Conflicts: php4-cn Description: server-side, HTML-embedded scripting language (CARNet configuration) This package is a meta-package that, when installed, guarantees that you diff --git a/debian/postinst b/debian/postinst index f17140b..25b9804 100755 --- a/debian/postinst +++ b/debian/postinst @@ -139,7 +139,7 @@ for php5ext in $EXTENSIONS; do cp_echo "CN: Adding $php5ext extension to file $PHP5CONFD/$php5ext.ini" - echo -e "# configuration for php $php5ext_up module\nextension=$php5ext.so" >> "$INITMP" + printf "# configuration for php %s module\nextension=%s\n" "${php5ext_up}" "${php5ext}" >> "$INITMP" cp_mv "$INITMP" "$PHP5CONFD/$php5ext.ini" need_restart=1