wok-6.x view php-pear/receipt @ rev 23305
updated perl-crypt-des (2.05 -> 2.07)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 29 17:21:18 2020 +0100 (2020-03-29) |
parents | 84a3b4b621e1 |
children | bcea19bfa7af |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pear"
4 VERSION="7.3.16"
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/"
10 WANTED="php"
12 DEPENDS="php-cli"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/share $fs/usr/bin $fs/etc
18 cp -a $install/usr/share/php $fs/usr/share
19 cp -a $install/etc/pear.conf $fs/etc
20 cp -a $install/usr/bin/pe* $fs/usr/bin
21 }
23 # Pre and post install commands for Tazpkg.
24 pre_install()
25 {
26 while read daemon file; do
27 if [ -z "$1" -a -f "/var/run/$file" ]; then
28 /etc/init.d/$daemon stop
29 fi
30 done <<EOT
31 apache apache/httpd.pid
32 lighttpd lighttpd.pid
33 EOT
34 }
36 post_install()
37 {
38 grep ^include_path "$1/etc/php.ini"
39 sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' "$1/etc/php.ini"
40 # Restart Web server.
41 while read daemon file; do
42 [ -z "$1" ] || continue
43 if [ -f "/var/run/$file" ]; then
44 /etc/init.d/$daemon stop
45 sleep 2
46 fi
47 if [ -f /etc/init.d/$daemon ]; then
48 /etc/init.d/$daemon start
49 fi
50 done <<EOT
51 apache apache/httpd.pid
52 lighttpd lighttpd.pid
53 EOT
54 }