wok diff phpldapadmin/receipt @ rev 24032
modified get-teamviewer to be able to fetch versions < 13
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 06 14:38:05 2021 +0100 (2021-04-06) |
parents | 9e01bc6321ea |
children | 5ea0ce1cecc0 |
line diff
1.1 --- a/phpldapadmin/receipt Sun Dec 20 15:13:45 2015 +0100 1.2 +++ b/phpldapadmin/receipt Tue Apr 06 14:38:05 2021 +0100 1.3 @@ -1,54 +1,69 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="phpldapadmin" 1.7 -VERSION="1.2.2" 1.8 +VERSION="1.2.5" 1.9 CATEGORY="misc" 1.10 SHORT_DESC="Administration of LDAP over the Web." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 LICENSE="GPL2" 1.13 -TARBALL="$PACKAGE-$VERSION.tgz" 1.14 -WEB_SITE="http://phpldapadmin.sourceforge.net/" 1.15 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.16 -CONFIG_FILES="/etc/phpldapadmin/config.php" 1.17 -HOST_ARCH="any" 1.18 +WEB_SITE="https://github.com/leenooks/phpLDAPadmin/" 1.19 + 1.20 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.21 +WGET_URL="${WEB_SITE}archive/$VERSION.tar.gz" 1.22 1.23 DEPENDS="php-ldap" 1.24 1.25 +CONFIG_FILES="/etc/phpldapadmin/config.php" 1.26 + 1.27 +HOST_ARCH="any" 1.28 + 1.29 # Rules to gen a SliTaz package suitable for Tazpkg. 1.30 genpkg_rules() 1.31 { 1.32 - mkdir -p $fs/usr/share/phpldapadmin $fs/etc $fs/usr/share/applications 1.33 - cp -a $src/. $fs/usr/share/phpldapadmin 1.34 - mv $fs/usr/share/phpldapadmin/config $fs/etc/phpldapadmin 1.35 + mkdir -p $fs/usr/share/phpldapadmin 1.36 + mkdir -p $fs/etc 1.37 + mkdir -p $fs/usr/share/applications 1.38 + 1.39 + cp -a $src/. $fs/usr/share/phpldapadmin 1.40 + mv $fs/usr/share/phpldapadmin/config $fs/etc/phpldapadmin 1.41 ln -s /etc/phpldapadmin $fs/usr/share/phpldapadmin/config 1.42 - mv $fs/etc/phpldapadmin/config.php.example $fs/etc/phpldapadmin/config.php 1.43 - cp $stuff/phpldapadmin.desktop $fs/usr/share/applications 1.44 - chown -R www.www $fs/usr/share/phpldapadmin $fs/etc/phpldapadmin 1.45 - chmod 700 $fs/etc/phpldapadmin 1.46 - chmod 600 $fs/etc/phpldapadmin/config.php 1.47 + mv $fs/etc/phpldapadmin/config.php.example $fs/etc/phpldapadmin/config.php 1.48 + cp $stuff/phpldapadmin.desktop $fs/usr/share/applications 1.49 + chown -R www.www $fs/usr/share/phpldapadmin $fs/etc/phpldapadmin 1.50 + chmod 700 $fs/etc/phpldapadmin 1.51 + chmod 600 $fs/etc/phpldapadmin/config.php 1.52 } 1.53 1.54 post_install() 1.55 { 1.56 - if [ -s "$1/etc/openldap/slapd.conf" ]; then 1.57 + if [ -s "$1/etc/openldap/slapd.conf" ] 1.58 + then 1.59 rootdn=$(awk '/^rootdn/ { print $2 }' < "$1/etc/openldap/slapd.conf" | sed 's/"//g') 1.60 - sed -i "s|'login','dn','');|'login','dn','');\\n\$ldapservers->SetValue(\$i,'login','dn','$rootdn');|" "$1/etc/phpldapadmin/config.php" 1.61 + sed -i "s|'login','dn','');|'login','dn','');\\n\$ldapservers->SetValue(\$i,'login','dn','$rootdn');|" \ 1.62 + "$1/etc/phpldapadmin/config.php" 1.63 chown 80.80 "$1/etc/phpldapadmin/config.php" 1.64 fi 1.65 + 1.66 # Configure lighttpd server 1.67 - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 1.68 - if ! grep -q /usr/share/phpldapadmin/ "$1/etc/lighttpd/lighttpd.conf"; then 1.69 + if [ -f "$1/etc/lighttpd/lighttpd.conf" ] 1.70 + then 1.71 + if ! grep -q /usr/share/phpldapadmin/ "$1/etc/lighttpd/lighttpd.conf" 1.72 + then 1.73 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpldapadmin/" => "/usr/share/phpldapadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf" 1.74 - if [ -z "$1" ]; then 1.75 + if [ -z "$1" ] 1.76 + then 1.77 # Start Web server. 1.78 /etc/init.d/lighttpd stop 1.79 /etc/init.d/lighttpd start 1.80 fi 1.81 fi 1.82 fi 1.83 + 1.84 # Configure apache server 1.85 - if [ -f "$1/etc/apache/httpd.conf" ]; then 1.86 - if [ ! -f "$1/etc/apache/conf.d/phpldapadmin" ]; then 1.87 + if [ -f "$1/etc/apache/httpd.conf" ] 1.88 + then 1.89 + if [ ! -f "$1/etc/apache/conf.d/phpldapadmin" ] 1.90 + then 1.91 cat > "$1/etc/apache/conf.d/phpldapadmin" <<EOT 1.92 <IfModule mod_alias.c> 1.93 Alias /phpldapadmin /usr/share/phpldapadmin 1.94 @@ -61,7 +76,8 @@ 1.95 Allow from all 1.96 </DirectoryMatch> 1.97 EOT 1.98 - if [ -z "$1" ]; then 1.99 + if [ -z "$1" ] 1.100 + then 1.101 # Start Web server. 1.102 /etc/init.d/apache stop 1.103 /etc/init.d/apache start