# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                corkscrew
categories          net
version             2.0
revision            1
maintainers         {wohner.eu:normen @Gminfly} openmaintainer
# Does not specify whether GPL-2-only or GPL-2-or-later
license             GPL-2

description         Tunnel SSH through HTTP proxies.
long_description    Corkscrew is a tool for tunneling SSH through HTTP proxies.

homepage            https://web.archive.org/web/20160706023057/http://www.agroman.net/corkscrew/
master_sites        https://web.archive.org/web/20150315012206/http://www.agroman.net/corkscrew/

checksums           md5     35df77e7f0e59c0ec4f80313be52c10a \
                    rmd160  c7b4ae4cc4df4b33f8ae9be19305004fd0ae20a0 \
                    sha256  0d0fcbb41cba4a81c4ab494459472086f377f9edb78a2e2238ed19b58956b0be \
                    size    56749

depends_build-append \
                    port:automake

patchfiles          implicit.patch

post-patch {
    set automake_dirs [glob -directory ${prefix}/share automake-*]
    set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
    copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub \
        ${worksrcpath}
}

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} COPYING README TODO ${destroot}${docdir}
}

livecheck.type      none
