Ticket #2997: Portfile

File Portfile, 1.5 KB (added by digdog@…, 19 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.3 2004/11/29 22:48:02 toby Exp $
2
3PortSystem      1.0
4name            netperf
5version         2.2pl5
6revision        1
7categories      net
8platforms       darwin freebsd
9maintainers     digdog@opendarwin.org
10description     a network performance benchmark
11long_description        Netperf is a benchmark that can be used to measure \
12                        various aspects of networking performance. Currently, \
13                        its focus is on bulk data  transfer and \
14                        request/response performance using either TCP or UDP, \
15                        and the Berkeley Sockets interface. In addition, tests \
16                        for DLPI, the Fore ATM API, Unix Domain Sockets, and \
17                        HP HiPPI LLA may be conditionally compiled-in.
18homepage        http://www.netperf.org/
19master_sites    ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/archive
20checksums       md5 a4b0f4a5fbd8bec23002ad8023e01729
21
22fetch.args              --disable-epsv
23
24patch   {
25        reinplace "s|/opt/netperf|${destroot}${prefix}/bin|g" \
26                ${worksrcpath}/makefile
27        reinplace "s|-D\$(LOG_FILE) -DNEED_MAKEFILE_EDIT|-D\$(LOG_FILE)|g" \
28                ${worksrcpath}/makefile
29        reinplace "s|NETHOME=\".\"|NETHOME=\"${prefix}/bin\"|" \
30                ${worksrcpath}/snapshot_script ${worksrcpath}/tcp_range_script \
31                ${worksrcpath}/tcp_rr_script ${worksrcpath}/tcp_stream_script \
32                ${worksrcpath}/udp_rr_script ${worksrcpath}/udp_stream_script
33}
34
35use_configure   no
36
37post-destroot   {
38        xinstall -m 444 ${worksrcpath}/netperf.man \
39                ${destroot}${prefix}/share/man/man1/netperf.1
40        xinstall -m 444 ${worksrcpath}/netserver.man \
41                ${destroot}${prefix}/share/man/man1/netserver.1
42}