summaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-09-09 09:54:49 +0000
committerkris <kris@FreeBSD.org>2000-09-09 09:54:49 +0000
commit8ca4688accd0ac0ada5d01502faf0c581c49f5bb (patch)
treef1a696e087ab2c9dd443601346fa7a40caa57435 /benchmarks
parent4d8e15f9e4556868a5cdc912698a7ffd9e147f11 (diff)
downloadFreeBSD-ports-8ca4688accd0ac0ada5d01502faf0c581c49f5bb.zip
FreeBSD-ports-8ca4688accd0ac0ada5d01502faf0c581c49f5bb.tar.gz
Add ipv6 to categories
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 f9def6c..7ee0194 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>
OpenPOWER on IntegriCloud