wok rev 22389

Add php-opcache
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 28 21:44:13 2019 +0100 (13 days ago)
parents 84a3b4b621e1
children 986409b5de0e
files php-auth-pam/receipt php-curl/receipt php-dba/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-pgsql/receipt php-snmp/receipt php-soap/receipt php-sqlite/receipt
line diff
     1.1 --- a/php-auth-pam/receipt	Thu Nov 28 19:07:26 2019 +0100
     1.2 +++ b/php-auth-pam/receipt	Thu Nov 28 21:44:13 2019 +0100
     1.3 @@ -39,7 +39,7 @@
     1.4  post_install()
     1.5  {
     1.6  	grep -q ^extension=pam_auth.so "$1/etc/php.ini" || \
     1.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pam_auth.so|' -i "$1/etc/php.ini"
     1.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pam_auth.so|' -i "$1/etc/php.ini"
     1.9  	# Start Web server.
    1.10  	while read daemon file; do
    1.11  		[ -z "$1" ] || continue
     2.1 --- a/php-curl/receipt	Thu Nov 28 19:07:26 2019 +0100
     2.2 +++ b/php-curl/receipt	Thu Nov 28 21:44:13 2019 +0100
     2.3 @@ -35,7 +35,7 @@
     2.4  post_install()
     2.5  {
     2.6  	grep -q ^extension=curl.so "$1/etc/php.ini" || \
     2.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=curl.so|' -i "$1/etc/php.ini"
     2.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=curl.so|' -i "$1/etc/php.ini"
     2.9  	# Start Web server.
    2.10  	while read daemon file; do
    2.11  		[ -z "$1" ] || continue
     3.1 --- a/php-dba/receipt	Thu Nov 28 19:07:26 2019 +0100
     3.2 +++ b/php-dba/receipt	Thu Nov 28 21:44:13 2019 +0100
     3.3 @@ -33,7 +33,7 @@
     3.4  post_install()
     3.5  {
     3.6  	grep -q ^extension=dba.so "$1/etc/php.ini" || \
     3.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=dba.so|' -i "$1/etc/php.ini"
     3.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=dba.so|' -i "$1/etc/php.ini"
     3.9  	# Start Web server.
    3.10  	while read daemon file; do
    3.11  		[ -z "$1" ] || continue
     4.1 --- a/php-gd/receipt	Thu Nov 28 19:07:26 2019 +0100
     4.2 +++ b/php-gd/receipt	Thu Nov 28 21:44:13 2019 +0100
     4.3 @@ -35,7 +35,7 @@
     4.4  post_install()
     4.5  {
     4.6  	grep -q ^extension=gd.so "$1/etc/php.ini" || \
     4.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=gd.so|' -i "$1/etc/php.ini"
     4.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=gd.so|' -i "$1/etc/php.ini"
     4.9  	# Start Web server.
    4.10  	while read daemon file; do
    4.11  		[ -z "$1" ] || continue
     5.1 --- a/php-imap/receipt	Thu Nov 28 19:07:26 2019 +0100
     5.2 +++ b/php-imap/receipt	Thu Nov 28 21:44:13 2019 +0100
     5.3 @@ -35,7 +35,7 @@
     5.4  post_install()
     5.5  {
     5.6  	grep -q ^extension=imap.so "$1/etc/php.ini" || \
     5.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=imap.so|' -i "$1/etc/php.ini"
     5.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=imap.so|' -i "$1/etc/php.ini"
     5.9  	# Start Web server.
    5.10  	while read daemon file; do
    5.11  		[ -z "$1" ] || continue
     6.1 --- a/php-ldap/receipt	Thu Nov 28 19:07:26 2019 +0100
     6.2 +++ b/php-ldap/receipt	Thu Nov 28 21:44:13 2019 +0100
     6.3 @@ -35,7 +35,7 @@
     6.4  post_install()
     6.5  {
     6.6  	grep -q ^extension=ldap.so "$1/etc/php.ini" || \
     6.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=ldap.so|' -i "$1/etc/php.ini"
     6.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=ldap.so|' -i "$1/etc/php.ini"
     6.9  	# Start Web server.
    6.10  	while read daemon file; do
    6.11  		[ -z "$1" ] || continue
     7.1 --- a/php-mysql/receipt	Thu Nov 28 19:07:26 2019 +0100
     7.2 +++ b/php-mysql/receipt	Thu Nov 28 21:44:13 2019 +0100
     7.3 @@ -35,7 +35,7 @@
     7.4  post_install()
     7.5  {
     7.6  	grep -q ^extension=mysql.so "$1/etc/php.ini" || \
     7.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=mysql.so|' -i "$1/etc/php.ini"
     7.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=mysql.so|' -i "$1/etc/php.ini"
     7.9  	# Start Web server.
    7.10  	while read daemon file; do
    7.11  		[ -z "$1" ] || continue
     8.1 --- a/php-mysqli/receipt	Thu Nov 28 19:07:26 2019 +0100
     8.2 +++ b/php-mysqli/receipt	Thu Nov 28 21:44:13 2019 +0100
     8.3 @@ -35,7 +35,7 @@
     8.4  post_install()
     8.5  {
     8.6  	grep -q ^extension=mysqli.so "$1/etc/php.ini" || \
     8.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=mysqli.so|' -i "$1/etc/php.ini"
     8.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=mysqli.so|' -i "$1/etc/php.ini"
     8.9  	# Start Web server.
    8.10  	while read daemon file; do
    8.11  		[ -z "$1" ] || continue
     9.1 --- a/php-odbc/receipt	Thu Nov 28 19:07:26 2019 +0100
     9.2 +++ b/php-odbc/receipt	Thu Nov 28 21:44:13 2019 +0100
     9.3 @@ -35,7 +35,7 @@
     9.4  post_install()
     9.5  {
     9.6  	grep -q ^extension=odbc.so "$1/etc/php.ini" || \
     9.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=odbc.so|' -i "$1/etc/php.ini"
     9.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=odbc.so|' -i "$1/etc/php.ini"
     9.9  	# Start Web server.
    9.10  	while read daemon file; do
    9.11  		[ -z "$1" ] || continue
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/php-opcache/receipt	Thu Nov 28 21:44:13 2019 +0100
    10.3 @@ -0,0 +1,74 @@
    10.4 +# SliTaz package receipt.
    10.5 +
    10.6 +PACKAGE="php-opcache"
    10.7 +VERSION="7.3.12"
    10.8 +CATEGORY="development"
    10.9 +SHORT_DESC="opcode caching module for PHP web programming language."
   10.10 +MAINTAINER="pascal.bellard@slitaz.org"
   10.11 +LICENSE="BSD"
   10.12 +WEB_SITE="https://www.php.net/"
   10.13 +WANTED="php"
   10.14 +
   10.15 +DEPENDS="libmysqlclient php"
   10.16 +
   10.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
   10.18 +genpkg_rules()
   10.19 +{
   10.20 +	mkdir -p $fs/usr/share/php
   10.21 +	cp $(find $install | grep opcache.so) $fs/usr/share/php/
   10.22 +}
   10.23 +
   10.24 +# Post and pre install commans to stop
   10.25 +# and restart Web server if needed.
   10.26 +pre_install()
   10.27 +{
   10.28 +	while read daemon file; do
   10.29 +		if [ -z "$1" -a -f "/var/run/$file" ]; then
   10.30 +			/etc/init.d/$daemon stop
   10.31 +		fi
   10.32 +	done <<EOT
   10.33 +apache apache/httpd.pid
   10.34 +lighttpd lighttpd.pid
   10.35 +EOT
   10.36 +}
   10.37 +
   10.38 +post_install()
   10.39 +{
   10.40 +	grep -q ^extension=opcache.so "$1/etc/php.ini" || \
   10.41 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=opcache.so|' -i "$1/etc/php.ini"
   10.42 +	# Start Web server.
   10.43 +	while read daemon file; do
   10.44 +		[ -z "$1" ] || continue
   10.45 +		if [ -f "/var/run/$file" ]; then
   10.46 +			/etc/init.d/$daemon stop
   10.47 +			sleep 2
   10.48 +		fi
   10.49 +		if [ -f /etc/init.d/$daemon ]; then
   10.50 +			/etc/init.d/$daemon start
   10.51 +		fi
   10.52 +	done <<EOT
   10.53 +apache apache/httpd.pid
   10.54 +lighttpd lighttpd.pid
   10.55 +EOT
   10.56 +}
   10.57 +
   10.58 +# Pre and post remove commands for Tazpkg.
   10.59 +pre_remove()
   10.60 +{
   10.61 +	sed -i '/.*=opcache.so.*/d' /etc/php.ini
   10.62 +
   10.63 +	# Start Web server.
   10.64 +	while read daemon file; do
   10.65 +		[ -z "$1" ] || continue
   10.66 +		if [ -f "/var/run/$file" ]; then
   10.67 +			/etc/init.d/$daemon stop
   10.68 +			sleep 2
   10.69 +		fi
   10.70 +		if [ -f /etc/init.d/$daemon ]; then
   10.71 +			/etc/init.d/$daemon start
   10.72 +		fi
   10.73 +	done <<EOT
   10.74 +apache apache/httpd.pid
   10.75 +lighttpd lighttpd.pid
   10.76 +EOT
   10.77 +}
    11.1 --- a/php-openssl/receipt	Thu Nov 28 19:07:26 2019 +0100
    11.2 +++ b/php-openssl/receipt	Thu Nov 28 21:44:13 2019 +0100
    11.3 @@ -35,7 +35,7 @@
    11.4  post_install()
    11.5  {
    11.6  	grep -q ^extension=openssl.so "$1/etc/php.ini" || \
    11.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=openssl.so|' -i "$1/etc/php.ini"
    11.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=openssl.so|' -i "$1/etc/php.ini"
    11.9  	# Start Web server.
   11.10  	while read daemon file; do
   11.11  		[ -z "$1" ] || continue
    12.1 --- a/php-pdo-mysql/receipt	Thu Nov 28 19:07:26 2019 +0100
    12.2 +++ b/php-pdo-mysql/receipt	Thu Nov 28 21:44:13 2019 +0100
    12.3 @@ -35,7 +35,7 @@
    12.4  post_install()
    12.5  {
    12.6  	grep -q ^extension=pdo_mysql.so "$1/etc/php.ini" || \
    12.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_mysql.so|' -i "$1/etc/php.ini"
    12.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pdo_mysql.so|' -i "$1/etc/php.ini"
    12.9  	# Start Web server.
   12.10  	while read daemon file; do
   12.11  		[ -z "$1" ] || continue
    13.1 --- a/php-pdo-pgsql/receipt	Thu Nov 28 19:07:26 2019 +0100
    13.2 +++ b/php-pdo-pgsql/receipt	Thu Nov 28 21:44:13 2019 +0100
    13.3 @@ -35,7 +35,7 @@
    13.4  post_install()
    13.5  {
    13.6  	grep -q ^extension=pdo_pgsql.so "$1/etc/php.ini" || \
    13.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_pgsql.so|' -i "$1/etc/php.ini"
    13.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pdo_pgsql.so|' -i "$1/etc/php.ini"
    13.9  	# Start Web server.
   13.10  	while read daemon file; do
   13.11  		[ -z "$1" ] || continue
    14.1 --- a/php-pgsql/receipt	Thu Nov 28 19:07:26 2019 +0100
    14.2 +++ b/php-pgsql/receipt	Thu Nov 28 21:44:13 2019 +0100
    14.3 @@ -35,7 +35,7 @@
    14.4  post_install()
    14.5  {
    14.6  	grep -q ^extension=pgsql.so "$1/etc/php.ini" || \
    14.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pgsql.so|' -i "$1/etc/php.ini"
    14.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pgsql.so|' -i "$1/etc/php.ini"
    14.9  	# Start Web server.
   14.10  	while read daemon file; do
   14.11  		[ -z "$1" ] || continue
    15.1 --- a/php-snmp/receipt	Thu Nov 28 19:07:26 2019 +0100
    15.2 +++ b/php-snmp/receipt	Thu Nov 28 21:44:13 2019 +0100
    15.3 @@ -35,7 +35,7 @@
    15.4  post_install()
    15.5  {
    15.6  	grep -q ^extension=snmp.so "$1/etc/php.ini" || \
    15.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=snmp.so|' -i "$1/etc/php.ini"
    15.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=snmp.so|' -i "$1/etc/php.ini"
    15.9  	# Start Web server.
   15.10  	while read daemon file; do
   15.11  		[ -z "$1" ] || continue
    16.1 --- a/php-soap/receipt	Thu Nov 28 19:07:26 2019 +0100
    16.2 +++ b/php-soap/receipt	Thu Nov 28 21:44:13 2019 +0100
    16.3 @@ -35,7 +35,7 @@
    16.4  post_install()
    16.5  {
    16.6  	grep -q ^extension=soap.so "$1/etc/php.ini" || \
    16.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=soap.so|' -i "$1/etc/php.ini"
    16.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=soap.so|' -i "$1/etc/php.ini"
    16.9  	# Start Web server.
   16.10  	while read daemon file; do
   16.11  		[ -z "$1" ] || continue
    17.1 --- a/php-sqlite/receipt	Thu Nov 28 19:07:26 2019 +0100
    17.2 +++ b/php-sqlite/receipt	Thu Nov 28 21:44:13 2019 +0100
    17.3 @@ -23,7 +23,7 @@
    17.4  post_install()
    17.5  {
    17.6  	grep -q ^extension=sqlite3.so "$1/etc/php.ini" || \
    17.7 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=sqlite3.so|' -i "$1/etc/php.ini"
    17.8 +	    sed -e 's|extension=bz2.so|extension=bz2.so\nextension=sqlite3.so|' -i "$1/etc/php.ini"
    17.9  	# Start Web server.
   17.10  	while read daemon file; do
   17.11  		[ -z "$1" ] || continue