wok diff sngrep/receipt @ rev 25621
Add sngrep
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 31 08:29:57 2023 +0000 (15 months ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/sngrep/receipt Thu Aug 31 08:29:57 2023 +0000 1.3 @@ -0,0 +1,45 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="sngrep" 1.7 +VERSION="1.7.0" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Ncurses SIP Messages flow viewer." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL3" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="https://github.com/irontec/sngrep" 1.14 +WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" 1.15 +CONFIG_FILES="/etc/sngreprc" 1.16 + 1.17 +DEPENDS="libpcap libgnutls libgcrypt pcre zlib libpanel libform \ 1.18 +libmenu libnl libffi nettle" 1.19 +BUILD_DEPENDS="ncursesw-dev libpcap-dev gnutls-dev pcre-dev zlib-dev \ 1.20 +libpanel libform libmenu automake" 1.21 + 1.22 +# What is the latest version available today? 1.23 +current_version() 1.24 +{ 1.25 + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 1.26 + sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' 1.27 +} 1.28 + 1.29 +# Rules to configure and make the package. 1.30 +compile_rules() 1.31 +{ 1.32 + ./bootstrap.sh 1.33 + ./configure --sysconfdir=/etc \ 1.34 + --with-gnutls --with-pcre \ 1.35 + --enable-ipv6 --enable-unicode \ 1.36 + --with-zlib --enable-eep \ 1.37 + $CONFIGURE_ARGS && 1.38 + make && 1.39 + make install 1.40 +} 1.41 + 1.42 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.43 +genpkg_rules() 1.44 +{ 1.45 + mkdir -p $fs/usr 1.46 + cp -a $install/etc $fs/ 1.47 + cp -a $install/usr/bin $fs/usr 1.48 +}