# $Id: Portfile 67068 2010-04-28 11:17:34Z ryandesign@macports.org $

PortSystem                      1.0
PortGroup                       perl5 1.0
perl5.setup                     Nmap-Scanner 1.0

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

depends_lib-append		port:nmap \
				port:p5-class-generate \
				port:p5-xml-libxml \
				port:p5-xml-sax

if {[info exists supported_archs]} {
    supported_archs noarch
} else {
    universal_variant no
}

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

}
