Commits
Aaron Madlon-Kay authored and Perry E. Metzger committed c551a9c1c45
1 + | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
2 + | |
3 + | PortSystem 1.0 |
4 + | PortGroup github 1.0 |
5 + | |
6 + | github.setup Shopify toxiproxy 2.1.3 v |
7 + | categories net |
8 + | platforms darwin |
9 + | maintainers {@amake madlon-kay.com:aaron+macports} openmaintainer |
10 + | license MIT |
11 + | |
12 + | description Toxiproxy is a framework for simulating network conditions. |
13 + | |
14 + | long_description Toxiproxy is a framework for simulating network conditions. \ |
15 + | It's made specifically to work in testing, CI and development environments, \ |
16 + | supporting deterministic tampering with connections, but with support for \ |
17 + | randomized chaos and customization. Toxiproxy is the tool you need to prove \ |
18 + | with tests that your application doesn't have single points of failure. |
19 + | |
20 + | depends_build port:go |
21 + | use_configure no |
22 + | |
23 + | checksums rmd160 3b77a1fa1ca0b922140155b222ece12075f9a375 \ |
24 + | sha256 a56767e7209bd97675800c91c5b4d51c39992fe0811cf2a6cbfa7f1313ebde34 |
25 + | |
26 + | post-extract { |
27 + | xinstall -d ${worksrcpath}/src/github.com/${github.author}/ |
28 + | ln -sf ${worksrcpath} ${worksrcpath}/src/github.com/${github.author}/${github.project} |
29 + | # `go build` wants deps in /vendor/src but they are in /vendor for some reason |
30 + | ln -sf ${worksrcpath} ${worksrcpath}/vendor/src |
31 + | } |
32 + | |
33 + | build.cmd make |
34 + | build.target darwin |
35 + | build.env GOPATH=${worksrcpath} \ |
36 + | CC=${configure.cc} |
37 + | |
38 + | destroot { |
39 + | set arch darwin-amd64 |
40 + | xinstall -m 755 ${worksrcpath}/tmp/build/${name}-server-${arch} \ |
41 + | ${destroot}${prefix}/bin/${name}-server |
42 + | xinstall -m 755 ${worksrcpath}/tmp/build/${name}-cli-${arch} \ |
43 + | ${destroot}${prefix}/bin/${name}-cli |
44 + | } |