wok view squirrelmail-html_mail/receipt @ rev 13235

Move from undigest: lz4
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 14 13:39:08 2012 +0200 (2012-08-14)
parents 91a615759636
children b13ed9740841
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-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 }