wok-next annotate squirrelmail-autorespond/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@2248 1 # SliTaz package receipt.
pascal@2248 2
pascal@2248 3 PACKAGE="squirrelmail-autorespond"
pascal@2248 4 VERSION="0.5.1-1.4"
pascal@2248 5 CATEGORY="network"
al@21020 6 SHORT_DESC="Vacation and forwarding plugin for Web mail"
pascal@2248 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://www.squirrelmail.org/"
al@21020 10
pascal@2248 11 SOURCE="autorespond"
pascal@2248 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2248 13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2248 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@2248 21 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
pascal@15200 22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2248 23 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php \
pascal@2248 24 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2248 25 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@2248 26 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
al@21020 27 DEPENDS="squirrelmail vacation"
al@21020 28 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
pascal@2248 29 }
pascal@2248 30
al@21020 31 post_install() {
pascal@18730 32 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@2248 33 }
pascal@2248 34
al@21020 35 pre_remove() {
pascal@2248 36 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2248 37 }