wok-current diff php-dba/receipt @ rev 23818
awesome: added dependency xcb-util-xrm
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 27 16:14:32 2020 +0100 (2020-05-27) |
parents | b10d41313e54 |
children | a23978bfa665 |
line diff
1.1 --- a/php-dba/receipt Fri Mar 20 15:21:15 2020 +0100 1.2 +++ b/php-dba/receipt Wed May 27 16:14:32 2020 +0100 1.3 @@ -1,30 +1,33 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="php-dba" 1.7 -VERSION="7.3.16" 1.8 +VERSION="7.4.4" 1.9 CATEGORY="development" 1.10 SHORT_DESC="dba 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 + 1.15 WANTED="php" 1.16 1.17 # Rules to gen a SliTaz package suitable for Tazpkg. 1.18 genpkg_rules() 1.19 { 1.20 mkdir -p $fs/usr/share/php 1.21 - cp $(find $install | grep dba.so) $fs/usr/share/php/ 1.22 + cp $(find $install | grep dba.so) $fs/usr/share/php/ 1.23 } 1.24 1.25 # Post and pre install commans to stop 1.26 # and restart Web server if needed. 1.27 pre_install() 1.28 { 1.29 - while read daemon file; do 1.30 - if [ -z "$1" -a -f "/var/run/$file" ]; then 1.31 + while read daemon file 1.32 + do 1.33 + if [ -z "$1" -a -f "/var/run/$file" ] 1.34 + then 1.35 /etc/init.d/$daemon stop 1.36 fi 1.37 - done <<EOT 1.38 + done <<EOT 1.39 apache apache/httpd.pid 1.40 lighttpd lighttpd.pid 1.41 EOT 1.42 @@ -32,19 +35,23 @@ 1.43 1.44 post_install() 1.45 { 1.46 - grep -q ^extension=dba.so "$1/etc/php.ini" || \ 1.47 - sed -e 's|extension=bz2.so|extension=bz2.so\nextension=dba.so|' -i "$1/etc/php.ini" 1.48 + grep -q ^extension=dba.so "$1/etc/php.ini" || 1.49 + sed -e 's|extension=bz2.so|extension=bz2.so\nextension=dba.so|' \ 1.50 + -i "$1/etc/php.ini" 1.51 # Start Web server. 1.52 - while read daemon file; do 1.53 + while read daemon file 1.54 + do 1.55 [ -z "$1" ] || continue 1.56 - if [ -f "/var/run/$file" ]; then 1.57 + if [ -f "/var/run/$file" ] 1.58 + then 1.59 /etc/init.d/$daemon stop 1.60 sleep 2 1.61 fi 1.62 - if [ -f /etc/init.d/$daemon ]; then 1.63 + if [ -f /etc/init.d/$daemon ] 1.64 + then 1.65 /etc/init.d/$daemon start 1.66 fi 1.67 - done <<EOT 1.68 + done <<EOT 1.69 apache apache/httpd.pid 1.70 lighttpd lighttpd.pid 1.71 EOT 1.72 @@ -56,16 +63,19 @@ 1.73 sed -i '/.*=dba.so.*/d' /etc/php.ini 1.74 1.75 # Start Web server. 1.76 - while read daemon file; do 1.77 + while read daemon file 1.78 + do 1.79 [ -z "$1" ] || continue 1.80 - if [ -f "/var/run/$file" ]; then 1.81 + if [ -f "/var/run/$file" ] 1.82 + then 1.83 /etc/init.d/$daemon stop 1.84 sleep 2 1.85 fi 1.86 - if [ -f /etc/init.d/$daemon ]; then 1.87 + if [ -f /etc/init.d/$daemon ] 1.88 + then 1.89 /etc/init.d/$daemon start 1.90 fi 1.91 - done <<EOT 1.92 + done <<EOT 1.93 apache apache/httpd.pid 1.94 lighttpd lighttpd.pid 1.95 EOT