# HG changeset patch # User Pascal Bellard # Date 1693470597 0 # Node ID 05e77d6ca9c10938f7ea240827ea9117a45fcc25 # Parent aff60e1ea082ad8a3bc78695baeb4b29e77bc518 Add sngrep diff -r aff60e1ea082 -r 05e77d6ca9c1 bzip3/receipt --- a/bzip3/receipt Wed Aug 30 10:53:19 2023 +0000 +++ b/bzip3/receipt Thu Aug 31 08:29:57 2023 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="bzip3" -VERSION="1.3.1" +VERSION="1.3.2" CATEGORY="utilities" TAGS="compression archive" SHORT_DESC="High-quality data compressor." diff -r aff60e1ea082 -r 05e77d6ca9c1 sngrep/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sngrep/description.txt Thu Aug 31 08:29:57 2023 +0000 @@ -0,0 +1,2 @@ +sngrep is a tool for displaying SIP calls message flows from terminal. +It supports live capture to display realtime SIP packets and can also be used as PCAP viewer. diff -r aff60e1ea082 -r 05e77d6ca9c1 sngrep/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sngrep/receipt Thu Aug 31 08:29:57 2023 +0000 @@ -0,0 +1,45 @@ +# 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 +}