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

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents c4e53a39395a
children
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 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="html_mail"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 compile_rules() {
16 mkdir -p $install
17 cp -a $src $install/$SOURCE
18 }
20 genpkg_rules() {
21 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
22 $fs/etc/apache/conf.d
23 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
24 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
25 $fs/etc/squirrelmail/config-$SOURCE.php
26 ln -s /etc/squirrelmail/config-$SOURCE.php \
27 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
28 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
29 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker>
30 Options +ExecCGI
31 AddHandler cgi-script cgi
32 </Directory>
33 EOT
34 DEPENDS="squirrelmail perl-html-parser perl-text-aspell"
35 CONFIG_FILES="/etc/squirrelmail/config-html_mail.php /etc/apache/conf.d"
36 }
38 post_install() {
39 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
40 }
42 pre_remove() {
43 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
44 rm /etc/apache/conf.d/$SOURCE
45 }