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

name                pssh
python.default_version 27
version             2.3.1
revision            1
categories          sysutils net
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         {dports @drkp} openmaintainer
depends_build       port:py${python.default_version}-setuptools

description         parallel versions of ssh tools
long_description    Commands for performing ssh operations in parallel  \
                    against a group of machines. Includes pssh (run     \
                    commands on multiple hosts), pscp (copy files to    \
                    multiple hosts), prsync (rsync files to multiple    \
                    hosts), pslurp (copy files from multiple hosts to a \
                    single destination), and pnuke (kill processes on   \
                    multiple hosts.)

homepage            https://code.google.com/p/parallel-ssh/
master_sites        googlecode:parallel-ssh

checksums           rmd160  6c5f238103a534aa73e4c2852be03d60a711a8bd \
                    sha256  539f8d8363b722712310f3296f189d1ae8c690898eca93627fc89a9cb311f6b4

# link manpages too
post-destroot {
    xinstall -d "${destroot}${prefix}/man/man1"
    foreach man [glob -nocomplain -tails -directory "${destroot}${python.prefix}/man/man1" *] {
        ln -s "${python.prefix}/man/man1/${man}" "${destroot}${prefix}/man/man1/${man}"
    }
}