wok view tcptrack/receipt @ rev 25601

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 18:06:38 2023 +0000 (9 months ago)
parents 556fb84b427c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tcptrack"
4 VERSION="1.4.3"
5 CATEGORY="network"
6 SHORT_DESC="TCP connection tracker."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2.1"
9 WEB_SITE="https://github.com/bchretien/tcptrack"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"
14 DEPENDS="libpcap ncurses"
15 BUILD_DEPENDS="libpcap-dev ncurses-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/[A-Za-z_-]*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -ltinfo"
29 sed -i 's|d[smh]",ic->getIdleSeconds|l&|' src/TextUI.cc
31 ./configure \
32 --prefix=/usr \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 }