1 | # $Id: Portfile 135117 2015-04-15 19:51:30Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup github 1.0 |
---|
5 | github.setup apenwarr sshuttle 29d2e06bf5cd3d575015e23c638ca9e5a10ee29c |
---|
6 | version 0.61 |
---|
7 | name sshuttle |
---|
8 | categories net python |
---|
9 | license GPL-2 |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | description easy to use vpn tunnel over ssh |
---|
13 | |
---|
14 | long_description Create a transparent VPN over ssh to a remote network, requiring only python support \ |
---|
15 | on the host server. No IPsec, no PPTP, and admin access not required. |
---|
16 | |
---|
17 | homepage https://github.com/apenwarr/sshuttle |
---|
18 | |
---|
19 | checksums rmd160 dd6d39ae8a6e1c1726b3e576389b7fc323a2ee6f \ |
---|
20 | sha256 20f9762eadd45cc4f83764b29329a48e685372e33e00e2f00ea40b3b12f39b0c |
---|
21 | |
---|
22 | depends_build port:py27-markdown \ |
---|
23 | port:py27-beautifulsoup |
---|
24 | |
---|
25 | use_configure no |
---|
26 | |
---|
27 | # override "make install" as this command doesn't exist in this port |
---|
28 | destroot.cmd /usr/bin/true |
---|
29 | |
---|
30 | # move the relevant parts into place |
---|
31 | set appname "Sshuttle VPN.app" |
---|
32 | post-destroot { |
---|
33 | xinstall -d ${destroot}${prefix}/libexec/sshuttle/ |
---|
34 | xinstall {*}[glob ${worksrcpath}/*.py] \ |
---|
35 | ${destroot}${prefix}/libexec/sshuttle |
---|
36 | |
---|
37 | xinstall -d ${destroot}${prefix}/libexec/sshuttle/compat/ |
---|
38 | xinstall {*}[glob ${worksrcpath}/compat/*.py] \ |
---|
39 | ${destroot}${prefix}/libexec/sshuttle/compat |
---|
40 | |
---|
41 | xinstall -d ${destroot}${prefix}/libexec/sshuttle/version/ |
---|
42 | xinstall {*}[glob ${worksrcpath}/version/*.py] \ |
---|
43 | ${destroot}${prefix}/libexec/sshuttle/version |
---|
44 | |
---|
45 | xinstall -d ${destroot}${prefix}/share/doc/sshuttle/ |
---|
46 | xinstall ${worksrcpath}/Documentation/sshuttle.md \ |
---|
47 | ${destroot}${prefix}/share/doc/sshuttle/ |
---|
48 | |
---|
49 | xinstall ${worksrcpath}/Documentation/sshuttle.8 ${destroot}${prefix}/share/man/man8/ |
---|
50 | |
---|
51 | xinstall ${worksrcpath}/sshuttle \ |
---|
52 | ${destroot}${prefix}/libexec/sshuttle |
---|
53 | |
---|
54 | copy ${worksrcpath}/ui-macos/${appname} ${destroot}${applications_dir} |
---|
55 | |
---|
56 | ln -sf ${prefix}/libexec/sshuttle/sshuttle \ |
---|
57 | ${destroot}${prefix}/bin/sshuttle |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | } |
---|
62 | |
---|
63 | notes \ |
---|
64 | "\n\nWhat now? Try the MacOS GUI in ${applications_dir}/Sshuttle VPN.app |
---|
65 | or run sshuttle: sshuttle --dns -r HOSTNAME 0/0 \ |
---|
66 | \nor check the installed documentation with -man sshuttle- " |
---|