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

mplayer-opt: fix sound,addinput,prevent X&fbdev screensavers
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Mon Jul 28 23:13:32 2014 +0200 (2014-07-28)
parents 76c1f14d1820
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pear"
4 VERSION="5.5.13"
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 }