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

qemu/cloop: tiny fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 06 19:55:46 2020 +0000 (2020-05-06)
parents 9e01bc6321ea
children 46dcc80bef41
rev   line source
pascal@1220 1 # SliTaz package receipt.
pascal@1220 2
pascal@1220 3 PACKAGE="squirrelmail-multilogin"
Hans-G?nter@23667 4 VERSION="2.4.2-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"
Hans-G?nter@23667 9 WEB_SITE="http://www.squirrelmail.org/"
Hans-G?nter@23667 10
pascal@1220 11 SOURCE="multilogin"
pascal@1220 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@1220 13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@1220 14
pascal@15200 15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
pascal@15200 16
Hans-G?nter@23667 17 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
Hans-G?nter@23667 18
Hans-G?nter@23667 19 HOST_ARCH="any"
Hans-G?nter@23667 20
pascal@9036 21 # Rules to configure and make the package.
pascal@9036 22 compile_rules()
pascal@9036 23 {
pascal@9037 24 mkdir -p $DESTDIR
Hans-G?nter@23667 25 cp -a $src $DESTDIR/$SOURCE
pascal@9036 26 }
pascal@9036 27
pascal@1220 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1220 29 genpkg_rules()
pascal@1220 30 {
Hans-G?nter@23667 31 mkdir -p $fs/usr/share/squirrelmail/plugins
Hans-G?nter@23667 32 mkdir -p $fs/etc/squirrelmail
Hans-G?nter@23667 33 mkdir -p $fs/var/lib/squirrelmail/slitaz.org/data
Hans-G?nter@23667 34
Hans-G?nter@23667 35 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
Hans-G?nter@23667 36 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config_example.php \
Hans-G?nter@23667 37 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2260 38 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@1220 39 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
pascal@2260 40 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u
pascal@1220 41 }
pascal@1220 42
pascal@1220 43 post_install()
pascal@1220 44 {
pascal@18730 45 chown www "$1/var/lib/squirrelmail/slitaz.org/data"
pascal@18730 46 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
pascal@18730 47 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
pascal@18730 48 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
pascal@18730 49 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@1220 50 }
pascal@2245 51
pascal@2260 52 pre_remove()
pascal@2245 53 {
pascal@2260 54 ( cd /usr/share/squirrelmail/plugins/$SOURCE
pascal@2260 55 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
pascal@2260 56 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
pascal@2245 57 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2245 58 }