Ticket #52198: Portfile-V4

File Portfile-V4, 3.2 KB (added by ken-cunningham-webuse, 8 years ago)

sshuttle working portfile - no python portgroup

Line 
1# $Id: Portfile 135117 2015-04-15 19:51:30Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               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
9github.setup            apenwarr sshuttle 29d2e06bf5cd3d575015e23c638ca9e5a10ee29c
10version                 0.61
11checksums               rmd160  dd6d39ae8a6e1c1726b3e576389b7fc323a2ee6f \
12                        sha256  20f9762eadd45cc4f83764b29329a48e685372e33e00e2f00ea40b3b12f39b0c
13
14categories              net python
15license                 GPL-2
16platforms               darwin
17maintainers             nomaintainer
18description             easy to use vpn tunnel over ssh
19
20long_description    Create a transparent VPN over ssh to a remote network, requiring only python support \
21on the host server. No IPsec, no PPTP, and admin access not required.
22
23supported_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
30pre-fetch {
31ui_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'
33I simply haven't been able to figure out how to do this magically using MacPorts, though
34so at present, if you want to use this portfile, that's what you'll have to do."
35}
36
37depends_build           port:py27-markdown \
38                        port:py27-beautifulsoup
39pre-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}
42use_configure           no
43
44set appname             "Sshuttle VPN.app"
45destroot {
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
73notes \
74"\n\nWhat now? Try the MacOS GUI in ${applications_dir}/${appname}
75or run sshuttle: sshuttle --dns -r HOSTNAME 0/0 \
76\nor check the installed documentation with -man sshuttle- "