wok-6.x view php-pear/receipt @ rev 25022
expedite: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 12:49:53 2022 +0000 (2022-05-18) |
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 }