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