mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
packetdrill: add recipe for current git.
* doesn't work quite yet.
This commit is contained in:
55
net-misc/packetdrill/packetdrill-20160707.recipe
Normal file
55
net-misc/packetdrill/packetdrill-20160707.recipe
Normal file
@@ -0,0 +1,55 @@
|
||||
SUMMARY="A network testing scripting tool"
|
||||
DESCRIPTION="The packetdrill scripting tool enables quick, precise tests for \
|
||||
entire TCP/UDP/IPv4/IPv6 network stacks, from the system call layer down to \
|
||||
the NIC hardware. packetdrill currently works on Linux, FreeBSD, OpenBSD, \
|
||||
and NetBSD. It can test network stack behavior over physical NICs on a LAN, \
|
||||
or on a single machine using a tun virtual network device."
|
||||
HOMEPAGE="https://github.com/google/packetdrill"
|
||||
COPYRIGHT="2013-2016 Google Inc."
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
srcGitRev="a3d4338d16a03b32e12559d34a8064978bbaa717"
|
||||
SOURCE_URI="https://github.com/google/packetdrill/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="5b184075673299c08c7772a2a552e97758f3c2ec46c4bdacb37336452ba8562b"
|
||||
SOURCE_DIR="packetdrill-$srcGitRev"
|
||||
PATCHES="packetdrill-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86 ?x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
packetdrill$secondaryArchSuffix = $portVersion
|
||||
cmd:checksum_test
|
||||
cmd:packet_parser_test
|
||||
cmd:packet_to_string_test
|
||||
cmd:packetdrill
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libpcap
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libpcap
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd gtests/net/packetdrill
|
||||
./configure
|
||||
CFLAGS=-D_BSD_SOURCE make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd gtests/net/packetdrill
|
||||
mkdir -p $binDir $dataDir/packetdrill
|
||||
cp packetdrill packet_to_string_test \
|
||||
packet_parser_test checksum_test $binDir
|
||||
cp -R tests $dataDir/packetdrill
|
||||
}
|
||||
Reference in New Issue
Block a user