wok-6.x diff squirrelmail-html_mail/receipt @ rev 2252

Add squirrelmail-html_mail
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 15 22:50:18 2009 +0000 (2009-02-15)
parents
children ff4c00ab546f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/squirrelmail-html_mail/receipt	Sun Feb 15 22:50:18 2009 +0000
     1.3 @@ -0,0 +1,43 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="squirrelmail-html_mail"
     1.7 +VERSION="2.3-1.4"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Vacation and forwarding plugin for Web mail."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +SOURCE="html_mail"
    1.12 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://www.squirrelmail.org/"
    1.14 +DEPENDS="squirrelmail perl-html-entities perl-html-parser perl-text-aspell"
    1.15 +WGET_URL="${WEB_SITE}plugins/$TARBALL"
    1.16 +CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php /etc/apache/conf.d"
    1.17 +
    1.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 +genpkg_rules()
    1.20 +{
    1.21 +	mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
    1.22 +		 $fs/etc/apache/conf.d
    1.23 +	cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
    1.24 +	mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
    1.25 +		$fs/etc/squirrelmail/config-$SOURCE.php
    1.26 +	ln -s /etc/squirrelmail/config-$SOURCE.php \
    1.27 +		$fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
    1.28 +	cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
    1.29 +<Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker
    1.30 +>
    1.31 +  Options +ExecCGI
    1.32 +  AddHandler cgi-script cgi
    1.33 +</Directory>
    1.34 +EOT
    1.35 +}
    1.36 +
    1.37 +post_install()
    1.38 +{
    1.39 +	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
    1.40 +}
    1.41 +
    1.42 +post_remove()
    1.43 +{
    1.44 +	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    1.45 +	rm /etc/apache/conf.d/$SOURCE
    1.46 +}