wok-next annotate squirrelmail-html_mail/receipt @ rev 21590

updated dialog (1.3-20181107 -> 1.3.20200327)
author Hans-G?nter Theisgen
date Wed Jun 24 07:00:06 2020 +0100 (2020-06-24)
parents c4e53a39395a
children
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"
al@21020 6 SHORT_DESC="Vacation and forwarding plugin for Web mail"
pascal@2252 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://www.squirrelmail.org/"
al@21020 10
pascal@2252 11 SOURCE="html_mail"
pascal@2252 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2252 13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2252 14
al@21020 15 compile_rules() {
al@21020 16 mkdir -p $install
al@21020 17 cp -a $src $install/$SOURCE
pascal@9036 18 }
pascal@9036 19
al@21020 20 genpkg_rules() {
pascal@2252 21 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
pascal@2252 22 $fs/etc/apache/conf.d
pascal@15200 23 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2252 24 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
pascal@2252 25 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2252 26 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@2252 27 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
pascal@2252 28 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
pascal@6416 29 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker>
pascal@2252 30 Options +ExecCGI
pascal@2252 31 AddHandler cgi-script cgi
pascal@2252 32 </Directory>
pascal@2252 33 EOT
al@21020 34 DEPENDS="squirrelmail perl-html-parser perl-text-aspell"
al@21020 35 CONFIG_FILES="/etc/squirrelmail/config-html_mail.php /etc/apache/conf.d"
pascal@2252 36 }
pascal@2252 37
al@21020 38 post_install() {
pascal@18730 39 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@2252 40 }
pascal@2252 41
al@21020 42 pre_remove() {
pascal@2252 43 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2252 44 rm /etc/apache/conf.d/$SOURCE
pascal@2252 45 }