wok-current view php-dba/receipt @ rev 25761
Fix opencl-amdgpu-pro-icd path
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Apr 01 06:27:26 2025 +0000 (6 months ago) |
parents | a23978bfa665 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-dba"
4 VERSION="7.4.33"
5 CATEGORY="development"
6 SHORT_DESC="dba module for PHP web programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.php.net/"
11 WANTED="php"
13 HOST_ARCH="i486 x86_64"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/php
19 cp $(find $install | grep dba.so) $fs/usr/share/php/
20 }
22 # Post and pre install commans to stop
23 # and restart Web server if needed.
24 pre_install()
25 {
26 while read daemon file
27 do
28 if [ -z "$1" -a -f "/var/run/$file" ]
29 then
30 /etc/init.d/$daemon stop
31 fi
32 done <<EOT
33 apache apache/httpd.pid
34 lighttpd lighttpd.pid
35 EOT
36 }
38 post_install()
39 {
40 grep -q ^extension=dba.so "$1/etc/php.ini" ||
41 sed -e 's|extension=bz2.so|extension=bz2.so\nextension=dba.so|' \
42 -i "$1/etc/php.ini"
43 # Start Web server.
44 while read daemon file
45 do
46 [ -z "$1" ] || continue
47 if [ -f "/var/run/$file" ]
48 then
49 /etc/init.d/$daemon stop
50 sleep 2
51 fi
52 if [ -f /etc/init.d/$daemon ]
53 then
54 /etc/init.d/$daemon start
55 fi
56 done <<EOT
57 apache apache/httpd.pid
58 lighttpd lighttpd.pid
59 EOT
60 }
62 # Pre and post remove commands for Tazpkg.
63 pre_remove()
64 {
65 sed -i '/.*=dba.so.*/d' /etc/php.ini
67 # Start Web server.
68 while read daemon file
69 do
70 [ -z "$1" ] || continue
71 if [ -f "/var/run/$file" ]
72 then
73 /etc/init.d/$daemon stop
74 sleep 2
75 fi
76 if [ -f /etc/init.d/$daemon ]
77 then
78 /etc/init.d/$daemon start
79 fi
80 done <<EOT
81 apache apache/httpd.pid
82 lighttpd lighttpd.pid
83 EOT
84 }