wok view php-pear/receipt @ rev 22704

updated etherape (0.9.14 -> 0.9.18)
author Hans-G?nter Theisgen
date Tue Jan 21 16:30:47 2020 +0100 (2020-01-21)
parents ccb0caebef6f
children b10d41313e54
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pear"
4 VERSION="7.3.12"
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 }