wok-6.x view php-pear/receipt @ rev 1802
fixed email
author | Bill Nagel <b1+slitaz@nagel.org> |
---|---|
date | Wed Jan 26 00:55:11 2005 +0000 (2005-01-26) |
parents | dc930a3898b9 |
children | 1143af92f66a |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pear"
4 VERSION="5.2.5"
5 CATEGORY="development"
6 SHORT_DESC="PHP web programming language pear libs."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="php"
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 post_install()
23 {
24 grep ^include_path $1/etc/php.ini
25 sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' $1/etc/php.ini
26 # Restart Web server.
27 for daemon in apache lighttpd ; do
28 if [ -f /etc/init.d/$daemon ]; then
29 /etc/init.d/$daemon stop
30 /etc/init.d/$daemon start
31 fi
32 done
33 }