wok-current annotate php-mysqli/receipt @ rev 20822
updated dex2jar (0.0.9.15 -> 2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 19 14:54:13 2019 +0100 (2019-02-19) |
parents | 55f67249b264 |
children | ccb0caebef6f |
rev | line source |
---|---|
pankso@11658 | 1 # SliTaz package receipt. |
pankso@11658 | 2 |
pankso@11658 | 3 PACKAGE="php-mysqli" |
erjo@16733 | 4 VERSION="5.5.13" |
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" |
pankso@11658 | 9 WEB_SITE="http://www.php.net/" |
pankso@11658 | 10 WANTED="php" |
pankso@11658 | 11 |
pascal@15198 | 12 DEPENDS="libmysqlclient 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 |
pankso@11658 | 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 { |
pankso@11658 | 25 while read daemon file; do |
pankso@11658 | 26 if [ -z "$1" -a -f "/var/run/$file" ]; then |
pankso@11658 | 27 /etc/init.d/$daemon stop |
pankso@11658 | 28 fi |
pankso@11658 | 29 done <<EOT |
pankso@11658 | 30 apache apache/httpd.pid |
pankso@11658 | 31 lighttpd lighttpd.pid |
pankso@11658 | 32 EOT |
pankso@11658 | 33 } |
pankso@11658 | 34 |
pankso@11658 | 35 post_install() |
pankso@11658 | 36 { |
pascal@18730 | 37 grep -q ^extension=mysqli.so "$1/etc/php.ini" || \ |
pascal@18730 | 38 sed -e 's|extension=msql.so|extension=msql.so\nextension=mysqli.so|' -i "$1/etc/php.ini" |
pankso@11658 | 39 # Start Web server. |
pankso@11658 | 40 while read daemon file; do |
pankso@11658 | 41 [ -z "$1" ] || continue |
pankso@11658 | 42 if [ -f "/var/run/$file" ]; then |
pankso@11658 | 43 /etc/init.d/$daemon stop |
pankso@11658 | 44 sleep 2 |
pankso@11658 | 45 fi |
pankso@11658 | 46 if [ -f /etc/init.d/$daemon ]; then |
pankso@11658 | 47 /etc/init.d/$daemon start |
pankso@11658 | 48 fi |
pankso@11658 | 49 done <<EOT |
pankso@11658 | 50 apache apache/httpd.pid |
pankso@11658 | 51 lighttpd lighttpd.pid |
pankso@11658 | 52 EOT |
pankso@11658 | 53 } |
pankso@11658 | 54 |
pankso@11658 | 55 # Pre and post remove commands for Tazpkg. |
pankso@11658 | 56 pre_remove() |
pankso@11658 | 57 { |
pankso@11658 | 58 sed -i '/.*=mysqli.so.*/d' /etc/php.ini |
pankso@11658 | 59 |
pankso@11658 | 60 # Start Web server. |
pankso@11658 | 61 while read daemon file; do |
slaxemulator@14614 | 62 [ -z "$1" ] || continue |
slaxemulator@14614 | 63 if [ -f "/var/run/$file" ]; then |
pankso@11658 | 64 /etc/init.d/$daemon stop |
pankso@11658 | 65 sleep 2 |
slaxemulator@14614 | 66 fi |
slaxemulator@14614 | 67 if [ -f /etc/init.d/$daemon ]; then |
pankso@11658 | 68 /etc/init.d/$daemon start |
pankso@11658 | 69 fi |
pankso@11658 | 70 done <<EOT |
pankso@11658 | 71 apache apache/httpd.pid |
pankso@11658 | 72 lighttpd lighttpd.pid |
pankso@11658 | 73 EOT |
pankso@11658 | 74 } |