wok-next diff phpldapadmin/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | c4e53a39395a |
children |
line diff
1.1 --- a/phpldapadmin/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/phpldapadmin/receipt Sat Nov 21 14:32:44 2020 +0100 1.3 @@ -3,19 +3,15 @@ 1.4 PACKAGE="phpldapadmin" 1.5 VERSION="1.2.2" 1.6 CATEGORY="misc" 1.7 -SHORT_DESC="Administration of LDAP over the Web." 1.8 +SHORT_DESC="Administration of LDAP over the Web" 1.9 MAINTAINER="pascal.bellard@slitaz.org" 1.10 LICENSE="GPL2" 1.11 +WEB_SITE="http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page" 1.12 + 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 1.18 -DEPENDS="php-ldap" 1.19 - 1.20 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.21 -genpkg_rules() 1.22 -{ 1.23 +genpkg_rules() { 1.24 mkdir -p $fs/usr/share/phpldapadmin $fs/etc $fs/usr/share/applications 1.25 cp -a $src/. $fs/usr/share/phpldapadmin 1.26 mv $fs/usr/share/phpldapadmin/config $fs/etc/phpldapadmin 1.27 @@ -25,10 +21,11 @@ 1.28 chown -R www.www $fs/usr/share/phpldapadmin $fs/etc/phpldapadmin 1.29 chmod 700 $fs/etc/phpldapadmin 1.30 chmod 600 $fs/etc/phpldapadmin/config.php 1.31 + DEPENDS="php-ldap" 1.32 + CONFIG_FILES="/etc/phpldapadmin/config.php" 1.33 } 1.34 1.35 -post_install() 1.36 -{ 1.37 +post_install() { 1.38 if [ -s "$1/etc/openldap/slapd.conf" ]; then 1.39 rootdn=$(awk '/^rootdn/ { print $2 }' < "$1/etc/openldap/slapd.conf" | sed 's/"//g') 1.40 sed -i "s|'login','dn','');|'login','dn','');\\n\$ldapservers->SetValue(\$i,'login','dn','$rootdn');|" "$1/etc/phpldapadmin/config.php"