# $Id: Portfile 94655 2012-06-26 06:25:00Z jmr@macports.org $

PortSystem                      1.0
PortGroup                       perl5 1.0

perl5.branches      5.8 5.10 5.12 5.14 5.16
perl5.setup                     Nmap-Scanner 1.0
revision                        3

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
checksums                       md5  af12a5cfeaca9b42eb6497e1cf7655eb

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

supported_archs noarch

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

}
}
