wok view squirrelmail-html_mail/receipt @ rev 14324

enlightenment: fix slim.conf
author Dominique Corbex <domcox@slitaz.org>
date Mon Apr 08 08:52:11 2013 +0200 (2013-04-08)
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 }