wok-next rev 14614

Up: php to 5.4.13.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Jun 01 06:40:14 2013 +0000 (2013-06-01)
parents 95ba0f0bb955
children 6e5c595df106
files php-apache/receipt php-cli/receipt php-common/receipt php-curl/receipt php-dba/receipt php-dev/receipt php-gd/receipt php-imap/receipt php-ldap/receipt php-mcrypt/receipt php-mysql/receipt php-mysqli/receipt php-odbc/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	Sat Jun 01 06:36:55 2013 +0000
     1.2 +++ b/php-apache/receipt	Sat Jun 01 06:40:14 2013 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="php-apache"
     1.7 -VERSION="5.4.4"
     1.8 +VERSION="5.4.13"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="PHP module for apache."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -14,7 +14,7 @@
    1.13  genpkg_rules()
    1.14  {
    1.15  	mkdir -p $fs/usr/share
    1.16 -	cp -a $_pkg/usr/share/apache $fs/usr/share
    1.17 +	cp -a $install/usr/share/apache $fs/usr/share
    1.18  }
    1.19  
    1.20  # Post and pre install commans to stop
     2.1 --- a/php-cli/receipt	Sat Jun 01 06:36:55 2013 +0000
     2.2 +++ b/php-cli/receipt	Sat Jun 01 06:40:14 2013 +0000
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="php-cli"
     2.7 -VERSION="5.4.4"
     2.8 +VERSION="5.4.13"
     2.9  CATEGORY="development"
    2.10  SHORT_DESC="PHP web programming language command line interpreter."
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12 @@ -13,5 +13,5 @@
    2.13  genpkg_rules()
    2.14  {
    2.15  	mkdir -p $fs/usr/bin
    2.16 -	cp -a $_pkg/usr/bin/php $fs/usr/bin
    2.17 +	cp -a $install/usr/bin/php $fs/usr/bin
    2.18  }
     3.1 --- a/php-common/receipt	Sat Jun 01 06:36:55 2013 +0000
     3.2 +++ b/php-common/receipt	Sat Jun 01 06:40:14 2013 +0000
     3.3 @@ -1,7 +1,7 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="php-common"
     3.7 -VERSION="5.4.4"
     3.8 +VERSION="5.4.13"
     3.9  CATEGORY="development"
    3.10  SHORT_DESC="Common files for PHP modules."
    3.11  MAINTAINER="pascal.bellard@slitaz.org"
     4.1 --- a/php-curl/receipt	Sat Jun 01 06:36:55 2013 +0000
     4.2 +++ b/php-curl/receipt	Sat Jun 01 06:40:14 2013 +0000
     4.3 @@ -1,7 +1,7 @@
     4.4  # SliTaz package receipt.
     4.5  
     4.6  PACKAGE="php-curl"
     4.7 -VERSION="5.4.4"
     4.8 +VERSION="5.4.13"
     4.9  CATEGORY="development"
    4.10  SHORT_DESC="curl module for PHP web programming language."
    4.11  MAINTAINER="jozee@slitaz.org"
    4.12 @@ -13,7 +13,7 @@
    4.13  genpkg_rules()
    4.14  {
    4.15  	mkdir -p $fs/usr/share/php
    4.16 -	cp $(find $_pkg | grep curl.so) $fs/usr/share/php/
    4.17 +	cp $(find $install | grep curl.so) $fs/usr/share/php/
    4.18  }
    4.19  
    4.20  # Post and pre install commans to stop
    4.21 @@ -57,9 +57,12 @@
    4.22  
    4.23  	# Start Web server.
    4.24  	while read daemon file; do
    4.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
    4.26 +		[ -z "$1" ] || continue
    4.27 +		if [ -f "/var/run/$file" ]; then
    4.28  			/etc/init.d/$daemon stop
    4.29  			sleep 2
    4.30 +		fi
    4.31 +		if [ -f /etc/init.d/$daemon ]; then
    4.32  			/etc/init.d/$daemon start
    4.33  		fi
    4.34  	done <<EOT
     5.1 --- a/php-dba/receipt	Sat Jun 01 06:36:55 2013 +0000
     5.2 +++ b/php-dba/receipt	Sat Jun 01 06:40:14 2013 +0000
     5.3 @@ -1,7 +1,7 @@
     5.4  # SliTaz package receipt.
     5.5  
     5.6  PACKAGE="php-dba"
     5.7 -VERSION="5.4.4"
     5.8 +VERSION="5.4.13"
     5.9  CATEGORY="development"
    5.10  SHORT_DESC="dba module for PHP web programming language."
    5.11  MAINTAINER="pascal.bellard@slitaz.org"
    5.12 @@ -12,7 +12,7 @@
    5.13  genpkg_rules()
    5.14  {
    5.15  	mkdir -p $fs/usr/share/php
    5.16 -	cp $(find $_pkg | grep dba.so) $fs/usr/share/php/
    5.17 +	cp $(find $install | grep dba.so) $fs/usr/share/php/
    5.18  }
    5.19  
    5.20  # Post and pre install commans to stop
    5.21 @@ -56,9 +56,12 @@
    5.22  
    5.23  	# Start Web server.
    5.24  	while read daemon file; do
    5.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
    5.26 +		[ -z "$1" ] || continue
    5.27 +		if [ -f "/var/run/$file" ]; then
    5.28  			/etc/init.d/$daemon stop
    5.29  			sleep 2
    5.30 +		fi
    5.31 +		if [ -f /etc/init.d/$daemon ]; then
    5.32  			/etc/init.d/$daemon start
    5.33  		fi
    5.34  	done <<EOT
     6.1 --- a/php-dev/receipt	Sat Jun 01 06:36:55 2013 +0000
     6.2 +++ b/php-dev/receipt	Sat Jun 01 06:40:14 2013 +0000
     6.3 @@ -1,7 +1,7 @@
     6.4  # SliTaz package receipt.
     6.5  
     6.6  PACKAGE="php-dev"
     6.7 -VERSION="5.4.4"
     6.8 +VERSION="5.4.13"
     6.9  CATEGORY="development"
    6.10  SHORT_DESC="PHP web programming language development files."
    6.11  MAINTAINER="pascal.bellard@slitaz.org"
    6.12 @@ -14,9 +14,9 @@
    6.13  genpkg_rules()
    6.14  {
    6.15  	mkdir -p $fs/usr/lib/php $fs/usr/bin
    6.16 -	cp -a $_pkg/usr/lib/php/extensions $fs/usr/lib/php
    6.17 +	cp -a $install/usr/lib/php/extensions $fs/usr/lib/php
    6.18  	rm -f $fs/usr/lib/php/*so
    6.19 -	cp -a $_pkg/usr/lib/php/build $fs/usr/lib/php
    6.20 -	cp -a $_pkg/usr/include $fs/usr
    6.21 -	cp -a $_pkg/usr/bin/php-config $_pkg/usr/bin/phpize $fs/usr/bin
    6.22 +	cp -a $install/usr/lib/php/build $fs/usr/lib/php
    6.23 +	cp -a $install/usr/include $fs/usr
    6.24 +	cp -a $install/usr/bin/php-config $install/usr/bin/phpize $fs/usr/bin
    6.25  }
     7.1 --- a/php-gd/receipt	Sat Jun 01 06:36:55 2013 +0000
     7.2 +++ b/php-gd/receipt	Sat Jun 01 06:40:14 2013 +0000
     7.3 @@ -1,11 +1,11 @@
     7.4  # SliTaz package receipt.
     7.5  
     7.6  PACKAGE="php-gd"
     7.7 -VERSION="5.4.4"
     7.8 +VERSION="5.4.13"
     7.9  CATEGORY="development"
    7.10  SHORT_DESC="gd module for PHP web programming language."
    7.11  MAINTAINER="pascal.bellard@slitaz.org"
    7.12 -DEPENDS="libpng php jpeg freetype"
    7.13 +DEPENDS="libpng php jpeg libvpx"
    7.14  WEB_SITE="http://www.php.net/"
    7.15  WANTED="php"
    7.16  
    7.17 @@ -13,7 +13,7 @@
    7.18  genpkg_rules()
    7.19  {
    7.20  	mkdir -p $fs/usr/share/php
    7.21 -	cp $(find $_pkg | grep gd.so) $fs/usr/share/php/
    7.22 +	cp $(find $install | grep gd.so) $fs/usr/share/php/
    7.23  }
    7.24  
    7.25  # Post and pre install commans to stop
    7.26 @@ -53,14 +53,19 @@
    7.27  # Pre and post remove commands for Tazpkg.
    7.28  pre_remove()
    7.29  {
    7.30 -	sed -i '/.*=gd.so.*/d' /etc/php.ini
    7.31 +	sed -i '/.*=gd.so.*/d' $1/etc/php.ini
    7.32  
    7.33  	# Start Web server.
    7.34  	while read daemon file; do
    7.35  		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
    7.36 -			/etc/init.d/$daemon stop
    7.37 -			sleep 2
    7.38 -			/etc/init.d/$daemon start
    7.39 +			[ -z "$1" ] || continue
    7.40 +			if [ -z "$1" -a -f "/var/run/$file" ]; then
    7.41 +				/etc/init.d/$daemon stop
    7.42 +				sleep 2
    7.43 +			fi
    7.44 +			if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
    7.45 +				/etc/init.d/$daemon start
    7.46 +			fi
    7.47  		fi
    7.48  	done <<EOT
    7.49  apache apache/httpd.pid
     8.1 --- a/php-imap/receipt	Sat Jun 01 06:36:55 2013 +0000
     8.2 +++ b/php-imap/receipt	Sat Jun 01 06:40:14 2013 +0000
     8.3 @@ -1,7 +1,7 @@
     8.4  # SliTaz package receipt.
     8.5  
     8.6  PACKAGE="php-imap"
     8.7 -VERSION="5.4.4"
     8.8 +VERSION="5.4.13"
     8.9  CATEGORY="development"
    8.10  SHORT_DESC="imap module for PHP web programming language."
    8.11  MAINTAINER="pascal.bellard@slitaz.org"
    8.12 @@ -13,7 +13,7 @@
    8.13  genpkg_rules()
    8.14  {
    8.15  	mkdir -p $fs/usr/share/php
    8.16 -	cp $(find $_pkg | grep imap.so) $fs/usr/share/php/
    8.17 +	cp $(find $install | grep imap.so) $fs/usr/share/php/
    8.18  }
    8.19  
    8.20  # Post and pre install commans to stop
    8.21 @@ -57,9 +57,12 @@
    8.22  
    8.23  	# Start Web server.
    8.24  	while read daemon file; do
    8.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
    8.26 +		[ -z "$1" ] || continue
    8.27 +		if [ -f "/var/run/$file" ]; then
    8.28  			/etc/init.d/$daemon stop
    8.29  			sleep 2
    8.30 +		fi
    8.31 +		if [ -f /etc/init.d/$daemon ]; then
    8.32  			/etc/init.d/$daemon start
    8.33  		fi
    8.34  	done <<EOT
     9.1 --- a/php-ldap/receipt	Sat Jun 01 06:36:55 2013 +0000
     9.2 +++ b/php-ldap/receipt	Sat Jun 01 06:40:14 2013 +0000
     9.3 @@ -1,7 +1,7 @@
     9.4  # SliTaz package receipt.
     9.5  
     9.6  PACKAGE="php-ldap"
     9.7 -VERSION="5.4.4"
     9.8 +VERSION="5.4.13"
     9.9  CATEGORY="development"
    9.10  SHORT_DESC="ldap module for PHP web programming language."
    9.11  MAINTAINER="pascal.bellard@slitaz.org"
    9.12 @@ -13,7 +13,7 @@
    9.13  genpkg_rules()
    9.14  {
    9.15  	mkdir -p $fs/usr/share/php
    9.16 -	cp $(find $_pkg | grep ldap.so) $fs/usr/share/php/
    9.17 +	cp $(find $install | grep ldap.so) $fs/usr/share/php/
    9.18  }
    9.19  
    9.20  # Post and pre install commans to stop
    9.21 @@ -57,9 +57,12 @@
    9.22  
    9.23  	# Start Web server.
    9.24  	while read daemon file; do
    9.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
    9.26 +		[ -z "$1" ] || continue
    9.27 +		if [ -f "/var/run/$file" ]; then
    9.28  			/etc/init.d/$daemon stop
    9.29  			sleep 2
    9.30 +		fi
    9.31 +		if [ -f /etc/init.d/$daemon ]; then
    9.32  			/etc/init.d/$daemon start
    9.33  		fi
    9.34  	done <<EOT
    10.1 --- a/php-mcrypt/receipt	Sat Jun 01 06:36:55 2013 +0000
    10.2 +++ b/php-mcrypt/receipt	Sat Jun 01 06:40:14 2013 +0000
    10.3 @@ -1,20 +1,19 @@
    10.4  # SliTaz package receipt.
    10.5  
    10.6  PACKAGE="php-mcrypt"
    10.7 -VERSION="5.4.4"
    10.8 +VERSION="5.4.13"
    10.9  CATEGORY="development"
   10.10  SHORT_DESC="mcrypt module for PHP web programming language."
   10.11  MAINTAINER="erjo@slitaz.org"
   10.12 +DEPENDS="libmcrypt php libtool"
   10.13  WEB_SITE="http://www.php.net/"
   10.14  WANTED="php"
   10.15  
   10.16 -DEPENDS="libmcrypt php libltdl"
   10.17 -
   10.18  # Rules to gen a SliTaz package suitable for Tazpkg.
   10.19  genpkg_rules()
   10.20  {
   10.21  	mkdir -p $fs/usr/share/php
   10.22 -	cp $(find $_pkg | grep mcrypt.so) $fs/usr/share/php/
   10.23 +	cp $(find $install | grep mcrypt.so) $fs/usr/share/php/
   10.24  }
   10.25  
   10.26  # Post and pre install commans to stop
   10.27 @@ -58,9 +57,12 @@
   10.28  
   10.29  	# Start Web server.
   10.30  	while read daemon file; do
   10.31 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
   10.32 +		[ -z "$1" ] || continue
   10.33 +		if [ -f "/var/run/$file" ]; then
   10.34  			/etc/init.d/$daemon stop
   10.35  			sleep 2
   10.36 +		fi
   10.37 +		if [ -f /etc/init.d/$daemon ]; then
   10.38  			/etc/init.d/$daemon start
   10.39  		fi
   10.40  	done <<EOT
    11.1 --- a/php-mysql/receipt	Sat Jun 01 06:36:55 2013 +0000
    11.2 +++ b/php-mysql/receipt	Sat Jun 01 06:40:14 2013 +0000
    11.3 @@ -1,7 +1,7 @@
    11.4  # SliTaz package receipt.
    11.5  
    11.6  PACKAGE="php-mysql"
    11.7 -VERSION="5.4.4"
    11.8 +VERSION="5.4.13"
    11.9  CATEGORY="development"
   11.10  SHORT_DESC="mysql module for PHP web programming language."
   11.11  MAINTAINER="pascal.bellard@slitaz.org"
   11.12 @@ -13,7 +13,7 @@
   11.13  genpkg_rules()
   11.14  {
   11.15  	mkdir -p $fs/usr/share/php
   11.16 -	cp $(find $_pkg | grep mysql.so) $fs/usr/share/php/
   11.17 +	cp $(find $install | grep mysql.so) $fs/usr/share/php/
   11.18  }
   11.19  
   11.20  # Post and pre install commans to stop
   11.21 @@ -57,9 +57,12 @@
   11.22  
   11.23  	# Start Web server.
   11.24  	while read daemon file; do
   11.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
   11.26 +		[ -z "$1" ] || continue
   11.27 +		if [ -f "/var/run/$file" ]; then
   11.28  			/etc/init.d/$daemon stop
   11.29  			sleep 2
   11.30 +		fi
   11.31 +		if [ -f /etc/init.d/$daemon ]; then
   11.32  			/etc/init.d/$daemon start
   11.33  		fi
   11.34  	done <<EOT
    12.1 --- a/php-mysqli/receipt	Sat Jun 01 06:36:55 2013 +0000
    12.2 +++ b/php-mysqli/receipt	Sat Jun 01 06:40:14 2013 +0000
    12.3 @@ -1,7 +1,7 @@
    12.4  # SliTaz package receipt.
    12.5  
    12.6  PACKAGE="php-mysqli"
    12.7 -VERSION="5.4.4"
    12.8 +VERSION="5.4.13"
    12.9  CATEGORY="development"
   12.10  SHORT_DESC="mysqli module for PHP web programming language."
   12.11  MAINTAINER="pascal.bellard@slitaz.org"
   12.12 @@ -57,9 +57,12 @@
   12.13  
   12.14  	# Start Web server.
   12.15  	while read daemon file; do
   12.16 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
   12.17 +		[ -z "$1" ] || continue
   12.18 +		if [ -f "/var/run/$file" ]; then
   12.19  			/etc/init.d/$daemon stop
   12.20  			sleep 2
   12.21 +		fi
   12.22 +		if [ -f /etc/init.d/$daemon ]; then
   12.23  			/etc/init.d/$daemon start
   12.24  		fi
   12.25  	done <<EOT
    13.1 --- a/php-odbc/receipt	Sat Jun 01 06:36:55 2013 +0000
    13.2 +++ b/php-odbc/receipt	Sat Jun 01 06:40:14 2013 +0000
    13.3 @@ -1,7 +1,7 @@
    13.4  # SliTaz package receipt.
    13.5  
    13.6  PACKAGE="php-odbc"
    13.7 -VERSION="5.4.4"
    13.8 +VERSION="5.4.13"
    13.9  CATEGORY="development"
   13.10  SHORT_DESC="ODBC module for PHP web programming language."
   13.11  MAINTAINER="pascal.bellard@slitaz.org"
   13.12 @@ -13,7 +13,7 @@
   13.13  genpkg_rules()
   13.14  {
   13.15  	mkdir -p $fs/usr/share/php
   13.16 -	cp $(find $_pkg | grep odbc.so) $fs/usr/share/php/
   13.17 +	cp $(find $install | grep odbc.so) $fs/usr/share/php/
   13.18  }
   13.19  
   13.20  # Post and pre install commans to stop
   13.21 @@ -57,9 +57,12 @@
   13.22  
   13.23  	# Start Web server.
   13.24  	while read daemon file; do
   13.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
   13.26 +		[ -z "$1" ] || continue
   13.27 +		if [ -f "/var/run/$file" ]; then
   13.28  			/etc/init.d/$daemon stop
   13.29  			sleep 2
   13.30 +		fi
   13.31 +		if [ -f /etc/init.d/$daemon ]; then
   13.32  			/etc/init.d/$daemon start
   13.33  		fi
   13.34  	done <<EOT
    14.1 --- a/php-openssl/receipt	Sat Jun 01 06:36:55 2013 +0000
    14.2 +++ b/php-openssl/receipt	Sat Jun 01 06:40:14 2013 +0000
    14.3 @@ -1,7 +1,7 @@
    14.4  # SliTaz package receipt.
    14.5  
    14.6  PACKAGE="php-openssl"
    14.7 -VERSION="5.4.4"
    14.8 +VERSION="5.4.13"
    14.9  CATEGORY="development"
   14.10  SHORT_DESC="Openssl module for PHP web programming language."
   14.11  MAINTAINER="pascal.bellard@slitaz.org"
   14.12 @@ -13,7 +13,7 @@
   14.13  genpkg_rules()
   14.14  {
   14.15  	mkdir -p $fs/usr/share/php
   14.16 -	cp $(find $_pkg | grep openssl.so) $fs/usr/share/php/
   14.17 +	cp $(find $install | grep openssl.so) $fs/usr/share/php/
   14.18  }
   14.19  
   14.20  # Post and pre install commans to stop
   14.21 @@ -57,9 +57,12 @@
   14.22  
   14.23  	# Start Web server.
   14.24  	while read daemon file; do
   14.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
   14.26 +		[ -z "$1" ] || continue
   14.27 +		if [ -f "/var/run/$file" ]; then
   14.28  			/etc/init.d/$daemon stop
   14.29  			sleep 2
   14.30 +		fi
   14.31 +		if [ -f /etc/init.d/$daemon ]; then
   14.32  			/etc/init.d/$daemon start
   14.33  		fi
   14.34  	done <<EOT
    15.1 --- a/php-pdo-mysql/receipt	Sat Jun 01 06:36:55 2013 +0000
    15.2 +++ b/php-pdo-mysql/receipt	Sat Jun 01 06:40:14 2013 +0000
    15.3 @@ -1,7 +1,7 @@
    15.4  # SliTaz package receipt.
    15.5  
    15.6  PACKAGE="php-pdo-mysql"
    15.7 -VERSION="5.4.4"
    15.8 +VERSION="5.4.13"
    15.9  CATEGORY="development"
   15.10  SHORT_DESC="PDO MySQL module for PHP web programming language."
   15.11  MAINTAINER="pascal.bellard@slitaz.org"
   15.12 @@ -13,7 +13,7 @@
   15.13  genpkg_rules()
   15.14  {
   15.15  	mkdir -p $fs/usr/share/php
   15.16 -	cp $(find $_pkg | grep pdo_mysql.so) $fs/usr/share/php/
   15.17 +	cp $(find $install | grep pdo_mysql.so) $fs/usr/share/php/
   15.18  }
   15.19  
   15.20  # Post and pre install commans to stop
   15.21 @@ -57,9 +57,12 @@
   15.22  
   15.23  	# Start Web server.
   15.24  	while read daemon file; do
   15.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
   15.26 +		[ -z "$1" ] || continue
   15.27 +		if [ -z "$1" -a -f "/var/run/$file" ]; then
   15.28  			/etc/init.d/$daemon stop
   15.29  			sleep 2
   15.30 +		fi
   15.31 +		if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
   15.32  			/etc/init.d/$daemon start
   15.33  		fi
   15.34  	done <<EOT
    16.1 --- a/php-pdo-pgsql/receipt	Sat Jun 01 06:36:55 2013 +0000
    16.2 +++ b/php-pdo-pgsql/receipt	Sat Jun 01 06:40:14 2013 +0000
    16.3 @@ -1,7 +1,7 @@
    16.4  # SliTaz package receipt.
    16.5  
    16.6  PACKAGE="php-pdo-pgsql"
    16.7 -VERSION="5.4.4"
    16.8 +VERSION="5.4.13"
    16.9  CATEGORY="development"
   16.10  SHORT_DESC="PDO PgSQL module for PHP web programming language."
   16.11  MAINTAINER="pascal.bellard@slitaz.org"
   16.12 @@ -13,7 +13,7 @@
   16.13  genpkg_rules()
   16.14  {
   16.15  	mkdir -p $fs/usr/share/php
   16.16 -	cp $(find $_pkg | grep pdo_pgsql.so) $fs/usr/share/php/
   16.17 +	cp $(find $install | grep pdo_pgsql.so) $fs/usr/share/php/
   16.18  }
   16.19  
   16.20  # Post and pre install commans to stop
   16.21 @@ -57,9 +57,12 @@
   16.22  
   16.23  	# Start Web server.
   16.24  	while read daemon file; do
   16.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
   16.26 +		[ -z "$1" ] || continue
   16.27 +		if [ -z "$1" -a -f "/var/run/$file" ]; then
   16.28  			/etc/init.d/$daemon stop
   16.29  			sleep 2
   16.30 +		fi
   16.31 +		if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
   16.32  			/etc/init.d/$daemon start
   16.33  		fi
   16.34  	done <<EOT
    17.1 --- a/php-pear/receipt	Sat Jun 01 06:36:55 2013 +0000
    17.2 +++ b/php-pear/receipt	Sat Jun 01 06:40:14 2013 +0000
    17.3 @@ -1,7 +1,7 @@
    17.4  # SliTaz package receipt.
    17.5  
    17.6  PACKAGE="php-pear"
    17.7 -VERSION="5.4.4"
    17.8 +VERSION="5.4.13"
    17.9  CATEGORY="development"
   17.10  SHORT_DESC="PHP web programming language pear libs."
   17.11  MAINTAINER="pascal.bellard@slitaz.org"
   17.12 @@ -13,9 +13,9 @@
   17.13  genpkg_rules()
   17.14  {
   17.15          mkdir -p $fs/usr/share $fs/usr/bin $fs/etc
   17.16 -        cp -a $_pkg/usr/share/php $fs/usr/share
   17.17 -        cp $_pkg/etc/pear.conf $fs/etc
   17.18 -        cp $_pkg/usr/bin/pe* $fs/usr/bin
   17.19 +        cp -a $install/usr/share/php $fs/usr/share
   17.20 +        cp -a $install/etc/pear.conf $fs/etc
   17.21 +        cp -a $install/usr/bin/pe* $fs/usr/bin
   17.22  }
   17.23  
   17.24  # Pre and post install commands for Tazpkg.
    18.1 --- a/php-pgsql/receipt	Sat Jun 01 06:36:55 2013 +0000
    18.2 +++ b/php-pgsql/receipt	Sat Jun 01 06:40:14 2013 +0000
    18.3 @@ -1,7 +1,7 @@
    18.4  # SliTaz package receipt.
    18.5  
    18.6  PACKAGE="php-pgsql"
    18.7 -VERSION="5.4.4"
    18.8 +VERSION="5.4.13"
    18.9  CATEGORY="development"
   18.10  SHORT_DESC="postgresql module for PHP web programming language."
   18.11  MAINTAINER="pascal.bellard@slitaz.org"
   18.12 @@ -13,7 +13,7 @@
   18.13  genpkg_rules()
   18.14  {
   18.15  	mkdir -p $fs/usr/share/php
   18.16 -	cp $(find $_pkg | grep pgsql.so) $fs/usr/share/php/
   18.17 +	cp $(find $install | grep pgsql.so) $fs/usr/share/php/
   18.18  }
   18.19  
   18.20  # Post and pre install commans to stop
   18.21 @@ -57,9 +57,12 @@
   18.22  
   18.23  	# Start Web server.
   18.24  	while read daemon file; do
   18.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
   18.26 +		[ -z "$1" ] || continue
   18.27 +		if [ -f "/var/run/$file" ]; then
   18.28  			/etc/init.d/$daemon stop
   18.29  			sleep 2
   18.30 +		fi
   18.31 +		if [ -f /etc/init.d/$daemon ]; then
   18.32  			/etc/init.d/$daemon start
   18.33  		fi
   18.34  	done <<EOT
    19.1 --- a/php-snmp/receipt	Sat Jun 01 06:36:55 2013 +0000
    19.2 +++ b/php-snmp/receipt	Sat Jun 01 06:40:14 2013 +0000
    19.3 @@ -1,7 +1,7 @@
    19.4  # SliTaz package receipt.
    19.5  
    19.6  PACKAGE="php-snmp"
    19.7 -VERSION="5.4.4"
    19.8 +VERSION="5.4.13"
    19.9  CATEGORY="development"
   19.10  SHORT_DESC="snmp module for PHP web programming language."
   19.11  MAINTAINER="pascal.bellard@slitaz.org"
   19.12 @@ -13,7 +13,7 @@
   19.13  genpkg_rules()
   19.14  {
   19.15  	mkdir -p $fs/usr/share/php
   19.16 -	cp $(find $_pkg | grep snmp.so) $fs/usr/share/php/
   19.17 +	cp $(find $install | grep snmp.so) $fs/usr/share/php/
   19.18  }
   19.19  
   19.20  # Post and pre install commans to stop
   19.21 @@ -57,9 +57,12 @@
   19.22  
   19.23  	# Start Web server.
   19.24  	while read daemon file; do
   19.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
   19.26 +		[ -z "$1" ] || continue
   19.27 +		if [ -f "/var/run/$file" ]; then
   19.28  			/etc/init.d/$daemon stop
   19.29  			sleep 2
   19.30 +		fi
   19.31 +		if [ -f /etc/init.d/$daemon ]; then
   19.32  			/etc/init.d/$daemon start
   19.33  		fi
   19.34  	done <<EOT
    20.1 --- a/php-soap/receipt	Sat Jun 01 06:36:55 2013 +0000
    20.2 +++ b/php-soap/receipt	Sat Jun 01 06:40:14 2013 +0000
    20.3 @@ -1,7 +1,7 @@
    20.4  # SliTaz package receipt.
    20.5  
    20.6  PACKAGE="php-soap"
    20.7 -VERSION="5.4.4"
    20.8 +VERSION="5.4.13"
    20.9  CATEGORY="development"
   20.10  SHORT_DESC="soap module for PHP web programming language."
   20.11  MAINTAINER="pascal.bellard@slitaz.org"
   20.12 @@ -13,7 +13,7 @@
   20.13  genpkg_rules()
   20.14  {
   20.15  	mkdir -p $fs/usr/share/php
   20.16 -	cp $(find $_pkg | grep soap.so) $fs/usr/share/php/
   20.17 +	cp $(find $install | grep soap.so) $fs/usr/share/php/
   20.18  }
   20.19  
   20.20  # Post and pre install commans to stop
   20.21 @@ -57,9 +57,12 @@
   20.22  
   20.23  	# Start Web server.
   20.24  	while read daemon file; do
   20.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
   20.26 +		[ -z "$1" ] || continue
   20.27 +		if [ -f "/var/run/$file" ]; then
   20.28  			/etc/init.d/$daemon stop
   20.29  			sleep 2
   20.30 +		fi
   20.31 +		if [ -f /etc/init.d/$daemon ]; then
   20.32  			/etc/init.d/$daemon start
   20.33  		fi
   20.34  	done <<EOT
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/php-sqlite/receipt	Sat Jun 01 06:40:14 2013 +0000
    21.3 @@ -0,0 +1,60 @@
    21.4 +# SliTaz package receipt.
    21.5 +
    21.6 +PACKAGE="php-sqlite"
    21.7 +VERSION="5.4.13"
    21.8 +CATEGORY="development"
    21.9 +SHORT_DESC="sqlite module for PHP web programming language."
   21.10 +MAINTAINER="slaxemulator@gmail.com"
   21.11 +DEPENDS="php sqlite"
   21.12 +WEB_SITE="http://www.php.net/"
   21.13 +WANTED="php"
   21.14 +
   21.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
   21.16 +genpkg_rules()
   21.17 +{
   21.18 +	mkdir -p $fs/usr/share/php
   21.19 +	cp $(find $install | grep sqlite.so) $fs/usr/share/php/
   21.20 +	cp $(find $install | grep sqlite3.so) $fs/usr/share/php/
   21.21 +	cp $(find $install | grep pdo_sqlite.so) $fs/usr/share/php/
   21.22 +}
   21.23 +
   21.24 +post_install()
   21.25 +{
   21.26 +	grep -q ^extension=sqlite3.so $1/etc/php.ini || \
   21.27 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=sqlite3.so|' -i $1/etc/php.ini
   21.28 +	# Start Web server.
   21.29 +	while read daemon file; do
   21.30 +		[ -z "$1" ] || continue
   21.31 +		if [ -f "/var/run/$file" ]; then
   21.32 +			/etc/init.d/$daemon stop
   21.33 +			sleep 2
   21.34 +		fi
   21.35 +		if [ -f /etc/init.d/$daemon ]; then
   21.36 +			/etc/init.d/$daemon start
   21.37 +		fi
   21.38 +	done <<EOT
   21.39 +apache apache/httpd.pid
   21.40 +lighttpd lighttpd.pid
   21.41 +EOT
   21.42 +}
   21.43 +
   21.44 +# Pre and post remove commands for Tazpkg.
   21.45 +pre_remove()
   21.46 +{
   21.47 +	sed -i '/.*=sqlite3.so.*/d' /etc/php.ini
   21.48 +
   21.49 +	# Start Web server.
   21.50 +	while read daemon file; do
   21.51 +		[ -z "$1" ] || continue
   21.52 +		if [ -f "/var/run/$file" ]; then
   21.53 +			/etc/init.d/$daemon stop
   21.54 +			sleep 2
   21.55 +		fi
   21.56 +		if [ -f /etc/init.d/$daemon ]; then
   21.57 +			/etc/init.d/$daemon start
   21.58 +		fi
   21.59 +	done <<EOT
   21.60 +apache apache/httpd.pid
   21.61 +lighttpd lighttpd.pid
   21.62 +EOT
   21.63 +}
   21.64 \ No newline at end of file
    22.1 --- a/php/receipt	Sat Jun 01 06:36:55 2013 +0000
    22.2 +++ b/php/receipt	Sat Jun 01 06:40:14 2013 +0000
    22.3 @@ -1,13 +1,13 @@
    22.4  # SliTaz package receipt.
    22.5  
    22.6  PACKAGE="php"
    22.7 -VERSION="5.4.4"
    22.8 +VERSION="5.4.13"
    22.9  CATEGORY="development"
   22.10  SHORT_DESC="PHP web programming language."
   22.11  MAINTAINER="pankso@slitaz.org"
   22.12  TARBALL="$PACKAGE-$VERSION.tar.bz2"
   22.13  WEB_SITE="http://www.php.net/"
   22.14 -WGET_URL="http://us2.php.net/distributions/$TARBALL"
   22.15 +WGET_URL="http://www.php.net/distributions/$TARBALL"
   22.16  PROVIDE="php:lighttpd"
   22.17  
   22.18  DEPENDS="php-common lighttpd zlib libxml2 sqlite libssl"
   22.19 @@ -15,8 +15,7 @@
   22.20  net-snmp-dev postgresql-dev gettext openssl-dev apache-dev apr-util-dev \
   22.21  c-client mhash-dev libpng-dev libunixODBC unixODBC-dev openldap-dev \
   22.22  libldap apr-dev libmcrypt-dev curl-dev cyrus-sasl-dev perl pkg-config \
   22.23 -jpeg-dev net-snmp-dev apache freetype-dev libtool bison \
   22.24 -re2c coreutils-conditions"
   22.25 +jpeg-dev net-snmp-dev libvpx-dev apache"
   22.26  
   22.27  # Rules to configure and make the package.
   22.28  compile_rules()
   22.29 @@ -27,17 +26,14 @@
   22.30  --sysconfdir=/etc \
   22.31  --infodir=/usr/share/info \
   22.32  --mandir=/usr/share/man \
   22.33 ---enable-fastcgi \
   22.34 ---enable-discard-path \
   22.35 ---enable-force-cgi-redirect \
   22.36  --enable-mbstring \
   22.37  --enable-sockets \
   22.38  --enable-ftp \
   22.39  --enable-zip \
   22.40  --enable-calendar \
   22.41  --enable-exif \
   22.42 +--config-cache \
   22.43  --enable-dba=shared \
   22.44 ---enable-dbase=shared \
   22.45  --with-config-file-path=/etc \
   22.46  --with-zlib \
   22.47  --with-gettext \
   22.48 @@ -45,31 +41,35 @@
   22.49  --with-mysql=shared,/usr \
   22.50  --with-mysqli=shared \
   22.51  --with-mysql-sock=/var/mysql/mysql.sock \
   22.52 +--with-pdo-sqlite=shared,/usr \
   22.53  --with-pgsql=shared,/usr \
   22.54  --with-snmp=shared,/usr \
   22.55  --enable-soap=shared,/usr \
   22.56  --with-ldap=shared \
   22.57  --with-imap=shared --with-imap-ssl \
   22.58 ---with-freetype-dir=/usr/include/freetype2 \
   22.59 ---with-mhash=shared \
   22.60 +--with-mhash \
   22.61  --with-gd=shared \
   22.62  --with-jpeg-dir=/usr \
   22.63  --with-png-dir=/usr \
   22.64 +--with-vpx-dir=/usr \
   22.65  --with-openssl=shared \
   22.66  --with-unixODBC=shared,/usr \
   22.67  --with-pear=/usr/share/php \
   22.68  --with-pdo-mysql=shared \
   22.69  --with-pdo-pgsql=shared \
   22.70  --with-curl=shared \
   22.71 +--enable-sqlite-utf8 \
   22.72 +--with-sqlite3=shared,/usr \
   22.73 +--with-sqlite=shared \
   22.74  "
   22.75  	sed -i 's/pam_start/pam_nostart/' configure
   22.76 -	./configure $COMMON_ARGS && \
   22.77 -	make $MAKEFLAGS && make INSTALL_ROOT=$DESTDIR install
   22.78 -	./configure $COMMON_ARGS --with-apxs2=/usr/bin/apxs && \
   22.79 +	./configure $COMMON_ARGS $CONFIGURE_ARGS && \
   22.80 +	make $MAKEFLAGS && make -j1 INSTALL_ROOT=$DESTDIR install
   22.81 +	./configure $COMMON_ARGS $CONFIGURE_ARGS --with-apxs2=/usr/bin/apxs && \
   22.82  	make $MAKEFLAGS && {
   22.83  		mkdir -p $DESTDIR/etc/apache
   22.84  		cp /etc/apache/httpd.conf $DESTDIR/etc/apache/httpd.conf
   22.85 -		make INSTALL_ROOT=$DESTDIR install
   22.86 +		make -j1 INSTALL_ROOT=$DESTDIR install
   22.87  	}
   22.88  	# Production config file.
   22.89  	mkdir -p $DESTDIR/etc
   22.90 @@ -85,10 +85,11 @@
   22.91  	cp -a $src/sapi/cgi/php-cgi $fs/usr/bin
   22.92  }
   22.93  
   22.94 -# Post and pre install commands to stop and restart Web server if needed.
   22.95 +# Post and pre install commands to stop
   22.96 +# and restart Web server if needed.
   22.97  pre_install()
   22.98  {
   22.99 -	if [ -f "$1/var/run/lighttpd.pid" ]; then
  22.100 +	if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]; then
  22.101  		/etc/init.d/lighttpd stop
  22.102  	fi
  22.103  }