freebsd-ports/benchmarks/nuttcp/Makefile

56 lines
1.6 KiB
Makefile
Raw Normal View History

# Created by: Andy Clark <andrewclarkii@gmail.com>
# $FreeBSD$
PORTNAME= nuttcp
PORTVERSION= 8.2.2
CATEGORIES= benchmarks net
MASTER_SITES= http://nuttcp.net/nuttcp/beta/ http://nuttcp.net/nuttcp/latest/:latest
DISTFILES= ${PORTNAME}-${PORTVERSION}.c ${NUTTSCPDISTFILE} ${PORTNAME}.8:latest examples.txt:latest LICENSE:latest README:latest
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
benchmarks/nuttcp: 6.1.2 -> 7.3.2 - take maintainer - new distsite - changes since 2008 o Allow longer server info timeout for third party via --idle-data-timeout o Added feature to specify source port with "-p#:#" and "-P#:#" o Add "-g" option to specify multicast IP address to use o Clean up really confused transmit code for IPv4/IPv6 SSM multicast o Bug fix from Aristeu Rozanski: Crash caused by closing TCP_ADV_WIN_SCALE file even if open failed o Fix bug with server CPU affinity being parsed as %X instead of %d For non-sinkmode insure complete network block is written to stdout Above fixes nuttscp bug seen with --copy-dir getting premature EOF o Not every system has ERESTART added in 7.1.4, wrapped in ifdef o Fix non-Linux systems to properly count TCP retrans for multiple streams o Detect EOD for non-sinkmode UDP transfers o Suppress bogus warning when using maximum size UDP packet o Terminate non-sinkmode after specified file size with "-n" option o Allow multilink aggregation with "-N##m" option to work for receive o Add "-sz" zero copy option for non-sinkmode when input is a regular file o Remove "-Sf" forced server mode from Usage: statement o Fix zeroing of clientaddr6 during server cleanup o Fix freeaddrinfo() processing during cleanup o Change manually started oneshot server to have parent process just exit o Provide summary TCP retrans info for multi-stream TCP o Fix bug with retrans interval info when -fparse o Add "+stride" or "+n.n.n.n" syntax for multi-stream TCP (IPv4) o Fix third party bug with "-xc" option adding extraneous 't' character o Add optional client-side name resolution for third party host o Add "-N##m" option for multilink aggregation for multiple streams o Add "-xc#/#" and "-P#/#" options to Usage: statement o Enable jitter measurements with "-j" option o Enable one-way delay measurements with "-o" option o Fix bug with RTT and -fparse o Change ctl/data port checks to < 1024 instead of < 5000 o Fix "--idle-data-timeout" Usage: statement for new default minimum o Improve transmit performance with "-i" by setting poll() timeout to 0 o Don't output interval retrans info if non-sinkmode (for nuttscp) o Skip check for unACKed data at end of transfer if -DBROKEN_UNACKED o Play nice with iperf (change default data port to 5101) o Delay sending of server "OK" until after successful server bind() o Client check for server errors before starting data transfer o Continue checking for server output while draining client transmission o Correct "server not ACKing data" error message (server -> receiver) o Add "--packet-burst" option for Rob o Fix "--idle-data-timeout" Usage: statement for client o Improve accuracy of retrans info timing synchronization (client xmitter) o Allow rate limit to be exceeded temporarily by n packets ("-Rixxx/n") o Allow setting server CPU affinity from client via "-xcs" option o Allow setting client & server CPU affinity via third party o Allow passing of third party control port via "-Pctlport/ctlport3" o Up default idle data minimum to 15 sec to better handle net transients o Don't reset nstream until after last use (fix getaddrinfo() memory leak) o Fix bug with simultaneous server connections to manually started server o Fix Usage: statement: "--idle-data-timeout" both server & client option o Don't reset priority on server cleanup o Fix priority output for "-fparse" o Fix bad third party bug causing >= 1 minute transfers to silently fail o Fix Usage: statement: "--idle-data-timeout" not just a server option o Added IPv6 and SSM MC support Ported from Rob's 5.5.5 based code by Bill Fink o Fix client lockup with third party when network problem (for scripts) o Bugfix: set chk_idle_data on client (now also checks no data received) o Use argv[0] instead of "nuttcp" for third party o Bugfix: give error message again on error starting server o Timeout client accept() too and give nice error message (for scripts) PR: 197475 Submitted by: pi Approved by: Andrew Clark <andrewclarkii@gmail.com> (old maintainer)
2015-02-16 07:16:28 +01:00
EXTRACT_ONLY= # none
benchmarks/nuttcp: 6.1.2 -> 7.3.2 - take maintainer - new distsite - changes since 2008 o Allow longer server info timeout for third party via --idle-data-timeout o Added feature to specify source port with "-p#:#" and "-P#:#" o Add "-g" option to specify multicast IP address to use o Clean up really confused transmit code for IPv4/IPv6 SSM multicast o Bug fix from Aristeu Rozanski: Crash caused by closing TCP_ADV_WIN_SCALE file even if open failed o Fix bug with server CPU affinity being parsed as %X instead of %d For non-sinkmode insure complete network block is written to stdout Above fixes nuttscp bug seen with --copy-dir getting premature EOF o Not every system has ERESTART added in 7.1.4, wrapped in ifdef o Fix non-Linux systems to properly count TCP retrans for multiple streams o Detect EOD for non-sinkmode UDP transfers o Suppress bogus warning when using maximum size UDP packet o Terminate non-sinkmode after specified file size with "-n" option o Allow multilink aggregation with "-N##m" option to work for receive o Add "-sz" zero copy option for non-sinkmode when input is a regular file o Remove "-Sf" forced server mode from Usage: statement o Fix zeroing of clientaddr6 during server cleanup o Fix freeaddrinfo() processing during cleanup o Change manually started oneshot server to have parent process just exit o Provide summary TCP retrans info for multi-stream TCP o Fix bug with retrans interval info when -fparse o Add "+stride" or "+n.n.n.n" syntax for multi-stream TCP (IPv4) o Fix third party bug with "-xc" option adding extraneous 't' character o Add optional client-side name resolution for third party host o Add "-N##m" option for multilink aggregation for multiple streams o Add "-xc#/#" and "-P#/#" options to Usage: statement o Enable jitter measurements with "-j" option o Enable one-way delay measurements with "-o" option o Fix bug with RTT and -fparse o Change ctl/data port checks to < 1024 instead of < 5000 o Fix "--idle-data-timeout" Usage: statement for new default minimum o Improve transmit performance with "-i" by setting poll() timeout to 0 o Don't output interval retrans info if non-sinkmode (for nuttscp) o Skip check for unACKed data at end of transfer if -DBROKEN_UNACKED o Play nice with iperf (change default data port to 5101) o Delay sending of server "OK" until after successful server bind() o Client check for server errors before starting data transfer o Continue checking for server output while draining client transmission o Correct "server not ACKing data" error message (server -> receiver) o Add "--packet-burst" option for Rob o Fix "--idle-data-timeout" Usage: statement for client o Improve accuracy of retrans info timing synchronization (client xmitter) o Allow rate limit to be exceeded temporarily by n packets ("-Rixxx/n") o Allow setting server CPU affinity from client via "-xcs" option o Allow setting client & server CPU affinity via third party o Allow passing of third party control port via "-Pctlport/ctlport3" o Up default idle data minimum to 15 sec to better handle net transients o Don't reset nstream until after last use (fix getaddrinfo() memory leak) o Fix bug with simultaneous server connections to manually started server o Fix Usage: statement: "--idle-data-timeout" both server & client option o Don't reset priority on server cleanup o Fix priority output for "-fparse" o Fix bad third party bug causing >= 1 minute transfers to silently fail o Fix Usage: statement: "--idle-data-timeout" not just a server option o Added IPv6 and SSM MC support Ported from Rob's 5.5.5 based code by Bill Fink o Fix client lockup with third party when network problem (for scripts) o Bugfix: set chk_idle_data on client (now also checks no data received) o Use argv[0] instead of "nuttcp" for third party o Bugfix: give error message again on error starting server o Timeout client accept() too and give nice error message (for scripts) PR: 197475 Submitted by: pi Approved by: Andrew Clark <andrewclarkii@gmail.com> (old maintainer)
2015-02-16 07:16:28 +01:00
MAINTAINER= pi@FreeBSD.org
COMMENT= TCP/UDP network testing tool
LICENSE= GPLv2
NO_WRKSUBDIR= yes
benchmarks/nuttcp: 6.1.2 -> 7.3.2 - take maintainer - new distsite - changes since 2008 o Allow longer server info timeout for third party via --idle-data-timeout o Added feature to specify source port with "-p#:#" and "-P#:#" o Add "-g" option to specify multicast IP address to use o Clean up really confused transmit code for IPv4/IPv6 SSM multicast o Bug fix from Aristeu Rozanski: Crash caused by closing TCP_ADV_WIN_SCALE file even if open failed o Fix bug with server CPU affinity being parsed as %X instead of %d For non-sinkmode insure complete network block is written to stdout Above fixes nuttscp bug seen with --copy-dir getting premature EOF o Not every system has ERESTART added in 7.1.4, wrapped in ifdef o Fix non-Linux systems to properly count TCP retrans for multiple streams o Detect EOD for non-sinkmode UDP transfers o Suppress bogus warning when using maximum size UDP packet o Terminate non-sinkmode after specified file size with "-n" option o Allow multilink aggregation with "-N##m" option to work for receive o Add "-sz" zero copy option for non-sinkmode when input is a regular file o Remove "-Sf" forced server mode from Usage: statement o Fix zeroing of clientaddr6 during server cleanup o Fix freeaddrinfo() processing during cleanup o Change manually started oneshot server to have parent process just exit o Provide summary TCP retrans info for multi-stream TCP o Fix bug with retrans interval info when -fparse o Add "+stride" or "+n.n.n.n" syntax for multi-stream TCP (IPv4) o Fix third party bug with "-xc" option adding extraneous 't' character o Add optional client-side name resolution for third party host o Add "-N##m" option for multilink aggregation for multiple streams o Add "-xc#/#" and "-P#/#" options to Usage: statement o Enable jitter measurements with "-j" option o Enable one-way delay measurements with "-o" option o Fix bug with RTT and -fparse o Change ctl/data port checks to < 1024 instead of < 5000 o Fix "--idle-data-timeout" Usage: statement for new default minimum o Improve transmit performance with "-i" by setting poll() timeout to 0 o Don't output interval retrans info if non-sinkmode (for nuttscp) o Skip check for unACKed data at end of transfer if -DBROKEN_UNACKED o Play nice with iperf (change default data port to 5101) o Delay sending of server "OK" until after successful server bind() o Client check for server errors before starting data transfer o Continue checking for server output while draining client transmission o Correct "server not ACKing data" error message (server -> receiver) o Add "--packet-burst" option for Rob o Fix "--idle-data-timeout" Usage: statement for client o Improve accuracy of retrans info timing synchronization (client xmitter) o Allow rate limit to be exceeded temporarily by n packets ("-Rixxx/n") o Allow setting server CPU affinity from client via "-xcs" option o Allow setting client & server CPU affinity via third party o Allow passing of third party control port via "-Pctlport/ctlport3" o Up default idle data minimum to 15 sec to better handle net transients o Don't reset nstream until after last use (fix getaddrinfo() memory leak) o Fix bug with simultaneous server connections to manually started server o Fix Usage: statement: "--idle-data-timeout" both server & client option o Don't reset priority on server cleanup o Fix priority output for "-fparse" o Fix bad third party bug causing >= 1 minute transfers to silently fail o Fix Usage: statement: "--idle-data-timeout" not just a server option o Added IPv6 and SSM MC support Ported from Rob's 5.5.5 based code by Bill Fink o Fix client lockup with third party when network problem (for scripts) o Bugfix: set chk_idle_data on client (now also checks no data received) o Use argv[0] instead of "nuttcp" for third party o Bugfix: give error message again on error starting server o Timeout client accept() too and give nice error message (for scripts) PR: 197475 Submitted by: pi Approved by: Andrew Clark <andrewclarkii@gmail.com> (old maintainer)
2015-02-16 07:16:28 +01:00
USES= shebangfix
SHEBANG_FILES= nuttscp
NUTTSCPVERSION= 2.3
NUTTSCPDISTFILE=nuttscp-${NUTTSCPVERSION}
OPTIONS_DEFINE= NUTTSCP
benchmarks/nuttcp: 6.1.2 -> 7.3.2 - take maintainer - new distsite - changes since 2008 o Allow longer server info timeout for third party via --idle-data-timeout o Added feature to specify source port with "-p#:#" and "-P#:#" o Add "-g" option to specify multicast IP address to use o Clean up really confused transmit code for IPv4/IPv6 SSM multicast o Bug fix from Aristeu Rozanski: Crash caused by closing TCP_ADV_WIN_SCALE file even if open failed o Fix bug with server CPU affinity being parsed as %X instead of %d For non-sinkmode insure complete network block is written to stdout Above fixes nuttscp bug seen with --copy-dir getting premature EOF o Not every system has ERESTART added in 7.1.4, wrapped in ifdef o Fix non-Linux systems to properly count TCP retrans for multiple streams o Detect EOD for non-sinkmode UDP transfers o Suppress bogus warning when using maximum size UDP packet o Terminate non-sinkmode after specified file size with "-n" option o Allow multilink aggregation with "-N##m" option to work for receive o Add "-sz" zero copy option for non-sinkmode when input is a regular file o Remove "-Sf" forced server mode from Usage: statement o Fix zeroing of clientaddr6 during server cleanup o Fix freeaddrinfo() processing during cleanup o Change manually started oneshot server to have parent process just exit o Provide summary TCP retrans info for multi-stream TCP o Fix bug with retrans interval info when -fparse o Add "+stride" or "+n.n.n.n" syntax for multi-stream TCP (IPv4) o Fix third party bug with "-xc" option adding extraneous 't' character o Add optional client-side name resolution for third party host o Add "-N##m" option for multilink aggregation for multiple streams o Add "-xc#/#" and "-P#/#" options to Usage: statement o Enable jitter measurements with "-j" option o Enable one-way delay measurements with "-o" option o Fix bug with RTT and -fparse o Change ctl/data port checks to < 1024 instead of < 5000 o Fix "--idle-data-timeout" Usage: statement for new default minimum o Improve transmit performance with "-i" by setting poll() timeout to 0 o Don't output interval retrans info if non-sinkmode (for nuttscp) o Skip check for unACKed data at end of transfer if -DBROKEN_UNACKED o Play nice with iperf (change default data port to 5101) o Delay sending of server "OK" until after successful server bind() o Client check for server errors before starting data transfer o Continue checking for server output while draining client transmission o Correct "server not ACKing data" error message (server -> receiver) o Add "--packet-burst" option for Rob o Fix "--idle-data-timeout" Usage: statement for client o Improve accuracy of retrans info timing synchronization (client xmitter) o Allow rate limit to be exceeded temporarily by n packets ("-Rixxx/n") o Allow setting server CPU affinity from client via "-xcs" option o Allow setting client & server CPU affinity via third party o Allow passing of third party control port via "-Pctlport/ctlport3" o Up default idle data minimum to 15 sec to better handle net transients o Don't reset nstream until after last use (fix getaddrinfo() memory leak) o Fix bug with simultaneous server connections to manually started server o Fix Usage: statement: "--idle-data-timeout" both server & client option o Don't reset priority on server cleanup o Fix priority output for "-fparse" o Fix bad third party bug causing >= 1 minute transfers to silently fail o Fix Usage: statement: "--idle-data-timeout" not just a server option o Added IPv6 and SSM MC support Ported from Rob's 5.5.5 based code by Bill Fink o Fix client lockup with third party when network problem (for scripts) o Bugfix: set chk_idle_data on client (now also checks no data received) o Use argv[0] instead of "nuttcp" for third party o Bugfix: give error message again on error starting server o Timeout client accept() too and give nice error message (for scripts) PR: 197475 Submitted by: pi Approved by: Andrew Clark <andrewclarkii@gmail.com> (old maintainer)
2015-02-16 07:16:28 +01:00
OPTIONS_DEFAULT=NUTTSCP
NUTTSCP_DESC= Install script for copying files over nuttcp
OPTIONS_SUB= yes
NUTTSCP_USES= perl5
post-extract:
${CP} ${_DISTDIR}/${NUTTSCPDISTFILE} ${WRKSRC}/nuttscp
${CP} ${_DISTDIR}/${PORTNAME}-${PORTVERSION}.c ${WRKSRC}
${CP} ${_DISTDIR}/${PORTNAME}.8 ${WRKSRC}
${CP} ${_DISTDIR}/LICENSE ${WRKSRC}
${CP} ${_DISTDIR}/README ${WRKSRC}
${CP} ${_DISTDIR}/examples.txt ${WRKSRC}
benchmarks/nuttcp: 6.1.2 -> 7.3.2 - take maintainer - new distsite - changes since 2008 o Allow longer server info timeout for third party via --idle-data-timeout o Added feature to specify source port with "-p#:#" and "-P#:#" o Add "-g" option to specify multicast IP address to use o Clean up really confused transmit code for IPv4/IPv6 SSM multicast o Bug fix from Aristeu Rozanski: Crash caused by closing TCP_ADV_WIN_SCALE file even if open failed o Fix bug with server CPU affinity being parsed as %X instead of %d For non-sinkmode insure complete network block is written to stdout Above fixes nuttscp bug seen with --copy-dir getting premature EOF o Not every system has ERESTART added in 7.1.4, wrapped in ifdef o Fix non-Linux systems to properly count TCP retrans for multiple streams o Detect EOD for non-sinkmode UDP transfers o Suppress bogus warning when using maximum size UDP packet o Terminate non-sinkmode after specified file size with "-n" option o Allow multilink aggregation with "-N##m" option to work for receive o Add "-sz" zero copy option for non-sinkmode when input is a regular file o Remove "-Sf" forced server mode from Usage: statement o Fix zeroing of clientaddr6 during server cleanup o Fix freeaddrinfo() processing during cleanup o Change manually started oneshot server to have parent process just exit o Provide summary TCP retrans info for multi-stream TCP o Fix bug with retrans interval info when -fparse o Add "+stride" or "+n.n.n.n" syntax for multi-stream TCP (IPv4) o Fix third party bug with "-xc" option adding extraneous 't' character o Add optional client-side name resolution for third party host o Add "-N##m" option for multilink aggregation for multiple streams o Add "-xc#/#" and "-P#/#" options to Usage: statement o Enable jitter measurements with "-j" option o Enable one-way delay measurements with "-o" option o Fix bug with RTT and -fparse o Change ctl/data port checks to < 1024 instead of < 5000 o Fix "--idle-data-timeout" Usage: statement for new default minimum o Improve transmit performance with "-i" by setting poll() timeout to 0 o Don't output interval retrans info if non-sinkmode (for nuttscp) o Skip check for unACKed data at end of transfer if -DBROKEN_UNACKED o Play nice with iperf (change default data port to 5101) o Delay sending of server "OK" until after successful server bind() o Client check for server errors before starting data transfer o Continue checking for server output while draining client transmission o Correct "server not ACKing data" error message (server -> receiver) o Add "--packet-burst" option for Rob o Fix "--idle-data-timeout" Usage: statement for client o Improve accuracy of retrans info timing synchronization (client xmitter) o Allow rate limit to be exceeded temporarily by n packets ("-Rixxx/n") o Allow setting server CPU affinity from client via "-xcs" option o Allow setting client & server CPU affinity via third party o Allow passing of third party control port via "-Pctlport/ctlport3" o Up default idle data minimum to 15 sec to better handle net transients o Don't reset nstream until after last use (fix getaddrinfo() memory leak) o Fix bug with simultaneous server connections to manually started server o Fix Usage: statement: "--idle-data-timeout" both server & client option o Don't reset priority on server cleanup o Fix priority output for "-fparse" o Fix bad third party bug causing >= 1 minute transfers to silently fail o Fix Usage: statement: "--idle-data-timeout" not just a server option o Added IPv6 and SSM MC support Ported from Rob's 5.5.5 based code by Bill Fink o Fix client lockup with third party when network problem (for scripts) o Bugfix: set chk_idle_data on client (now also checks no data received) o Use argv[0] instead of "nuttcp" for third party o Bugfix: give error message again on error starting server o Timeout client accept() too and give nice error message (for scripts) PR: 197475 Submitted by: pi Approved by: Andrew Clark <andrewclarkii@gmail.com> (old maintainer)
2015-02-16 07:16:28 +01:00
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} nuttcp-${PORTVERSION}.c
do-install-NUTTSCP-on:
${INSTALL_SCRIPT} ${WRKSRC}/nuttscp ${STAGEDIR}${PREFIX}/bin/
( cd ${STAGEDIR}${PREFIX}/bin; ${LN} -sf nuttscp nuttrcp )
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
${MKDIR} ${STAGEDIR}${DATADIR}/
. for file in LICENSE README examples.txt
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DATADIR}/
. endfor
.include <bsd.port.mk>