wok-current annotate php-mysqli/receipt @ rev 24469

updated davfs2 (1.5.6 -> 1.6.1)
author Hans-G?nter Theisgen
date Thu Feb 17 14:10:04 2022 +0100 (2022-02-17)
parents b10d41313e54
children a23978bfa665
rev   line source
pankso@11658 1 # SliTaz package receipt.
pankso@11658 2
pankso@11658 3 PACKAGE="php-mysqli"
Hans-G?nter@23426 4 VERSION="7.4.4"
pankso@11658 5 CATEGORY="development"
pankso@11658 6 SHORT_DESC="mysqli module for PHP web programming language."
pankso@11658 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15198 8 LICENSE="BSD"
pascal@21278 9 WEB_SITE="https://www.php.net/"
pankso@11658 10
pascal@15198 11 DEPENDS="libmysqlclient php"
Hans-G?nter@23426 12 WANTED="php"
pascal@15198 13
pankso@11658 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@11658 15 genpkg_rules()
pankso@11658 16 {
pankso@11658 17 mkdir -p $fs/usr/share/php
Hans-G?nter@23426 18 cp $(find $install | grep mysqli.so) $fs/usr/share/php/
pankso@11658 19 }
pankso@11658 20
pankso@11658 21 # Post and pre install commans to stop
pankso@11658 22 # and restart Web server if needed.
pankso@11658 23 pre_install()
pankso@11658 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
pankso@11658 29 /etc/init.d/$daemon stop
pankso@11658 30 fi
Hans-G?nter@23426 31 done <<EOT
pankso@11658 32 apache apache/httpd.pid
pankso@11658 33 lighttpd lighttpd.pid
pankso@11658 34 EOT
pankso@11658 35 }
pankso@11658 36
pankso@11658 37 post_install()
pankso@11658 38 {
Hans-G?nter@23426 39 grep -q ^extension=mysqli.so "$1/etc/php.ini" ||
Hans-G?nter@23426 40 sed -e 's|extension=bz2.so|extension=bz2.so\nextension=mysqli.so|' \
Hans-G?nter@23426 41 -i "$1/etc/php.ini"
Hans-G?nter@23426 42
pankso@11658 43 # Start Web server.
Hans-G?nter@23426 44 while read daemon file
Hans-G?nter@23426 45 do
pankso@11658 46 [ -z "$1" ] || continue
Hans-G?nter@23426 47 if [ -f "/var/run/$file" ]
Hans-G?nter@23426 48 then
pankso@11658 49 /etc/init.d/$daemon stop
pankso@11658 50 sleep 2
pankso@11658 51 fi
Hans-G?nter@23426 52 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@23426 53 then
pankso@11658 54 /etc/init.d/$daemon start
pankso@11658 55 fi
Hans-G?nter@23426 56 done <<EOT
pankso@11658 57 apache apache/httpd.pid
pankso@11658 58 lighttpd lighttpd.pid
pankso@11658 59 EOT
pankso@11658 60 }
pankso@11658 61
pankso@11658 62 # Pre and post remove commands for Tazpkg.
pankso@11658 63 pre_remove()
pankso@11658 64 {
pankso@11658 65 sed -i '/.*=mysqli.so.*/d' /etc/php.ini
pankso@11658 66
pankso@11658 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
pankso@11658 73 /etc/init.d/$daemon stop
pankso@11658 74 sleep 2
slaxemulator@14614 75 fi
Hans-G?nter@23426 76 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@23426 77 then
pankso@11658 78 /etc/init.d/$daemon start
pankso@11658 79 fi
Hans-G?nter@23426 80 done <<EOT
pankso@11658 81 apache apache/httpd.pid
pankso@11658 82 lighttpd lighttpd.pid
pankso@11658 83 EOT
pankso@11658 84 }