wok view php-pdo-mysql/receipt @ rev 24947

updated nagios-nrpe (4.0.2 -> 4.0.3)
author Hans-G?nter Theisgen
date Fri Apr 22 17:39:55 2022 +0100 (2022-04-22)
parents b10d41313e54
children
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pdo-mysql"
4 VERSION="7.4.4"
5 CATEGORY="development"
6 SHORT_DESC="PDO MySQL module for PHP web programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.php.net/"
11 DEPENDS="php php-mysql"
12 WANTED="php"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/share/php
18 cp $(find $install | grep pdo_mysql.so) $fs/usr/share/php/
19 }
21 # Post and pre install commans to stop
22 # and restart Web server if needed.
23 pre_install()
24 {
25 while read daemon file
26 do
27 if [ -z "$1" -a -f "/var/run/$file" ]
28 then
29 /etc/init.d/$daemon stop
30 fi
31 done <<EOT
32 apache apache/httpd.pid
33 lighttpd lighttpd.pid
34 EOT
35 }
37 post_install()
38 {
39 grep -q ^extension=pdo_mysql.so "$1/etc/php.ini" ||
40 sed -e 's|extension=bz2.so|extension=bz2.so\nextension=pdo_mysql.so|' \
41 -i "$1/etc/php.ini"
43 # Start Web server.
44 while read daemon file
45 do
46 [ -z "$1" ] || continue
47 if [ -z "$1" -a -f "/var/run/$file" ]
48 then
49 /etc/init.d/$daemon stop
50 sleep 2
51 fi
52 if [ -z "$1" -a -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 '/.*=pdo_mysql.so.*/d' /etc/php.ini
67 # Start Web server.
68 while read daemon file
69 do
70 [ -z "$1" ] || continue
71 if [ -z "$1" -a -f "/var/run/$file" ]
72 then
73 /etc/init.d/$daemon stop
74 sleep 2
75 fi
76 if [ -z "$1" -a -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 }