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

git: typo /var/ww/git
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jun 03 01:58:03 2013 +0000 (2013-06-03)
parents 855f42b596c0
children 78cb1e930abd
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pear"
4 VERSION="5.4.13"
5 CATEGORY="development"
6 SHORT_DESC="PHP web programming language pear libs."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="php-cli"
9 WEB_SITE="http://www.php.net/"
10 WANTED="php"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p $fs/usr/share $fs/usr/bin $fs/etc
16 cp -a $install/usr/share/php $fs/usr/share
17 cp -a $install/etc/pear.conf $fs/etc
18 cp -a $install/usr/bin/pe* $fs/usr/bin
19 }
21 # Pre and post install commands for Tazpkg.
22 pre_install()
23 {
24 while read daemon file; do
25 if [ -z "$1" -a -f "/var/run/$file" ]; then
26 /etc/init.d/$daemon stop
27 fi
28 done <<EOT
29 apache apache/httpd.pid
30 lighttpd lighttpd.pid
31 EOT
32 }
34 post_install()
35 {
36 grep ^include_path $1/etc/php.ini
37 sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' $1/etc/php.ini
38 # Restart Web server.
39 while read daemon file; do
40 [ -z "$1" ] || continue
41 if [ -f "/var/run/$file" ]; then
42 /etc/init.d/$daemon stop
43 sleep 2
44 fi
45 if [ -f /etc/init.d/$daemon ]; then
46 /etc/init.d/$daemon start
47 fi
48 done <<EOT
49 apache apache/httpd.pid
50 lighttpd lighttpd.pid
51 EOT
52 }