homebrew-core/Formula/nmap.rb

27 lines
639 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Nmap < Formula
url 'http://nmap.org/dist/nmap-5.51.tar.bz2'
2010-07-04 05:37:48 +00:00
homepage 'http://nmap.org/5/'
md5 '0b80d2cb92ace5ebba8095a4c2850275'
# namp needs newer version of openssl on Leopard
depends_on "openssl" if MACOS_VERSION < 10.6
def install
fails_with_llvm
2009-12-28 19:12:45 +00:00
ENV.deparallelize
2010-07-04 05:37:48 +00:00
args = ["--prefix=#{prefix}", "--without-zenmap"]
if MACOS_VERSION < 10.6
openssl = Formula.factory('openssl')
args << "--with-openssl=#{openssl.prefix}"
end
system "./configure", *args
system "make" # seperate steps required otherwise the build fails
system "make install"
end
end