wok-next view squirrelmail-multilogin/receipt @ rev 20629
Up aalib, babl, exiv2, fontconfig, gnome-themes-standard, json-glib, mousepad
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 26 21:51:47 2018 +0300 (2018-04-26) |
parents | 9e01bc6321ea |
children | d5aab818505e |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-multilogin"
4 VERSION="2.4-1.2.9"
5 CATEGORY="network"
6 SHORT_DESC="Server chooser plugin for Web mail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="multilogin"
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 $fs/var/lib/squirrelmail/slitaz.org/data
29 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
30 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/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.php
34 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u
35 }
37 post_install()
38 {
39 chown www "$1/var/lib/squirrelmail/slitaz.org/data"
40 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
41 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
42 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
43 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
44 }
46 pre_remove()
47 {
48 ( cd /usr/share/squirrelmail/plugins/$SOURCE
49 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
50 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
51 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
52 }