wok annotate squirrelmail-html_mail/receipt @ rev 17543

Up busybox (1.23.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 27 16:55:03 2015 +0100 (2015-01-27)
parents b13ed9740841
children 9e01bc6321ea
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@15200 8 LICENSE="GPL2"
pascal@2252 9 SOURCE="html_mail"
pascal@2252 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2252 11 WEB_SITE="http://www.squirrelmail.org/"
pascal@2252 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2252 13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php /etc/apache/conf.d"
pascal@16264 14 HOST_ARCH="any"
pascal@2252 15
pascal@15200 16 DEPENDS="squirrelmail perl-html-parser perl-text-aspell"
pascal@15200 17
pascal@9036 18 # Rules to configure and make the package.
pascal@9036 19 compile_rules()
pascal@9036 20 {
pascal@9037 21 mkdir -p $DESTDIR
pascal@9036 22 cp -a $src $DESTDIR/$SOURCE
pascal@9036 23 }
pascal@9036 24
pascal@2252 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2252 26 genpkg_rules()
pascal@2252 27 {
pascal@2252 28 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
pascal@2252 29 $fs/etc/apache/conf.d
pascal@15200 30 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2252 31 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
pascal@2252 32 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2252 33 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@2252 34 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
pascal@2252 35 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
pascal@6416 36 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker>
pascal@2252 37 Options +ExecCGI
pascal@2252 38 AddHandler cgi-script cgi
pascal@2252 39 </Directory>
pascal@2252 40 EOT
pascal@2252 41 }
pascal@2252 42
pascal@2252 43 post_install()
pascal@2252 44 {
pascal@2252 45 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@2252 46 }
pascal@2252 47
pascal@2260 48 pre_remove()
pascal@2252 49 {
pascal@2252 50 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2252 51 rm /etc/apache/conf.d/$SOURCE
pascal@2252 52 }