2013-09-20 17:52:44 +02:00
|
|
|
# Created by: Andy Clark <andrewclarkii@gmail.com>
|
2009-09-03 21:03:12 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nuttcp
|
2018-10-20 23:59:00 +02:00
|
|
|
PORTVERSION= 8.2.2
|
2009-09-03 21:03:12 +02:00
|
|
|
CATEGORIES= benchmarks net
|
2016-06-09 16:26:38 +02:00
|
|
|
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}
|
2015-02-16 07:16:28 +01:00
|
|
|
EXTRACT_ONLY= # none
|
2009-09-03 21:03:12 +02:00
|
|
|
|
2015-02-16 07:16:28 +01:00
|
|
|
MAINTAINER= pi@FreeBSD.org
|
2009-09-03 21:03:12 +02:00
|
|
|
COMMENT= TCP/UDP network testing tool
|
|
|
|
|
2017-06-07 21:20:14 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-06-09 16:26:38 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
2015-02-16 07:16:28 +01:00
|
|
|
USES= shebangfix
|
|
|
|
SHEBANG_FILES= nuttscp
|
2009-09-03 21:03:12 +02:00
|
|
|
|
2018-10-20 23:59:00 +02:00
|
|
|
NUTTSCPVERSION= 2.3
|
2009-09-03 21:03:12 +02:00
|
|
|
NUTTSCPDISTFILE=nuttscp-${NUTTSCPVERSION}
|
|
|
|
|
2012-12-12 22:20:37 +01:00
|
|
|
OPTIONS_DEFINE= NUTTSCP
|
2015-02-16 07:16:28 +01:00
|
|
|
OPTIONS_DEFAULT=NUTTSCP
|
2012-12-12 22:20:37 +01:00
|
|
|
|
|
|
|
NUTTSCP_DESC= Install script for copying files over nuttcp
|
2014-01-05 02:24:29 +01:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
NUTTSCP_USES= perl5
|
2009-09-03 21:03:12 +02:00
|
|
|
|
2014-01-05 02:24:29 +01:00
|
|
|
post-extract:
|
2016-06-09 16:26:38 +02:00
|
|
|
${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}
|
2009-09-03 21:03:12 +02:00
|
|
|
|
2015-02-16 07:16:28 +01:00
|
|
|
do-build:
|
2016-06-09 16:26:38 +02:00
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} nuttcp-${PORTVERSION}.c
|
2009-09-03 21:03:12 +02:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
do-install-NUTTSCP-on:
|
2016-06-09 16:26:38 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/nuttscp ${STAGEDIR}${PREFIX}/bin/
|
2015-08-19 15:29:59 +02:00
|
|
|
( cd ${STAGEDIR}${PREFIX}/bin; ${LN} -sf nuttscp nuttrcp )
|
2009-09-03 21:03:12 +02:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
do-install:
|
2016-06-09 16:26:38 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
|
2009-09-03 21:03:12 +02:00
|
|
|
|
2014-01-05 02:24:29 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/
|
2009-09-03 21:03:12 +02:00
|
|
|
. for file in LICENSE README examples.txt
|
2014-01-05 02:24:29 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DATADIR}/
|
2009-09-03 21:03:12 +02:00
|
|
|
. endfor
|
|
|
|
|
2014-01-05 02:24:29 +01:00
|
|
|
.include <bsd.port.mk>
|