blob: 7ee01942cc7fe2b4954a9096ff3c38bdb5542f4b (
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
|
# New ports collection makefile for: netperf
# Date created: 19 July 1996
# Whom: koshy
#
# $FreeBSD$
#
PORTNAME= netperf
PORTVERSION= 2.1.3
CATEGORIES= benchmarks ipv6
MASTER_SITES= ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/
DISTNAME= netperf-2.1pl3
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
PATCHFILES= netperf-21pl3-20000721.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= fenner@freebsd.org
MAKEFILE= makefile
MAN1= netperf.1 netserver.1
SCRIPTS= arr_script snapshot_script tcp_range_script tcp_rr_script \
tcp_stream_script udp_rr_script udp_stream_script
.include <bsd.port.pre.mk>
BUILD_DEFS+= USE_INET6
.if ${OSVERSION} >= 400014
CFLAGS+= -DDO_IPV6
.endif
post-patch:
.for i in ${SCRIPTS}
@${MV} ${WRKSRC}/$i ${WRKSRC}/$i.pre-sed
@${SED} -e 's^%%PREFIX%%^${PREFIX}^' ${WRKSRC}/$i.pre-sed > ${WRKSRC}/$i
.endfor
post-install:
strip ${PREFIX}/netperf/netperf
strip ${PREFIX}/netperf/netserver
${INSTALL_MAN} ${WRKSRC}/netperf.man ${PREFIX}/man/man1/netperf.1
${INSTALL_MAN} ${WRKSRC}/netserver.man ${PREFIX}/man/man1/netserver.1
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/netperf
${INSTALL_DATA} ${WRKSRC}/netperf.ps ${PREFIX}/share/doc/netperf
${GZIP_CMD} ${PREFIX}/share/doc/netperf/netperf.ps
.endif
.include <bsd.port.post.mk>
|