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 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | github.setup mitmproxy mitmproxy 0.17.1 v |
---|
8 | github.tarball_from releases |
---|
9 | categories net |
---|
10 | platforms darwin |
---|
11 | conflicts py-mitmproxy py27-mitmproxy py26-mitmproxy |
---|
12 | |
---|
13 | maintainers scurr.me:macports \ |
---|
14 | openmaintainer |
---|
15 | |
---|
16 | description mitmproxy is an interactive, SSL-capable intercepting proxy with a console interface. |
---|
17 | long_description ${description} |
---|
18 | homepage https://mitmproxy.org/ |
---|
19 | |
---|
20 | distname ${name}-${version}-osx |
---|
21 | |
---|
22 | checksums rmd160 123aa21e5b2b10f00fcf944215081d8e4ed133e8 \ |
---|
23 | sha256 dd5b2779f078c3208c02c673ee6343bf7aedf1c1759df20f8103241147d833ea |
---|
24 | |
---|
25 | worksrcdir {} |
---|
26 | |
---|
27 | use_configure no |
---|
28 | |
---|
29 | build {} |
---|
30 | |
---|
31 | destroot { |
---|
32 | xinstall -m 750 ${worksrcpath}/mitmdump ${destroot}${prefix}/bin |
---|
33 | xinstall -m 750 ${worksrcpath}/mitmproxy ${destroot}${prefix}/bin |
---|
34 | } |
---|
35 | |
---|
36 | post-activate { |
---|
37 | system "/usr/libexec/ApplicationFirewall/socketfilterfw --add ${prefix}/bin/mitmdump" |
---|
38 | system "/usr/libexec/ApplicationFirewall/socketfilterfw --add ${prefix}/bin/mitmproxy" |
---|
39 | system "/usr/libexec/ApplicationFirewall/socketfilterfw --unblockapp ${prefix}/bin/mitmdump" |
---|
40 | system "/usr/libexec/ApplicationFirewall/socketfilterfw --unblockapp ${prefix}/bin/mitmproxy" |
---|
41 | } |
---|
42 | |
---|
43 | pre-deactivate { |
---|
44 | system "/usr/libexec/ApplicationFirewall/socketfilterfw --remove ${prefix}/bin/mitmdump" |
---|
45 | system "/usr/libexec/ApplicationFirewall/socketfilterfw --remove ${prefix}/bin/mitmproxy" |
---|
46 | } |
---|