wok annotate squirrelmail-html_mail/receipt @ rev 15452
Up: eeze-dev (1.7.9)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 05 20:58:08 2013 +0100 (2013-11-05) |
parents | 6e5e3ecb013a |
children | d51b2411e55e |
rev | line source |
---|---|
pascal@2252 | 1 # SliTaz package receipt. |
pascal@2252 | 2 |
pascal@2252 | 3 PACKAGE="squirrelmail-html_mail" |
pascal@2252 | 4 VERSION="2.3-1.4" |
pascal@2252 | 5 CATEGORY="network" |
pascal@2252 | 6 SHORT_DESC="Vacation and forwarding plugin for Web mail." |
pascal@2252 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
pascal@2252 | 9 SOURCE="html_mail" |
pascal@2252 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2252 | 11 WEB_SITE="http://www.squirrelmail.org/" |
pascal@2252 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@2252 | 13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php /etc/apache/conf.d" |
pascal@2252 | 14 |
pascal@15200 | 15 DEPENDS="squirrelmail perl-html-parser perl-text-aspell" |
pascal@15200 | 16 |
pascal@9036 | 17 # Rules to configure and make the package. |
pascal@9036 | 18 compile_rules() |
pascal@9036 | 19 { |
pascal@9037 | 20 mkdir -p $DESTDIR |
pascal@9036 | 21 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 22 } |
pascal@9036 | 23 |
pascal@2252 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2252 | 25 genpkg_rules() |
pascal@2252 | 26 { |
pascal@2252 | 27 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \ |
pascal@2252 | 28 $fs/etc/apache/conf.d |
pascal@15200 | 29 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@2252 | 30 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \ |
pascal@2252 | 31 $fs/etc/squirrelmail/config-$SOURCE.php |
pascal@2252 | 32 ln -s /etc/squirrelmail/config-$SOURCE.php \ |
pascal@2252 | 33 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php |
pascal@2252 | 34 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT |
pascal@6416 | 35 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker> |
pascal@2252 | 36 Options +ExecCGI |
pascal@2252 | 37 AddHandler cgi-script cgi |
pascal@2252 | 38 </Directory> |
pascal@2252 | 39 EOT |
pascal@2252 | 40 } |
pascal@2252 | 41 |
pascal@2252 | 42 post_install() |
pascal@2252 | 43 { |
pascal@2252 | 44 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@2252 | 45 } |
pascal@2252 | 46 |
pascal@2260 | 47 pre_remove() |
pascal@2252 | 48 { |
pascal@2252 | 49 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2252 | 50 rm /etc/apache/conf.d/$SOURCE |
pascal@2252 | 51 } |