summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-09-09 09:54:49 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-09-09 09:54:49 +0000
commit5037c77af06fcb6205a4ee75f54e3e297abf67de (patch)
tree388f7aba8ebb06a3bdbeab06c0fec463154dfecf /benchmarks
parentUpdate to version 1.10alpha3 (diff)
Add ipv6 to categories
Notes
Notes: svn path=/head/; revision=32458
Diffstat (limited to 'benchmarks')
-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>