wok-next diff squirrelmail-multilogin/receipt @ rev 21238

updated codeblocks (10.05 -> 17.12)
author Hans-G?nter Theisgen
date Wed Dec 04 17:03:37 2019 +0100 (2019-12-04)
parents c4e53a39395a
children
line diff
     1.1 --- a/squirrelmail-multilogin/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/squirrelmail-multilogin/receipt	Wed Dec 04 17:03:37 2019 +0100
     1.3 @@ -3,7 +3,7 @@
     1.4  PACKAGE="squirrelmail-multilogin"
     1.5  VERSION="2.4-1.2.9"
     1.6  CATEGORY="network"
     1.7 -SHORT_DESC="Server chooser plugin for Web mail."
     1.8 +SHORT_DESC="Server chooser plugin for Web mail"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11  SOURCE="multilogin"
    1.12 @@ -14,16 +14,12 @@
    1.13  
    1.14  DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
    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  		 $fs/var/lib/squirrelmail/slitaz.org/data
    1.32  	cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
    1.33 @@ -31,11 +27,10 @@
    1.34  		$fs/etc/squirrelmail/config-$SOURCE.php
    1.35  	ln -s /etc/squirrelmail/config-$SOURCE.php \
    1.36  		$fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
    1.37 -	( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u
    1.38 +	( cd $fs/etc/squirrelmail; patch -p0 ) < $stuff/config-$SOURCE.u
    1.39  }
    1.40  
    1.41 -post_install()
    1.42 -{
    1.43 +post_install() {
    1.44  	chown www "$1/var/lib/squirrelmail/slitaz.org/data"
    1.45  	( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
    1.46  	  patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
    1.47 @@ -43,8 +38,7 @@
    1.48  	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
    1.49  }
    1.50  
    1.51 -pre_remove()
    1.52 -{
    1.53 +pre_remove() {
    1.54  	( cd /usr/share/squirrelmail/plugins/$SOURCE
    1.55  	  patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
    1.56  	sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers