homebrew-core/Formula/nmap.rb

45 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Nmap < Formula
2014-04-13 09:57:18 +00:00
homepage "http://nmap.org/"
head "https://guest:@svn.nmap.org/nmap/", :using => :svn
2014-04-18 17:29:38 +00:00
url "http://nmap.org/dist/nmap-6.46.tar.bz2"
sha1 "e19dd4d35d76b24b084665b90c423f53bc7fdcfe"
2012-05-10 14:10:12 +00:00
bottle do
sha1 "078e882985fe74919fa280067244a5400ad8ad63" => :mavericks
sha1 "f0a1dbc5e190c5da169bb6ab22f438a0be3ac845" => :mountain_lion
sha1 "8617fe3e4e3ddb50902968d8323a4cc9bef92bd1" => :lion
end
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
2014-02-26 05:59:50 +00:00
--with-openssl=#{Formula["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