wok-6.x view php-pear/receipt @ rev 9507
Fix libwnck.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Apr 06 07:35:59 2011 +0000 (2011-04-06) |
parents | a82ead0ea109 |
children | 855f42b596c0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pear"
4 VERSION="5.2.17"
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 $_pkg/usr/share/php $fs/usr/share
17 cp $_pkg/etc/pear.conf $fs/etc
18 cp $_pkg/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 }