wok-6.x view squirrelmail-quota/receipt @ rev 25294
updated screen, screen-pam and screen-terminfo (4.8.0 -> 4.9.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 19 17:34:06 2022 +0100 (2022-07-19) |
parents | 46dcc80bef41 |
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 SOURCE="check_quota"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
14 HOST_ARCH="any"
16 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
18 current_version()
19 {
20 wget -O - "$WEB_SITE/plugin_view.php?id=237" 2>/dev/null | \
21 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir -p $DESTDIR
28 cp -a $src $DESTDIR/$SOURCE
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
35 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
36 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
37 $fs/etc/squirrelmail/config-$SOURCE.php
38 sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \
39 $fs/etc/squirrelmail/config-$SOURCE.php
40 ln -s /etc/squirrelmail/config-$SOURCE.php \
41 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
42 }
44 post_install()
45 {
46 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
47 }
49 pre_remove()
50 {
51 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
52 }