Ticket #52198: Portfile.3

File Portfile.3, 2.6 KB (added by ken-cunningham-webuse, 8 years ago)

Portfile v2 with whitespace fix

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