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