wok-next view squirrelmail-sieve/receipt @ rev 20709
cdrdao: add patch.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 26 17:09:29 2018 +0300 (2018-05-26) |
parents | 9e01bc6321ea |
children | d5aab818505e |
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"
15 DEPENDS="squirrelmail"
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/config_sample.php \
30 $fs/etc/squirrelmail/config-$SOURCE.php
31 ln -s /etc/squirrelmail/config-$SOURCE.php \
32 $fs/usr/share/squirrelmail/plugins/$SOURCE/config/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 }