SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "bogofilter"

# SliTaz package receipt.

PACKAGE="bogofilter"
VERSION="1.2.5"
CATEGORY="network"
TAGS="mail email filter spam C"
SHORT_DESC="Mail filter that classifies mail as spam or ham."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2 GPL3"
WEB_SITE="https://www.bogofilter.org/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="gsl sqlite"
BUILD_DEPENDS="sqlite-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/bogofilter/files/bogofilter-stable/ 2>/dev/null | \
    sed '/scope="row/!d;/tar/!d;s|.*bogofilter-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure                \
        --with-database=sqlite3        \
        --prefix=/usr            \
        --sysconfdir=/etc/bogofilter    \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr

    cp -a $install/usr/bin    $fs/usr
    cp -a $install/etc    $fs
    chmod +x        $fs/usr/bin/bf_*
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)