SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ndpi"

# SliTaz package receipt.

PACKAGE="ndpi"
VERSION="4.10"
CATEGORY="network"
TAGS="network"
SHORT_DESC="Open Source Deep Packet Inspection Software Toolkit."
MAINTAINER="maintainer@slitaz.org"
LICENSE="GPL-3.0-only"
WEB_SITE="https://github.com/ntop/nDPI"

SOURCE="nDPI"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/ntop/$SOURCE/archive/$VERSION.tar.gz"

DEPENDS="libjson-c libpcap"
BUILD_DEPENDS="autoconf automake libjson-c-dev libpcap-dev libtool"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./autogen.sh            \
        --prefix=/usr        \
        --sysconfdir=/etc &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_files        *.so*
    cook_copy_files        *.txt
}
6011 packages and 861676 files in cooking database (Sun Jun 15 00:48:28 2025)