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.16-1.0"
CATEGORY="network"
SHORT_DESC="Compatibility plugin for Web mail, needed by many plugins."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.squirrelmail.org/"

SOURCE="compatibility"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="${WEB_SITE}plugins/$TARBALL"

DEPENDS="squirrelmail"

HOST_ARCH="any"

current_version()
{
    wget -O - "$WEB_SITE/plugin_view.php?id=152" 2>/dev/null | \
    sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
}

# 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 $install/$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"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)