# $Id: Portfile 80918 2011-07-21 00:48:27Z jmr@macports.org $

PortSystem        1.0
PortGroup         python24 1.0

name              py-paramiko
version           1.7.7.1
categories        python net security
license           LGPL-2.1+
platforms         darwin
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           md5     ce8e2c254378312a264206f65c354d72 \
                    sha1    9b40f1757743793e64c935192a474e7307445438 \
                    rmd160  4b08451a9d73d3b62d1e4b43fbb92108a78ff527

depends_lib-append  port:py-crypto

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

livecheck.type    regex
livecheck.url     ${homepage}
livecheck.regex   {paramiko ([0-9]+\.[0-9]+\.[0-9]+)}
