homebrew-core/Formula/nmap.rb
2010-07-22 15:42:01 -07:00

22 lines
627 B
Ruby

require 'formula'
class Nmap <Formula
url 'http://nmap.org/dist/nmap-5.21.tar.bz2'
homepage 'http://nmap.org/5/'
md5 'f77fa51d89ab27d35e5cd87bb086b858'
def install
fails_with_llvm
ENV.deparallelize
# 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"
system "./configure", "--prefix=#{prefix}", "--without-zenmap"
system "make"
system "make install" # seperate steps required otherwise the build fails
end
end