aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/netperf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/netperf/Makefile')
-rw-r--r--benchmarks/netperf/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/benchmarks/netperf/Makefile b/benchmarks/netperf/Makefile
index f9def6c17738..7ee01942cc7f 100644
--- a/benchmarks/netperf/Makefile
+++ b/benchmarks/netperf/Makefile
@@ -7,10 +7,14 @@
PORTNAME= netperf
PORTVERSION= 2.1.3
-CATEGORIES= benchmarks
+CATEGORIES= benchmarks ipv6
MASTER_SITES= ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/
DISTNAME= netperf-2.1pl3
+PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
+PATCHFILES= netperf-21pl3-20000721.diff.gz
+PATCH_DIST_STRIP= -p1
+
MAINTAINER= fenner@freebsd.org
MAKEFILE= makefile
@@ -19,6 +23,13 @@ MAN1= netperf.1 netserver.1
SCRIPTS= arr_script snapshot_script tcp_range_script tcp_rr_script \
tcp_stream_script udp_rr_script udp_stream_script
+.include <bsd.port.pre.mk>
+
+BUILD_DEFS+= USE_INET6
+.if ${OSVERSION} >= 400014
+CFLAGS+= -DDO_IPV6
+.endif
+
post-patch:
.for i in ${SCRIPTS}
@${MV} ${WRKSRC}/$i ${WRKSRC}/$i.pre-sed
@@ -36,4 +47,4 @@ post-install:
${GZIP_CMD} ${PREFIX}/share/doc/netperf/netperf.ps
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>