wok-current view squirrelmail-multilogin/receipt @ rev 23766

qemu/cloop: tiny fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 06 19:55:46 2020 +0000 (2020-05-06)
parents 9e01bc6321ea
children 46dcc80bef41
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-multilogin"
4 VERSION="2.4.2-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 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="multilogin"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
17 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
19 HOST_ARCH="any"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 mkdir -p $DESTDIR
25 cp -a $src $DESTDIR/$SOURCE
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share/squirrelmail/plugins
32 mkdir -p $fs/etc/squirrelmail
33 mkdir -p $fs/var/lib/squirrelmail/slitaz.org/data
35 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
36 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config_example.php \
37 $fs/etc/squirrelmail/config-$SOURCE.php
38 ln -s /etc/squirrelmail/config-$SOURCE.php \
39 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
40 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u
41 }
43 post_install()
44 {
45 chown www "$1/var/lib/squirrelmail/slitaz.org/data"
46 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
47 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
48 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
49 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
50 }
52 pre_remove()
53 {
54 ( cd /usr/share/squirrelmail/plugins/$SOURCE
55 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
56 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
57 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
58 }