wok-current view squirrelmail-quota/receipt @ rev 6062

tazbb: preserve hotfixes in tazwok & tazpkg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 21 13:58:44 2010 +0200 (2010-08-21)
parents cb2efee225ba
children f81e47267992
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 SOURCE="check_quota"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.squirrelmail.org/"
11 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
19 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
20 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
21 $fs/etc/squirrelmail/config-$SOURCE.php
22 sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \
23 $fs/etc/squirrelmail/config-$SOURCE.php
24 ln -s /etc/squirrelmail/config-$SOURCE.php \
25 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
26 }
28 post_install()
29 {
30 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
31 }
33 pre_remove()
34 {
35 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
36 }