wok-6.x view squirrelmail-multilogin/receipt @ rev 8197
imported patch toolchain/lzma.patch
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Thu Jan 27 00:20:50 2011 +0100 (2011-01-27) |
parents | 0caf13e4f1da |
children | f81e47267992 |
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 SOURCE="multilogin"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.squirrelmail.org/"
11 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
19 $fs/var/lib/squirrelmail/slitaz.org/data
20 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
21 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
22 $fs/etc/squirrelmail/config-$SOURCE.php
23 ln -s /etc/squirrelmail/config-$SOURCE.php \
24 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
25 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u
26 }
28 post_install()
29 {
30 chown www $1/var/lib/squirrelmail/slitaz.org/data
31 ( cd $1/usr/share/squirrelmail/plugins/$SOURCE
32 patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
33 echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers
34 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
35 }
37 pre_remove()
38 {
39 ( cd /usr/share/squirrelmail/plugins/$SOURCE
40 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
41 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
42 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
43 }