wok-6.x rev 23426

updated php packages (7.3.16 -> 7.4.4)
author Hans-G?nter Theisgen
date Wed Apr 01 15:23:29 2020 +0100 (2020-04-01)
parents 550ebe21c230
children 563eb06bdb4a
files php-apache/receipt php-cherokee/receipt php-cli/receipt php-common/receipt php-curl/receipt php-dba/receipt php-dev/receipt php-docs-en/receipt php-gd/receipt php-imap/receipt php-ldap/receipt php-mysql/receipt php-mysqli/receipt php-odbc/receipt php-opcache/receipt php-openssl/receipt php-pdo-mysql/receipt php-pdo-pgsql/receipt php-pear/receipt php-pgsql/receipt php-snmp/receipt php-soap/receipt php-sqlite/receipt php/receipt
line diff
     1.1 --- a/php-apache/receipt	Wed Apr 01 11:42:26 2020 +0200
     1.2 +++ b/php-apache/receipt	Wed Apr 01 15:23:29 2020 +0100
     1.3 @@ -1,42 +1,45 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="php-apache"
     1.7 -VERSION="7.3.16"
     1.8 +VERSION="7.4.4"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="PHP module for apache."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="BSD"
    1.13  WEB_SITE="https://www.php.net/"
    1.14 +
    1.15 +PROVIDE="php:apache"
    1.16 +DEPENDS="apache libxml2 php-common zlib"
    1.17  WANTED="php"
    1.18 -PROVIDE="php:apache"
    1.19 -
    1.20 -DEPENDS="php-common apache libxml2 zlib"
    1.21  
    1.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.23  genpkg_rules()
    1.24  {
    1.25  	mkdir -p $fs/usr/share
    1.26 -	cp -a $install/usr/share/apache $fs/usr/share
    1.27 +	cp -a $install/usr/share/apache	$fs/usr/share
    1.28  }
    1.29  
    1.30  # Post and pre install commans to stop
    1.31  # and restart Web server if needed.
    1.32  pre_install()
    1.33  {
    1.34 -	if [ -z "$1" -a -f "/var/run/apache/httpd.pid" ]; then
    1.35 +	if [ -z "$1" -a -f "/var/run/apache/httpd.pid" ]
    1.36 +	  then
    1.37  		/etc/init.d/apache stop
    1.38  	fi
    1.39  }
    1.40  
    1.41  post_install()
    1.42  {
    1.43 -	grep -q php5_module "$1/etc/apache/httpd.conf" || {
    1.44 +	grep -q php5_module "$1/etc/apache/httpd.conf" ||
    1.45 +	{
    1.46  	    sed -e 's|mod_rewrite.so|mod_rewrite.so\nLoadModule php5_module share/apache/modules/libphp5.so|' \
    1.47  	    	-e 's|DirectoryIndex index.html|DirectoryIndex index.html index.php|' \
    1.48  		-e 's|mime.types|mime.types\n    AddType application/x-httpd-php .php .php3 .php4 .php5\n    AddType application/x-httpd-php-source .phps|' \
    1.49  	        -i "$1/etc/apache/httpd.conf"
    1.50  	}
    1.51 -	[ -f "$1/etc/apache/conf.d/phpinfo" ] || \
    1.52 +
    1.53 +	[ -f "$1/etc/apache/conf.d/phpinfo" ] || 
    1.54  		cat > "$1/etc/apache/conf.d/phpinfo" <<EOT
    1.55  <IfModule mod_alias.c>
    1.56      Alias /phpinfo /usr/share/phpinfo
    1.57 @@ -49,13 +52,15 @@
    1.58      Allow from all
    1.59  </DirectoryMatch>
    1.60  EOT
    1.61 +
    1.62  	# Restart Web server.
    1.63 -	if [ -z "$1" -a -f "/var/run/apache/httpd.pid" ]; then
    1.64 +	if [ -z "$1" -a -f "/var/run/apache/httpd.pid" ]
    1.65 +	  then
    1.66  		/etc/init.d/apache stop
    1.67  		sleep 2
    1.68  	fi
    1.69 -	if [ -z "$1" ]; then
    1.70 +	if [ -z "$1" ]
    1.71 +	  then
    1.72  		/etc/init.d/apache start
    1.73  	fi
    1.74  }
    1.75 -
     2.1 --- a/php-cherokee/receipt	Wed Apr 01 11:42:26 2020 +0200
     2.2 +++ b/php-cherokee/receipt	Wed Apr 01 15:23:29 2020 +0100
     2.3 @@ -1,29 +1,32 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="php-cherokee"
     2.7 -VERSION="7.3.16"
     2.8 +VERSION="7.4.4"
     2.9  CATEGORY="development"
    2.10  SHORT_DESC="PHP module for cherokee."
    2.11  MAINTAINER="shann@slitaz.org"
    2.12  LICENSE="BSD"
    2.13  WEB_SITE="https://www.php.net/"
    2.14 +
    2.15 +PROVIDE="php:cherokee"
    2.16 +DEPENDS="cherokee libxml2 php-common zlib"
    2.17  WANTED="php"
    2.18 -PROVIDE="php:cherokee"
    2.19 -
    2.20 -DEPENDS="php-common cherokee libxml2 zlib"
    2.21  
    2.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.23  genpkg_rules()
    2.24  {
    2.25 -	mkdir -p $fs/usr/bin $fs/usr/share/php
    2.26 -	cp -a $src/sapi/cgi/php-cgi $fs/usr/bin
    2.27 +	mkdir -p $fs/usr/bin
    2.28 +	mkdir -p $fs/usr/share/php
    2.29 +
    2.30 +	cp -a $src/sapi/cgi/php-cgi	$fs/usr/bin
    2.31  }
    2.32  
    2.33  # Post and pre install commands to stop
    2.34  # and restart Web server if needed.
    2.35  pre_install()
    2.36  {
    2.37 -	if [ -z "$1" -a ! -f "/var/run/cherokee.pid" ]; then
    2.38 +	if [ -z "$1" -a ! -f "/var/run/cherokee.pid" ]
    2.39 +	  then
    2.40  		/etc/init.d/cherokee stop
    2.41  	fi
    2.42  }
    2.43 @@ -48,8 +51,8 @@
    2.44  
    2.45  
    2.46  	# Start Web server.
    2.47 -	if [ -z "$1" -a ! -f /var/run/cherokee.pid \
    2.48 -		     -a -f /etc/init.d/cherokee ]; then
    2.49 +	if [ -z "$1" -a ! -f /var/run/cherokee.pid -a -f /etc/init.d/cherokee ]
    2.50 +	  then
    2.51  		/etc/init.d/cherokee start
    2.52  	fi
    2.53  }
     3.1 --- a/php-cli/receipt	Wed Apr 01 11:42:26 2020 +0200
     3.2 +++ b/php-cli/receipt	Wed Apr 01 15:23:29 2020 +0100
     3.3 @@ -1,19 +1,19 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="php-cli"
     3.7 -VERSION="7.3.16"
     3.8 +VERSION="7.4.4"
     3.9  CATEGORY="development"
    3.10  SHORT_DESC="PHP web programming language command line interpreter."
    3.11  MAINTAINER="pascal.bellard@slitaz.org"
    3.12  LICENSE="BSD"
    3.13  WEB_SITE="https://www.php.net/"
    3.14 -WANTED="php"
    3.15  
    3.16  DEPENDS="php-common"
    3.17 +WANTED="php"
    3.18  
    3.19  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.20  genpkg_rules()
    3.21  {
    3.22  	mkdir -p $fs/usr/bin
    3.23 -	cp -a $install/usr/bin/php $fs/usr/bin
    3.24 +	cp -a $install/usr/bin/php	$fs/usr/bin
    3.25  }
     4.1 --- a/php-common/receipt	Wed Apr 01 11:42:26 2020 +0200
     4.2 +++ b/php-common/receipt	Wed Apr 01 15:23:29 2020 +0100
     4.3 @@ -1,33 +1,39 @@
     4.4  # SliTaz package receipt.
     4.5  
     4.6  PACKAGE="php-common"
     4.7 -VERSION="7.3.16"
     4.8 +VERSION="7.4.4"
     4.9  CATEGORY="development"
    4.10  SHORT_DESC="Common files for PHP modules."
    4.11  MAINTAINER="pascal.bellard@slitaz.org"
    4.12  LICENSE="BSD"
    4.13  WEB_SITE="https://www.php.net/"
    4.14 +
    4.15  WANTED="php"
    4.16 +
    4.17  CONFIG_FILES="/etc/php.ini"
    4.18  
    4.19  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.20  genpkg_rules()
    4.21  {
    4.22 -	mkdir -p $fs/etc \
    4.23 -		$fs/usr/share/applications \
    4.24 -		$fs/usr/share/pixmaps
    4.25 -	cp -a $stuff/phpinfo $fs/usr/share
    4.26 -	cp $stuff/php.desktop $fs/usr/share/applications 
    4.27 -	cp $stuff/php.png $fs/usr/share/pixmaps 
    4.28 -	cp $install/etc/php.ini $fs/etc
    4.29 -	sed -i 's|.*\(extension_dir.*/usr/share/php.*\)$|\1|' $fs/etc/php.ini
    4.30 +	mkdir -p $fs/etc
    4.31 +	mkdir -p $fs/usr/share/applications
    4.32 +	mkdir -p $fs/usr/share/pixmaps
    4.33 +
    4.34 +	cp -a $stuff/phpinfo	$fs/usr/share
    4.35 +	cp $stuff/php.desktop	$fs/usr/share/applications 
    4.36 +	cp $stuff/php.png	$fs/usr/share/pixmaps 
    4.37 +	cp $install/etc/php.ini	$fs/etc
    4.38 +
    4.39 +	sed -i 's|.*\(extension_dir.*/usr/share/php.*\)$|\1|' \
    4.40 +				$fs/etc/php.ini
    4.41  }
    4.42  
    4.43  # Post and pre install commands
    4.44  pre_install()
    4.45  {
    4.46  	# Backup existing php.ini
    4.47 -	if [ -f "$1/etc/php.ini" ]; then
    4.48 +	if [ -f "$1/etc/php.ini" ]
    4.49 +	  then
    4.50  		echo
    4.51  		echo -n "Creating php.ini backup..."
    4.52  		cp "$1/etc/php.ini" "$1/etc/php.ini.bak"
    4.53 @@ -37,7 +43,8 @@
    4.54  post_install()
    4.55  {
    4.56  	# Restore original php.ini
    4.57 -	if [ -f "$1/etc/php.ini.bak" ]; then
    4.58 +	if [ -f "$1/etc/php.ini.bak" ]
    4.59 +	  then
    4.60  		echo
    4.61  		echo -n "Restoring php.ini backup..."
    4.62  		mv -f "$1/etc/php.ini.bak" "$1/etc/php.ini"
     5.1 --- a/php-curl/receipt	Wed Apr 01 11:42:26 2020 +0200
     5.2 +++ b/php-curl/receipt	Wed Apr 01 15:23:29 2020 +0100
     5.3 @@ -1,32 +1,34 @@
     5.4  # SliTaz package receipt.
     5.5  
     5.6  PACKAGE="php-curl"
     5.7 -VERSION="7.3.16"
     5.8 +VERSION="7.4.4"
     5.9  CATEGORY="development"
    5.10  SHORT_DESC="curl module for PHP web programming language."
    5.11  MAINTAINER="jozee@slitaz.org"
    5.12  LICENSE="BSD"
    5.13  WEB_SITE="https://www.php.net/"
    5.14 -WANTED="php"
    5.15  
    5.16  DEPENDS="curl php"
    5.17 +WANTED="php"
    5.18  
    5.19  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.20  genpkg_rules()
    5.21  {
    5.22  	mkdir -p $fs/usr/share/php
    5.23 -	cp $(find $install | grep curl.so) $fs/usr/share/php/
    5.24 +	cp $(find $install | grep curl.so)	$fs/usr/share/php
    5.25  }
    5.26  
    5.27  # Post and pre install commans to stop
    5.28  # and restart Web server if needed.
    5.29  pre_install()
    5.30  {
    5.31 -	while read daemon file; do
    5.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
    5.33 +	while read daemon file
    5.34 +	  do
    5.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
    5.36 +		  then
    5.37  			/etc/init.d/$daemon stop
    5.38  		fi
    5.39 -	done <<EOT
    5.40 +	  done <<EOT
    5.41  apache apache/httpd.pid
    5.42  lighttpd lighttpd.pid
    5.43  EOT
    5.44 @@ -34,19 +36,24 @@
    5.45  
    5.46  post_install()
    5.47  {
    5.48 -	grep -q ^extension=curl.so "$1/etc/php.ini" || \
    5.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=curl.so|' -i "$1/etc/php.ini"
    5.50 +	grep -q ^extension=curl.so "$1/etc/php.ini" || 
    5.51 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=curl.so|' \
    5.52 +		-i "$1/etc/php.ini"
    5.53 +
    5.54  	# Start Web server.
    5.55 -	while read daemon file; do
    5.56 +	while read daemon file
    5.57 +	  do
    5.58  		[ -z "$1" ] || continue
    5.59 -		if [ -f "/var/run/$file" ]; then
    5.60 +		if [ -f "/var/run/$file" ]
    5.61 +		  then
    5.62  			/etc/init.d/$daemon stop
    5.63  			sleep 2
    5.64  		fi
    5.65 -		if [ -f /etc/init.d/$daemon ]; then
    5.66 +		if [ -f /etc/init.d/$daemon ]
    5.67 +		  then
    5.68  			/etc/init.d/$daemon start
    5.69  		fi
    5.70 -	done <<EOT
    5.71 +	  done <<EOT
    5.72  apache apache/httpd.pid
    5.73  lighttpd lighttpd.pid
    5.74  EOT
    5.75 @@ -58,16 +65,19 @@
    5.76  	sed -i '/.*=curl.so.*/d' /etc/php.ini
    5.77  
    5.78  	# Start Web server.
    5.79 -	while read daemon file; do
    5.80 +	while read daemon file
    5.81 +	  do
    5.82  		[ -z "$1" ] || continue
    5.83 -		if [ -f "/var/run/$file" ]; then
    5.84 +		if [ -f "/var/run/$file" ]
    5.85 +		  then
    5.86  			/etc/init.d/$daemon stop
    5.87  			sleep 2
    5.88  		fi
    5.89 -		if [ -f /etc/init.d/$daemon ]; then
    5.90 +		if [ -f /etc/init.d/$daemon ]
    5.91 +		  then
    5.92  			/etc/init.d/$daemon start
    5.93  		fi
    5.94 -	done <<EOT
    5.95 +	  done <<EOT
    5.96  apache apache/httpd.pid
    5.97  lighttpd lighttpd.pid
    5.98  EOT
     6.1 --- a/php-dba/receipt	Wed Apr 01 11:42:26 2020 +0200
     6.2 +++ b/php-dba/receipt	Wed Apr 01 15:23:29 2020 +0100
     6.3 @@ -1,30 +1,33 @@
     6.4  # SliTaz package receipt.
     6.5  
     6.6  PACKAGE="php-dba"
     6.7 -VERSION="7.3.16"
     6.8 +VERSION="7.4.4"
     6.9  CATEGORY="development"
    6.10  SHORT_DESC="dba module for PHP web programming language."
    6.11  MAINTAINER="pascal.bellard@slitaz.org"
    6.12  LICENSE="BSD"
    6.13  WEB_SITE="https://www.php.net/"
    6.14 +
    6.15  WANTED="php"
    6.16  
    6.17  # Rules to gen a SliTaz package suitable for Tazpkg.
    6.18  genpkg_rules()
    6.19  {
    6.20  	mkdir -p $fs/usr/share/php
    6.21 -	cp $(find $install | grep dba.so) $fs/usr/share/php/
    6.22 +	cp $(find $install | grep dba.so)	$fs/usr/share/php/
    6.23  }
    6.24  
    6.25  # Post and pre install commans to stop
    6.26  # and restart Web server if needed.
    6.27  pre_install()
    6.28  {
    6.29 -	while read daemon file; do
    6.30 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
    6.31 +	while read daemon file
    6.32 +	  do
    6.33 +		if [ -z "$1" -a -f "/var/run/$file" ]
    6.34 +		  then
    6.35  			/etc/init.d/$daemon stop
    6.36  		fi
    6.37 -	done <<EOT
    6.38 +	  done <<EOT
    6.39  apache apache/httpd.pid
    6.40  lighttpd lighttpd.pid
    6.41  EOT
    6.42 @@ -32,19 +35,23 @@
    6.43  
    6.44  post_install()
    6.45  {
    6.46 -	grep -q ^extension=dba.so "$1/etc/php.ini" || \
    6.47 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=dba.so|' -i "$1/etc/php.ini"
    6.48 +	grep -q ^extension=dba.so "$1/etc/php.ini" || 
    6.49 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=dba.so|' \
    6.50 +		-i "$1/etc/php.ini"
    6.51  	# Start Web server.
    6.52 -	while read daemon file; do
    6.53 +	while read daemon file
    6.54 +	  do
    6.55  		[ -z "$1" ] || continue
    6.56 -		if [ -f "/var/run/$file" ]; then
    6.57 +		if [ -f "/var/run/$file" ]
    6.58 +		  then
    6.59  			/etc/init.d/$daemon stop
    6.60  			sleep 2
    6.61  		fi
    6.62 -		if [ -f /etc/init.d/$daemon ]; then
    6.63 +		if [ -f /etc/init.d/$daemon ]
    6.64 +		  then
    6.65  			/etc/init.d/$daemon start
    6.66  		fi
    6.67 -	done <<EOT
    6.68 +	  done <<EOT
    6.69  apache apache/httpd.pid
    6.70  lighttpd lighttpd.pid
    6.71  EOT
    6.72 @@ -56,16 +63,19 @@
    6.73  	sed -i '/.*=dba.so.*/d' /etc/php.ini
    6.74  
    6.75  	# Start Web server.
    6.76 -	while read daemon file; do
    6.77 +	while read daemon file
    6.78 +	  do
    6.79  		[ -z "$1" ] || continue
    6.80 -		if [ -f "/var/run/$file" ]; then
    6.81 +		if [ -f "/var/run/$file" ]
    6.82 +		  then
    6.83  			/etc/init.d/$daemon stop
    6.84  			sleep 2
    6.85  		fi
    6.86 -		if [ -f /etc/init.d/$daemon ]; then
    6.87 +		if [ -f /etc/init.d/$daemon ]
    6.88 +		  then
    6.89  			/etc/init.d/$daemon start
    6.90  		fi
    6.91 -	done <<EOT
    6.92 +	  done <<EOT
    6.93  apache apache/httpd.pid
    6.94  lighttpd lighttpd.pid
    6.95  EOT
     7.1 --- a/php-dev/receipt	Wed Apr 01 11:42:26 2020 +0200
     7.2 +++ b/php-dev/receipt	Wed Apr 01 15:23:29 2020 +0100
     7.3 @@ -1,24 +1,28 @@
     7.4  # SliTaz package receipt.
     7.5  
     7.6  PACKAGE="php-dev"
     7.7 -VERSION="7.3.16"
     7.8 +VERSION="7.4.4"
     7.9  CATEGORY="development"
    7.10  SHORT_DESC="PHP web programming language development files."
    7.11  MAINTAINER="pascal.bellard@slitaz.org"
    7.12  LICENSE="BSD"
    7.13  WEB_SITE="https://www.php.net/"
    7.14 +
    7.15  WANTED="php"
    7.16  
    7.17 -DEPENDS="php cyrus-sasl libldap libmysqlclient libpng libpostgresqlclient \
    7.18 -libunixODBC mhash openssl jpeg libmcrypt libtool libkrb5 libcomerr3 net-snmp"
    7.19 +DEPENDS="cyrus-sasl jpeg libcomerr3 libkrb5 libldap libmcrypt libmysqlclient 
    7.20 +	libpng libpostgresqlclient libtool libunixODBC mhash net-snmp openssl php"
    7.21  
    7.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    7.23  genpkg_rules()
    7.24  {
    7.25 -	mkdir -p $fs/usr/lib/php $fs/usr/bin
    7.26 -	cp -a $install/usr/lib/php/extensions $fs/usr/lib/php
    7.27 -	rm -f $fs/usr/lib/php/*so
    7.28 -	cp -a $install/usr/lib/php/build $fs/usr/lib/php
    7.29 -	cp -a $install/usr/include $fs/usr
    7.30 -	cp -a $install/usr/bin/php-config $install/usr/bin/phpize $fs/usr/bin
    7.31 +	mkdir -p $fs/usr/lib/php
    7.32 +	mkdir -p $fs/usr/bin
    7.33 +
    7.34 +	cp -a $install/usr/lib/php/extensions	$fs/usr/lib/php
    7.35 +	rm -f					$fs/usr/lib/php/*so
    7.36 +	cp -a $install/usr/lib/php/build	$fs/usr/lib/php
    7.37 +	cp -a $install/usr/include		$fs/usr
    7.38 +	cp -a $install/usr/bin/php-config	$fs/usr/bin
    7.39 +	cp -a $install/usr/bin/phpize		$fs/usr/bin
    7.40  }
     8.1 --- a/php-docs-en/receipt	Wed Apr 01 11:42:26 2020 +0200
     8.2 +++ b/php-docs-en/receipt	Wed Apr 01 15:23:29 2020 +0100
     8.3 @@ -1,12 +1,13 @@
     8.4  # SliTaz package receipt.
     8.5  
     8.6  PACKAGE="php-docs-en"
     8.7 -VERSION="7.3.16"
     8.8 +VERSION="7.4.4"
     8.9  CATEGORY="misc"
    8.10  SHORT_DESC="Set of HTML documentation for PHP.(English version)"
    8.11  MAINTAINER="slaxemulator@gmail.com"
    8.12  LICENSE="BSD"
    8.13  WEB_SITE="https://www.php.net/docs.php"
    8.14 +
    8.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    8.16  WGET_URL="http://www.php.net/distributions/manual/php_manual_en.tar.gz"
    8.17  
    8.18 @@ -14,5 +15,5 @@
    8.19  genpkg_rules()
    8.20  {
    8.21  	mkdir -p $fs/usr/share/doc
    8.22 -	cp -a $src $fs/usr/share/doc/php-en
    8.23 +	cp -a $src	$fs/usr/share/doc/php-en
    8.24  }
     9.1 --- a/php-gd/receipt	Wed Apr 01 11:42:26 2020 +0200
     9.2 +++ b/php-gd/receipt	Wed Apr 01 15:23:29 2020 +0100
     9.3 @@ -1,32 +1,34 @@
     9.4  # SliTaz package receipt.
     9.5  
     9.6  PACKAGE="php-gd"
     9.7 -VERSION="7.3.16"
     9.8 +VERSION="7.4.4"
     9.9  CATEGORY="development"
    9.10  SHORT_DESC="gd module for PHP web programming language."
    9.11  MAINTAINER="pascal.bellard@slitaz.org"
    9.12  LICENSE="BSD"
    9.13  WEB_SITE="https://www.php.net/"
    9.14 +
    9.15 +DEPENDS="jpeg libpng libvpx php"
    9.16  WANTED="php"
    9.17  
    9.18 -DEPENDS="libpng php jpeg libvpx"
    9.19 -
    9.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    9.21  genpkg_rules()
    9.22  {
    9.23  	mkdir -p $fs/usr/share/php
    9.24 -	cp $(find $install | grep gd.so) $fs/usr/share/php/
    9.25 +	cp $(find $install | grep gd.so)	$fs/usr/share/php/
    9.26  }
    9.27  
    9.28  # Post and pre install commans to stop
    9.29  # and restart Web server if needed.
    9.30  pre_install()
    9.31  {
    9.32 -	while read daemon file; do
    9.33 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
    9.34 +	while read daemon file
    9.35 +	  do
    9.36 +		if [ -z "$1" -a -f "/var/run/$file" ]
    9.37 +		  then
    9.38  			/etc/init.d/$daemon stop
    9.39  		fi
    9.40 -	done <<EOT
    9.41 +	  done <<EOT
    9.42  apache apache/httpd.pid
    9.43  lighttpd lighttpd.pid
    9.44  EOT
    9.45 @@ -34,19 +36,24 @@
    9.46  
    9.47  post_install()
    9.48  {
    9.49 -	grep -q ^extension=gd.so "$1/etc/php.ini" || \
    9.50 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=gd.so|' -i "$1/etc/php.ini"
    9.51 +	grep -q ^extension=gd.so "$1/etc/php.ini" || 
    9.52 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=gd.so|' \
    9.53 +		-i "$1/etc/php.ini"
    9.54 +
    9.55  	# Start Web server.
    9.56 -	while read daemon file; do
    9.57 +	while read daemon file
    9.58 +	  do
    9.59  		[ -z "$1" ] || continue
    9.60 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
    9.61 +		if [ -z "$1" -a -f "/var/run/$file" ]
    9.62 +		  then
    9.63  			/etc/init.d/$daemon stop
    9.64  			sleep 2
    9.65  		fi
    9.66 -		if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
    9.67 +		if [ -z "$1" -a -f /etc/init.d/$daemon ]
    9.68 +		  then
    9.69  			/etc/init.d/$daemon start
    9.70  		fi
    9.71 -	done <<EOT
    9.72 +	  done <<EOT
    9.73  apache apache/httpd.pid
    9.74  lighttpd lighttpd.pid
    9.75  EOT
    9.76 @@ -58,18 +65,22 @@
    9.77  	sed -i '/.*=gd.so.*/d' "$1/etc/php.ini"
    9.78  
    9.79  	# Start Web server.
    9.80 -	while read daemon file; do
    9.81 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
    9.82 +	while read daemon file
    9.83 +	  do
    9.84 +		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]
    9.85 +		  then
    9.86  			[ -z "$1" ] || continue
    9.87 -			if [ -z "$1" -a -f "/var/run/$file" ]; then
    9.88 +			if [ -z "$1" -a -f "/var/run/$file" ]
    9.89 +			  then
    9.90  				/etc/init.d/$daemon stop
    9.91  				sleep 2
    9.92  			fi
    9.93 -			if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
    9.94 +			if [ -z "$1" -a -f /etc/init.d/$daemon ]
    9.95 +			  then
    9.96  				/etc/init.d/$daemon start
    9.97  			fi
    9.98  		fi
    9.99 -	done <<EOT
   9.100 +	  done <<EOT
   9.101  apache apache/httpd.pid
   9.102  lighttpd lighttpd.pid
   9.103  EOT
    10.1 --- a/php-imap/receipt	Wed Apr 01 11:42:26 2020 +0200
    10.2 +++ b/php-imap/receipt	Wed Apr 01 15:23:29 2020 +0100
    10.3 @@ -1,32 +1,34 @@
    10.4  # SliTaz package receipt.
    10.5  
    10.6  PACKAGE="php-imap"
    10.7 -VERSION="7.3.16"
    10.8 +VERSION="7.4.4"
    10.9  CATEGORY="development"
   10.10  SHORT_DESC="imap module for PHP web programming language."
   10.11  MAINTAINER="pascal.bellard@slitaz.org"
   10.12  LICENSE="BSD"
   10.13  WEB_SITE="https://www.php.net/"
   10.14 +
   10.15 +DEPENDS="openssl php"
   10.16  WANTED="php"
   10.17  
   10.18 -DEPENDS="php openssl"
   10.19 -
   10.20  # Rules to gen a SliTaz package suitable for Tazpkg.
   10.21  genpkg_rules()
   10.22  {
   10.23  	mkdir -p $fs/usr/share/php
   10.24 -	cp $(find $install | grep imap.so) $fs/usr/share/php/
   10.25 +	cp $(find $install | grep imap.so)	$fs/usr/share/php/
   10.26  }
   10.27  
   10.28  # Post and pre install commans to stop
   10.29  # and restart Web server if needed.
   10.30  pre_install()
   10.31  {
   10.32 -	while read daemon file; do
   10.33 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   10.34 +	while read daemon file
   10.35 +	  do
   10.36 +		if [ -z "$1" -a -f "/var/run/$file" ]
   10.37 +		  then
   10.38  			/etc/init.d/$daemon stop
   10.39  		fi
   10.40 -	done <<EOT
   10.41 +	  done <<EOT
   10.42  apache apache/httpd.pid
   10.43  lighttpd lighttpd.pid
   10.44  EOT
   10.45 @@ -34,19 +36,24 @@
   10.46  
   10.47  post_install()
   10.48  {
   10.49 -	grep -q ^extension=imap.so "$1/etc/php.ini" || \
   10.50 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=imap.so|' -i "$1/etc/php.ini"
   10.51 +	grep -q ^extension=imap.so "$1/etc/php.ini" || 
   10.52 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=imap.so|' \
   10.53 +		-i "$1/etc/php.ini"
   10.54 +
   10.55  	# Start Web server.
   10.56 -	while read daemon file; do
   10.57 +	while read daemon file
   10.58 +	  do
   10.59  		[ -z "$1" ] || continue
   10.60 -		if [ -f "/var/run/$file" ]; then
   10.61 +		if [ -f "/var/run/$file" ]
   10.62 +		  then
   10.63  			/etc/init.d/$daemon stop
   10.64  			sleep 2
   10.65  		fi
   10.66 -		if [ -f /etc/init.d/$daemon ]; then
   10.67 +		if [ -f /etc/init.d/$daemon ]
   10.68 +		  then
   10.69  			/etc/init.d/$daemon start
   10.70  		fi
   10.71 -	done <<EOT
   10.72 +	  done <<EOT
   10.73  apache apache/httpd.pid
   10.74  lighttpd lighttpd.pid
   10.75  EOT
   10.76 @@ -58,16 +65,19 @@
   10.77  	sed -i '/.*=imap.so.*/d' /etc/php.ini
   10.78  
   10.79  	# Start Web server.
   10.80 -	while read daemon file; do
   10.81 +	while read daemon file
   10.82 +	  do
   10.83  		[ -z "$1" ] || continue
   10.84 -		if [ -f "/var/run/$file" ]; then
   10.85 +		if [ -f "/var/run/$file" ]
   10.86 +		  then
   10.87  			/etc/init.d/$daemon stop
   10.88  			sleep 2
   10.89  		fi
   10.90 -		if [ -f /etc/init.d/$daemon ]; then
   10.91 +		if [ -f /etc/init.d/$daemon ]
   10.92 +		  then
   10.93  			/etc/init.d/$daemon start
   10.94  		fi
   10.95 -	done <<EOT
   10.96 +	  done <<EOT
   10.97  apache apache/httpd.pid
   10.98  lighttpd lighttpd.pid
   10.99  EOT
    11.1 --- a/php-ldap/receipt	Wed Apr 01 11:42:26 2020 +0200
    11.2 +++ b/php-ldap/receipt	Wed Apr 01 15:23:29 2020 +0100
    11.3 @@ -1,32 +1,34 @@
    11.4  # SliTaz package receipt.
    11.5  
    11.6  PACKAGE="php-ldap"
    11.7 -VERSION="7.3.16"
    11.8 +VERSION="7.4.4"
    11.9  CATEGORY="development"
   11.10  SHORT_DESC="ldap module for PHP web programming language."
   11.11  MAINTAINER="pascal.bellard@slitaz.org"
   11.12  LICENSE="BSD"
   11.13  WEB_SITE="https://www.php.net/"
   11.14 +
   11.15 +DEPENDS="cyrus-sasl libcomerr3 libkrb5 libldap openssl php"
   11.16  WANTED="php"
   11.17  
   11.18 -DEPENDS="libldap php openssl cyrus-sasl libkrb5 libcomerr3"
   11.19 -
   11.20  # Rules to gen a SliTaz package suitable for Tazpkg.
   11.21  genpkg_rules()
   11.22  {
   11.23  	mkdir -p $fs/usr/share/php
   11.24 -	cp $(find $install | grep ldap.so) $fs/usr/share/php/
   11.25 +	cp $(find $install | grep ldap.so)	$fs/usr/share/php/
   11.26  }
   11.27  
   11.28  # Post and pre install commans to stop
   11.29  # and restart Web server if needed.
   11.30  pre_install()
   11.31  {
   11.32 -	while read daemon file; do
   11.33 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   11.34 +	while read daemon file
   11.35 +	  do
   11.36 +		if [ -z "$1" -a -f "/var/run/$file" ]
   11.37 +		  then
   11.38  			/etc/init.d/$daemon stop
   11.39  		fi
   11.40 -	done <<EOT
   11.41 +	  done <<EOT
   11.42  apache apache/httpd.pid
   11.43  lighttpd lighttpd.pid
   11.44  EOT
   11.45 @@ -34,19 +36,24 @@
   11.46  
   11.47  post_install()
   11.48  {
   11.49 -	grep -q ^extension=ldap.so "$1/etc/php.ini" || \
   11.50 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=ldap.so|' -i "$1/etc/php.ini"
   11.51 +	grep -q ^extension=ldap.so "$1/etc/php.ini" || 
   11.52 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=ldap.so|' \
   11.53 +		-i "$1/etc/php.ini"
   11.54 +
   11.55  	# Start Web server.
   11.56 -	while read daemon file; do
   11.57 +	while read daemon file
   11.58 +	  do
   11.59  		[ -z "$1" ] || continue
   11.60 -		if [ -f "/var/run/$file" ]; then
   11.61 +		if [ -f "/var/run/$file" ]
   11.62 +		  then
   11.63  			/etc/init.d/$daemon stop
   11.64  			sleep 2
   11.65  		fi
   11.66 -		if [ -f /etc/init.d/$daemon ]; then
   11.67 +		if [ -f /etc/init.d/$daemon ]
   11.68 +		  then
   11.69  			/etc/init.d/$daemon start
   11.70  		fi
   11.71 -	done <<EOT
   11.72 +	  done <<EOT
   11.73  apache apache/httpd.pid
   11.74  lighttpd lighttpd.pid
   11.75  EOT
   11.76 @@ -58,16 +65,19 @@
   11.77  	sed -i '/.*=ldap.so.*/d' /etc/php.ini
   11.78  
   11.79  	# Start Web server.
   11.80 -	while read daemon file; do
   11.81 +	while read daemon file
   11.82 +	  do
   11.83  		[ -z "$1" ] || continue
   11.84 -		if [ -f "/var/run/$file" ]; then
   11.85 +		if [ -f "/var/run/$file" ]
   11.86 +		  then
   11.87  			/etc/init.d/$daemon stop
   11.88  			sleep 2
   11.89  		fi
   11.90 -		if [ -f /etc/init.d/$daemon ]; then
   11.91 +		if [ -f /etc/init.d/$daemon ]
   11.92 +		  then
   11.93  			/etc/init.d/$daemon start
   11.94  		fi
   11.95 -	done <<EOT
   11.96 +	  done <<EOT
   11.97  apache apache/httpd.pid
   11.98  lighttpd lighttpd.pid
   11.99  EOT
    12.1 --- a/php-mysql/receipt	Wed Apr 01 11:42:26 2020 +0200
    12.2 +++ b/php-mysql/receipt	Wed Apr 01 15:23:29 2020 +0100
    12.3 @@ -1,32 +1,34 @@
    12.4  # SliTaz package receipt.
    12.5  
    12.6  PACKAGE="php-mysql"
    12.7 -VERSION="7.3.16"
    12.8 +VERSION="7.4.4"
    12.9  CATEGORY="development"
   12.10  SHORT_DESC="mysql module for PHP web programming language."
   12.11  MAINTAINER="pascal.bellard@slitaz.org"
   12.12  LICENSE="BSD"
   12.13  WEB_SITE="https://www.php.net/"
   12.14 -WANTED="php"
   12.15  
   12.16  DEPENDS="libmysqlclient php"
   12.17 +WANTED="php"
   12.18  
   12.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   12.20  genpkg_rules()
   12.21  {
   12.22  	mkdir -p $fs/usr/share/php
   12.23 -	cp $(find $install | grep mysql.so) $fs/usr/share/php/
   12.24 +	cp $(find $install | grep mysql.so)	$fs/usr/share/php/
   12.25  }
   12.26  
   12.27  # Post and pre install commans to stop
   12.28  # and restart Web server if needed.
   12.29  pre_install()
   12.30  {
   12.31 -	while read daemon file; do
   12.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   12.33 +	while read daemon file
   12.34 +	  do
   12.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
   12.36 +		  then
   12.37  			/etc/init.d/$daemon stop
   12.38  		fi
   12.39 -	done <<EOT
   12.40 +	  done <<EOT
   12.41  apache apache/httpd.pid
   12.42  lighttpd lighttpd.pid
   12.43  EOT
   12.44 @@ -34,19 +36,24 @@
   12.45  
   12.46  post_install()
   12.47  {
   12.48 -	grep -q ^extension=mysql.so "$1/etc/php.ini" || \
   12.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=mysql.so|' -i "$1/etc/php.ini"
   12.50 +	grep -q ^extension=mysql.so "$1/etc/php.ini" || 
   12.51 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=mysql.so|' \
   12.52 +		-i "$1/etc/php.ini"
   12.53 +
   12.54  	# Start Web server.
   12.55 -	while read daemon file; do
   12.56 +	while read daemon file
   12.57 +	  do
   12.58  		[ -z "$1" ] || continue
   12.59 -		if [ -f "/var/run/$file" ]; then
   12.60 +		if [ -f "/var/run/$file" ]
   12.61 +		  then
   12.62  			/etc/init.d/$daemon stop
   12.63  			sleep 2
   12.64  		fi
   12.65 -		if [ -f /etc/init.d/$daemon ]; then
   12.66 +		if [ -f /etc/init.d/$daemon ]
   12.67 +		  then
   12.68  			/etc/init.d/$daemon start
   12.69  		fi
   12.70 -	done <<EOT
   12.71 +	  done <<EOT
   12.72  apache apache/httpd.pid
   12.73  lighttpd lighttpd.pid
   12.74  EOT
   12.75 @@ -58,16 +65,19 @@
   12.76  	sed -i '/.*=mysql.so.*/d' /etc/php.ini
   12.77  
   12.78  	# Start Web server.
   12.79 -	while read daemon file; do
   12.80 +	while read daemon file
   12.81 +	  do
   12.82  		[ -z "$1" ] || continue
   12.83 -		if [ -f "/var/run/$file" ]; then
   12.84 +		if [ -f "/var/run/$file" ]
   12.85 +		  then
   12.86  			/etc/init.d/$daemon stop
   12.87  			sleep 2
   12.88  		fi
   12.89 -		if [ -f /etc/init.d/$daemon ]; then
   12.90 +		if [ -f /etc/init.d/$daemon ]
   12.91 +		  then
   12.92  			/etc/init.d/$daemon start
   12.93  		fi
   12.94 -	done <<EOT
   12.95 +	  done <<EOT
   12.96  apache apache/httpd.pid
   12.97  lighttpd lighttpd.pid
   12.98  EOT
    13.1 --- a/php-mysqli/receipt	Wed Apr 01 11:42:26 2020 +0200
    13.2 +++ b/php-mysqli/receipt	Wed Apr 01 15:23:29 2020 +0100
    13.3 @@ -1,32 +1,34 @@
    13.4  # SliTaz package receipt.
    13.5  
    13.6  PACKAGE="php-mysqli"
    13.7 -VERSION="7.3.16"
    13.8 +VERSION="7.4.4"
    13.9  CATEGORY="development"
   13.10  SHORT_DESC="mysqli module for PHP web programming language."
   13.11  MAINTAINER="pascal.bellard@slitaz.org"
   13.12  LICENSE="BSD"
   13.13  WEB_SITE="https://www.php.net/"
   13.14 -WANTED="php"
   13.15  
   13.16  DEPENDS="libmysqlclient php"
   13.17 +WANTED="php"
   13.18  
   13.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   13.20  genpkg_rules()
   13.21  {
   13.22  	mkdir -p $fs/usr/share/php
   13.23 -	cp $(find $install | grep mysqli.so) $fs/usr/share/php/
   13.24 +	cp $(find $install | grep mysqli.so)	$fs/usr/share/php/
   13.25  }
   13.26  
   13.27  # Post and pre install commans to stop
   13.28  # and restart Web server if needed.
   13.29  pre_install()
   13.30  {
   13.31 -	while read daemon file; do
   13.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   13.33 +	while read daemon file
   13.34 +	  do
   13.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
   13.36 +		  then
   13.37  			/etc/init.d/$daemon stop
   13.38  		fi
   13.39 -	done <<EOT
   13.40 +	  done <<EOT
   13.41  apache apache/httpd.pid
   13.42  lighttpd lighttpd.pid
   13.43  EOT
   13.44 @@ -34,19 +36,24 @@
   13.45  
   13.46  post_install()
   13.47  {
   13.48 -	grep -q ^extension=mysqli.so "$1/etc/php.ini" || \
   13.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=mysqli.so|' -i "$1/etc/php.ini"
   13.50 +	grep -q ^extension=mysqli.so "$1/etc/php.ini" || 
   13.51 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=mysqli.so|' \
   13.52 +		-i "$1/etc/php.ini"
   13.53 +
   13.54  	# Start Web server.
   13.55 -	while read daemon file; do
   13.56 +	while read daemon file
   13.57 +	  do
   13.58  		[ -z "$1" ] || continue
   13.59 -		if [ -f "/var/run/$file" ]; then
   13.60 +		if [ -f "/var/run/$file" ]
   13.61 +		  then
   13.62  			/etc/init.d/$daemon stop
   13.63  			sleep 2
   13.64  		fi
   13.65 -		if [ -f /etc/init.d/$daemon ]; then
   13.66 +		if [ -f /etc/init.d/$daemon ]
   13.67 +		  then
   13.68  			/etc/init.d/$daemon start
   13.69  		fi
   13.70 -	done <<EOT
   13.71 +	  done <<EOT
   13.72  apache apache/httpd.pid
   13.73  lighttpd lighttpd.pid
   13.74  EOT
   13.75 @@ -58,16 +65,19 @@
   13.76  	sed -i '/.*=mysqli.so.*/d' /etc/php.ini
   13.77  
   13.78  	# Start Web server.
   13.79 -	while read daemon file; do
   13.80 +	while read daemon file
   13.81 +	  do
   13.82  		[ -z "$1" ] || continue
   13.83 -		if [ -f "/var/run/$file" ]; then
   13.84 +		if [ -f "/var/run/$file" ]
   13.85 +		  then
   13.86  			/etc/init.d/$daemon stop
   13.87  			sleep 2
   13.88  		fi
   13.89 -		if [ -f /etc/init.d/$daemon ]; then
   13.90 +		if [ -f /etc/init.d/$daemon ]
   13.91 +		  then
   13.92  			/etc/init.d/$daemon start
   13.93  		fi
   13.94 -	done <<EOT
   13.95 +	  done <<EOT
   13.96  apache apache/httpd.pid
   13.97  lighttpd lighttpd.pid
   13.98  EOT
    14.1 --- a/php-odbc/receipt	Wed Apr 01 11:42:26 2020 +0200
    14.2 +++ b/php-odbc/receipt	Wed Apr 01 15:23:29 2020 +0100
    14.3 @@ -1,32 +1,34 @@
    14.4  # SliTaz package receipt.
    14.5  
    14.6  PACKAGE="php-odbc"
    14.7 -VERSION="7.3.16"
    14.8 +VERSION="7.4.4"
    14.9  CATEGORY="development"
   14.10  SHORT_DESC="ODBC module for PHP web programming language."
   14.11  MAINTAINER="pascal.bellard@slitaz.org"
   14.12  LICENSE="BSD"
   14.13  WEB_SITE="https://www.php.net/"
   14.14 -WANTED="php"
   14.15  
   14.16  DEPENDS="unixODBC php"
   14.17 +WANTED="php"
   14.18  
   14.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   14.20  genpkg_rules()
   14.21  {
   14.22  	mkdir -p $fs/usr/share/php
   14.23 -	cp $(find $install | grep odbc.so) $fs/usr/share/php/
   14.24 +	cp $(find $install | grep odbc.so)	$fs/usr/share/php/
   14.25  }
   14.26  
   14.27  # Post and pre install commans to stop
   14.28  # and restart Web server if needed.
   14.29  pre_install()
   14.30  {
   14.31 -	while read daemon file; do
   14.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   14.33 +	while read daemon file
   14.34 +	  do
   14.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
   14.36 +		  then
   14.37  			/etc/init.d/$daemon stop
   14.38  		fi
   14.39 -	done <<EOT
   14.40 +	  done <<EOT
   14.41  apache apache/httpd.pid
   14.42  lighttpd lighttpd.pid
   14.43  EOT
   14.44 @@ -34,19 +36,24 @@
   14.45  
   14.46  post_install()
   14.47  {
   14.48 -	grep -q ^extension=odbc.so "$1/etc/php.ini" || \
   14.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=odbc.so|' -i "$1/etc/php.ini"
   14.50 +	grep -q ^extension=odbc.so "$1/etc/php.ini" || 
   14.51 +	sed -e 's|extension=bz2.so|extension=bz2.so\nextension=odbc.so|' \
   14.52 +		-i "$1/etc/php.ini"
   14.53 +
   14.54  	# Start Web server.
   14.55 -	while read daemon file; do
   14.56 +	while read daemon file
   14.57 +	  do
   14.58  		[ -z "$1" ] || continue
   14.59 -		if [ -f "/var/run/$file" ]; then
   14.60 +		if [ -f "/var/run/$file" ]
   14.61 +		  then
   14.62  			/etc/init.d/$daemon stop
   14.63  			sleep 2
   14.64  		fi
   14.65 -		if [ -f /etc/init.d/$daemon ]; then
   14.66 +		if [ -f /etc/init.d/$daemon ]
   14.67 +		  then
   14.68  			/etc/init.d/$daemon start
   14.69  		fi
   14.70 -	done <<EOT
   14.71 +	  done <<EOT
   14.72  apache apache/httpd.pid
   14.73  lighttpd lighttpd.pid
   14.74  EOT
   14.75 @@ -58,16 +65,19 @@
   14.76  	sed -i '/.*=odbc.so.*/d' /etc/php.ini
   14.77  
   14.78  	# Start Web server.
   14.79 -	while read daemon file; do
   14.80 +	while read daemon file
   14.81 +	  do
   14.82  		[ -z "$1" ] || continue
   14.83 -		if [ -f "/var/run/$file" ]; then
   14.84 +		if [ -f "/var/run/$file" ]
   14.85 +		  then
   14.86  			/etc/init.d/$daemon stop
   14.87  			sleep 2
   14.88  		fi
   14.89 -		if [ -f /etc/init.d/$daemon ]; then
   14.90 +		if [ -f /etc/init.d/$daemon ]
   14.91 +		  then
   14.92  			/etc/init.d/$daemon start
   14.93  		fi
   14.94 -	done <<EOT
   14.95 +	  done <<EOT
   14.96  apache apache/httpd.pid
   14.97  lighttpd lighttpd.pid
   14.98  EOT
    15.1 --- a/php-opcache/receipt	Wed Apr 01 11:42:26 2020 +0200
    15.2 +++ b/php-opcache/receipt	Wed Apr 01 15:23:29 2020 +0100
    15.3 @@ -1,32 +1,34 @@
    15.4  # SliTaz package receipt.
    15.5  
    15.6  PACKAGE="php-opcache"
    15.7 -VERSION="7.3.16"
    15.8 +VERSION="7.4.4"
    15.9  CATEGORY="development"
   15.10  SHORT_DESC="opcode caching module for PHP web programming language."
   15.11  MAINTAINER="pascal.bellard@slitaz.org"
   15.12  LICENSE="BSD"
   15.13  WEB_SITE="https://www.php.net/"
   15.14 -WANTED="php"
   15.15  
   15.16  DEPENDS="libmysqlclient php"
   15.17 +WANTED="php"
   15.18  
   15.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   15.20  genpkg_rules()
   15.21  {
   15.22  	mkdir -p $fs/usr/share/php
   15.23 -	cp $(find $install | grep opcache.so) $fs/usr/share/php/
   15.24 +	cp $(find $install | grep opcache.so)	$fs/usr/share/php/
   15.25  }
   15.26  
   15.27  # Post and pre install commans to stop
   15.28  # and restart Web server if needed.
   15.29  pre_install()
   15.30  {
   15.31 -	while read daemon file; do
   15.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   15.33 +	while read daemon file
   15.34 +	  do
   15.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
   15.36 +		  then
   15.37  			/etc/init.d/$daemon stop
   15.38  		fi
   15.39 -	done <<EOT
   15.40 +	  done <<EOT
   15.41  apache apache/httpd.pid
   15.42  lighttpd lighttpd.pid
   15.43  EOT
   15.44 @@ -34,19 +36,24 @@
   15.45  
   15.46  post_install()
   15.47  {
   15.48 -	grep -q ^extension=opcache.so "$1/etc/php.ini" || \
   15.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=opcache.so|' -i "$1/etc/php.ini"
   15.50 +	grep -q ^extension=opcache.so "$1/etc/php.ini" || 
   15.51 +	sed -e 's|extension=bz2.so|extension=bz2.so\nextension=opcache.so|' \
   15.52 +		-i "$1/etc/php.ini"
   15.53 +
   15.54  	# Start Web server.
   15.55 -	while read daemon file; do
   15.56 +	while read daemon file
   15.57 +	  do
   15.58  		[ -z "$1" ] || continue
   15.59 -		if [ -f "/var/run/$file" ]; then
   15.60 +		if [ -f "/var/run/$file" ]
   15.61 +		  then
   15.62  			/etc/init.d/$daemon stop
   15.63  			sleep 2
   15.64  		fi
   15.65 -		if [ -f /etc/init.d/$daemon ]; then
   15.66 +		if [ -f /etc/init.d/$daemon ]
   15.67 +		  then
   15.68  			/etc/init.d/$daemon start
   15.69  		fi
   15.70 -	done <<EOT
   15.71 +	  done <<EOT
   15.72  apache apache/httpd.pid
   15.73  lighttpd lighttpd.pid
   15.74  EOT
   15.75 @@ -58,16 +65,19 @@
   15.76  	sed -i '/.*=opcache.so.*/d' /etc/php.ini
   15.77  
   15.78  	# Start Web server.
   15.79 -	while read daemon file; do
   15.80 +	while read daemon file
   15.81 +	  do
   15.82  		[ -z "$1" ] || continue
   15.83 -		if [ -f "/var/run/$file" ]; then
   15.84 +		if [ -f "/var/run/$file" ]
   15.85 +		  then
   15.86  			/etc/init.d/$daemon stop
   15.87  			sleep 2
   15.88  		fi
   15.89 -		if [ -f /etc/init.d/$daemon ]; then
   15.90 +		if [ -f /etc/init.d/$daemon ]
   15.91 +		  then
   15.92  			/etc/init.d/$daemon start
   15.93  		fi
   15.94 -	done <<EOT
   15.95 +	  done <<EOT
   15.96  apache apache/httpd.pid
   15.97  lighttpd lighttpd.pid
   15.98  EOT
    16.1 --- a/php-openssl/receipt	Wed Apr 01 11:42:26 2020 +0200
    16.2 +++ b/php-openssl/receipt	Wed Apr 01 15:23:29 2020 +0100
    16.3 @@ -1,32 +1,34 @@
    16.4  # SliTaz package receipt.
    16.5  
    16.6  PACKAGE="php-openssl"
    16.7 -VERSION="7.3.16"
    16.8 +VERSION="7.4.4"
    16.9  CATEGORY="development"
   16.10  SHORT_DESC="Openssl module for PHP web programming language."
   16.11  MAINTAINER="pascal.bellard@slitaz.org"
   16.12  LICENSE="BSD"
   16.13  WEB_SITE="https://www.php.net/"
   16.14 -WANTED="php"
   16.15  
   16.16  DEPENDS="php openssl"
   16.17 +WANTED="php"
   16.18  
   16.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   16.20  genpkg_rules()
   16.21  {
   16.22  	mkdir -p $fs/usr/share/php
   16.23 -	cp $(find $install | grep openssl.so) $fs/usr/share/php/
   16.24 +	cp $(find $install | grep openssl.so)	$fs/usr/share/php/
   16.25  }
   16.26  
   16.27  # Post and pre install commans to stop
   16.28  # and restart Web server if needed.
   16.29  pre_install()
   16.30  {
   16.31 -	while read daemon file; do
   16.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   16.33 +	while read daemon file
   16.34 +	  do
   16.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
   16.36 +		  then
   16.37  			/etc/init.d/$daemon stop
   16.38  		fi
   16.39 -	done <<EOT
   16.40 +	  done <<EOT
   16.41  apache apache/httpd.pid
   16.42  lighttpd lighttpd.pid
   16.43  EOT
   16.44 @@ -34,19 +36,24 @@
   16.45  
   16.46  post_install()
   16.47  {
   16.48 -	grep -q ^extension=openssl.so "$1/etc/php.ini" || \
   16.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=openssl.so|' -i "$1/etc/php.ini"
   16.50 +	grep -q ^extension=openssl.so "$1/etc/php.ini" || 
   16.51 +	sed -e 's|extension=bz2.so|extension=bz2.so\nextension=openssl.so|' \
   16.52 +		-i "$1/etc/php.ini"
   16.53 +
   16.54  	# Start Web server.
   16.55 -	while read daemon file; do
   16.56 +	while read daemon file
   16.57 +	  do
   16.58  		[ -z "$1" ] || continue
   16.59 -		if [ -f "/var/run/$file" ]; then
   16.60 +		if [ -f "/var/run/$file" ]
   16.61 +		  then
   16.62  			/etc/init.d/$daemon stop
   16.63  			sleep 2
   16.64  		fi
   16.65 -		if [ -f /etc/init.d/$daemon ]; then
   16.66 +		if [ -f /etc/init.d/$daemon ]
   16.67 +		  then
   16.68  			/etc/init.d/$daemon start
   16.69  		fi
   16.70 -	done <<EOT
   16.71 +	  done <<EOT
   16.72  apache apache/httpd.pid
   16.73  lighttpd lighttpd.pid
   16.74  EOT
   16.75 @@ -58,16 +65,19 @@
   16.76  	sed -i '/.*=openssl.so.*/d' /etc/php.ini
   16.77  
   16.78  	# Start Web server.
   16.79 -	while read daemon file; do
   16.80 +	while read daemon file
   16.81 +	  do
   16.82  		[ -z "$1" ] || continue
   16.83 -		if [ -f "/var/run/$file" ]; then
   16.84 +		if [ -f "/var/run/$file" ]
   16.85 +		  then
   16.86  			/etc/init.d/$daemon stop
   16.87  			sleep 2
   16.88  		fi
   16.89 -		if [ -f /etc/init.d/$daemon ]; then
   16.90 +		if [ -f /etc/init.d/$daemon ]
   16.91 +		  then
   16.92  			/etc/init.d/$daemon start
   16.93  		fi
   16.94 -	done <<EOT
   16.95 +	  done <<EOT
   16.96  apache apache/httpd.pid
   16.97  lighttpd lighttpd.pid
   16.98  EOT
    17.1 --- a/php-pdo-mysql/receipt	Wed Apr 01 11:42:26 2020 +0200
    17.2 +++ b/php-pdo-mysql/receipt	Wed Apr 01 15:23:29 2020 +0100
    17.3 @@ -1,32 +1,34 @@
    17.4  # SliTaz package receipt.
    17.5  
    17.6  PACKAGE="php-pdo-mysql"
    17.7 -VERSION="7.3.16"
    17.8 +VERSION="7.4.4"
    17.9  CATEGORY="development"
   17.10  SHORT_DESC="PDO MySQL module for PHP web programming language."
   17.11  MAINTAINER="pascal.bellard@slitaz.org"
   17.12  LICENSE="BSD"
   17.13  WEB_SITE="https://www.php.net/"
   17.14 -WANTED="php"
   17.15  
   17.16  DEPENDS="php php-mysql"
   17.17 +WANTED="php"
   17.18  
   17.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   17.20  genpkg_rules()
   17.21  {
   17.22  	mkdir -p $fs/usr/share/php
   17.23 -	cp $(find $install | grep pdo_mysql.so) $fs/usr/share/php/
   17.24 +	cp $(find $install | grep pdo_mysql.so)	$fs/usr/share/php/
   17.25  }
   17.26  
   17.27  # Post and pre install commans to stop
   17.28  # and restart Web server if needed.
   17.29  pre_install()
   17.30  {
   17.31 -	while read daemon file; do
   17.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   17.33 +	while read daemon file
   17.34 +	  do
   17.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
   17.36 +		  then
   17.37  			/etc/init.d/$daemon stop
   17.38  		fi
   17.39 -	done <<EOT
   17.40 +	  done <<EOT
   17.41  apache apache/httpd.pid
   17.42  lighttpd lighttpd.pid
   17.43  EOT
   17.44 @@ -34,19 +36,24 @@
   17.45  
   17.46  post_install()
   17.47  {
   17.48 -	grep -q ^extension=pdo_mysql.so "$1/etc/php.ini" || \
   17.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pdo_mysql.so|' -i "$1/etc/php.ini"
   17.50 +	grep -q ^extension=pdo_mysql.so "$1/etc/php.ini" || 
   17.51 +	sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pdo_mysql.so|' \
   17.52 +		-i "$1/etc/php.ini"
   17.53 +
   17.54  	# Start Web server.
   17.55 -	while read daemon file; do
   17.56 +	while read daemon file
   17.57 +	  do
   17.58  		[ -z "$1" ] || continue
   17.59 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   17.60 +		if [ -z "$1" -a -f "/var/run/$file" ]
   17.61 +		  then
   17.62  			/etc/init.d/$daemon stop
   17.63  			sleep 2
   17.64  		fi
   17.65 -		if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
   17.66 +		if [ -z "$1" -a -f /etc/init.d/$daemon ]
   17.67 +		  then
   17.68  			/etc/init.d/$daemon start
   17.69  		fi
   17.70 -	done <<EOT
   17.71 +	  done <<EOT
   17.72  apache apache/httpd.pid
   17.73  lighttpd lighttpd.pid
   17.74  EOT
   17.75 @@ -58,16 +65,19 @@
   17.76  	sed -i '/.*=pdo_mysql.so.*/d' /etc/php.ini
   17.77  
   17.78  	# Start Web server.
   17.79 -	while read daemon file; do
   17.80 +	while read daemon file
   17.81 +	  do
   17.82  		[ -z "$1" ] || continue
   17.83 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   17.84 +		if [ -z "$1" -a -f "/var/run/$file" ]
   17.85 +		  then
   17.86  			/etc/init.d/$daemon stop
   17.87  			sleep 2
   17.88  		fi
   17.89 -		if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
   17.90 +		if [ -z "$1" -a -f /etc/init.d/$daemon ]
   17.91 +		  then
   17.92  			/etc/init.d/$daemon start
   17.93  		fi
   17.94 -	done <<EOT
   17.95 +	  done <<EOT
   17.96  apache apache/httpd.pid
   17.97  lighttpd lighttpd.pid
   17.98  EOT
    18.1 --- a/php-pdo-pgsql/receipt	Wed Apr 01 11:42:26 2020 +0200
    18.2 +++ b/php-pdo-pgsql/receipt	Wed Apr 01 15:23:29 2020 +0100
    18.3 @@ -1,32 +1,34 @@
    18.4  # SliTaz package receipt.
    18.5  
    18.6  PACKAGE="php-pdo-pgsql"
    18.7 -VERSION="7.3.16"
    18.8 +VERSION="7.4.4"
    18.9  CATEGORY="development"
   18.10  SHORT_DESC="PDO PgSQL module for PHP web programming language."
   18.11  MAINTAINER="pascal.bellard@slitaz.org"
   18.12  LICENSE="BSD"
   18.13  WEB_SITE="https://www.php.net/"
   18.14 -WANTED="php"
   18.15  
   18.16  DEPENDS="php php-mysql libpostgresqlclient"
   18.17 +WANTED="php"
   18.18  
   18.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   18.20  genpkg_rules()
   18.21  {
   18.22  	mkdir -p $fs/usr/share/php
   18.23 -	cp $(find $install | grep pdo_pgsql.so) $fs/usr/share/php/
   18.24 +	cp $(find $install | grep pdo_pgsql.so)	$fs/usr/share/php/
   18.25  }
   18.26  
   18.27  # Post and pre install commans to stop
   18.28  # and restart Web server if needed.
   18.29  pre_install()
   18.30  {
   18.31 -	while read daemon file; do
   18.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   18.33 +	while read daemon file
   18.34 +	  do
   18.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
   18.36 +		  then
   18.37  			/etc/init.d/$daemon stop
   18.38  		fi
   18.39 -	done <<EOT
   18.40 +	  done <<EOT
   18.41  apache apache/httpd.pid
   18.42  lighttpd lighttpd.pid
   18.43  EOT
   18.44 @@ -34,19 +36,24 @@
   18.45  
   18.46  post_install()
   18.47  {
   18.48 -	grep -q ^extension=pdo_pgsql.so "$1/etc/php.ini" || \
   18.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pdo_pgsql.so|' -i "$1/etc/php.ini"
   18.50 +	grep -q ^extension=pdo_pgsql.so "$1/etc/php.ini" || 
   18.51 +	sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pdo_pgsql.so|' \
   18.52 +		-i "$1/etc/php.ini"
   18.53 +
   18.54  	# Start Web server.
   18.55 -	while read daemon file; do
   18.56 +	while read daemon file
   18.57 +	  do
   18.58  		[ -z "$1" ] || continue
   18.59 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   18.60 +		if [ -z "$1" -a -f "/var/run/$file" ]
   18.61 +		  then
   18.62  			/etc/init.d/$daemon stop
   18.63  			sleep 2
   18.64  		fi
   18.65 -		if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
   18.66 +		if [ -z "$1" -a -f /etc/init.d/$daemon ]
   18.67 +		  then
   18.68  			/etc/init.d/$daemon start
   18.69  		fi
   18.70 -	done <<EOT
   18.71 +	  done <<EOT
   18.72  apache apache/httpd.pid
   18.73  lighttpd lighttpd.pid
   18.74  EOT
   18.75 @@ -58,16 +65,19 @@
   18.76  	sed -i '/.*=pdo_pgsql.so.*/d' /etc/php.ini
   18.77  
   18.78  	# Start Web server.
   18.79 -	while read daemon file; do
   18.80 +	while read daemon file
   18.81 +	  do
   18.82  		[ -z "$1" ] || continue
   18.83 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   18.84 +		if [ -z "$1" -a -f "/var/run/$file" ]
   18.85 +		  then
   18.86  			/etc/init.d/$daemon stop
   18.87  			sleep 2
   18.88  		fi
   18.89 -		if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
   18.90 +		if [ -z "$1" -a -f /etc/init.d/$daemon ]
   18.91 +		  then
   18.92  			/etc/init.d/$daemon start
   18.93  		fi
   18.94 -	done <<EOT
   18.95 +	  done <<EOT
   18.96  apache apache/httpd.pid
   18.97  lighttpd lighttpd.pid
   18.98  EOT
    19.1 --- a/php-pear/receipt	Wed Apr 01 11:42:26 2020 +0200
    19.2 +++ b/php-pear/receipt	Wed Apr 01 15:23:29 2020 +0100
    19.3 @@ -1,33 +1,37 @@
    19.4  # SliTaz package receipt.
    19.5  
    19.6  PACKAGE="php-pear"
    19.7 -VERSION="7.3.16"
    19.8 +VERSION="7.4.4"
    19.9  CATEGORY="development"
   19.10  SHORT_DESC="PHP web programming language pear libs."
   19.11  MAINTAINER="pascal.bellard@slitaz.org"
   19.12  LICENSE="BSD"
   19.13  WEB_SITE="https://www.php.net/"
   19.14 -WANTED="php"
   19.15  
   19.16  DEPENDS="php-cli"
   19.17 +WANTED="php"
   19.18  
   19.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   19.20  genpkg_rules()
   19.21  {
   19.22 -        mkdir -p $fs/usr/share $fs/usr/bin $fs/etc
   19.23 -        cp -a $install/usr/share/php $fs/usr/share
   19.24 -        cp -a $install/etc/pear.conf $fs/etc
   19.25 -        cp -a $install/usr/bin/pe* $fs/usr/bin
   19.26 +        mkdir -p $fs/usr/share
   19.27 +	mkdir -p $fs/usr/bin $fs/etc
   19.28 +
   19.29 +        cp -a $install/usr/share/php	$fs/usr/share
   19.30 +        cp -a $install/etc/pear.conf	$fs/etc
   19.31 +        cp -a $install/usr/bin/pe*	$fs/usr/bin
   19.32  }
   19.33  
   19.34  # Pre and post install commands for Tazpkg.
   19.35  pre_install()
   19.36  {
   19.37 -	while read daemon file; do
   19.38 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   19.39 +	while read daemon file
   19.40 +	  do
   19.41 +		if [ -z "$1" -a -f "/var/run/$file" ]
   19.42 +		  then
   19.43  			/etc/init.d/$daemon stop
   19.44  		fi
   19.45 -	done <<EOT
   19.46 +	  done <<EOT
   19.47  apache apache/httpd.pid
   19.48  lighttpd lighttpd.pid
   19.49  EOT
   19.50 @@ -36,18 +40,23 @@
   19.51  post_install()
   19.52  {
   19.53  	grep ^include_path "$1/etc/php.ini"
   19.54 -	sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' "$1/etc/php.ini"
   19.55 +	sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' \
   19.56 +		"$1/etc/php.ini"
   19.57 +
   19.58  	# Restart Web server.
   19.59 -	while read daemon file; do
   19.60 +	while read daemon file
   19.61 +	  do
   19.62  		[ -z "$1" ] || continue
   19.63 -		if [ -f "/var/run/$file" ]; then
   19.64 +		if [ -f "/var/run/$file" ]
   19.65 +		  then
   19.66  			/etc/init.d/$daemon stop
   19.67  			sleep 2
   19.68  		fi
   19.69 -		if [ -f /etc/init.d/$daemon ]; then
   19.70 +		if [ -f /etc/init.d/$daemon ]
   19.71 +		  then
   19.72  			/etc/init.d/$daemon start
   19.73  		fi
   19.74 -	done <<EOT
   19.75 +	  done <<EOT
   19.76  apache apache/httpd.pid
   19.77  lighttpd lighttpd.pid
   19.78  EOT
    20.1 --- a/php-pgsql/receipt	Wed Apr 01 11:42:26 2020 +0200
    20.2 +++ b/php-pgsql/receipt	Wed Apr 01 15:23:29 2020 +0100
    20.3 @@ -1,32 +1,34 @@
    20.4  # SliTaz package receipt.
    20.5  
    20.6  PACKAGE="php-pgsql"
    20.7 -VERSION="7.3.16"
    20.8 +VERSION="7.4.4"
    20.9  CATEGORY="development"
   20.10  SHORT_DESC="postgresql module for PHP web programming language."
   20.11  MAINTAINER="pascal.bellard@slitaz.org"
   20.12  LICENSE="BSD"
   20.13  WEB_SITE="https://www.php.net/"
   20.14 -WANTED="php"
   20.15  
   20.16  DEPENDS="postgresql php"
   20.17 +WANTED="php"
   20.18  
   20.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   20.20  genpkg_rules()
   20.21  {
   20.22  	mkdir -p $fs/usr/share/php
   20.23 -	cp $(find $install | grep pgsql.so) $fs/usr/share/php/
   20.24 +	cp $(find $install | grep pgsql.so)	$fs/usr/share/php/
   20.25  }
   20.26  
   20.27  # Post and pre install commans to stop
   20.28  # and restart Web server if needed.
   20.29  pre_install()
   20.30  {
   20.31 -	while read daemon file; do
   20.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   20.33 +	while read daemon file
   20.34 +	  do
   20.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
   20.36 +		  then
   20.37  			/etc/init.d/$daemon stop
   20.38  		fi
   20.39 -	done <<EOT
   20.40 +	  done <<EOT
   20.41  apache apache/httpd.pid
   20.42  lighttpd lighttpd.pid
   20.43  EOT
   20.44 @@ -34,19 +36,24 @@
   20.45  
   20.46  post_install()
   20.47  {
   20.48 -	grep -q ^extension=pgsql.so "$1/etc/php.ini" || \
   20.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pgsql.so|' -i "$1/etc/php.ini"
   20.50 +	grep -q ^extension=pgsql.so "$1/etc/php.ini" || 
   20.51 +	sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pgsql.so|' \
   20.52 +		-i "$1/etc/php.ini"
   20.53 +
   20.54  	# Start Web server.
   20.55 -	while read daemon file; do
   20.56 +	while read daemon file
   20.57 +	  do
   20.58  		[ -z "$1" ] || continue
   20.59 -		if [ -f "/var/run/$file" ]; then
   20.60 +		if [ -f "/var/run/$file" ]
   20.61 +		  then
   20.62  			/etc/init.d/$daemon stop
   20.63  			sleep 2
   20.64  		fi
   20.65 -		if [ -f /etc/init.d/$daemon ]; then
   20.66 +		if [ -f /etc/init.d/$daemon ]
   20.67 +		  then
   20.68  			/etc/init.d/$daemon start
   20.69  		fi
   20.70 -	done <<EOT
   20.71 +	  done <<EOT
   20.72  apache apache/httpd.pid
   20.73  lighttpd lighttpd.pid
   20.74  EOT
   20.75 @@ -58,16 +65,19 @@
   20.76  	sed -i '/.*=pgsql.so.*/d' /etc/php.ini
   20.77  
   20.78  	# Start Web server.
   20.79 -	while read daemon file; do
   20.80 +	while read daemon file
   20.81 +	  do
   20.82  		[ -z "$1" ] || continue
   20.83 -		if [ -f "/var/run/$file" ]; then
   20.84 +		if [ -f "/var/run/$file" ]
   20.85 +		  then
   20.86  			/etc/init.d/$daemon stop
   20.87  			sleep 2
   20.88  		fi
   20.89 -		if [ -f /etc/init.d/$daemon ]; then
   20.90 +		if [ -f /etc/init.d/$daemon ]
   20.91 +		  then
   20.92  			/etc/init.d/$daemon start
   20.93  		fi
   20.94 -	done <<EOT
   20.95 +	  done <<EOT
   20.96  apache apache/httpd.pid
   20.97  lighttpd lighttpd.pid
   20.98  EOT
    21.1 --- a/php-snmp/receipt	Wed Apr 01 11:42:26 2020 +0200
    21.2 +++ b/php-snmp/receipt	Wed Apr 01 15:23:29 2020 +0100
    21.3 @@ -1,32 +1,34 @@
    21.4  # SliTaz package receipt.
    21.5  
    21.6  PACKAGE="php-snmp"
    21.7 -VERSION="7.3.16"
    21.8 +VERSION="7.4.4"
    21.9  CATEGORY="development"
   21.10  SHORT_DESC="snmp module for PHP web programming language."
   21.11  MAINTAINER="pascal.bellard@slitaz.org"
   21.12  LICENSE="BSD"
   21.13  WEB_SITE="https://www.php.net/"
   21.14 -WANTED="php"
   21.15  
   21.16  DEPENDS="net-snmp php libcrypto"
   21.17 +WANTED="php"
   21.18  
   21.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   21.20  genpkg_rules()
   21.21  {
   21.22  	mkdir -p $fs/usr/share/php
   21.23 -	cp $(find $install | grep snmp.so) $fs/usr/share/php/
   21.24 +	cp $(find $install | grep snmp.so)	$fs/usr/share/php/
   21.25  }
   21.26  
   21.27  # Post and pre install commans to stop
   21.28  # and restart Web server if needed.
   21.29  pre_install()
   21.30  {
   21.31 -	while read daemon file; do
   21.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   21.33 +	while read daemon file
   21.34 +	  do
   21.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
   21.36 +		  then
   21.37  			/etc/init.d/$daemon stop
   21.38  		fi
   21.39 -	done <<EOT
   21.40 +	  done <<EOT
   21.41  apache apache/httpd.pid
   21.42  lighttpd lighttpd.pid
   21.43  EOT
   21.44 @@ -34,19 +36,24 @@
   21.45  
   21.46  post_install()
   21.47  {
   21.48 -	grep -q ^extension=snmp.so "$1/etc/php.ini" || \
   21.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=snmp.so|' -i "$1/etc/php.ini"
   21.50 +	grep -q ^extension=snmp.so "$1/etc/php.ini" || 
   21.51 +	sed -e 's|extension=bz2.so|extension=bz2.so\nextension=snmp.so|' \
   21.52 +		-i "$1/etc/php.ini"
   21.53 +
   21.54  	# Start Web server.
   21.55 -	while read daemon file; do
   21.56 +	while read daemon file
   21.57 +	  do
   21.58  		[ -z "$1" ] || continue
   21.59 -		if [ -f "/var/run/$file" ]; then
   21.60 +		if [ -f "/var/run/$file" ]
   21.61 +		  then
   21.62  			/etc/init.d/$daemon stop
   21.63  			sleep 2
   21.64  		fi
   21.65 -		if [ -f /etc/init.d/$daemon ]; then
   21.66 +		if [ -f /etc/init.d/$daemon ]
   21.67 +		  then
   21.68  			/etc/init.d/$daemon start
   21.69  		fi
   21.70 -	done <<EOT
   21.71 +	  done <<EOT
   21.72  apache apache/httpd.pid
   21.73  lighttpd lighttpd.pid
   21.74  EOT
   21.75 @@ -58,16 +65,19 @@
   21.76  	sed -i '/.*=snmp.so.*/d' /etc/php.ini
   21.77  
   21.78  	# Start Web server.
   21.79 -	while read daemon file; do
   21.80 +	while read daemon file
   21.81 +	  do
   21.82  		[ -z "$1" ] || continue
   21.83 -		if [ -f "/var/run/$file" ]; then
   21.84 +		if [ -f "/var/run/$file" ]
   21.85 +		  then
   21.86  			/etc/init.d/$daemon stop
   21.87  			sleep 2
   21.88  		fi
   21.89 -		if [ -f /etc/init.d/$daemon ]; then
   21.90 +		if [ -f /etc/init.d/$daemon ]
   21.91 +		  then
   21.92  			/etc/init.d/$daemon start
   21.93  		fi
   21.94 -	done <<EOT
   21.95 +	  done <<EOT
   21.96  apache apache/httpd.pid
   21.97  lighttpd lighttpd.pid
   21.98  EOT
    22.1 --- a/php-soap/receipt	Wed Apr 01 11:42:26 2020 +0200
    22.2 +++ b/php-soap/receipt	Wed Apr 01 15:23:29 2020 +0100
    22.3 @@ -1,32 +1,34 @@
    22.4  # SliTaz package receipt.
    22.5  
    22.6  PACKAGE="php-soap"
    22.7 -VERSION="7.3.16"
    22.8 +VERSION="7.4.4"
    22.9  CATEGORY="development"
   22.10  SHORT_DESC="soap module for PHP web programming language."
   22.11  MAINTAINER="pascal.bellard@slitaz.org"
   22.12  LICENSE="BSD"
   22.13  WEB_SITE="https://www.php.net/"
   22.14 -WANTED="php"
   22.15  
   22.16  DEPENDS="php libxml2"
   22.17 +WANTED="php"
   22.18  
   22.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   22.20  genpkg_rules()
   22.21  {
   22.22  	mkdir -p $fs/usr/share/php
   22.23 -	cp $(find $install | grep soap.so) $fs/usr/share/php/
   22.24 +	cp $(find $install | grep soap.so)	$fs/usr/share/php/
   22.25  }
   22.26  
   22.27  # Post and pre install commans to stop
   22.28  # and restart Web server if needed.
   22.29  pre_install()
   22.30  {
   22.31 -	while read daemon file; do
   22.32 -		if [ -z "$1" -a -f "/var/run/$file" ]; then
   22.33 +	while read daemon file
   22.34 +	  do
   22.35 +		if [ -z "$1" -a -f "/var/run/$file" ]
   22.36 +		  then
   22.37  			/etc/init.d/$daemon stop
   22.38  		fi
   22.39 -	done <<EOT
   22.40 +	  done <<EOT
   22.41  apache apache/httpd.pid
   22.42  lighttpd lighttpd.pid
   22.43  EOT
   22.44 @@ -34,19 +36,24 @@
   22.45  
   22.46  post_install()
   22.47  {
   22.48 -	grep -q ^extension=soap.so "$1/etc/php.ini" || \
   22.49 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=soap.so|' -i "$1/etc/php.ini"
   22.50 +	grep -q ^extension=soap.so "$1/etc/php.ini" || 
   22.51 +	sed -e 's|extension=bz2.so|extension=bz2.so\nextension=soap.so|' \
   22.52 +		-i "$1/etc/php.ini"
   22.53 +
   22.54  	# Start Web server.
   22.55 -	while read daemon file; do
   22.56 +	while read daemon file
   22.57 +	  do
   22.58  		[ -z "$1" ] || continue
   22.59 -		if [ -f "/var/run/$file" ]; then
   22.60 +		if [ -f "/var/run/$file" ]
   22.61 +		  then
   22.62  			/etc/init.d/$daemon stop
   22.63  			sleep 2
   22.64  		fi
   22.65 -		if [ -f /etc/init.d/$daemon ]; then
   22.66 +		if [ -f /etc/init.d/$daemon ]
   22.67 +		  then
   22.68  			/etc/init.d/$daemon start
   22.69  		fi
   22.70 -	done <<EOT
   22.71 +	  done <<EOT
   22.72  apache apache/httpd.pid
   22.73  lighttpd lighttpd.pid
   22.74  EOT
   22.75 @@ -58,16 +65,19 @@
   22.76  	sed -i '/.*=soap.so.*/d' /etc/php.ini
   22.77  
   22.78  	# Start Web server.
   22.79 -	while read daemon file; do
   22.80 +	while read daemon file
   22.81 +	  do
   22.82  		[ -z "$1" ] || continue
   22.83 -		if [ -f "/var/run/$file" ]; then
   22.84 +		if [ -f "/var/run/$file" ]
   22.85 +		  then
   22.86  			/etc/init.d/$daemon stop
   22.87  			sleep 2
   22.88  		fi
   22.89 -		if [ -f /etc/init.d/$daemon ]; then
   22.90 +		if [ -f /etc/init.d/$daemon ]
   22.91 +		  then
   22.92  			/etc/init.d/$daemon start
   22.93  		fi
   22.94 -	done <<EOT
   22.95 +	  done <<EOT
   22.96  apache apache/httpd.pid
   22.97  lighttpd lighttpd.pid
   22.98  EOT
    23.1 --- a/php-sqlite/receipt	Wed Apr 01 11:42:26 2020 +0200
    23.2 +++ b/php-sqlite/receipt	Wed Apr 01 15:23:29 2020 +0100
    23.3 @@ -1,40 +1,46 @@
    23.4  # SliTaz package receipt.
    23.5  
    23.6  PACKAGE="php-sqlite"
    23.7 -VERSION="7.3.16"
    23.8 +VERSION="7.4.4"
    23.9  CATEGORY="development"
   23.10  SHORT_DESC="sqlite module for PHP web programming language."
   23.11  MAINTAINER="slaxemulator@gmail.com"
   23.12  LICENSE="BSD"
   23.13  WEB_SITE="https://www.php.net/"
   23.14 -WANTED="php"
   23.15  
   23.16  DEPENDS="php sqlite"
   23.17 +WANTED="php"
   23.18  
   23.19  # Rules to gen a SliTaz package suitable for Tazpkg.
   23.20  genpkg_rules()
   23.21  {
   23.22  	mkdir -p $fs/usr/share/php
   23.23 -	cp $(find $install | grep sqlite.so) $fs/usr/share/php/
   23.24 -	cp $(find $install | grep sqlite3.so) $fs/usr/share/php/
   23.25 -	cp $(find $install | grep pdo_sqlite.so) $fs/usr/share/php/
   23.26 +
   23.27 +	cp $(find $install | grep sqlite.so)		$fs/usr/share/php/
   23.28 +	cp $(find $install | grep sqlite3.so)		$fs/usr/share/php/
   23.29 +	cp $(find $install | grep pdo_sqlite.so)	$fs/usr/share/php/
   23.30  }
   23.31  
   23.32  post_install()
   23.33  {
   23.34 -	grep -q ^extension=sqlite3.so "$1/etc/php.ini" || \
   23.35 -	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=sqlite3.so|' -i "$1/etc/php.ini"
   23.36 +	grep -q ^extension=sqlite3.so "$1/etc/php.ini" || 
   23.37 +	sed -e 's|extension=bz2.so|extension=bz2.so\nextension=sqlite3.so|' \
   23.38 +		-i "$1/etc/php.ini"
   23.39 +
   23.40  	# Start Web server.
   23.41 -	while read daemon file; do
   23.42 +	while read daemon file
   23.43 +	  do
   23.44  		[ -z "$1" ] || continue
   23.45 -		if [ -f "/var/run/$file" ]; then
   23.46 +		if [ -f "/var/run/$file" ]
   23.47 +		  then
   23.48  			/etc/init.d/$daemon stop
   23.49  			sleep 2
   23.50  		fi
   23.51 -		if [ -f /etc/init.d/$daemon ]; then
   23.52 +		if [ -f /etc/init.d/$daemon ]
   23.53 +		  then
   23.54  			/etc/init.d/$daemon start
   23.55  		fi
   23.56 -	done <<EOT
   23.57 +	  done <<EOT
   23.58  apache apache/httpd.pid
   23.59  lighttpd lighttpd.pid
   23.60  EOT
   23.61 @@ -46,17 +52,20 @@
   23.62  	sed -i '/.*=sqlite3.so.*/d' /etc/php.ini
   23.63  
   23.64  	# Start Web server.
   23.65 -	while read daemon file; do
   23.66 +	while read daemon file
   23.67 +	  do
   23.68  		[ -z "$1" ] || continue
   23.69 -		if [ -f "/var/run/$file" ]; then
   23.70 +		if [ -f "/var/run/$file" ]
   23.71 +		  then
   23.72  			/etc/init.d/$daemon stop
   23.73  			sleep 2
   23.74  		fi
   23.75 -		if [ -f /etc/init.d/$daemon ]; then
   23.76 +		if [ -f /etc/init.d/$daemon ]
   23.77 +		  then
   23.78  			/etc/init.d/$daemon start
   23.79  		fi
   23.80 -	done <<EOT
   23.81 +	  done <<EOT
   23.82  apache apache/httpd.pid
   23.83  lighttpd lighttpd.pid
   23.84  EOT
   23.85 -}
   23.86 \ No newline at end of file
   23.87 +}
    24.1 --- a/php/receipt	Wed Apr 01 11:42:26 2020 +0200
    24.2 +++ b/php/receipt	Wed Apr 01 15:23:29 2020 +0100
    24.3 @@ -1,64 +1,70 @@
    24.4  # SliTaz package receipt.
    24.5  
    24.6  PACKAGE="php"
    24.7 -VERSION="7.3.16"
    24.8 +VERSION="7.4.4"
    24.9  CATEGORY="development"
   24.10  SHORT_DESC="PHP web programming language."
   24.11  MAINTAINER="pankso@slitaz.org"
   24.12  LICENSE="BSD"
   24.13 +WEB_SITE="https://www.php.net/"
   24.14 +
   24.15  TARBALL="$PACKAGE-$VERSION.tar.bz2"
   24.16 -WEB_SITE="https://www.php.net/"
   24.17  WGET_URL="https://www.php.net/distributions/$TARBALL"
   24.18 +
   24.19  PROVIDE="php:lighttpd"
   24.20 +DEPENDS="libssl libzip libxml2 lighttpd php-common sqlite"
   24.21 +BUILD_DEPENDS="apache apache-dev apr-dev apr-util-dev c-client 
   24.22 +	coreutils-conditions curl-dev cyrus-sasl-dev gettext 
   24.23 +	jpeg-dev libldap libmcrypt-dev libmysqlclient libpng-dev 
   24.24 +	libtool libunixODBC libvpx-dev libxml2-dev libzip-dev 
   24.25 +	mhash-dev mysql-dev net-snmp-dev openldap-dev openssl-dev 
   24.26 +	perl pkg-config postgresql-dev re2c sed sqlite-dev 
   24.27 +	unixODBC-dev"
   24.28 +
   24.29  #HOST_ARCH="i486 arm"
   24.30  
   24.31 -DEPENDS="php-common lighttpd libzip libxml2 sqlite libssl"
   24.32 -BUILD_DEPENDS="sqlite-dev libxml2-dev libzip-dev libmysqlclient mysql-dev \
   24.33 -net-snmp-dev postgresql-dev gettext openssl-dev apache-dev apr-util-dev \
   24.34 -c-client mhash-dev libpng-dev libunixODBC unixODBC-dev openldap-dev \
   24.35 -libldap apr-dev libmcrypt-dev curl-dev cyrus-sasl-dev perl pkg-config \
   24.36 -jpeg-dev net-snmp-dev libvpx-dev apache coreutils-conditions sed re2c \
   24.37 -libtool"
   24.38 -
   24.39  case "$ARCH" in
   24.40  	i?86)
   24.41 -		ARCH_ARGS="\
   24.42 -			--prefix=/usr \
   24.43 -			--sysconfdir=/etc \
   24.44 -			--infodir=/usr/share/info \
   24.45 -			--mandir=/usr/share/man \
   24.46 -			--enable-mbstring \
   24.47 -			--enable-sockets \
   24.48 -			--enable-ftp \
   24.49 -			--enable-zip \
   24.50 -			--enable-calendar \
   24.51 -			--enable-exif \
   24.52 -			--config-cache \
   24.53 -			--enable-dba=shared \
   24.54 -			--with-config-file-path=/etc \
   24.55 -			--with-zlib \
   24.56 -			--with-gettext \
   24.57 -			--with-mysqli=shared \
   24.58 -			--with-mysql-sock=/var/run/mysqld/mysql.sock \
   24.59 -			--with-pdo-sqlite=shared,/usr \
   24.60 -			--with-pgsql=shared,/usr \
   24.61 -			--with-snmp=shared,/usr \
   24.62 -			--enable-soap=shared,/usr \
   24.63 -			--with-ldap=shared \
   24.64 -			--with-imap=shared \
   24.65 -			--with-imap-ssl \
   24.66 -			--with-mhash \
   24.67 -			--with-gd=shared \
   24.68 -			--with-jpeg-dir=/usr \
   24.69 -			--with-png-dir=/usr \
   24.70 -			--with-openssl=shared \
   24.71 -			--with-unixODBC=shared,/usr \
   24.72 -			--with-pear=/usr/share/php \
   24.73 -			--with-pdo-mysql=shared \
   24.74 -			--with-pdo-pgsql=shared \
   24.75 -			--with-curl=shared \
   24.76 -			--with-sqlite3=shared,/usr \
   24.77 -			--enable-maintainer-zts" ;;
   24.78 +		# 7.4.4 unrecognised:
   24.79 +		# 	--enable-zip
   24.80 +		#	--with-jpeg-dir=/usr
   24.81 +		#	--with-png-dir=/usr
   24.82 +
   24.83 +		ARCH_ARGS="						\
   24.84 +			--prefix=/usr					\
   24.85 +			--sysconfdir=/etc				\
   24.86 +			--infodir=/usr/share/info			\
   24.87 +			--mandir=/usr/share/man				\
   24.88 +			--config-cache					\
   24.89 +			 --enable-calendar				\
   24.90 +			 --enable-dba=shared				\
   24.91 +			 --enable-exif					\
   24.92 +			 --enable-ftp					\
   24.93 +			 --enable-gd=shared				\
   24.94 +			 --enable-maintainer-zts			\
   24.95 +			--disable-mbregex				\
   24.96 +			 --enable-mbstring				\
   24.97 +			 --enable-soap=shared,/usr			\
   24.98 +			 --enable-sockets				\
   24.99 +			--with-config-file-path=/etc			\
  24.100 +			--with-curl=shared				\
  24.101 +			--with-gettext					\
  24.102 +			--with-imap=shared				\
  24.103 +			--with-imap-ssl					\
  24.104 +			--with-ldap=shared				\
  24.105 +			--with-mhash					\
  24.106 +			--with-mysql-sock=/var/run/mysqld/mysql.sock	\
  24.107 +			--with-mysqli=shared				\
  24.108 +			--with-openssl=shared				\
  24.109 +			--with-pdo-mysql=shared				\
  24.110 +			--with-pdo-pgsql=shared				\
  24.111 +			--with-pdo-sqlite=shared,/usr			\
  24.112 +			--with-pear=/usr/share/php			\
  24.113 +			--with-pgsql=shared,/usr			\
  24.114 +			--with-snmp=shared,/usr				\
  24.115 +			--with-sqlite3=shared,/usr			\
  24.116 +			--with-unixODBC=shared,/usr			\
  24.117 +			--with-zlib" ;;
  24.118  	arm*)
  24.119  		BUILD_DEPENDS="sqlite-dev libxml2-dev zlib-dev curl-dev"
  24.120  		ARCH_ARGS="\
  24.121 @@ -91,57 +97,66 @@
  24.122  compile_rules()
  24.123  {
  24.124  	sed -i 's/pam_start/pam_nostart/' configure
  24.125 -	./configure $ARCH_ARGS $CONFIGURE_ARGS && \
  24.126 -	make $MAKEFLAGS && make -j1 INSTALL_ROOT=$DESTDIR install
  24.127 -	./configure $ARCH_ARGS $CONFIGURE_ARGS --with-apxs2=/usr/bin/apxs && \
  24.128 -	make $MAKEFLAGS && {
  24.129 +
  24.130 +	./configure $ARCH_ARGS $CONFIGURE_ARGS &&
  24.131 +	make $MAKEFLAGS &&
  24.132 +	make -j1 INSTALL_ROOT=$DESTDIR install &&
  24.133 +	./configure $ARCH_ARGS $CONFIGURE_ARGS --with-apxs2=/usr/bin/apxs &&
  24.134 +	make $MAKEFLAGS &&
  24.135 +	{
  24.136  		mkdir -p $DESTDIR/etc/apache
  24.137 -		cp /etc/apache/httpd.conf $DESTDIR/etc/apache/httpd.conf
  24.138 +		cp /etc/apache/httpd.conf	$DESTDIR/etc/apache/httpd.conf
  24.139  		make -j1 INSTALL_ROOT=$DESTDIR install
  24.140  	}
  24.141 -	# Production config file.
  24.142 +
  24.143 +	# Production configuration file.
  24.144  	mkdir -p $DESTDIR/etc
  24.145 -	cp $src/php.ini-production $DESTDIR/etc/php.ini || exit 1
  24.146 -	sed -e 's|extension_dir = "./"|extension_dir = "/usr/share/php/"|' \
  24.147 -		-i $DESTDIR/etc/php.ini
  24.148 +	cp $src/php.ini-production	$DESTDIR/etc/php.ini || exit 1
  24.149 +	sed -i	-e 's|extension_dir = "./"|extension_dir = "/usr/share/php/"|' \
  24.150 +		$DESTDIR/etc/php.ini
  24.151  }
  24.152  
  24.153  # Rules to gen a SliTaz package suitable for Tazpkg.
  24.154  genpkg_rules()
  24.155  {
  24.156 -	mkdir -p $fs/usr/bin $fs/usr/share/php
  24.157 -	cp -a $src/sapi/cgi/php-cgi $fs/usr/bin
  24.158 +	mkdir -p $fs/usr/bin
  24.159 +	mkdir -p $fs/usr/share/php
  24.160 +
  24.161 +	cp -a $src/sapi/cgi/php-cgi	$fs/usr/bin
  24.162  }
  24.163  
  24.164  # Post and pre install commands to stop
  24.165  # and restart Web server if needed.
  24.166  pre_install()
  24.167  {
  24.168 -	if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]; then
  24.169 +	if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]
  24.170 +	  then
  24.171  		/etc/init.d/lighttpd stop
  24.172  	fi
  24.173  }
  24.174  
  24.175  post_install()
  24.176  {
  24.177 -	# Enable php
  24.178 -	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  24.179 -	  [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || \
  24.180 +	# Enable PHP
  24.181 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
  24.182 +	  then
  24.183 +		[ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] ||
  24.184  	  	tazpkg get-install lighttpd-modules --root="$1/"
  24.185 -	  sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
  24.186 -	    -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
  24.187 -	    -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n  )))|' \
  24.188 -	    -i "$1/etc/lighttpd/lighttpd.conf"
  24.189 -	  grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || \
  24.190 -	  	sed -e 's|server.modules = (|server.modules = (\n  "mod_fastcgi",|' \
  24.191 -	  	    -i "$1/etc/lighttpd/lighttpd.conf"
  24.192 -	  grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \
  24.193 -	  	sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
  24.194 -	  	    -i "$1/etc/lighttpd/lighttpd.conf"
  24.195 +		sed -i	-e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
  24.196 +			-e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
  24.197 +			-e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n  )))|' \
  24.198 +			"$1/etc/lighttpd/lighttpd.conf"
  24.199 +		  grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || 
  24.200 +		  	sed -e 's|server.modules = (|server.modules = (\n  "mod_fastcgi",|' \
  24.201 +		  	    -i "$1/etc/lighttpd/lighttpd.conf"
  24.202 +		  grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \
  24.203 +		  	sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
  24.204 +		  	    -i "$1/etc/lighttpd/lighttpd.conf"
  24.205  	fi
  24.206 +
  24.207  	# Start Web server.
  24.208 -	if [ -z "$1" -a ! -f /var/run/lighttpd.pid \
  24.209 -		     -a -f /etc/init.d/lighttpd ]; then
  24.210 +	if [ -z "$1" -a ! -f /var/run/lighttpd.pid -a -f /etc/init.d/lighttpd ]
  24.211 +	  then
  24.212  		/etc/init.d/lighttpd start
  24.213  	fi
  24.214  }