wok-6.x view squirrelmail-html_mail/receipt @ rev 15718
Up: openssh (6.4p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 26 11:43:21 2013 +0000 (2013-12-26) |
parents | 6e5e3ecb013a |
children | d51b2411e55e |
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 LICENSE="GPL2"
9 SOURCE="html_mail"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php /etc/apache/conf.d"
15 DEPENDS="squirrelmail perl-html-parser perl-text-aspell"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $DESTDIR
21 cp -a $src $DESTDIR/$SOURCE
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
28 $fs/etc/apache/conf.d
29 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
30 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
31 $fs/etc/squirrelmail/config-$SOURCE.php
32 ln -s /etc/squirrelmail/config-$SOURCE.php \
33 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
34 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
35 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker>
36 Options +ExecCGI
37 AddHandler cgi-script cgi
38 </Directory>
39 EOT
40 }
42 post_install()
43 {
44 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
45 }
47 pre_remove()
48 {
49 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
50 rm /etc/apache/conf.d/$SOURCE
51 }