wok annotate php-soap/receipt @ rev 25805

created recipe for xfce4-weather-plugin
author Hans-G?nter Theisgen
date Wed Nov 13 15:24:31 2024 +0100 (7 days ago)
parents b10d41313e54
children
rev   line source
pascal@7737 1 # SliTaz package receipt.
pascal@7737 2
pascal@7737 3 PACKAGE="php-soap"
Hans-G?nter@23426 4 VERSION="7.4.4"
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@21278 9 WEB_SITE="https://www.php.net/"
pascal@7737 10
pascal@15198 11 DEPENDS="php libxml2"
Hans-G?nter@23426 12 WANTED="php"
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
Hans-G?nter@23426 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 {
Hans-G?nter@23426 25 while read daemon file
Hans-G?nter@23426 26 do
Hans-G?nter@23426 27 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@23426 28 then
pascal@7737 29 /etc/init.d/$daemon stop
pascal@7737 30 fi
Hans-G?nter@23426 31 done <<EOT
pascal@7737 32 apache apache/httpd.pid
pascal@7737 33 lighttpd lighttpd.pid
pascal@7737 34 EOT
pascal@7737 35 }
pascal@7737 36
pascal@7737 37 post_install()
pascal@7737 38 {
Hans-G?nter@23426 39 grep -q ^extension=soap.so "$1/etc/php.ini" ||
Hans-G?nter@23426 40 sed -e 's|extension=bz2.so|extension=bz2.so\nextension=soap.so|' \
Hans-G?nter@23426 41 -i "$1/etc/php.ini"
Hans-G?nter@23426 42
pascal@7737 43 # Start Web server.
Hans-G?nter@23426 44 while read daemon file
Hans-G?nter@23426 45 do
pascal@7737 46 [ -z "$1" ] || continue
Hans-G?nter@23426 47 if [ -f "/var/run/$file" ]
Hans-G?nter@23426 48 then
pascal@7737 49 /etc/init.d/$daemon stop
pascal@7737 50 sleep 2
pascal@7737 51 fi
Hans-G?nter@23426 52 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@23426 53 then
pascal@7737 54 /etc/init.d/$daemon start
pascal@7737 55 fi
Hans-G?nter@23426 56 done <<EOT
pascal@7737 57 apache apache/httpd.pid
pascal@7737 58 lighttpd lighttpd.pid
pascal@7737 59 EOT
pascal@7737 60 }
pascal@7737 61
pascal@7737 62 # Pre and post remove commands for Tazpkg.
pascal@7737 63 pre_remove()
pascal@7737 64 {
pascal@7737 65 sed -i '/.*=soap.so.*/d' /etc/php.ini
pascal@7737 66
pascal@7737 67 # Start Web server.
Hans-G?nter@23426 68 while read daemon file
Hans-G?nter@23426 69 do
slaxemulator@14614 70 [ -z "$1" ] || continue
Hans-G?nter@23426 71 if [ -f "/var/run/$file" ]
Hans-G?nter@23426 72 then
pascal@7737 73 /etc/init.d/$daemon stop
pascal@7737 74 sleep 2
slaxemulator@14614 75 fi
Hans-G?nter@23426 76 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@23426 77 then
pascal@7737 78 /etc/init.d/$daemon start
pascal@7737 79 fi
Hans-G?nter@23426 80 done <<EOT
pascal@7737 81 apache apache/httpd.pid
pascal@7737 82 lighttpd lighttpd.pid
pascal@7737 83 EOT
pascal@7737 84 }