# -*- 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                autossh
version             1.4g
revision            0
categories          net sysutils
platforms           darwin freebsd
license             Permissive BSD
maintainers         nomaintainer

description         tool to restart terminated ssh sessions

long_description    autossh is a program to start a copy of ssh and monitor \
                    it, restarting it as necessary should it die or stop \
                    passing traffic.

homepage            https://www.harding.motd.ca/autossh/
master_sites        ${homepage}
extract.suffix      .tgz

checksums           rmd160  ca6f67ac9d50d0037a126d57544df2684eac7a27 \
                    sha256  5fc3cee3361ca1615af862364c480593171d0c54ec156de79fc421e31ae21277 \
                    size    67599

destroot.destdir    prefix=${destroot}${prefix} \
                    bindir=${destroot}${prefix}/bin \
                    mandir=${destroot}${prefix}/share/man \
                    datadir=${destroot}${prefix}/share

variant macports_ssh description {Use ssh from the openssh port} {
    depends_run-append port:openssh
    configure.args-append --with-ssh=${prefix}/bin/ssh
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)?\[a-z\])${extract.suffix}
