wok-current annotate squirrelmail-html_mail/receipt @ rev 9909
liblrdf: fix bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 17 15:26:23 2011 +0200 (2011-05-17) |
parents | 91a615759636 |
children | b13ed9740841 |
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@2252 | 8 SOURCE="html_mail" |
pascal@2252 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2252 | 10 WEB_SITE="http://www.squirrelmail.org/" |
slaxemulator@9839 | 11 DEPENDS="squirrelmail perl-html-parser perl-text-aspell" |
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@9036 | 15 # Rules to configure and make the package. |
pascal@9036 | 16 compile_rules() |
pascal@9036 | 17 { |
pascal@9037 | 18 mkdir -p $DESTDIR |
pascal@9036 | 19 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 20 } |
pascal@9036 | 21 |
pascal@2252 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2252 | 23 genpkg_rules() |
pascal@2252 | 24 { |
pascal@2252 | 25 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \ |
pascal@2252 | 26 $fs/etc/apache/conf.d |
pascal@9036 | 27 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@2252 | 28 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \ |
pascal@2252 | 29 $fs/etc/squirrelmail/config-$SOURCE.php |
pascal@2252 | 30 ln -s /etc/squirrelmail/config-$SOURCE.php \ |
pascal@2252 | 31 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php |
pascal@2252 | 32 cat > $fs/etc/apache/conf.d/$SOURCE <<EOT |
pascal@6416 | 33 <Directory /usr/share/squirrelmail/plugins/html_mail/htmlarea/plugins/SpellChecker> |
pascal@2252 | 34 Options +ExecCGI |
pascal@2252 | 35 AddHandler cgi-script cgi |
pascal@2252 | 36 </Directory> |
pascal@2252 | 37 EOT |
pascal@2252 | 38 } |
pascal@2252 | 39 |
pascal@2252 | 40 post_install() |
pascal@2252 | 41 { |
pascal@2252 | 42 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@2252 | 43 } |
pascal@2252 | 44 |
pascal@2260 | 45 pre_remove() |
pascal@2252 | 46 { |
pascal@2252 | 47 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2252 | 48 rm /etc/apache/conf.d/$SOURCE |
pascal@2252 | 49 } |