# -*- 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 102867 2013-02-09 23:05:56Z and.damore@macports.org $

PortSystem          1.0
PortGroup           perl5 1.0

name                swaks
version             20130209.0
license             GPL-2
maintainers         and.damore openmaintainer
categories          perl
platforms           darwin
homepage            http://www.jetmore.org/john/code/swaks/ 
master_sites        $homepage
description         Swiss Army Knife for SMTP
long_description \
    {Swaks is a featureful, flexible, scriptable, transaction-oriented SMTP test \
    tool written and maintained by John Jetmore. Features include: SMTP extensions \
    including TLS, authentication, pipelining, and XCLIENT; Protocols including \
    SMTP, ESMTP, and LMTP; Transports including unix-domain sockets, \
    internet-domain sockets (IPv4 and IPv6), and pipes to spawned processes; \
    Completely scriptable configuration, with option specification via environment \
    variables, configuration files, and command line.}

checksums           md5     281af4f487ada31cda1408a19e8da5b4 \
                    sha1    059510eb2e359fa6dde822bec57bd0964ee11e7e \
                    rmd160  31b52e046ac4529056e66c6a8bcf1a2ac44c7a8f

supported_archs     noarch
use_configure       no
build { }
destroot {
    xinstall -d -m 755 ${destroot}${prefix}/share/doc
    xinstall -m 755 -W ${worksrcpath} swaks          ${destroot}${prefix}/bin/
    file copy          ${worksrcpath}/doc            ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} LICENSE README ${destroot}${prefix}/share/doc/${name} }

depends_lib-append  port:p${perl5.default_branch}-net-dns \
                    port:p${perl5.default_branch}-MIME-Base64 \
                    port:p${perl5.default_branch}-Digest-MD5 \
                    port:p${perl5.default_branch}-Digest-SHA \
                    port:p${perl5.default_branch}-Authen-SASL \
                    port:p${perl5.default_branch}-Net-DNS \
                    port:p${perl5.default_branch}-Net-SSLeay \
                    port:p${perl5.default_branch}-IO-Socket-INET6 \
                    port:p${perl5.default_branch}-Time-HiRes \
                    port:p${perl5.default_branch}-Sys-Hostname-long \

# The following are listed as dependencies but are actually missing from mports tree:
#                    port:p${perl5.default_branch}-Authen-NTLM \
#                    port:p${perl5.default_branch}-IPC-Open2 \
#                    port:p${perl5.default_branch}-IO-Socket \
#                    port:p${perl5.default_branch}-Time-Local \

