wok-next diff squirrelmail-html_mail/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-html_mail/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/squirrelmail-html_mail/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.3 @@ -3,27 +3,21 @@
     1.4  PACKAGE="squirrelmail-html_mail"
     1.5  VERSION="2.3-1.4"
     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 +WEB_SITE="http://www.squirrelmail.org/"
    1.12 +
    1.13  SOURCE="html_mail"
    1.14  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.15 -WEB_SITE="http://www.squirrelmail.org/"
    1.16  WGET_URL="${WEB_SITE}plugins/$TARBALL"
    1.17 -CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php /etc/apache/conf.d"
    1.18  
    1.19 -DEPENDS="squirrelmail perl-html-parser perl-text-aspell"
    1.20 -
    1.21 -# Rules to configure and make the package.
    1.22 -compile_rules()
    1.23 -{
    1.24 -	mkdir -p $DESTDIR
    1.25 -	cp -a $src $DESTDIR/$SOURCE
    1.26 +compile_rules() {
    1.27 +	mkdir -p $install
    1.28 +	cp -a $src $install/$SOURCE
    1.29  }
    1.30  
    1.31 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.32 -genpkg_rules()
    1.33 -{
    1.34 +genpkg_rules() {
    1.35  	mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
    1.36  		 $fs/etc/apache/conf.d
    1.37  	cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
    1.38 @@ -37,15 +31,15 @@
    1.39    AddHandler cgi-script cgi
    1.40  </Directory>
    1.41  EOT
    1.42 +	DEPENDS="squirrelmail perl-html-parser perl-text-aspell"
    1.43 +	CONFIG_FILES="/etc/squirrelmail/config-html_mail.php /etc/apache/conf.d"
    1.44  }
    1.45  
    1.46 -post_install()
    1.47 -{
    1.48 +post_install() {
    1.49  	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
    1.50  }
    1.51  
    1.52 -pre_remove()
    1.53 -{
    1.54 +pre_remove() {
    1.55  	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    1.56  	rm /etc/apache/conf.d/$SOURCE
    1.57  }