Created
April 3, 2014 19:02
-
-
Save tlercher/9960719 to your computer and use it in GitHub Desktop.
Same as https://github.com/Homebrew/homebrew/blob/master/Library/Formula/nmap.rb but without openssl-support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Nmap < Formula | |
homepage 'http://nmap.org/' | |
head 'https://guest:@svn.nmap.org/nmap/', :using => :svn | |
url 'http://nmap.org/dist/nmap-6.40.tar.bz2' | |
sha1 'ee1bec1bb62045c7c1fc69ff183b2ae9b97bd0eb' | |
conflicts_with 'ndiff', :because => 'both install `ndiff` binaries' | |
fails_with :llvm do | |
build 2334 | |
end | |
def install | |
ENV.deparallelize | |
args = %W[ | |
--prefix=#{prefix} | |
--with-libpcre=included | |
--with-liblua=included | |
--without-openssl | |
--without-nmap-update | |
--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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment