wok-current view squirrelmail-multilogin/receipt @ rev 1222
squirrelmail-multilogin, squirrelmail-vkeyboard, squirrelmail-archive: fix post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 10 08:15:15 2008 +0000 (2008-08-10) |
parents | 9e65f07bbc07 |
children | ce9ca92103e0 |
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 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
20 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
21 $fs/etc/squirrelmail/config-multilogin.php
22 ln -s /etc/squirrelmail/config-multilogin.php \
23 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
24 }
26 post_install()
27 {
28 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
29 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
30 etc/squirrelmail/config-multilogin.php
31 EOT
32 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
33 }
35 repack_cleanup()
36 {
37 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
38 }