SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "spamassassin"

# SliTaz package receipt.

PACKAGE="spamassassin"
VERSION="3.4.4"
CATEGORY="network"
SHORT_DESC="anti-spam platform to classify email and block spam"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="Apache"
TARBALL="Mail-SpamAssassin-$VERSION.tar.gz"
WEB_SITE="https://spamassassin.apache.org/"
WGET_URL="https://archive.apache.org/dist/$PACKAGE/source/$TARBALL"
CONFIG_FILES="/etc/mail/spamassassin"

DEPENDS="perl-net-dns perl-html-parser perl-netaddr-ip"
BUILD_DEPENDS="perl-net-dns perl-html-parser perl-netaddr-ip"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/Mail-SpamAssassin-[0-9]/!d;/tar/!d;s|.*Mail-SpamAssassin-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    echo -n | perl Makefile.PL &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs/
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)