freebsd-ports/benchmarks/netperf/Makefile
Marius Strobl de35f156ca Given that the netperf project hasn't rolled a release in quite some time,
switch to snapshots directly obtained from the github repository (currently
at version 2.7.1). Generally, there aren't that many changes since the 2.7.0
release version of netperf, the most noteworthy changes are in the area of
FreeBSD support, though:
- FreeBSD-specific code for letting netperf/netserver bind to CPUs, e. g.
  via the global "-T" option, has been added.
- The nettest_bsd back-end now can take advantage of aio(4) via the newly
  added test-specific "-a" and "-A" options, which in turn allows zero-copy
  send and receive with e. g. cxgbe(4). Note that this requires the netperf
  port to be built with its default-on OMNI option disabled, as otherwise
  the nettest_omni back-end and the migration to it from legacy back-ends
  (also the upstream default since netperf 2.5.0) will be used instead.

Apart from that, some test scripts missing in the published releases but
referenced by test scripts already part of e. g. netperf 2.7.0 are now
included.
2018-03-04 19:50:05 +00:00

56 lines
1.5 KiB
Makefile

# Created by: koshy
# $FreeBSD$
PORTNAME= netperf
PORTVERSION= 2.7.1.p20170921
CATEGORIES= benchmarks ipv6
MAINTAINER= marius@FreeBSD.org
COMMENT= Network performance benchmarking package
USE_GITHUB= yes
GH_ACCOUNT= HewlettPackard
#GH_TAGNAME= ${PORTNAME}-${PORTVERSION}
GH_TAGNAME= d566775bf
OPTIONS_DEFINE= EXAMPLES EXS HISTOGRAM OMNI SCTP SOCKETS
OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
EXS_DESC= Enable ICSC async socket support
HISTOGRAM_DESC= Enable histogram output
OMNI_DESC= Enable OMNI tests (disable for aio(4) support)
SCTP_DESC= Enable SCTP support
SOCKETS_DESC= Enable Unix Domain socket support
USE_CSTD= gnu89
GNU_CONFIGURE= yes
CONFIGURE_ENV= "transform="
CONFIGURE_ARGS= --program-prefix="" --program-suffix="" --enable-dirty \
--enable-demo --enable-burst --enable-intervals
INFO= netperf
EXS_CONFIGURE_ENABLE= exs
HISTOGRAM_CONFIGURE_ENABLE= histogram
OMNI_CONFIGURE_ENABLE= omni
SCTP_CONFIGURE_ENABLE= sctp
SOCKETS_CONFIGURE_ENABLE= unixdomain
SCRIPTS= arr_script bloat.sh find_max_burst.sh packet_byte_script \
remote_hosts runemomni.sh runemomniagg2.sh runemomniaggdemo.sh \
sctp_stream_script snapshot_script tcp_range_script \
tcp_rr_script tcp_stream_script udp_rr_script \
udp_stream_script
post-patch:
.for i in ${SCRIPTS}
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/doc/examples/$i
.endfor
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in ${SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/doc/examples/$i ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>