wok annotate php-ldap/receipt @ rev 1171

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