wok-6.x view squirrelmail-quota/receipt @ rev 8333

Add: nagios-plugins*
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Feb 02 01:18:19 2011 +0100 (2011-02-02)
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 }