wok annotate php-soap/receipt @ rev 14814

Up: squidquardmgr (1.12)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Jul 17 13:39:14 2013 +0200 (2013-07-17)
parents 855f42b596c0
children 78cb1e930abd
rev   line source
pascal@7737 1 # SliTaz package receipt.
pascal@7737 2
pascal@7737 3 PACKAGE="php-soap"
slaxemulator@14614 4 VERSION="5.4.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@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
slaxemulator@14614 16 cp $(find $install | 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
slaxemulator@14614 60 [ -z "$1" ] || continue
slaxemulator@14614 61 if [ -f "/var/run/$file" ]; then
pascal@7737 62 /etc/init.d/$daemon stop
pascal@7737 63 sleep 2
slaxemulator@14614 64 fi
slaxemulator@14614 65 if [ -f /etc/init.d/$daemon ]; then
pascal@7737 66 /etc/init.d/$daemon start
pascal@7737 67 fi
pascal@7737 68 done <<EOT
pascal@7737 69 apache apache/httpd.pid
pascal@7737 70 lighttpd lighttpd.pid
pascal@7737 71 EOT
pascal@7737 72 }