wok view squirrelmail-html_mail/receipt @ rev 8221
imported patch cleanup_inprogress/slitaz-i18n.patch
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Thu Jan 27 00:20:50 2011 +0100 (2011-01-27) |
parents | ff4c00ab546f |
children | f81e47267992 |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-html_mail"
4 VERSION="2.3-1.4"
5 CATEGORY="network"
6 SHORT_DESC="Vacation and forwarding plugin for Web mail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="html_mail"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.squirrelmail.org/"
11 DEPENDS="squirrelmail perl-html-entities perl-html-parser perl-text-aspell"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php /etc/apache/conf.d"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
19 $fs/etc/apache/conf.d
20 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
21 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
22 $fs/etc/squirrelmail/config-$SOURCE.php
23 ln -s /etc/squirrelmail/config-$SOURCE.php \
24 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
25 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
26 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker>
27 Options +ExecCGI
28 AddHandler cgi-script cgi
29 </Directory>
30 EOT
31 }
33 post_install()
34 {
35 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
36 }
38 pre_remove()
39 {
40 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
41 rm /etc/apache/conf.d/$SOURCE
42 }