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 - ${WGET_URL%/*/*} 2>/dev/null | \
    sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed 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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)