wok diff php-ldap/receipt @ rev 14848

realvnc-viewer: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 18 09:44:52 2013 +0000 (2013-07-18)
parents 855f42b596c0
children 78cb1e930abd
line diff
     1.1 --- a/php-ldap/receipt	Mon Jun 18 22:11:42 2012 +0200
     1.2 +++ b/php-ldap/receipt	Thu Jul 18 09:44:52 2013 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="php-ldap"
     1.7 -VERSION="5.4.4"
     1.8 +VERSION="5.4.13"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="ldap module for PHP web programming language."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -13,7 +13,7 @@
    1.13  genpkg_rules()
    1.14  {
    1.15  	mkdir -p $fs/usr/share/php
    1.16 -	cp $(find $_pkg | grep ldap.so) $fs/usr/share/php/
    1.17 +	cp $(find $install | grep ldap.so) $fs/usr/share/php/
    1.18  }
    1.19  
    1.20  # Post and pre install commans to stop
    1.21 @@ -57,9 +57,12 @@
    1.22  
    1.23  	# Start Web server.
    1.24  	while read daemon file; do
    1.25 -		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
    1.26 +		[ -z "$1" ] || continue
    1.27 +		if [ -f "/var/run/$file" ]; then
    1.28  			/etc/init.d/$daemon stop
    1.29  			sleep 2
    1.30 +		fi
    1.31 +		if [ -f /etc/init.d/$daemon ]; then
    1.32  			/etc/init.d/$daemon start
    1.33  		fi
    1.34  	done <<EOT