homebrew-core/Formula/nmap.rb

36 lines
830 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Nmap < Formula
homepage 'http://nmap.org/6/'
url 'http://nmap.org/dist/nmap-6.01.tar.bz2'
md5 'a1a71940f238abb835dbf3ee7412bcea'
2012-05-10 14:10:12 +00:00
head 'https://guest:@svn.nmap.org/nmap/', :using => :svn
# Leopard's version of OpenSSL isn't new enough
2011-04-08 18:16:37 +00:00
depends_on "openssl" if MacOS.leopard?
fails_with :llvm do
build 2334
end
2011-03-21 21:24:22 +00:00
def install
2009-12-28 19:12:45 +00:00
ENV.deparallelize
2010-07-04 05:37:48 +00:00
args = %W[--prefix=#{prefix}
--with-libpcre=included
--with-liblua=included
--without-zenmap
--disable-universal]
2011-04-08 18:16:37 +00:00
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