Ticket #52198: Portfile

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

sshuttle-portfile-version1-for-testing

Line 
1# $Id: Portfile 135117 2015-04-15 19:51:30Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               github 1.0
5github.setup            apenwarr sshuttle 29d2e06bf5cd3d575015e23c638ca9e5a10ee29c
6version                 0.61
7name                    sshuttle
8categories              net python
9license                 GPL-2
10platforms               darwin
11maintainers             nomaintainer
12description             easy to use vpn tunnel over ssh
13
14long_description    Create a transparent VPN over ssh to a remote network, requiring only python support \
15on the host server. No IPsec, no PPTP, and admin access not required.
16
17homepage                https://github.com/apenwarr/sshuttle
18
19checksums               rmd160  dd6d39ae8a6e1c1726b3e576389b7fc323a2ee6f \
20                        sha256  20f9762eadd45cc4f83764b29329a48e685372e33e00e2f00ea40b3b12f39b0c
21
22depends_build            port:py27-markdown \
23                         port:py27-beautifulsoup
24
25use_configure           no
26
27# override "make install" as this command doesn't exist in this port
28destroot.cmd            /usr/bin/true
29
30# move the relevant parts into place
31set appname             "Sshuttle VPN.app"
32post-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
63notes \
64"\n\nWhat now? Try the MacOS GUI in ${applications_dir}/Sshuttle VPN.app
65or run sshuttle: sshuttle --dns -r HOSTNAME 0/0 \
66\nor check the installed documentation with -man sshuttle- "