SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "sngrep"

# SliTaz package receipt.

PACKAGE="sngrep"
VERSION="1.7.0"
CATEGORY="network"
SHORT_DESC="Ncurses SIP Messages flow viewer."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/irontec/sngrep"
WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"
CONFIG_FILES="/etc/sngreprc"

DEPENDS="libpcap libgnutls libgcrypt pcre zlib libpanel libform \
libmenu libnl libffi nettle"
BUILD_DEPENDS="ncursesw-dev libpcap-dev gnutls-dev pcre-dev zlib-dev \
libpanel libform libmenu automake"

# 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()
{
    ./bootstrap.sh
    ./configure --sysconfdir=/etc \
        --with-gnutls --with-pcre \
        --enable-ipv6 --enable-unicode \
        --with-zlib --enable-eep \
        $CONFIGURE_ARGS &&
    make &&
    make install 
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/etc $fs/
    cp -a $install/usr/bin $fs/usr
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)