2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-13 04:28:04 +00:00
|
|
|
|
|
|
|
class Nmap <Formula
|
2010-07-04 05:37:48 +00:00
|
|
|
url 'http://nmap.org/dist/nmap-5.21.tar.bz2'
|
|
|
|
homepage 'http://nmap.org/5/'
|
|
|
|
md5 'f77fa51d89ab27d35e5cd87bb086b858'
|
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
|
|
|
|
2010-07-22 22:42:01 +00:00
|
|
|
# There are reports that this is needed for sudo. See:
|
|
|
|
# http://github.com/mxcl/homebrew/issues/issue/1270
|
|
|
|
ENV['CFLAGS'] = "-m32 -O2"
|
|
|
|
ENV['LDFLAGS'] = "-m32 -O2"
|
|
|
|
ENV['CXXFLAGS'] = "-m32 -O2"
|
|
|
|
|
2010-07-04 05:37:48 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--without-zenmap"
|
2009-09-13 04:28:04 +00:00
|
|
|
system "make"
|
|
|
|
system "make install" # seperate steps required otherwise the build fails
|
|
|
|
end
|
|
|
|
end
|