wok-6.x view php-pear/receipt @ rev 23551

updated python-qrcode (4.0.4 -> 6.1)
author Hans-G?nter Theisgen
date Tue Apr 07 06:52:37 2020 +0100 (2020-04-07)
parents b10d41313e54
children
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pear"
4 VERSION="7.4.4"
5 CATEGORY="development"
6 SHORT_DESC="PHP web programming language pear libs."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.php.net/"
11 DEPENDS="php-cli"
12 WANTED="php"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/share
18 mkdir -p $fs/usr/bin $fs/etc
20 cp -a $install/usr/share/php $fs/usr/share
21 cp -a $install/etc/pear.conf $fs/etc
22 cp -a $install/usr/bin/pe* $fs/usr/bin
23 }
25 # Pre and post install commands for Tazpkg.
26 pre_install()
27 {
28 while read daemon file
29 do
30 if [ -z "$1" -a -f "/var/run/$file" ]
31 then
32 /etc/init.d/$daemon stop
33 fi
34 done <<EOT
35 apache apache/httpd.pid
36 lighttpd lighttpd.pid
37 EOT
38 }
40 post_install()
41 {
42 grep ^include_path "$1/etc/php.ini"
43 sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' \
44 "$1/etc/php.ini"
46 # Restart Web server.
47 while read daemon file
48 do
49 [ -z "$1" ] || continue
50 if [ -f "/var/run/$file" ]
51 then
52 /etc/init.d/$daemon stop
53 sleep 2
54 fi
55 if [ -f /etc/init.d/$daemon ]
56 then
57 /etc/init.d/$daemon start
58 fi
59 done <<EOT
60 apache apache/httpd.pid
61 lighttpd lighttpd.pid
62 EOT
63 }