wok diff php-mysql/receipt @ rev 23809
linld: add isoboot (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 24 16:43:25 2020 +0000 (2020-05-24) |
parents | b10d41313e54 |
children |
line diff
1.1 --- a/php-mysql/receipt Fri Mar 20 15:21:15 2020 +0100 1.2 +++ b/php-mysql/receipt Sun May 24 16:43:25 2020 +0000 1.3 @@ -1,32 +1,34 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="php-mysql" 1.7 -VERSION="7.3.16" 1.8 +VERSION="7.4.4" 1.9 CATEGORY="development" 1.10 SHORT_DESC="mysql module for PHP web programming language." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 LICENSE="BSD" 1.13 WEB_SITE="https://www.php.net/" 1.14 -WANTED="php" 1.15 1.16 DEPENDS="libmysqlclient php" 1.17 +WANTED="php" 1.18 1.19 # Rules to gen a SliTaz package suitable for Tazpkg. 1.20 genpkg_rules() 1.21 { 1.22 mkdir -p $fs/usr/share/php 1.23 - cp $(find $install | grep mysql.so) $fs/usr/share/php/ 1.24 + cp $(find $install | grep mysql.so) $fs/usr/share/php/ 1.25 } 1.26 1.27 # Post and pre install commans to stop 1.28 # and restart Web server if needed. 1.29 pre_install() 1.30 { 1.31 - while read daemon file; do 1.32 - if [ -z "$1" -a -f "/var/run/$file" ]; then 1.33 + while read daemon file 1.34 + do 1.35 + if [ -z "$1" -a -f "/var/run/$file" ] 1.36 + then 1.37 /etc/init.d/$daemon stop 1.38 fi 1.39 - done <<EOT 1.40 + done <<EOT 1.41 apache apache/httpd.pid 1.42 lighttpd lighttpd.pid 1.43 EOT 1.44 @@ -34,19 +36,24 @@ 1.45 1.46 post_install() 1.47 { 1.48 - grep -q ^extension=mysql.so "$1/etc/php.ini" || \ 1.49 - sed -e 's|extension=bz2.so|extension=bz2.so\nextension=mysql.so|' -i "$1/etc/php.ini" 1.50 + grep -q ^extension=mysql.so "$1/etc/php.ini" || 1.51 + sed -e 's|extension=bz2.so|extension=bz2.so\nextension=mysql.so|' \ 1.52 + -i "$1/etc/php.ini" 1.53 + 1.54 # Start Web server. 1.55 - while read daemon file; do 1.56 + while read daemon file 1.57 + do 1.58 [ -z "$1" ] || continue 1.59 - if [ -f "/var/run/$file" ]; then 1.60 + if [ -f "/var/run/$file" ] 1.61 + then 1.62 /etc/init.d/$daemon stop 1.63 sleep 2 1.64 fi 1.65 - if [ -f /etc/init.d/$daemon ]; then 1.66 + if [ -f /etc/init.d/$daemon ] 1.67 + then 1.68 /etc/init.d/$daemon start 1.69 fi 1.70 - done <<EOT 1.71 + done <<EOT 1.72 apache apache/httpd.pid 1.73 lighttpd lighttpd.pid 1.74 EOT 1.75 @@ -58,16 +65,19 @@ 1.76 sed -i '/.*=mysql.so.*/d' /etc/php.ini 1.77 1.78 # Start Web server. 1.79 - while read daemon file; do 1.80 + while read daemon file 1.81 + do 1.82 [ -z "$1" ] || continue 1.83 - if [ -f "/var/run/$file" ]; then 1.84 + if [ -f "/var/run/$file" ] 1.85 + then 1.86 /etc/init.d/$daemon stop 1.87 sleep 2 1.88 fi 1.89 - if [ -f /etc/init.d/$daemon ]; then 1.90 + if [ -f /etc/init.d/$daemon ] 1.91 + then 1.92 /etc/init.d/$daemon start 1.93 fi 1.94 - done <<EOT 1.95 + done <<EOT 1.96 apache apache/httpd.pid 1.97 lighttpd lighttpd.pid 1.98 EOT