blob: 572054937a1f998c94d6f7d2ba8e09d95386bb54 (
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
|
# Created by: jkoshy
# $FreeBSD$
PORTNAME= NetPIPE
PORTVERSION= 3.7.1
CATEGORIES= benchmarks net
MASTER_SITES= http://www.scl.ameslab.gov/Projects/Netpipe/code/
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Self-scaling network benchmark
# The default port builds and installs only the TCP version of
# netpipe(1). The sources support many other variants.
PORTDOCS= README netpipe_paper.ps
PLIST_FILES= bin/NPtcp bin/NPtcp6 man/man1/netpipe.1.gz
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:tl}
do-build:
cd ${WRKSRC} \
&& ${CC} ${CFLAGS} src/netpipe.c src/tcp.c -DTCP -o NPtcp \
&& ${CC} ${CFLAGS} src/netpipe.c src/tcp6.c -DTCP6 -o NPtcp6
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/NPtcp ${STAGEDIR}${PREFIX}/bin/NPtcp
${INSTALL_PROGRAM} ${WRKSRC}/NPtcp6 ${STAGEDIR}${PREFIX}/bin/NPtcp6
${INSTALL_MAN} ${WRKSRC}/dox/netpipe.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.for doc in ${PORTDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/dox/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|