From 6a6c9b116c3ada998ae52f6a8ebf0dd5bdc9db74 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Sat, 20 Jul 2013 21:37:46 +0000 Subject: Add net/packetdrill, a network stack testing tool. 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. --- net/packetdrill/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 net/packetdrill/Makefile (limited to 'net/packetdrill/Makefile') diff --git a/net/packetdrill/Makefile b/net/packetdrill/Makefile new file mode 100644 index 000000000000..3d2544893f8c --- /dev/null +++ b/net/packetdrill/Makefile @@ -0,0 +1,43 @@ +# $FreeBSD$ + +PORTNAME= packetdrill +PORTVERSION= 0.0.20130626 +CATEGORIES= net ipv6 +MASTER_SITES= LOCAL/hrs +DISTNAME= ${PORTNAME}-77954df72a78 + +MAINTAINER= hrs@FreeBSD.org +COMMENT= Network stack testing tool + +LICENSE= GPLv2 + +USES= bison +MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" +MAKE_JOBS_SAFE= yes +PORTDOCS= README +PORTEXAMPLES= fr-4pkt-sack-bsd.pkt fr-4pkt-sack-linux.pkt + +OPTIONS_DEFINE= DOCS EXAMPLES +OPTIONS_DEFAULT=DOCS EXAMPLES + +.include + +pre-build: + ${INSTALL_DATA} ${FILESDIR}/Makefile ${FILESDIR}/Makefile.inc ${WRKSRC} +.for F in libpd packetdrill checksum_test packet_parser_test packet_to_string_test + ${MKDIR} ${WRKSRC}/${F} + ${INSTALL_DATA} ${FILESDIR}/Makefile.${F} ${WRKSRC}/${F}/Makefile +.endfor + +post-install: +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC}/examples && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR} +.endif +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} +.endif + +.include -- cgit v1.2.3