1 | # $Id: Portfile 135117 2015-04-15 19:51:30Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup github 1.0 |
---|
5 | |
---|
6 | # I can't get python portgroup to work right -- it overrides the build commands and scrambles everything up |
---|
7 | #PortGroup python 1.0 |
---|
8 | |
---|
9 | github.setup apenwarr sshuttle 29d2e06bf5cd3d575015e23c638ca9e5a10ee29c |
---|
10 | version 0.61 |
---|
11 | checksums rmd160 dd6d39ae8a6e1c1726b3e576389b7fc323a2ee6f \ |
---|
12 | sha256 20f9762eadd45cc4f83764b29329a48e685372e33e00e2f00ea40b3b12f39b0c |
---|
13 | |
---|
14 | categories net python |
---|
15 | license GPL-2 |
---|
16 | platforms darwin |
---|
17 | maintainers nomaintainer |
---|
18 | description easy to use vpn tunnel over ssh |
---|
19 | |
---|
20 | long_description Create a transparent VPN over ssh to a remote network, requiring only python support \ |
---|
21 | on the host server. No IPsec, no PPTP, and admin access not required. |
---|
22 | |
---|
23 | supported_archs noarch |
---|
24 | |
---|
25 | # this port requires python27 to be selected as the active python with |
---|
26 | # 'sudo port select python python27' and 'sudo port select python2 python27' |
---|
27 | # I simply haven't been able to figure out how to do this magically using MacPorts, though |
---|
28 | # so at present, if you want to use this portfile, that's what you'll have to do |
---|
29 | |
---|
30 | pre-fetch { |
---|
31 | ui_msg "This port requires python27 to be selected as the active python with |
---|
32 | 'sudo port select python python27' and 'sudo port select python2 python27' |
---|
33 | I simply haven't been able to figure out how to do this magically using MacPorts, though |
---|
34 | so at present, if you want to use this portfile, that's what you'll have to do." |
---|
35 | } |
---|
36 | |
---|
37 | depends_build port:py27-markdown \ |
---|
38 | port:py27-beautifulsoup |
---|
39 | pre-build { |
---|
40 | ui_msg "There is a noticable pause that will occur during the build phase. Do not abort the build. It will ultimately finish correctly." |
---|
41 | } |
---|
42 | use_configure no |
---|
43 | |
---|
44 | set appname "Sshuttle VPN.app" |
---|
45 | destroot { |
---|
46 | xinstall -d ${destroot}${prefix}/libexec/sshuttle/ |
---|
47 | xinstall {*}[glob ${worksrcpath}/*.py] \ |
---|
48 | ${destroot}${prefix}/libexec/sshuttle |
---|
49 | |
---|
50 | xinstall -d ${destroot}${prefix}/libexec/sshuttle/compat/ |
---|
51 | xinstall {*}[glob ${worksrcpath}/compat/*.py] \ |
---|
52 | ${destroot}${prefix}/libexec/sshuttle/compat |
---|
53 | |
---|
54 | xinstall -d ${destroot}${prefix}/libexec/sshuttle/version/ |
---|
55 | xinstall {*}[glob ${worksrcpath}/version/*.py] \ |
---|
56 | ${destroot}${prefix}/libexec/sshuttle/version |
---|
57 | |
---|
58 | xinstall -d ${destroot}${prefix}/share/doc/sshuttle/ |
---|
59 | xinstall ${worksrcpath}/Documentation/sshuttle.md \ |
---|
60 | ${destroot}${prefix}/share/doc/sshuttle/ |
---|
61 | |
---|
62 | xinstall ${worksrcpath}/Documentation/sshuttle.8 ${destroot}${prefix}/share/man/man8/ |
---|
63 | |
---|
64 | xinstall ${worksrcpath}/sshuttle \ |
---|
65 | ${destroot}${prefix}/libexec/sshuttle |
---|
66 | |
---|
67 | copy ${worksrcpath}/ui-macos/${appname} ${destroot}${applications_dir} |
---|
68 | |
---|
69 | ln -sf ${prefix}/libexec/sshuttle/sshuttle \ |
---|
70 | ${destroot}${prefix}/bin/sshuttle |
---|
71 | } |
---|
72 | |
---|
73 | notes \ |
---|
74 | "\n\nWhat now? Try the MacOS GUI in ${applications_dir}/${appname} |
---|
75 | or run sshuttle: sshuttle --dns -r HOSTNAME 0/0 \ |
---|
76 | \nor check the installed documentation with -man sshuttle- " |
---|