wok-6.x annotate squirrelmail-html_mail/receipt @ rev 2879

enchant: Move aspell to SUGGESTED
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 04 14:12:10 2009 +0200 (2009-05-04)
parents 2fb5e163880f
children 27175f0c11f5
rev   line source
pascal@2252 1 # SliTaz package receipt.
pascal@2252 2
pascal@2252 3 PACKAGE="squirrelmail-html_mail"
pascal@2252 4 VERSION="2.3-1.4"
pascal@2252 5 CATEGORY="network"
pascal@2252 6 SHORT_DESC="Vacation and forwarding plugin for Web mail."
pascal@2252 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@2252 8 SOURCE="html_mail"
pascal@2252 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2252 10 WEB_SITE="http://www.squirrelmail.org/"
pascal@2252 11 DEPENDS="squirrelmail perl-html-entities perl-html-parser perl-text-aspell"
pascal@2252 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2252 13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php /etc/apache/conf.d"
pascal@2252 14
pascal@2252 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2252 16 genpkg_rules()
pascal@2252 17 {
pascal@2252 18 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
pascal@2252 19 $fs/etc/apache/conf.d
pascal@2252 20 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2252 21 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
pascal@2252 22 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2252 23 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@2252 24 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
pascal@2252 25 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
pascal@2252 26 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker
pascal@2252 27 >
pascal@2252 28 Options +ExecCGI
pascal@2252 29 AddHandler cgi-script cgi
pascal@2252 30 </Directory>
pascal@2252 31 EOT
pascal@2252 32 }
pascal@2252 33
pascal@2252 34 post_install()
pascal@2252 35 {
pascal@2252 36 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@2252 37 }
pascal@2252 38
pascal@2260 39 pre_remove()
pascal@2252 40 {
pascal@2252 41 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2252 42 rm /etc/apache/conf.d/$SOURCE
pascal@2252 43 }