2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-13 04:28:04 +00:00
|
|
|
|
|
|
|
class Nmap <Formula
|
2011-01-30 13:05:15 +00:00
|
|
|
url 'http://nmap.org/dist/nmap-5.50.tar.bz2'
|
2010-07-04 05:37:48 +00:00
|
|
|
homepage 'http://nmap.org/5/'
|
2011-01-30 13:05:15 +00:00
|
|
|
md5 'a4df96e52cb52a1bbe76caace5f21388'
|
2009-09-13 04:28:04 +00:00
|
|
|
|
2011-02-06 18:26:23 +00:00
|
|
|
# namp needs newer version of openssl on Leopard
|
|
|
|
depends_on "openssl" if MACOS_VERSION < 10.6
|
|
|
|
|
2009-09-13 04:28:04 +00:00
|
|
|
def install
|
2010-06-16 18:50:36 +00:00
|
|
|
fails_with_llvm
|
2009-12-28 19:12:45 +00:00
|
|
|
ENV.deparallelize
|
2010-07-04 05:37:48 +00:00
|
|
|
|
2011-02-06 18:26:23 +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
|
2010-04-07 05:58:35 +00:00
|
|
|
system "make" # seperate steps required otherwise the build fails
|
|
|
|
system "make install"
|
2009-09-13 04:28:04 +00:00
|
|
|
end
|
|
|
|
end
|