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

Up open-iscsi (2.0.873)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 22 17:23:49 2022 +0000 (2022-06-22)
parents 46dcc80bef41
children
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-html_mail"
4 VERSION="2.3-1.4"
5 CATEGORY="network"
6 SHORT_DESC="HTML compose 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="https://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 current_version()
19 {
20 wget -O - "$WEB_SITE/plugin_view.php?id=209" 2>/dev/null | \
21 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir -p $DESTDIR
28 cp -a $src $DESTDIR/$SOURCE
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
35 $fs/etc/apache/conf.d
36 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
37 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
38 $fs/etc/squirrelmail/config-$SOURCE.php
39 ln -s /etc/squirrelmail/config-$SOURCE.php \
40 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
41 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
42 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker>
43 Options +ExecCGI
44 AddHandler cgi-script cgi
45 </Directory>
46 EOT
47 }
49 post_install()
50 {
51 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
52 }
54 pre_remove()
55 {
56 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
57 rm /etc/apache/conf.d/$SOURCE
58 }