# -*- 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
PortGroup           github   1.0
PortGroup           makefile 1.0

github.setup        six-ddc hss 1.9
github.tarball_from archive
revision            0

description         An interactive parallel ssh client featuring autocomplete \
                    and asynchronous execution.

long_description    hss is an interactive ssh client for multiple servers. \
                    It will provide almost the same experience as in the bash \
                    environment. It supports interactive input based on \
                    libreadline, history( responding to the C-r key), \
                    auto-completion from remote server on the tab key for \
                    commands and paths. The command is executed on all \
                    servers in parallel. Execution on one server does not \
                    need to wait for that on another server to finish before \
                    starting. So we can run a command on hundreds of servers \
                    at the same time.

categories          net
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
platforms           darwin freebsd linux

checksums           rmd160  fab69af6e59f4b1eb1230609436fe55fcca531fe \
                    sha256  d7846ee657fe6a600c7d6f8e91f17ffa238efcaeb6f79856caa9fdedd96e3bca \
                    size    12499

depends_lib-append  port:readline

build.args-append   INSTALL_BIN=${prefix}/bin

set hss_share_dir   ${prefix}/share/${name}

patchfiles          patch-Makefile.diff

destroot {
    xinstall -m 0755 -d ${destroot}${hss_share_dir}
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    xinstall -m 0644 ${worksrcpath}/hostfile.sample ${destroot}${hss_share_dir}
}

notes "Example configuration is present in: ${hss_share_dir}"
