wok-next view squirrelmail-quota/receipt @ rev 18324
Up tazwikiss (248)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 03 09:59:14 2015 +0200 (2015-09-03) |
parents | b13ed9740841 |
children | 9e01bc6321ea |
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="http://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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mkdir -p $DESTDIR
22 cp -a $src $DESTDIR/$SOURCE
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
29 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
30 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
31 $fs/etc/squirrelmail/config-$SOURCE.php
32 sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \
33 $fs/etc/squirrelmail/config-$SOURCE.php
34 ln -s /etc/squirrelmail/config-$SOURCE.php \
35 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
36 }
38 post_install()
39 {
40 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
41 }
43 pre_remove()
44 {
45 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
46 }