SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "squirrelmail-multilogin"

# SliTaz package receipt.

PACKAGE="squirrelmail-multilogin"
VERSION="2.4-1.2.9"
CATEGORY="network"
SHORT_DESC="Server chooser plugin for Web mail."
MAINTAINER="pascal.bellard@slitaz.org"
SOURCE="multilogin"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.squirrelmail.org/"
DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
WGET_URL="${WEB_SITE}plugins/$TARBALL"
CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"

# Rules to configure and make the package.
compile_rules()
{
    mkdir -p $DESTDIR
    cp -a $src $DESTDIR/$SOURCE
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
         $fs/var/lib/squirrelmail/slitaz.org/data
    cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
    mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
        $fs/etc/squirrelmail/config-$SOURCE.php
    ln -s /etc/squirrelmail/config-$SOURCE.php \
        $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
    ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u
}

post_install()
{
    chown www $1/var/lib/squirrelmail/slitaz.org/data
    ( cd $1/usr/share/squirrelmail/plugins/$SOURCE
      patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
    echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers
    echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
}

pre_remove()
{
    ( cd /usr/share/squirrelmail/plugins/$SOURCE
      patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
    sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
    sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)