mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
tcpslice, new recipe (#10188)
This commit is contained in:
55
net-analyzer/tcpslice/tcpslice-1.7.recipe
Normal file
55
net-analyzer/tcpslice/tcpslice-1.7.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user