wok diff php-pear/receipt @ rev 23829
syslinux/isohybrid: remove Apple partitions
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 31 10:17:28 2020 +0000 (2020-05-31) |
parents | b10d41313e54 |
children |
line diff
1.1 --- a/php-pear/receipt Fri Mar 20 15:21:15 2020 +0100 1.2 +++ b/php-pear/receipt Sun May 31 10:17:28 2020 +0000 1.3 @@ -1,33 +1,37 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="php-pear" 1.7 -VERSION="7.3.16" 1.8 +VERSION="7.4.4" 1.9 CATEGORY="development" 1.10 SHORT_DESC="PHP web programming language pear libs." 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="php-cli" 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 $fs/usr/bin $fs/etc 1.23 - cp -a $install/usr/share/php $fs/usr/share 1.24 - cp -a $install/etc/pear.conf $fs/etc 1.25 - cp -a $install/usr/bin/pe* $fs/usr/bin 1.26 + mkdir -p $fs/usr/share 1.27 + mkdir -p $fs/usr/bin $fs/etc 1.28 + 1.29 + cp -a $install/usr/share/php $fs/usr/share 1.30 + cp -a $install/etc/pear.conf $fs/etc 1.31 + cp -a $install/usr/bin/pe* $fs/usr/bin 1.32 } 1.33 1.34 # Pre and post install commands for Tazpkg. 1.35 pre_install() 1.36 { 1.37 - while read daemon file; do 1.38 - if [ -z "$1" -a -f "/var/run/$file" ]; then 1.39 + while read daemon file 1.40 + do 1.41 + if [ -z "$1" -a -f "/var/run/$file" ] 1.42 + then 1.43 /etc/init.d/$daemon stop 1.44 fi 1.45 - done <<EOT 1.46 + done <<EOT 1.47 apache apache/httpd.pid 1.48 lighttpd lighttpd.pid 1.49 EOT 1.50 @@ -36,18 +40,23 @@ 1.51 post_install() 1.52 { 1.53 grep ^include_path "$1/etc/php.ini" 1.54 - sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' "$1/etc/php.ini" 1.55 + sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' \ 1.56 + "$1/etc/php.ini" 1.57 + 1.58 # Restart Web server. 1.59 - while read daemon file; do 1.60 + while read daemon file 1.61 + do 1.62 [ -z "$1" ] || continue 1.63 - if [ -f "/var/run/$file" ]; then 1.64 + if [ -f "/var/run/$file" ] 1.65 + then 1.66 /etc/init.d/$daemon stop 1.67 sleep 2 1.68 fi 1.69 - if [ -f /etc/init.d/$daemon ]; then 1.70 + if [ -f /etc/init.d/$daemon ] 1.71 + then 1.72 /etc/init.d/$daemon start 1.73 fi 1.74 - done <<EOT 1.75 + done <<EOT 1.76 apache apache/httpd.pid 1.77 lighttpd lighttpd.pid 1.78 EOT