1 | # $Id: Portfile,v 1.3 2004/11/29 22:48:02 toby Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name netperf |
---|
5 | version 2.2pl5 |
---|
6 | revision 1 |
---|
7 | categories net |
---|
8 | platforms darwin freebsd |
---|
9 | maintainers digdog@opendarwin.org |
---|
10 | description a network performance benchmark |
---|
11 | long_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. |
---|
18 | homepage http://www.netperf.org/ |
---|
19 | master_sites ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/archive |
---|
20 | checksums md5 a4b0f4a5fbd8bec23002ad8023e01729 |
---|
21 | |
---|
22 | fetch.args --disable-epsv |
---|
23 | |
---|
24 | patch { |
---|
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 | |
---|
35 | use_configure no |
---|
36 | |
---|
37 | post-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 | } |
---|