diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2013-07-20 21:37:46 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2013-07-20 21:37:46 +0000 |
commit | 6a6c9b116c3ada998ae52f6a8ebf0dd5bdc9db74 (patch) | |
tree | 9b69a6f648468735c5eea811dfa71a22ffe2bec1 /net/packetdrill/Makefile | |
parent | 6841aa6a4b1a941c836fc829693ca6e490e05376 (diff) | |
download | ports-6a6c9b116c3ada998ae52f6a8ebf0dd5bdc9db74.tar.gz ports-6a6c9b116c3ada998ae52f6a8ebf0dd5bdc9db74.zip |
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.
Notes
Notes:
svn path=/head/; revision=323362
Diffstat (limited to 'net/packetdrill/Makefile')
-rw-r--r-- | net/packetdrill/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
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 <bsd.port.options.mk> + +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 <bsd.port.mk> |