wok-next diff squirrelmail-ldapuser/receipt @ rev 21276

try to build gens-gs again
author Hans-G?nter Theisgen
date Sat Dec 07 15:51:18 2019 +0100 (2019-12-07)
parents c4e53a39395a
children
line diff
     1.1 --- a/squirrelmail-ldapuser/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/squirrelmail-ldapuser/receipt	Sat Dec 07 15:51:18 2019 +0100
     1.3 @@ -3,7 +3,7 @@
     1.4  PACKAGE="squirrelmail-ldapuser"
     1.5  VERSION="0.4"
     1.6  CATEGORY="network"
     1.7 -SHORT_DESC="LDAP backend for Web mail users' profile/preferences."
     1.8 +SHORT_DESC="LDAP backend for Web mail users' profile/preferences"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11  SOURCE="ldapuserdata"
    1.12 @@ -14,16 +14,12 @@
    1.13  
    1.14  DEPENDS="squirrelmail openldap"
    1.15  
    1.16 -# Rules to configure and make the package.
    1.17 -compile_rules()
    1.18 -{
    1.19 -	mkdir -p $DESTDIR
    1.20 -	cp -a $src $DESTDIR/$SOURCE
    1.21 +compile_rules() {
    1.22 +	mkdir -p $install
    1.23 +	cp -a $src $install/$SOURCE
    1.24  }
    1.25  
    1.26 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 -genpkg_rules()
    1.28 -{
    1.29 +genpkg_rules() {
    1.30  	mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
    1.31  	cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
    1.32  	mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config_sample.php \
    1.33 @@ -32,8 +28,7 @@
    1.34  		$fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
    1.35  }
    1.36  
    1.37 -post_install()
    1.38 -{
    1.39 +post_install() {
    1.40  	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
    1.41  	mv "$1/usr/share/squirrelmail/functions/file_prefs.php" \
    1.42  	   "$1/usr/share/squirrelmail/functions/file_prefs.php.original"
    1.43 @@ -44,8 +39,7 @@
    1.44  EOT
    1.45  }
    1.46  
    1.47 -pre_remove()
    1.48 -{
    1.49 +pre_remove() {
    1.50  	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    1.51  	sed -i "/plugins.$SOURCE.doc/d" /etc/openldap/slapd.conf
    1.52  	rm -f /usr/share/squirrelmail/functions/file_prefs.php