wok-6.x view squirrelmail-quota/receipt @ rev 14550
python-babel: update bdeps
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Thu May 23 01:29:57 2013 +0000 (2013-05-23) |
parents | f81e47267992 |
children | b13ed9740841 |
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 configure and make the package.
16 compile_rules()
17 {
18 mkdir -p $DESTDIR
19 cp -a $src $DESTDIR/$SOURCE
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
26 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
27 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
28 $fs/etc/squirrelmail/config-$SOURCE.php
29 sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \
30 $fs/etc/squirrelmail/config-$SOURCE.php
31 ln -s /etc/squirrelmail/config-$SOURCE.php \
32 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
33 }
35 post_install()
36 {
37 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
38 }
40 pre_remove()
41 {
42 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
43 }