wok annotate squirrelmail-archive/receipt @ rev 15545

Up: firefox-langpack-ru (17.0.11esr)
author Dominique Corbex <domcox@slitaz.org>
date Sun Nov 24 17:36:40 2013 +0100 (2013-11-24)
parents 91a615759636
children d51b2411e55e
rev   line source
pascal@1221 1 # SliTaz package receipt.
pascal@1221 2
pascal@1221 3 PACKAGE="squirrelmail-archive"
pascal@1221 4 VERSION="1.2-1.4.2"
pascal@1221 5 CATEGORY="network"
pascal@1221 6 SHORT_DESC="Mail archiver plugin for Web mail."
pascal@1221 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
pascal@1221 9 SOURCE="archive_mail"
pascal@1221 10 TARBALL="$SOURCE.$VERSION.tar.gz"
pascal@1221 11 WEB_SITE="http://www.squirrelmail.org/"
pascal@15200 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@15200 13
pascal@1221 14 DEPENDS="squirrelmail"
pascal@1221 15
pascal@9036 16 # Rules to configure and make the package.
pascal@9036 17 compile_rules()
pascal@9036 18 {
pascal@9037 19 mkdir -p $DESTDIR
pascal@9036 20 cp -a $src $DESTDIR/$SOURCE
pascal@9036 21 }
pascal@9036 22
pascal@1221 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1221 24 genpkg_rules()
pascal@1221 25 {
pascal@1221 26 mkdir -p $fs/usr/share/squirrelmail/plugins
pascal@15200 27 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@1221 28 }
pascal@1221 29
pascal@1221 30 post_install()
pascal@1221 31 {
pascal@1222 32 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@1221 33 }
pascal@2245 34
pascal@2260 35 pre_remove()
pascal@2245 36 {
pascal@2245 37 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2245 38 }