wok-next diff squirrelmail-spamassassin/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents c4e53a39395a
children
line diff
     1.1 --- a/squirrelmail-spamassassin/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/squirrelmail-spamassassin/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.3 @@ -3,7 +3,7 @@
     1.4  PACKAGE="squirrelmail-spamassassin"
     1.5  VERSION="1.0-1.2.7"
     1.6  CATEGORY="network"
     1.7 -SHORT_DESC="Vacation and forwarding plugin for Web mail."
     1.8 +SHORT_DESC="Vacation and forwarding plugin for Web mail"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11  SOURCE="saconf"
    1.12 @@ -14,26 +14,20 @@
    1.13  
    1.14  DEPENDS="squirrelmail"
    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
    1.31  	cp -a  $install/$SOURCE $fs/usr/share/squirrelmail/plugins
    1.32  }
    1.33  
    1.34 -post_install()
    1.35 -{
    1.36 +post_install() {
    1.37  	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
    1.38  }
    1.39  
    1.40 -pre_remove()
    1.41 -{
    1.42 +pre_remove() {
    1.43  	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    1.44  }