wok-current annotate php-soap/receipt @ rev 19510
syslinux/taziso: hide some error messages
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 21 13:31:22 2016 +0100 (2016-11-21) |
parents | 55f67249b264 |
children | ccb0caebef6f |
rev | line source |
---|---|
pascal@7737 | 1 # SliTaz package receipt. |
pascal@7737 | 2 |
pascal@7737 | 3 PACKAGE="php-soap" |
erjo@16733 | 4 VERSION="5.5.13" |
pascal@7737 | 5 CATEGORY="development" |
pascal@7737 | 6 SHORT_DESC="soap module for PHP web programming language." |
pascal@7737 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15198 | 8 LICENSE="BSD" |
pascal@7737 | 9 WEB_SITE="http://www.php.net/" |
pascal@7737 | 10 WANTED="php" |
pascal@7737 | 11 |
pascal@15198 | 12 DEPENDS="php libxml2" |
pascal@15198 | 13 |
pascal@7737 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7737 | 15 genpkg_rules() |
pascal@7737 | 16 { |
pascal@7737 | 17 mkdir -p $fs/usr/share/php |
slaxemulator@14614 | 18 cp $(find $install | grep soap.so) $fs/usr/share/php/ |
pascal@7737 | 19 } |
pascal@7737 | 20 |
pascal@7737 | 21 # Post and pre install commans to stop |
pascal@7737 | 22 # and restart Web server if needed. |
pascal@7737 | 23 pre_install() |
pascal@7737 | 24 { |
pascal@7737 | 25 while read daemon file; do |
pascal@7737 | 26 if [ -z "$1" -a -f "/var/run/$file" ]; then |
pascal@7737 | 27 /etc/init.d/$daemon stop |
pascal@7737 | 28 fi |
pascal@7737 | 29 done <<EOT |
pascal@7737 | 30 apache apache/httpd.pid |
pascal@7737 | 31 lighttpd lighttpd.pid |
pascal@7737 | 32 EOT |
pascal@7737 | 33 } |
pascal@7737 | 34 |
pascal@7737 | 35 post_install() |
pascal@7737 | 36 { |
pascal@18730 | 37 grep -q ^extension=soap.so "$1/etc/php.ini" || \ |
pascal@18730 | 38 sed -e 's|extension=msql.so|extension=msql.so\nextension=soap.so|' -i "$1/etc/php.ini" |
pascal@7737 | 39 # Start Web server. |
pascal@7737 | 40 while read daemon file; do |
pascal@7737 | 41 [ -z "$1" ] || continue |
pascal@7737 | 42 if [ -f "/var/run/$file" ]; then |
pascal@7737 | 43 /etc/init.d/$daemon stop |
pascal@7737 | 44 sleep 2 |
pascal@7737 | 45 fi |
pascal@7737 | 46 if [ -f /etc/init.d/$daemon ]; then |
pascal@7737 | 47 /etc/init.d/$daemon start |
pascal@7737 | 48 fi |
pascal@7737 | 49 done <<EOT |
pascal@7737 | 50 apache apache/httpd.pid |
pascal@7737 | 51 lighttpd lighttpd.pid |
pascal@7737 | 52 EOT |
pascal@7737 | 53 } |
pascal@7737 | 54 |
pascal@7737 | 55 # Pre and post remove commands for Tazpkg. |
pascal@7737 | 56 pre_remove() |
pascal@7737 | 57 { |
pascal@7737 | 58 sed -i '/.*=soap.so.*/d' /etc/php.ini |
pascal@7737 | 59 |
pascal@7737 | 60 # Start Web server. |
pascal@7737 | 61 while read daemon file; do |
slaxemulator@14614 | 62 [ -z "$1" ] || continue |
slaxemulator@14614 | 63 if [ -f "/var/run/$file" ]; then |
pascal@7737 | 64 /etc/init.d/$daemon stop |
pascal@7737 | 65 sleep 2 |
slaxemulator@14614 | 66 fi |
slaxemulator@14614 | 67 if [ -f /etc/init.d/$daemon ]; then |
pascal@7737 | 68 /etc/init.d/$daemon start |
pascal@7737 | 69 fi |
pascal@7737 | 70 done <<EOT |
pascal@7737 | 71 apache apache/httpd.pid |
pascal@7737 | 72 lighttpd lighttpd.pid |
pascal@7737 | 73 EOT |
pascal@7737 | 74 } |