# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 PortGroup github 1.0 github.setup mitmproxy mitmproxy 0.17.1 v name py-${github.project} categories-append net www platforms darwin supported_archs noarch license {GPL-3+ OpenSSLException} maintainers mdeaudelin.net:macports petr openmaintainer description SSL-capable man-in-the-middle proxy for HTTP long_description \ mitmproxy is an SSL-capable man-in-the-middle proxy for HTTP. It provides \ a console interface that allows traffic flows to be inspected and edited \ on the fly. mitmdump is the command-line version of mitmproxy, with the \ same functionality but without the user interface. Think tcpdump for HTTP. homepage http://mitmproxy.org/ checksums md5 954b5796ab36c6d7e5dad5775e7178a3 \ rmd160 6d28eec42f4e410775a8d394f6c12232652df691 \ sha256 9b1460be1cf16ceb8b89c11f8593ad2de16ec9ce238964f26eb36e1bcfb13f24 python.versions 27 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools depends_lib-append port:py${python.version}-asn1 \ port:py${python.version}-blinker \ port:py${python.version}-click \ port:py${python.version}-certifi \ port:py${python.version}-configargparse \ port:py${python.version}-construct \ port:py${python.version}-cryptography \ port:py${python.version}-flask \ port:py${python.version}-h2 \ port:py${python.version}-hpack \ port:py${python.version}-html2text \ port:py${python.version}-hyperframe \ port:py${python.version}-lxml \ port:py${python.version}-openssl \ port:py${python.version}-parsing \ port:py${python.version}-passlib \ port:py${python.version}-Pillow \ port:py${python.version}-pyperclip \ port:py${python.version}-requests \ port:py${python.version}-six \ port:py${python.version}-tornado \ port:py${python.version}-urwid \ port:py${python.version}-watchdog if { ${python.version} < 35 } { depends_lib-append \ port:py${python.version}-backports-ssl_match_hostname } patchfiles patch-setup.py.diff # Deactivation hack # Python package `netlib` has been merged into `mitmproxy`, after version 0.16. # This requires that that port `py27-netlib` is deacitavated. pre-activate { if {![catch {set installed [lindex [registry_active py${python.version}-netlib] 0]}]} { set _version [lindex $installed 1] if {[vercmp $_version 0.16] <= 0} { registry_deactivate_composite py${python.version}-netlib "" [list ports_nodepcheck 1] } } } livecheck.type none }