Ticket #43077: Portfile

File Portfile, 1.0 KB (added by breun (Nils Breunese), 10 years ago)

First attempt at a Portfile for ngrok

Line 
1# $Id$
2
3PortSystem          1.0
4
5PortGroup           github 1.0
6github.setup        inconshreveable ngrok 1.6
7
8categories          net
9platforms           darwin
10license             Apache-2
11maintainers         breun.nl:nils
12description         Introspected tunnels to localhost
13long_description    Create a tunnel from the public internet to a port on your local machine, monitor the traffic and replay requests.
14homepage            https://ngrok.com/
15
16checksums           rmd160 41483d8857738969003ce36ba902eef9c9698cc9 \
17                    sha256 cff054e1247086e713ac3c87ed9dc0374d338836ce908daf9f23b64baa065cf8
18
19depends_build       port:go \
20                    port:mercurial \
21                    port:bzr
22
23use_configure       no
24
25destroot {
26    xinstall -m 755 -W ${worksrcpath}/bin \
27        ngrok \
28        ngrokd \
29        ${destroot}${prefix}/bin
30
31    set docdir ${prefix}/share/doc/${subport}
32    xinstall -d ${destroot}${docdir}
33    xinstall -m 644 -W ${worksrcpath}/docs \
34        CHANGELOG.md \
35        SELFHOSTING.md \
36        ${destroot}${docdir}
37}