wok view squirrelmail-sieve/receipt @ rev 20343
git update: 2.3.0 (2015 Feb) -> 2.17.1 (2018 May)
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Fri Jun 08 10:00:34 2018 +0000 (2018-06-08) |
parents | d51b2411e55e |
children | 46dcc80bef41 |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-sieve"
4 VERSION="1.9.7"
5 CATEGORY="network"
6 SHORT_DESC="Sieve Mail Filters plugin for Web mail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="avelsieve"
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"
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/config_sample.php \
31 $fs/etc/squirrelmail/config-$SOURCE.php
32 ln -s /etc/squirrelmail/config-$SOURCE.php \
33 $fs/usr/share/squirrelmail/plugins/$SOURCE/config/config.php
34 }
36 post_install()
37 {
38 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
39 }
41 pre_remove()
42 {
43 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
44 }