freebsd-ports/benchmarks/nuttcp/Makefile
Kurt Jaeger 6dd358c98a benchmarks/nuttcp: update 7.3.2 -> 8.2.2
- Improve warning when third party "-4/-6" is not supported
- Add af=inet/inet6 to verbose UDP output
- Add ip=<server_ip> to verbose UDP output for client transmitter
- Fix to pass "-4" or "-6" argument to 3rd party
- Fix to allow compile with -Werror=format-security as noted by
  Dhiru Kholia in fedora bug 1037224
- Fix missing brackets caught by -Wmisleading-indentation
- Add code to print out address family of connect/accept
- Add code to translate v4mapped addresses
- Fix to allow direct I/O on block devices
- Fix parsing of "-R i[s]##[/##]" (blank between 'R' and 'i')
- Updated Copyright notice for new year
- Changed nuttcp site to http://nuttcp.net/nuttcp/beta/
- Added define test for NOT_LINUX to undefine LINUX for build testing
- Add reporting of TCP congestion window
- Fix tos to work for ipv6 by setting traffic class

PR:		232484
Submitted by:	lev
2018-10-20 21:59:00 +00:00

56 lines
1.6 KiB
Makefile

# 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}
EXTRACT_ONLY= # none
MAINTAINER= pi@FreeBSD.org
COMMENT= TCP/UDP network testing tool
LICENSE= GPLv2
NO_WRKSUBDIR= yes
USES= shebangfix
SHEBANG_FILES= nuttscp
NUTTSCPVERSION= 2.3
NUTTSCPDISTFILE=nuttscp-${NUTTSCPVERSION}
OPTIONS_DEFINE= NUTTSCP
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}
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>