wok-6.x annotate php-soap/receipt @ rev 9192
Remove conspy: now provided by busybox
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 09 18:32:34 2011 +0100 (2011-03-09) |
parents | 48880e2d195b |
children | 855f42b596c0 |
rev | line source |
---|---|
pascal@7737 | 1 # SliTaz package receipt. |
pascal@7737 | 2 |
pascal@7737 | 3 PACKAGE="php-soap" |
slaxemulator@7925 | 4 VERSION="5.2.17" |
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@7737 | 8 DEPENDS="php libxml2" |
pascal@7737 | 9 WEB_SITE="http://www.php.net/" |
pascal@7737 | 10 WANTED="php" |
pascal@7737 | 11 |
pascal@7737 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7737 | 13 genpkg_rules() |
pascal@7737 | 14 { |
pascal@7737 | 15 mkdir -p $fs/usr/share/php |
pascal@7737 | 16 cp $(find $_pkg | grep soap.so) $fs/usr/share/php/ |
pascal@7737 | 17 } |
pascal@7737 | 18 |
pascal@7737 | 19 # Post and pre install commans to stop |
pascal@7737 | 20 # and restart Web server if needed. |
pascal@7737 | 21 pre_install() |
pascal@7737 | 22 { |
pascal@7737 | 23 while read daemon file; do |
pascal@7737 | 24 if [ -z "$1" -a -f "/var/run/$file" ]; then |
pascal@7737 | 25 /etc/init.d/$daemon stop |
pascal@7737 | 26 fi |
pascal@7737 | 27 done <<EOT |
pascal@7737 | 28 apache apache/httpd.pid |
pascal@7737 | 29 lighttpd lighttpd.pid |
pascal@7737 | 30 EOT |
pascal@7737 | 31 } |
pascal@7737 | 32 |
pascal@7737 | 33 post_install() |
pascal@7737 | 34 { |
pascal@7737 | 35 grep -q ^extension=soap.so $1/etc/php.ini || \ |
pascal@7737 | 36 sed -e 's|extension=msql.so|extension=msql.so\nextension=soap.so|' -i $1/etc/php.ini |
pascal@7737 | 37 # Start Web server. |
pascal@7737 | 38 while read daemon file; do |
pascal@7737 | 39 [ -z "$1" ] || continue |
pascal@7737 | 40 if [ -f "/var/run/$file" ]; then |
pascal@7737 | 41 /etc/init.d/$daemon stop |
pascal@7737 | 42 sleep 2 |
pascal@7737 | 43 fi |
pascal@7737 | 44 if [ -f /etc/init.d/$daemon ]; then |
pascal@7737 | 45 /etc/init.d/$daemon start |
pascal@7737 | 46 fi |
pascal@7737 | 47 done <<EOT |
pascal@7737 | 48 apache apache/httpd.pid |
pascal@7737 | 49 lighttpd lighttpd.pid |
pascal@7737 | 50 EOT |
pascal@7737 | 51 } |
pascal@7737 | 52 |
pascal@7737 | 53 # Pre and post remove commands for Tazpkg. |
pascal@7737 | 54 pre_remove() |
pascal@7737 | 55 { |
pascal@7737 | 56 sed -i '/.*=soap.so.*/d' /etc/php.ini |
pascal@7737 | 57 |
pascal@7737 | 58 # Start Web server. |
pascal@7737 | 59 while read daemon file; do |
pascal@7737 | 60 if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then |
pascal@7737 | 61 /etc/init.d/$daemon stop |
pascal@7737 | 62 sleep 2 |
pascal@7737 | 63 /etc/init.d/$daemon start |
pascal@7737 | 64 fi |
pascal@7737 | 65 done <<EOT |
pascal@7737 | 66 apache apache/httpd.pid |
pascal@7737 | 67 lighttpd lighttpd.pid |
pascal@7737 | 68 EOT |
pascal@7737 | 69 } |