blob: fbb4bb8da58a992af978fdca1188755c392c9f69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Created by: Andy Clark <andrewclarkii@gmail.com>
# $FreeBSD$
PORTNAME= nuttcp
PORTVERSION= 7.3.2
CATEGORIES= benchmarks net
MASTER_SITES= http://nuttcp.net/nuttcp/
DISTFILES= beta/${PORTNAME}-${PORTVERSION}.c beta/${NUTTSCPDISTFILE} latest/${PORTNAME}.8 latest/examples.txt latest/LICENSE latest/README
EXTRACT_ONLY= # none
WRKSRC= ${WRKDIR}
MAINTAINER= pi@FreeBSD.org
COMMENT= TCP/UDP network testing tool
USES= shebangfix
SHEBANG_FILES= nuttscp
NUTTSCPVERSION= 2.2
NUTTSCPDISTFILE=nuttscp-${NUTTSCPVERSION}
OPTIONS_DEFINE= NUTTSCP
OPTIONS_DEFAULT=NUTTSCP
NUTTSCP_DESC= Install script for copying files over nuttcp
OPTIONS_SUB= yes
NUTTSCP_USES= perl5
.include <bsd.port.options.mk>
post-extract:
${CP} ${DISTDIR}/beta/${NUTTSCPDISTFILE} ${WRKDIR}/nuttscp
${CP} ${DISTDIR}/beta/${PORTNAME}-${PORTVERSION}.c ${WRKDIR}/
${CP} ${DISTDIR}/latest/${PORTNAME}.8 ${WRKDIR}/
${CP} ${DISTDIR}/latest/LICENSE ${WRKDIR}/
${CP} ${DISTDIR}/latest/README ${WRKDIR}/
${CP} ${DISTDIR}/latest/examples.txt ${WRKDIR}/
do-build:
cd ${WRKDIR} && ${CC} -o ${PORTNAME} nuttcp-${PORTVERSION}.c
do-install:
. if ${PORT_OPTIONS:MNUTTSCP}
${INSTALL_SCRIPT} ${WRKDIR}/nuttscp ${STAGEDIR}${PREFIX}/bin/
( cd ${STAGEDIR}${PREFIX}/bin; ${LN} -sf nuttscp nuttrcp )
. endif
${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKDIR}/${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>
|