wok-current annotate squirrelmail-multilogin/receipt @ rev 16240

picoblog: browsers should not execute TARBALL on mirror
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 03 07:03:51 2014 +0000 (2014-04-03)
parents 91a615759636
children d51b2411e55e
rev   line source
pascal@1220 1 # SliTaz package receipt.
pascal@1220 2
pascal@1220 3 PACKAGE="squirrelmail-multilogin"
pascal@1220 4 VERSION="2.4-1.2.9"
pascal@1220 5 CATEGORY="network"
pascal@1220 6 SHORT_DESC="Server chooser plugin for Web mail."
pascal@1220 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
pascal@1220 9 SOURCE="multilogin"
pascal@1220 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@1220 11 WEB_SITE="http://www.squirrelmail.org/"
pascal@1220 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2260 13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
pascal@1220 14
pascal@15200 15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
pascal@15200 16
pascal@9036 17 # Rules to configure and make the package.
pascal@9036 18 compile_rules()
pascal@9036 19 {
pascal@9037 20 mkdir -p $DESTDIR
pascal@9036 21 cp -a $src $DESTDIR/$SOURCE
pascal@9036 22 }
pascal@9036 23
pascal@1220 24 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1220 25 genpkg_rules()
pascal@1220 26 {
pascal@1224 27 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
pascal@1224 28 $fs/var/lib/squirrelmail/slitaz.org/data
pascal@15200 29 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@1220 30 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
pascal@2260 31 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2260 32 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@1220 33 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
pascal@2260 34 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u
pascal@1220 35 }
pascal@1220 36
pascal@1220 37 post_install()
pascal@1220 38 {
pascal@1224 39 chown www $1/var/lib/squirrelmail/slitaz.org/data
pascal@2260 40 ( cd $1/usr/share/squirrelmail/plugins/$SOURCE
pascal@2260 41 patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
pascal@1224 42 echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers
pascal@1222 43 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@1220 44 }
pascal@2245 45
pascal@2260 46 pre_remove()
pascal@2245 47 {
pascal@2260 48 ( cd /usr/share/squirrelmail/plugins/$SOURCE
pascal@2260 49 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
pascal@2260 50 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
pascal@2245 51 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2245 52 }