wok diff php-ldap/receipt @ rev 25805
created recipe for xfce4-weather-plugin
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 15:24:31 2024 +0100 (9 days ago) |
parents | b10d41313e54 |
children |
line diff
1.1 --- a/php-ldap/receipt Fri Mar 20 15:21:15 2020 +0100 1.2 +++ b/php-ldap/receipt Wed Nov 13 15:24:31 2024 +0100 1.3 @@ -1,32 +1,34 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="php-ldap" 1.7 -VERSION="7.3.16" 1.8 +VERSION="7.4.4" 1.9 CATEGORY="development" 1.10 SHORT_DESC="ldap module for PHP web programming language." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 LICENSE="BSD" 1.13 WEB_SITE="https://www.php.net/" 1.14 + 1.15 +DEPENDS="cyrus-sasl libcomerr3 libkrb5 libldap openssl php" 1.16 WANTED="php" 1.17 1.18 -DEPENDS="libldap php openssl cyrus-sasl libkrb5 libcomerr3" 1.19 - 1.20 # Rules to gen a SliTaz package suitable for Tazpkg. 1.21 genpkg_rules() 1.22 { 1.23 mkdir -p $fs/usr/share/php 1.24 - cp $(find $install | grep ldap.so) $fs/usr/share/php/ 1.25 + cp $(find $install | grep ldap.so) $fs/usr/share/php/ 1.26 } 1.27 1.28 # Post and pre install commans to stop 1.29 # and restart Web server if needed. 1.30 pre_install() 1.31 { 1.32 - while read daemon file; do 1.33 - if [ -z "$1" -a -f "/var/run/$file" ]; then 1.34 + while read daemon file 1.35 + do 1.36 + if [ -z "$1" -a -f "/var/run/$file" ] 1.37 + then 1.38 /etc/init.d/$daemon stop 1.39 fi 1.40 - done <<EOT 1.41 + done <<EOT 1.42 apache apache/httpd.pid 1.43 lighttpd lighttpd.pid 1.44 EOT 1.45 @@ -34,19 +36,24 @@ 1.46 1.47 post_install() 1.48 { 1.49 - grep -q ^extension=ldap.so "$1/etc/php.ini" || \ 1.50 - sed -e 's|extension=bz2.so|extension=bz2.so\nextension=ldap.so|' -i "$1/etc/php.ini" 1.51 + grep -q ^extension=ldap.so "$1/etc/php.ini" || 1.52 + sed -e 's|extension=bz2.so|extension=bz2.so\nextension=ldap.so|' \ 1.53 + -i "$1/etc/php.ini" 1.54 + 1.55 # Start Web server. 1.56 - while read daemon file; do 1.57 + while read daemon file 1.58 + do 1.59 [ -z "$1" ] || continue 1.60 - if [ -f "/var/run/$file" ]; then 1.61 + if [ -f "/var/run/$file" ] 1.62 + then 1.63 /etc/init.d/$daemon stop 1.64 sleep 2 1.65 fi 1.66 - if [ -f /etc/init.d/$daemon ]; then 1.67 + if [ -f /etc/init.d/$daemon ] 1.68 + then 1.69 /etc/init.d/$daemon start 1.70 fi 1.71 - done <<EOT 1.72 + done <<EOT 1.73 apache apache/httpd.pid 1.74 lighttpd lighttpd.pid 1.75 EOT 1.76 @@ -58,16 +65,19 @@ 1.77 sed -i '/.*=ldap.so.*/d' /etc/php.ini 1.78 1.79 # Start Web server. 1.80 - while read daemon file; do 1.81 + while read daemon file 1.82 + do 1.83 [ -z "$1" ] || continue 1.84 - if [ -f "/var/run/$file" ]; then 1.85 + if [ -f "/var/run/$file" ] 1.86 + then 1.87 /etc/init.d/$daemon stop 1.88 sleep 2 1.89 fi 1.90 - if [ -f /etc/init.d/$daemon ]; then 1.91 + if [ -f /etc/init.d/$daemon ] 1.92 + then 1.93 /etc/init.d/$daemon start 1.94 fi 1.95 - done <<EOT 1.96 + done <<EOT 1.97 apache apache/httpd.pid 1.98 lighttpd lighttpd.pid 1.99 EOT