wok-next annotate squirrelmail-sieve/receipt @ rev 21530

updated bullet (2.87 -> 2.89)
author Hans-G?nter Theisgen
date Sat Jun 20 16:57:29 2020 +0100 (2020-06-20)
parents c4e53a39395a
children
rev   line source
pascal@2258 1 # SliTaz package receipt.
pascal@2258 2
pascal@2258 3 PACKAGE="squirrelmail-sieve"
pascal@2258 4 VERSION="1.9.7"
pascal@2258 5 CATEGORY="network"
al@21020 6 SHORT_DESC="Sieve Mail Filters plugin for Web mail"
pascal@2258 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://www.squirrelmail.org/"
al@21020 10
pascal@2258 11 SOURCE="avelsieve"
pascal@2258 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2258 13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2258 14
al@21020 15 compile_rules() {
al@21020 16 mkdir -p $install
al@21020 17 cp -a $src $install/$SOURCE
pascal@9036 18 }
pascal@9036 19
al@21020 20 genpkg_rules() {
pascal@2258 21 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
pascal@15200 22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2258 23 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config/config_sample.php \
pascal@2258 24 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2258 25 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@2258 26 $fs/usr/share/squirrelmail/plugins/$SOURCE/config/config.php
al@21020 27 DEPENDS="squirrelmail"
al@21020 28 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
pascal@2258 29 }
pascal@2258 30
al@21020 31 post_install() {
pascal@18730 32 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@2258 33 }
pascal@2258 34
al@21020 35 pre_remove() {
pascal@2258 36 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2258 37 }