Ticket #51825: Portfile

File Portfile, 1.6 KB (added by iamGavinJ (GΛVĪN), 8 years ago)

Fixed tab/space indentation

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