homebrew-core/Formula/nmap.rb

39 lines
850 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Nmap < Formula
homepage 'http://nmap.org/'
2013-11-13 04:48:13 +00:00
head 'https://guest:@svn.nmap.org/nmap/', :using => :svn
url 'http://nmap.org/dist/nmap-6.40.tar.bz2'
sha1 'ee1bec1bb62045c7c1fc69ff183b2ae9b97bd0eb'
2012-05-10 14:10:12 +00:00
2014-01-22 00:33:49 +00:00
depends_on "openssl"
2013-11-13 04:48:13 +00:00
conflicts_with 'ndiff', :because => 'both install `ndiff` binaries'
fails_with :llvm do
build 2334
end
2011-03-21 21:24:22 +00:00
def install
2009-12-28 19:12:45 +00:00
ENV.deparallelize
2010-07-04 05:37:48 +00:00
2014-01-22 00:33:49 +00:00
args = %W[
--prefix=#{prefix}
--with-libpcre=included
--with-liblua=included
--with-openssl=#{Formula.factory("openssl").prefix}
--without-nmap-update
2014-01-22 00:33:49 +00:00
--without-zenmap
--disable-universal
]
system "./configure", *args
system "make" # separate steps required otherwise the build fails
system "make install"
end
test do
system "#{bin}/nmap", '-p80,443', 'google.com'
end
end