homebrew-core/Formula/nmap.rb
timothykang 2d31c87db1 nmap: Add build flag '--without-nmap-update'
Without SVN installed, running nmap causes it to complain that
'libsvn_client-1.0.dylib' isn't loaded, which the nmap-update component
depends on to connect to https://svn.nmap.org/updates to get NSE script
updates.

Since it looks like https://svn.nmap.org/updates is only accessible to
primary nmap developers at the moment, build nmap without nmap-update
(rather than add SVN as a dependency).

Closes Homebrew/homebrew#26386.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-05 16:18:35 -05:00

38 lines
850 B
Ruby

require 'formula'
class Nmap < Formula
homepage 'http://nmap.org/'
head 'https://guest:@svn.nmap.org/nmap/', :using => :svn
url 'http://nmap.org/dist/nmap-6.40.tar.bz2'
sha1 'ee1bec1bb62045c7c1fc69ff183b2ae9b97bd0eb'
depends_on "openssl"
conflicts_with 'ndiff', :because => 'both install `ndiff` binaries'
fails_with :llvm do
build 2334
end
def install
ENV.deparallelize
args = %W[
--prefix=#{prefix}
--with-libpcre=included
--with-liblua=included
--with-openssl=#{Formula.factory("openssl").prefix}
--without-nmap-update
--without-zenmap
--disable-universal
]
system "./configure", *args
system "make" # separate steps required otherwise the build fails
system "make install"
end
test do
system "#{bin}/nmap", '-p80,443', 'google.com'
end
end