SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "squirrelmail-compatibility-plugin"

# SliTaz package receipt.

PACKAGE="squirrelmail-compatibility-plugin"
VERSION="2.0.13-1.0"
CATEGORY="network"
SHORT_DESC="Compatibility plugin for Web mail need by many plugins."
MAINTAINER="pascal.bellard@slitaz.org"
SOURCE="compatibility"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.squirrelmail.org/"
DEPENDS="squirrelmail"
WGET_URL="${WEB_SITE}plugins/$TARBALL"

# 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
    cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
}

post_install()
{
    local file
    local line
    file=$1/usr/share/squirrelmail/functions/strings.php
    line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
    grep -qs "$line" $file || sed -i "s|.*global.php.*|&\n$line|" $file
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)