wok annotate php-sqlite/receipt @ rev 25044

*/stuff/bootloader.S: fix VCPI case
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 02 15:48:36 2022 +0000 (2022-06-02)
parents b10d41313e54
children
rev   line source
slaxemulator@14614 1 # SliTaz package receipt.
slaxemulator@14614 2
slaxemulator@14614 3 PACKAGE="php-sqlite"
Hans-G?nter@23426 4 VERSION="7.4.4"
slaxemulator@14614 5 CATEGORY="development"
slaxemulator@14614 6 SHORT_DESC="sqlite module for PHP web programming language."
slaxemulator@14614 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15198 8 LICENSE="BSD"
pascal@21278 9 WEB_SITE="https://www.php.net/"
slaxemulator@14614 10
pascal@15198 11 DEPENDS="php sqlite"
Hans-G?nter@23426 12 WANTED="php"
pascal@15198 13
slaxemulator@14614 14 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@14614 15 genpkg_rules()
slaxemulator@14614 16 {
slaxemulator@14614 17 mkdir -p $fs/usr/share/php
Hans-G?nter@23426 18
Hans-G?nter@23426 19 cp $(find $install | grep sqlite.so) $fs/usr/share/php/
Hans-G?nter@23426 20 cp $(find $install | grep sqlite3.so) $fs/usr/share/php/
Hans-G?nter@23426 21 cp $(find $install | grep pdo_sqlite.so) $fs/usr/share/php/
slaxemulator@14614 22 }
slaxemulator@14614 23
slaxemulator@14614 24 post_install()
slaxemulator@14614 25 {
Hans-G?nter@23426 26 grep -q ^extension=sqlite3.so "$1/etc/php.ini" ||
Hans-G?nter@23426 27 sed -e 's|extension=bz2.so|extension=bz2.so\nextension=sqlite3.so|' \
Hans-G?nter@23426 28 -i "$1/etc/php.ini"
Hans-G?nter@23426 29
slaxemulator@14614 30 # Start Web server.
Hans-G?nter@23426 31 while read daemon file
Hans-G?nter@23426 32 do
slaxemulator@14614 33 [ -z "$1" ] || continue
Hans-G?nter@23426 34 if [ -f "/var/run/$file" ]
Hans-G?nter@23426 35 then
slaxemulator@14614 36 /etc/init.d/$daemon stop
slaxemulator@14614 37 sleep 2
slaxemulator@14614 38 fi
Hans-G?nter@23426 39 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@23426 40 then
slaxemulator@14614 41 /etc/init.d/$daemon start
slaxemulator@14614 42 fi
Hans-G?nter@23426 43 done <<EOT
slaxemulator@14614 44 apache apache/httpd.pid
slaxemulator@14614 45 lighttpd lighttpd.pid
slaxemulator@14614 46 EOT
slaxemulator@14614 47 }
slaxemulator@14614 48
slaxemulator@14614 49 # Pre and post remove commands for Tazpkg.
slaxemulator@14614 50 pre_remove()
slaxemulator@14614 51 {
slaxemulator@14614 52 sed -i '/.*=sqlite3.so.*/d' /etc/php.ini
slaxemulator@14614 53
slaxemulator@14614 54 # Start Web server.
Hans-G?nter@23426 55 while read daemon file
Hans-G?nter@23426 56 do
slaxemulator@14614 57 [ -z "$1" ] || continue
Hans-G?nter@23426 58 if [ -f "/var/run/$file" ]
Hans-G?nter@23426 59 then
slaxemulator@14614 60 /etc/init.d/$daemon stop
slaxemulator@14614 61 sleep 2
slaxemulator@14614 62 fi
Hans-G?nter@23426 63 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@23426 64 then
slaxemulator@14614 65 /etc/init.d/$daemon start
slaxemulator@14614 66 fi
Hans-G?nter@23426 67 done <<EOT
slaxemulator@14614 68 apache apache/httpd.pid
slaxemulator@14614 69 lighttpd lighttpd.pid
slaxemulator@14614 70 EOT
Hans-G?nter@23426 71 }