wok diff php-pgsql/receipt @ rev 1307
Fix: BUILD_DEPENDS in pcmanfm.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Aug 25 22:08:01 2008 +0200 (2008-08-25) |
parents | |
children | 41897da4a1db |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/php-pgsql/receipt Mon Aug 25 22:08:01 2008 +0200 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="php-pgsql" 1.7 +VERSION="5.2.5" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="postgresql module for PHP web programming language." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +DEPENDS="postgresql php" 1.12 +WEB_SITE="http://www.php.net/" 1.13 +WANTED="php" 1.14 + 1.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.16 +genpkg_rules() 1.17 +{ 1.18 + mkdir -p $fs/usr/share/php 1.19 + cp $(find $_pkg | grep pgsql.so) $fs/usr/share/php/ 1.20 +} 1.21 + 1.22 +# Post and pre install commans to stop 1.23 +# and restart Web server if needed. 1.24 +pre_install() 1.25 +{ 1.26 + if [ -z "$1" -a -f "/var/run/lighttpd.pid" ]; then 1.27 + /etc/init.d/lighttpd stop 1.28 + fi 1.29 +} 1.30 + 1.31 +post_install() 1.32 +{ 1.33 + grep -q ^extension=msql.so $1/etc/php.ini || \ 1.34 + sed -e 's|;.*extension=msql.so|; extension=msql.so\nextension=pgsql.so|' -i $1/etc/php.ini 1.35 + # Start Web server. 1.36 + if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]; then 1.37 + /etc/init.d/lighttpd start 1.38 + fi 1.39 +} 1.40 +