wok annotate squirrelmail-html_mail/receipt @ rev 8929

Up: xvidcore to 1.3.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Mar 01 02:32:24 2011 +0000 (2011-03-01)
parents ff4c00ab546f
children f81e47267992
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@6416 26 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker>
pascal@2252 27 Options +ExecCGI
pascal@2252 28 AddHandler cgi-script cgi
pascal@2252 29 </Directory>
pascal@2252 30 EOT
pascal@2252 31 }
pascal@2252 32
pascal@2252 33 post_install()
pascal@2252 34 {
pascal@2252 35 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@2252 36 }
pascal@2252 37
pascal@2260 38 pre_remove()
pascal@2252 39 {
pascal@2252 40 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2252 41 rm /etc/apache/conf.d/$SOURCE
pascal@2252 42 }