wok-6.x view squirrelmail-multilogin/receipt @ rev 1526

glade3: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 08 21:20:37 2008 +0000 (2008-10-08)
parents b649ec903494
children bd6010223726
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-multilogin.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-multilogin.php
23 ln -s /etc/squirrelmail/config-multilogin.php \
24 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
25 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-multilogin.u
26 }
28 post_install()
29 {
30 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
31 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
32 etc/squirrelmail/config-multilogin.php
33 EOT
34 chown www $1/var/lib/squirrelmail/slitaz.org/data
35 ( cd $1/usr/share/squirrelmail/plugins/multilogin
36 patch -p0 < patches/multilogin-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
37 echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers
38 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
39 }
41 repack_cleanup()
42 {
43 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
44 }