wok-next annotate squirrelmail-quota/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents c4e53a39395a
children
rev   line source
pascal@1227 1 # SliTaz package receipt.
pascal@1227 2
pascal@1227 3 PACKAGE="squirrelmail-quota"
pascal@1227 4 VERSION="2.2-1.4.0"
pascal@1227 5 CATEGORY="network"
al@21020 6 SHORT_DESC="Quota plugin for Web mail"
pascal@1227 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://www.squirrelmail.org/"
al@21020 10
pascal@1227 11 SOURCE="check_quota"
pascal@1227 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@1227 13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@1227 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@1227 21 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
pascal@15200 22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@1227 23 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
pascal@2260 24 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@1227 25 sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \
pascal@2260 26 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2260 27 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@1227 28 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
al@21020 29 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
al@21020 30 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
pascal@1227 31 }
pascal@1227 32
al@21020 33 post_install() {
pascal@18730 34 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@1227 35 }
pascal@2245 36
al@21020 37 pre_remove() {
pascal@2245 38 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2245 39 }