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

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         Nmap-Scanner 1.0
revision            5

license             {Artistic-1 GPL}
maintainers         nomaintainer

description         Perform and manipulate nmap scans using perl

long_description    Nmap::Scanner perlifies the output of the network mapping tool \
                    nmap (http://www.insecure.org/nmap/), creating lists of model \
                    objects in batch scan mode or firing events when significant \
                    scanning events occur in event scan mode.

platforms           {darwin any}
checksums           md5  af12a5cfeaca9b42eb6497e1cf7655eb

if {${perl5.major} != ""} {
    depends_lib-append \
                    port:nmap \
                    port:p${perl5.major}-class-generate \
                    port:p${perl5.major}-libwww-perl \
                    port:p${perl5.major}-xml-libxml \
                    port:p${perl5.major}-xml-sax \
                    port:p${perl5.major}-xml-sax-expat

    post-patch {
        reinplace "s|/usr/local|${prefix}|g" \
            ${worksrcpath}/lib/Nmap/Scanner/Scanner.pm
    }
    
    supported_archs noarch
}
