# -*- 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 116131 2014-01-19 05:05:09Z jmr@macports.org $

PortSystem          1.0
PortGroup           perl5 1.0

name                swaks
version             20130209.0
revision            1
license             GPL-2
maintainers         nomaintainer
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

perl5.branches      5.16

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-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 \
