blob: 42531197670f27609071a499935cf6b4fab0dd19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
require 'formula'
class Nmap <Formula
url 'http://nmap.org/dist/nmap-5.51.tar.bz2'
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
ENV.deparallelize
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
|