wok-current view squirrelmail-html_mail/receipt @ rev 3420

xine-ui: Fix typo in DEPENDS
author Julien Rabier <taziden@slitaz.org>
date Sat Jun 13 05:52:25 2009 +0200 (2009-06-13)
parents 2fb5e163880f
children 27175f0c11f5
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 >
28 Options +ExecCGI
29 AddHandler cgi-script cgi
30 </Directory>
31 EOT
32 }
34 post_install()
35 {
36 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
37 }
39 pre_remove()
40 {
41 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
42 rm /etc/apache/conf.d/$SOURCE
43 }