wok-next annotate squirrelmail-spamassassin/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents c4e53a39395a
children
rev   line source
pascal@2259 1 # SliTaz package receipt.
pascal@2259 2
pascal@2259 3 PACKAGE="squirrelmail-spamassassin"
pascal@2259 4 VERSION="1.0-1.2.7"
pascal@2259 5 CATEGORY="network"
al@21020 6 SHORT_DESC="Vacation and forwarding plugin for Web mail"
pascal@2259 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
pascal@2259 9 SOURCE="saconf"
pascal@2259 10 TARBALL="$SOURCE.$VERSION.tar.gz"
pascal@2259 11 WEB_SITE="http://www.squirrelmail.org/"
pascal@2259 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2260 13 SUGGESTED="spamassassin"
pascal@2259 14
pascal@15200 15 DEPENDS="squirrelmail"
pascal@15200 16
al@21020 17 compile_rules() {
al@21020 18 mkdir -p $install
al@21020 19 cp -a $src $install/$SOURCE
pascal@9036 20 }
pascal@9036 21
al@21020 22 genpkg_rules() {
pascal@2259 23 mkdir -p $fs/usr/share/squirrelmail/plugins
pascal@15200 24 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2259 25 }
pascal@2259 26
al@21020 27 post_install() {
pascal@18730 28 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@2259 29 }
pascal@2259 30
al@21020 31 pre_remove() {
pascal@2259 32 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2259 33 }