wok-current view php-pear/receipt @ rev 15874

Add acme
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 03 11:54:56 2014 +0000 (2014-02-03)
parents 78cb1e930abd
children 76c1f14d1820
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pear"
4 VERSION="5.4.23"
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 }