wok view tcptrack/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks 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 }