diff options
| author | Adrian Petrescu | 2012-05-21 17:34:39 -0400 |
|---|---|---|
| committer | Jack Nagel | 2012-05-21 20:37:32 -0500 |
| commit | d5bf599207fe170b4995e036407b2e663e2825c6 (patch) | |
| tree | 8093f6043a43a9587e8a0619cc2179e1c97a4e5f | |
| parent | 49f51a4d00655fb8e66903b0f6c39a3b046083f8 (diff) | |
| download | homebrew-d5bf599207fe170b4995e036407b2e663e2825c6.tar.bz2 | |
nmap 6.0
Closes #12367.
[jn: force use of included libpcre and liblua]
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/nmap.rb | 42 |
1 files changed, 7 insertions, 35 deletions
diff --git a/Library/Formula/nmap.rb b/Library/Formula/nmap.rb index 4a457d33b..0b91808e2 100644 --- a/Library/Formula/nmap.rb +++ b/Library/Formula/nmap.rb @@ -1,9 +1,9 @@ require 'formula' class Nmap < Formula - homepage 'http://nmap.org/5/' - url 'http://nmap.org/dist/nmap-5.51.tar.bz2' - md5 '0b80d2cb92ace5ebba8095a4c2850275' + homepage 'http://nmap.org/6/' + url 'http://nmap.org/dist/nmap-6.00.tar.bz2' + md5 'e365cdada811c57e172b24b62746ab7d' head 'https://guest:@svn.nmap.org/nmap/', :using => :svn @@ -14,19 +14,13 @@ class Nmap < Formula build 2334 end - # The configure script has a C file to test for some functionality that uses - # void main(void). This does not compile with clang but does compile with - # GCC/gcc-llvm. This small patch fixes the issues so that the project will - # compile without issues with clang as well. See: - # https://github.com/mxcl/homebrew/issues/10300 - def patches - DATA - end - def install ENV.deparallelize - args = ["--prefix=#{prefix}", "--without-zenmap"] + args = %W[--prefix=#{prefix} + --with-libpcre=included + --with-liblua=included + --without-zenmap] if MacOS.leopard? openssl = Formula.factory('openssl') @@ -38,25 +32,3 @@ class Nmap < Formula system "make install" end end - -__END__ ---- nmap-5.51/nbase/configure 2012-02-18 02:40:16.000000000 -0700 -+++ nmap-5.51/nbase/configure.old 2012-02-18 02:40:01.000000000 -0700 -@@ -4509,7 +4509,7 @@ - #include <sys/socket.h> - #endif - --void main(void) { -+int main(void) { - struct addrinfo hints, *ai; - int error; - -@@ -4641,7 +4641,7 @@ - #include <netinet/in.h> - #endif - --void main(void) { -+int main(void) { - struct sockaddr_in sa; - char hbuf[256]; - int error; |
