# $Id: Portfile,v 1.45 2006/06/13 21:09:54 dluke Exp $

PortSystem 1.0
name		nmap
version		4.10
categories	net
maintainers	opendarwin.org@darkart.com dluke@geeklair.net
description	Port scanning utility for large networks
homepage	http://nmap.org/
platforms	darwin freebsd

long_description Nmap is a utility for port scanning large networks, although \
		 it works fine for single hosts. The guiding philosophy for \
		 the creation of nmap was TMTOWTDI (There's More Than One Way \
		 To Do It). This is the Perl slogan, but it is equally \
		 applicable to scanners. Sometimes you need speed, other \
		 times you may need stealth. In some cases, bypassing \
		 firewalls may be required. Not to mention the fact that you \
		 may want to scan different protocols (UDP, TCP, ICMP, etc.). \
		 You just can't do all this with one scanning mode. And you \
		 don't want to have 10 different scanners around, all with \
		 different interfaces and capabilities.

master_sites	http://download.insecure.org/nmap/dist/ \
		ftp://nuxi.ucdavis.edu/pub/misc/

checksums	md5 4c3fc7d227034892ade86892d8306b2a \
		sha1 ee63328b3ff02dd75bf3e98a8506ccfdaeeb623b

depends_lib	port:libpcap \
		port:openssl \
		port:pcre \
		port:zlib

use_bzip2	yes

configure.args	--without-nmapfe \
		--mandir=\\\${prefix}/share/man \
		--infodir=\\\${prefix}/share/info \
		--with-openssl=${prefix} \
		--with-libpcre=${prefix}

variant gtk2 {	configure.args-delete --without-nmapfe
		depends_lib-append lib:libgtk.2:gtk2
		}

variant no_ssl	{
			configure.args-delete --with-openssl=${prefix}
			depends_lib-delete port:openssl
		}

variant no_pcre	{
			configure.args-delete --with-pcre=${prefix}
			depends_lib-delete port:pcre
		}

