SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "snort"

# SliTaz package receipt.

PACKAGE="snort"
VERSION="2.9.16"
CATEGORY="network"
SHORT_DESC="Network intrusion prevention and detection system (IDS/IPS)."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/snort3/snort3"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://distfiles.macports.org/$PACKAGE/$TARBALL"

DEPENDS="libdaq libdnet openssl pcre"
BUILD_DEPENDS="flex libdaq-dev libdnet-dev libpcap-dev luajit-dev 
    openssl-dev pcre-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/snort3/snort3/tags 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure        \
        $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/usr/lib    $fs/usr

    rm -f            $fs/usr/lib/*/*a
    rm -rf            $fs/usr/lib/pkgconfig
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)