tcpslice, new recipe (#10188)

This commit is contained in:
Schrijvers Luc
2024-03-04 14:39:21 +01:00
committed by GitHub
parent efc421a63c
commit 395ac18a9d

View File

@@ -0,0 +1,55 @@
SUMMARY="Extract and concatenate portions of pcap files"
DESCRIPTION="TCPslice is a tool for extracting portions of packet trace files generated using \
tcpdump's -w flag. It can combine multiple trace files, and/or extract portions of one or more \
traces based on time. TCPslice originally comes from LBL and now is maintained by The Tcpdump Group."
HOMEPAGE="https://github.com/the-tcpdump-group/tcpslice"
COPYRIGHT="2021 The Tcpdump Group"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/refs/tags/tcpslice-$portVersion.tar.gz"
CHECKSUM_SHA256="9bf6a2fd00572f2d931c9bc2ea099d55bd88fa246876fa3293d57e9410e1c007"
SOURCE_DIR="tcpslice-tcpslice-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
tcpslice$secondaryArchSuffix = $portVersion
cmd:tcpslice = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libpcap$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libpcap$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoreconf
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure --omit-dirs binDir ./configure
make $jobArgs
}
INSTALL()
{
make install
}