# -*- 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.4e
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            http://www.harding.motd.ca/autossh/
master_sites        ${homepage}
extract.suffix      .tgz

checksums           rmd160  b4b1689404cc96da50c6b0c5d0163c4399b5c2b5 \
                    sha256  9e8e10a59d7619176f4b986e256f776097a364d1be012781ea52e08d04679156

patchfiles          patch-Makefile.in.diff

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
}