wok annotate php-pgsql/receipt @ rev 1249
Cups: add gnutls dependancy
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 12 15:36:40 2008 +0000 (2008-08-12) |
parents | |
children | 41897da4a1db |
rev | line source |
---|---|
pascal@1149 | 1 # SliTaz package receipt. |
pascal@1149 | 2 |
pascal@1149 | 3 PACKAGE="php-pgsql" |
pascal@1149 | 4 VERSION="5.2.5" |
pascal@1149 | 5 CATEGORY="development" |
pascal@1149 | 6 SHORT_DESC="postgresql module for PHP web programming language." |
pascal@1149 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1149 | 8 DEPENDS="postgresql php" |
pascal@1149 | 9 WEB_SITE="http://www.php.net/" |
pascal@1149 | 10 WANTED="php" |
pascal@1149 | 11 |
pascal@1149 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1149 | 13 genpkg_rules() |
pascal@1149 | 14 { |
pascal@1149 | 15 mkdir -p $fs/usr/share/php |
pascal@1149 | 16 cp $(find $_pkg | grep pgsql.so) $fs/usr/share/php/ |
pascal@1149 | 17 } |
pascal@1149 | 18 |
pascal@1149 | 19 # Post and pre install commans to stop |
pascal@1149 | 20 # and restart Web server if needed. |
pascal@1149 | 21 pre_install() |
pascal@1149 | 22 { |
pascal@1149 | 23 if [ -z "$1" -a -f "/var/run/lighttpd.pid" ]; then |
pascal@1149 | 24 /etc/init.d/lighttpd stop |
pascal@1149 | 25 fi |
pascal@1149 | 26 } |
pascal@1149 | 27 |
pascal@1149 | 28 post_install() |
pascal@1149 | 29 { |
pascal@1149 | 30 grep -q ^extension=msql.so $1/etc/php.ini || \ |
pascal@1149 | 31 sed -e 's|;.*extension=msql.so|; extension=msql.so\nextension=pgsql.so|' -i $1/etc/php.ini |
pascal@1149 | 32 # Start Web server. |
pascal@1149 | 33 if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]; then |
pascal@1149 | 34 /etc/init.d/lighttpd start |
pascal@1149 | 35 fi |
pascal@1149 | 36 } |
pascal@1149 | 37 |