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

Up: spk (1.1.1) Fix spk-up for other arch than default
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 18 22:38:51 2014 +0100 (2014-03-18)
parents fec9d55946a2
children 55f67249b264
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pear"
4 VERSION="5.4.26"
5 CATEGORY="development"
6 SHORT_DESC="PHP web programming language pear libs."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://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 }