wok-4.x diff php-ldap/receipt @ rev 1257
pygtk: add glade support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 13 16:07:55 2008 +0000 (2008-08-13) |
parents | |
children | 41897da4a1db |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/php-ldap/receipt Wed Aug 13 16:07:55 2008 +0000 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="php-ldap" 1.7 +VERSION="5.2.5" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="ldap module for PHP web programming language." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +DEPENDS="libldap php openssl" 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 ldap.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=ldap.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 +