wok-next view squirrelmail-html_mail/receipt @ rev 15987

mktorrent: add to ARM and x86_64 arch
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 02 02:18:29 2014 +0100 (2014-03-02)
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 }