wok-next view squirrelmail-quota/receipt @ rev 15362
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 02 13:07:29 2013 +0000 (2013-10-02) |
parents | 91a615759636 |
children | d51b2411e55e |
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"
15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $DESTDIR
21 cp -a $src $DESTDIR/$SOURCE
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
28 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
29 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
30 $fs/etc/squirrelmail/config-$SOURCE.php
31 sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \
32 $fs/etc/squirrelmail/config-$SOURCE.php
33 ln -s /etc/squirrelmail/config-$SOURCE.php \
34 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
35 }
37 post_install()
38 {
39 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
40 }
42 pre_remove()
43 {
44 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
45 }