wok-next view squirrelmail-quota/receipt @ rev 21379
updated mspdebug (0.17 -> 0.25)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 16:31:49 2020 +0100 (2020-04-16) |
parents | c4e53a39395a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-quota"
4 VERSION="2.2-1.4.0"
5 CATEGORY="network"
6 SHORT_DESC="Quota plugin for Web mail"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="check_quota"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 compile_rules() {
16 mkdir -p $install
17 cp -a $src $install/$SOURCE
18 }
20 genpkg_rules() {
21 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
23 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
24 $fs/etc/squirrelmail/config-$SOURCE.php
25 sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \
26 $fs/etc/squirrelmail/config-$SOURCE.php
27 ln -s /etc/squirrelmail/config-$SOURCE.php \
28 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
29 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
30 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
31 }
33 post_install() {
34 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
35 }
37 pre_remove() {
38 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
39 }