nmap requires newer openssl on Leopard
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
338a559dda
commit
ffc6c43cae
1 changed files with 11 additions and 1 deletions
|
@ -5,11 +5,21 @@ class Nmap <Formula
|
|||
homepage 'http://nmap.org/5/'
|
||||
md5 'a4df96e52cb52a1bbe76caace5f21388'
|
||||
|
||||
# namp needs newer version of openssl on Leopard
|
||||
depends_on "openssl" if MACOS_VERSION < 10.6
|
||||
|
||||
def install
|
||||
fails_with_llvm
|
||||
ENV.deparallelize
|
||||
|
||||
system "./configure", "--prefix=#{prefix}", "--without-zenmap"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue