homebrew-core/Formula/nmap.rb
Preston Marshall 52d48cef60 nmap: Upgrade to 6.01
Closes Homebrew/homebrew#12977.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-06-22 17:44:14 -07:00

35 lines
830 B
Ruby

require 'formula'
class Nmap < Formula
homepage 'http://nmap.org/6/'
url 'http://nmap.org/dist/nmap-6.01.tar.bz2'
md5 'a1a71940f238abb835dbf3ee7412bcea'
head 'https://guest:@svn.nmap.org/nmap/', :using => :svn
# Leopard's version of OpenSSL isn't new enough
depends_on "openssl" if MacOS.leopard?
fails_with :llvm do
build 2334
end
def install
ENV.deparallelize
args = %W[--prefix=#{prefix}
--with-libpcre=included
--with-liblua=included
--without-zenmap
--disable-universal]
if MacOS.leopard?
openssl = Formula.factory('openssl')
args << "--with-openssl=#{openssl.prefix}"
end
system "./configure", *args
system "make" # separate steps required otherwise the build fails
system "make install"
end
end