wok-current view php-pear/receipt @ rev 12312
Rename razor-qt to razorqt (Follow https://github.com/Razor-qt/razor-qt/wiki/Packaging)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 17 14:21:40 2012 +0200 (2012-04-17) |
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 }