source: trunk/dports/net/nmap/Portfile

Last change on this file was 154224, checked in by dluke@…, 9 months ago

nmap: version bump, update to 7.31

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 154224 2016-10-24 16:46:55Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            nmap
6version         7.31
7categories      net
8maintainers     darkart.com:opendarwin.org geeklair.net:dluke
9description     Port scanning utility for large networks
10license         {GPL-2 OpenSSLException}
11homepage        http://nmap.org/
12platforms       darwin freebsd
13
14long_description Nmap is a utility for port scanning large networks, although \
15                 it works fine for single hosts. The guiding philosophy for \
16                 the creation of nmap was TMTOWTDI (There's More Than One Way \
17                 To Do It). This is the Perl slogan, but it is equally \
18                 applicable to scanners. Sometimes you need speed, other \
19                 times you may need stealth. In some cases, bypassing \
20                 firewalls may be required. Not to mention the fact that you \
21                 may want to scan different protocols (UDP, TCP, ICMP, etc.). \
22                 You just can't do all this with one scanning mode. And you \
23                 don't want to have 10 different scanners around, all with \
24                 different interfaces and capabilities.
25
26master_sites    http://download.insecure.org/nmap/dist/ \
27                ftp://nuxi.ucdavis.edu/pub/misc/
28
29checksums       md5     f2f6660142a777862342a58cc54258ea \
30                sha1    9dcfc5bf599a4fe53ca9bfc53b1b9a2741bf1c6c \
31                rmd160  4d472089814057ee9e57fb1801a6eac91730a17c \
32                sha256  cb9f4e03c0771c709cd47dc8fc6ac3421eadbdd313f0aae52276829290583842
33
34depends_lib     port:libpcap \
35                port:zlib \
36                port:apr \
37
38use_bzip2       yes
39
40configure.args  --without-zenmap --without-ndiff \
41                --mandir=\\\${prefix}/share/man \
42                --infodir=\\\${prefix}/share/info \
43                --with-liblua=included \
44                --without-subversion
45               
46
47# nmap's configure script in nselib-bin does not respect --with-liblua=included
48# as with many ports, configure fails if nawk is installed, force use of system awk
49configure.env ac_cv_header_lua_h=no ac_cv_prog_AWK=awk
50
51use_parallel_build      no
52configure.ccache        no
53
54#- add back +ssl and +pcre once we remove the compatibility variants
55default_variants +subversion
56
57variant ssl description {build with ssl support} {
58                        configure.args-append --with-openssl=${prefix}
59                        depends_lib-append path:lib/libssl.dylib:openssl
60                }
61
62variant pcre description {build with pcre support} {
63                        configure.args-append --with-pcre=${prefix}
64                        depends_lib-append port:pcre
65                }
66
67variant subversion description {build with subversion (nmap-update) support} {
68                        configure.args-delete --without-subversion
69                        depends_lib-append port:subversion
70                }
71
72variant zenmap description {build zenmap in addition to nmap} {
73                        configure.args-delete --without-zenmap
74                        configure.python ${prefix}/bin/python2.7
75                        depends_lib-append port:py27-pygtk
76                }
77
78#- remove after March 2017, backwards compatibility for previous variants
79variant no_ssl description {Legacy compatibility variant} {}
80if {![variant_isset no_ssl]} {
81        default_variants +ssl
82}
83variant no_pcre description {Legacy compatibility variant} {}
84if {![variant_isset no_pcre]} {
85        default_variants +pcre
86}
Note: See TracBrowser for help on using the repository browser.