wok-6.x view php-pear/receipt @ rev 6928
Up: elfutils to 0.149. Fixed it to build in clean chroot. Fixed it also to download sources with real wget by since sources are on https host. So now elfutils can download its sources just fine.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Oct 22 22:36:22 2010 +0000 (2010-10-22) |
parents | 6e3fc22e770a |
children | 79688ff060bd |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pear"
4 VERSION="5.2.14"
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 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 }