# -*- 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

github.setup        chaos pdsh 2.34 pdsh-
revision            0

categories          net
license             GPL-2+
maintainers         {gmail.com:james.trammell @jtrammel} {github.com:unixfan @unix-fan} openmaintainer

description         Parallel Distributed Shell

long_description    Pdsh is a high-performance, parallel remote shell utility. It uses a \
                    sliding window of threads to execute remote commands, conserving socket \
                    resources while allowing some connections to timeout if needed. It was \
                    originally written as a replacement for IBM's DSH on clusters at LLNL.

github.tarball_from releases

checksums           rmd160  7c95d30709e55da6e1edef0095f1696573920102 \
                    sha256  b47b3e4662736ef44b6fe86e3d380f95e591863e69163aa0592e9f9f618521e9 \
                    size    565741

depends_lib-append  port:ncurses \
                    port:readline

patchfiles          dynamic_lookup-11.patch

configure.args      --with-dshgroups \
                    --with-readline \
                    --with-ssh \
                    --without-rsh \
                    --mandir=${prefix}/share/man

variant genders description {genders cluster config} {
    depends_lib-append      port:genders
    configure.args-append   --with-genders
}
