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
|
|
|
|
PORTVERSION= 6.1.2
|
|
|
|
CATEGORIES= benchmarks net
|
|
|
|
MASTER_SITES= ftp://ftp.lcp.nrl.navy.mil/pub/${PORTNAME}/ \
|
|
|
|
ftp://ftp.lcp.nrl.navy.mil/pub/${PORTNAME}/beta/:beta
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
${NUTTSCPDISTFILE}:beta
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
MAINTAINER= andrewclarkii@gmail.com
|
|
|
|
COMMENT= TCP/UDP network testing tool
|
|
|
|
|
2014-06-01 11:00:15 +02:00
|
|
|
USES= tar:bzip2 shebangfix
|
2014-01-05 02:24:29 +01:00
|
|
|
SHEBANG_FILES= ../nuttscp
|
2009-09-03 21:03:12 +02:00
|
|
|
MAKEFILE= /dev/null
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
|
|
|
|
NUTTSCPVERSION= 1.7
|
|
|
|
NUTTSCPDISTFILE=nuttscp-${NUTTSCPVERSION}
|
|
|
|
|
2012-12-12 22:20:37 +01:00
|
|
|
OPTIONS_DEFINE= NUTTSCP
|
|
|
|
OPTIONS_DEFAULT= NUTTSCP
|
|
|
|
|
|
|
|
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
|
|
|
|
2013-09-15 10:15:41 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2009-09-03 21:03:12 +02:00
|
|
|
|
2014-01-05 02:24:29 +01:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${NUTTSCPDISTFILE} ${WRKDIR}/nuttscp
|
2009-09-03 21:03:12 +02:00
|
|
|
|
2014-01-05 02:24:29 +01:00
|
|
|
post-patch:
|
2009-09-03 21:03:12 +02:00
|
|
|
${FIND} ${WRKSRC}/ -type f -exec \
|
|
|
|
${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' {} +
|
|
|
|
|
|
|
|
do-install:
|
2012-12-12 22:20:37 +01:00
|
|
|
. if ${PORT_OPTIONS:MNUTTSCP}
|
2014-01-05 02:24:29 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/nuttscp ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
( cd ${STAGEDIR}${PREFIX}/bin; ${LN} -sf nuttscp nuttrcp )
|
2009-09-03 21:03:12 +02:00
|
|
|
. endif
|
|
|
|
|
2014-01-05 02:24:29 +01: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
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/xinetd.d/
|
2009-09-03 21:03:12 +02:00
|
|
|
. for file in ${PORTNAME} ${PORTNAME}4 ${PORTNAME}6
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/xinetd.d/${file} \
|
2014-01-05 02:24:29 +01:00
|
|
|
${STAGEDIR}${PREFIX}/etc/xinetd.d/
|
2009-09-03 21:03:12 +02:00
|
|
|
. endfor
|
|
|
|
|
2014-01-05 02:24:29 +01:00
|
|
|
.include <bsd.port.mk>
|