# -*- 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
# $Id: Portfile 89519 2012-02-01 16:40:47Z jwa@macports.org $

PortSystem        1.0
PortGroup         python 1.0

name              py-paramiko
version           1.7.7.1
categories        python net security
license           LGPL-2.1+
platforms         darwin
python.versions		24 25 26 27
supported_archs   noarch
maintainers       jwa openmaintainer

description       python library for making SSH2 connections
long_description  This is a library for making SSH2 connections (client \
    or server). Emphasis is on using SSH2 as an alternative to SSL for \
    making secure connections between python scripts. All major ciphers \
    and hash methods are supported. SFTP client and server mode are both \
    supported too.

homepage          http://www.lag.net/paramiko/
master_sites      ${homepage}download/
distname          paramiko-${version}

checksums           rmd160  4b08451a9d73d3b62d1e4b43fbb92108a78ff527 \
                    sha256  101e7642cbb59574539eaef537d0ef0bb54f1f987cc950f0ada0b050ac245eae

if {$subport != $name} {
    depends_lib-append  port:py${python.version}-crypto

    post-destroot {
        file delete -force ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${subport}
    }
}

livecheck.type    regex
livecheck.url     ${homepage}
livecheck.regex   {paramiko (\d+(?:\.\d+)*)}
