wok-stable view squirrelmail-html_mail/receipt @ rev 9221

spidermonkey-dev: fix /usr/include path (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 11 17:06:22 2011 +0100 (2011-03-11)
parents f81e47267992
children 6e5e3ecb013a
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 configure and make the package.
16 compile_rules()
17 {
18 mkdir -p $DESTDIR
19 cp -a $src $DESTDIR/$SOURCE
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
26 $fs/etc/apache/conf.d
27 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
28 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
29 $fs/etc/squirrelmail/config-$SOURCE.php
30 ln -s /etc/squirrelmail/config-$SOURCE.php \
31 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
32 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
33 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker>
34 Options +ExecCGI
35 AddHandler cgi-script cgi
36 </Directory>
37 EOT
38 }
40 post_install()
41 {
42 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
43 }
45 pre_remove()
46 {
47 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
48 rm /etc/apache/conf.d/$SOURCE
49 }