maintainers darkart.com:opendarwin.org {geeklair.net:dluke @danielluke}
description Port scanning utility for large networks
license {GPL-2 OpenSSLException}
homepage https://nmap.org/
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 https://nmap.org/dist/
checksums md5 d37b75b06d1d40f27b76d60db420a1f5 \
sha1 cfd8162192cfe2623f5770b8ed3c6237791ff6bf \
rmd160 f9e2a71733fd25db98681286c9c2bf23d41bdd71 \
sha256 fcfa5a0e42099e12e4bf7a68ebe6fde05553383a682e816a7ec9256ab4773faa \
depends_lib port:libpcap \
configure.args --without-zenmap --without-ndiff \
--mandir=\\\${prefix}/share/man \
--infodir=\\\${prefix}/share/info \
# https://trac.macports.org/ticket/58837
# build system does not pass the stdlib on the link line resulting in link errors
# for some build configurations using non-default stdlib settings
if {${os.platform} eq "darwin" && ${os.version} < 13} {
if {[string match *clang* ${configure.cxx}]} {
configure.ldflags-append -stdlib=${configure.cxx_stdlib}
# nmap's configure script in nselib-bin does not respect --with-liblua=included
configure.env ac_cv_header_lua_h=no
default_variants +subversion +ssl +pcre
variant ssl description {build with ssl support} {
configure.args-append --with-openssl=${prefix}