Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
iperf3: Enable livecheck for iperf3-devel
Restructure the port so that directives that only apply to the main port
are enclosed in an "if {${subport} eq ${name}}" block.

Closes: https://trac.macports.org/ticket/56581
  • Loading branch information
ryandesign committed Jun 2, 2018
1 parent 4c13d30 commit b6e0c92
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions net/iperf3/Portfile
Expand Up @@ -3,7 +3,6 @@
PortSystem 1.0
PortGroup github 1.0

github.setup esnet iperf 3.5
name iperf3
categories net
platforms darwin
Expand All @@ -16,11 +15,6 @@ long_description ${name} is a tool for active measurements of the maximum \
buffers. For each test it reports the bandwidth, loss, \
and other parameters.

conflicts ${name}-devel

checksums rmd160 f2e3512c38dd508f92dfc35d59a6c9d58d0c8c3d \
sha256 2f7b2fe2bf7ea2212ef11b3d58cb02aa8b325429124db5956452c9bff8d43046

depends_lib-append path:lib/libssl.dylib:openssl

test.run yes
Expand All @@ -33,6 +27,15 @@ post-destroot {
${destroot}${prefix}/share/doc/${name}
}

if {${subport} eq ${name}} {
github.setup esnet iperf 3.5

checksums rmd160 f2e3512c38dd508f92dfc35d59a6c9d58d0c8c3d \
sha256 2f7b2fe2bf7ea2212ef11b3d58cb02aa8b325429124db5956452c9bff8d43046

conflicts ${name}-devel
}

subport ${name}-devel {
github.setup esnet iperf 3e58489a5823126fd1d51fcfb74994f9e8fe4e86
version 20180323
Expand All @@ -41,6 +44,4 @@ subport ${name}-devel {
sha256 48fa6d02db5e82da71e5cecf61c9a3ff45d055a7328b5173a374963befe7e75c

conflicts ${name}

livecheck.type none
}

0 comments on commit b6e0c92

Please sign in to comment.