wok-6.x view squirrelmail-html_mail/receipt @ rev 19192

syslinux: no i18n menu with custom config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 05 16:28:03 2016 +0200 (2016-06-05)
parents d51b2411e55e
children 46dcc80bef41
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"
14 HOST_ARCH="any"
16 DEPENDS="squirrelmail perl-html-parser perl-text-aspell"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mkdir -p $DESTDIR
22 cp -a $src $DESTDIR/$SOURCE
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
29 $fs/etc/apache/conf.d
30 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
31 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
32 $fs/etc/squirrelmail/config-$SOURCE.php
33 ln -s /etc/squirrelmail/config-$SOURCE.php \
34 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
35 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
36 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker>
37 Options +ExecCGI
38 AddHandler cgi-script cgi
39 </Directory>
40 EOT
41 }
43 post_install()
44 {
45 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
46 }
48 pre_remove()
49 {
50 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
51 rm /etc/apache/conf.d/$SOURCE
52 }