From: Dragan Dosen Date: Wed, 2 Apr 2008 09:48:08 +0000 (+0200) Subject: Added a dependency on debconf (debian/control). X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;ds=sidebyside;h=906c6d4612c3e766f947a1d1ebb332fed30ae2f1;p=php4-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 c45e508..ac36990 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Standards-Version: 3.6.1 Package: php4-cn Architecture: all -Depends: libapache2-mod-php4, php4-cli, php4-mysql, carnet-tools-cn (>= 2.4) +Depends: libapache2-mod-php4, php4-cli, php4-mysql, debconf, carnet-tools-cn (>= 2.4) Conflicts: php5-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 26a3e5f..6979c4e 100755 --- a/debian/postinst +++ b/debian/postinst @@ -139,7 +139,7 @@ for php4ext in $EXTENSIONS; do cp_echo "CN: Adding $php4ext extension to file $PHP4CONFD/$php4ext.ini" - echo -e "# configuration for php $php4ext_up module\nextension=$php4ext.so" >> "$INITMP" + printf "# configuration for php %s module\nextension=%s\n" "${php4ext_up}" "${php4ext}" >> "$INITMP" cp_mv "$INITMP" "$PHP4CONFD/$php4ext.ini" need_restart=1