2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-13 04:28:04 +00:00
|
|
|
|
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
|
|
|
|
url "http://nmap.org/dist/nmap-6.45.tar.bz2"
|
|
|
|
sha1 "3a634d319c57f6d93e5ccb69b45c133690d437e1"
|
2012-05-10 14:10:12 +00:00
|
|
|
|
2014-04-13 10:06:16 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "15741e8fb3f58776fd1245782585d832fe08c1bf" => :mavericks
|
|
|
|
sha1 "76ab79880f2ad3db2f965645aa8665d69442f137" => :mountain_lion
|
|
|
|
sha1 "276181d845c199735c559031acb893b5b27de561" => :lion
|
|
|
|
end
|
|
|
|
|
2014-01-22 00:33:49 +00:00
|
|
|
depends_on "openssl"
|
2011-02-06 18:26:23 +00:00
|
|
|
|
2013-11-13 04:48:13 +00:00
|
|
|
conflicts_with 'ndiff', :because => 'both install `ndiff` binaries'
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2334
|
|
|
|
end
|
2011-03-21 21:24:22 +00:00
|
|
|
|
2009-09-13 04:28:04 +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}
|
2014-02-03 19:49:33 +00:00
|
|
|
--without-nmap-update
|
2014-01-22 00:33:49 +00:00
|
|
|
--without-zenmap
|
|
|
|
--disable-universal
|
|
|
|
]
|
2011-02-06 18:26:23 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2012-01-04 06:05:05 +00:00
|
|
|
system "make" # separate steps required otherwise the build fails
|
2010-04-07 05:58:35 +00:00
|
|
|
system "make install"
|
2009-09-13 04:28:04 +00:00
|
|
|
end
|
2014-01-15 04:25:49 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/nmap", '-p80,443', 'google.com'
|
|
|
|
end
|
2009-09-13 04:28:04 +00:00
|
|
|
end
|