wok view squirrelmail-multilogin/receipt @ rev 12368
Up: libass to 0.10.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Apr 19 21:42:12 2012 +0000 (2012-04-19) |
parents | f81e47267992 |
children | b13ed9740841 |
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 configure and make the package.
16 compile_rules()
17 {
18 mkdir -p $DESTDIR
19 cp -a $src $DESTDIR/$SOURCE
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
26 $fs/var/lib/squirrelmail/slitaz.org/data
27 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
28 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
29 $fs/etc/squirrelmail/config-$SOURCE.php
30 ln -s /etc/squirrelmail/config-$SOURCE.php \
31 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
32 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u
33 }
35 post_install()
36 {
37 chown www $1/var/lib/squirrelmail/slitaz.org/data
38 ( cd $1/usr/share/squirrelmail/plugins/$SOURCE
39 patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
40 echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers
41 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
42 }
44 pre_remove()
45 {
46 ( cd /usr/share/squirrelmail/plugins/$SOURCE
47 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
48 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
49 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
50 }