wok-4.x view squirrelmail-html_mail/receipt @ rev 7615

Added xorg-dev-proto to xorg-server-dev depends. Needs xorg-dev-proto for pkg-config to work with xorg-server-dev.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Dec 11 21:51:57 2010 +0000 (2010-12-11)
parents ff4c00ab546f
children f81e47267992
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-entities 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 gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
19 $fs/etc/apache/conf.d
20 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
21 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
22 $fs/etc/squirrelmail/config-$SOURCE.php
23 ln -s /etc/squirrelmail/config-$SOURCE.php \
24 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
25 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT
26 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker>
27 Options +ExecCGI
28 AddHandler cgi-script cgi
29 </Directory>
30 EOT
31 }
33 post_install()
34 {
35 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
36 }
38 pre_remove()
39 {
40 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
41 rm /etc/apache/conf.d/$SOURCE
42 }