From 4ab5f8a36cdeda9c054172836ae169060f6f6d2d Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Wed, 11 Jan 2012 12:15:58 -0600 Subject: [PATCH] Ettercap 0.7.4 This also removes the old '-ng' formula, since the name seems to have changed to have a suffix of 'Lazarus' Signed-off-by: Adam Vandenberg --- Formula/ettercap-ng.rb | 59 ------------------------------------------ Formula/ettercap.rb | 45 ++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 59 deletions(-) delete mode 100644 Formula/ettercap-ng.rb create mode 100644 Formula/ettercap.rb diff --git a/Formula/ettercap-ng.rb b/Formula/ettercap-ng.rb deleted file mode 100644 index d504d686bc..0000000000 --- a/Formula/ettercap-ng.rb +++ /dev/null @@ -1,59 +0,0 @@ -require 'formula' - -class EttercapNg < Formula - url 'http://downloads.sourceforge.net/ettercap/ettercap-NG-0.7.3.tar.gz' - homepage 'http://ettercap.sourceforge.net/' - md5 '28fb15cd024162c55249888fe1b97820' - - depends_on 'pcre' - depends_on 'libnet' - - # - # Include various macports patches: http://trac.macports.org/export/61709/trunk/dports/net/ettercap-ng/files/ - # I didn't write the macports patches, but they seem to be necessary. - # Associated discussions: - # http://thnetos.wordpress.com/2007/08/10/how-to-compile-ettercap-ng-073-on-mac-osx-when-you-get-that-annoying-pthread-error/ - # http://thnetos.wordpress.com/2007/11/15/compile-ettercap-ng-073-natively-on-leopard-fix/ - # http://trac.macports.org/ticket/3031 - # http://trac.macports.org/ticket/21209 - # - def patches - { :p0 => [ - 'http://trac.macports.org/export/61709/trunk/dports/net/ettercap-ng/files/patch-configure', - 'http://trac.macports.org/export/61709/trunk/dports/net/ettercap-ng/files/patch-src-interfaces-curses-widgets-wdg.h', - 'http://trac.macports.org/export/61709/trunk/dports/net/ettercap-ng/files/patch-src-Makefile.in', - 'http://trac.macports.org/export/61709/trunk/dports/net/ettercap-ng/files/patch-src__protocols__ec_tcp.c', - # Fixes missing symbols, libwdg doesn't seem to be linked in otherwise. I'm not even sure the macports package - # will compile without this, haven't sullied my hands with an attempt though. :) - DATA - ]} - end - - def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--mandir=#{man}", - "--infodir=#{info}", - "--disable-gtk", - "--disable-plugins", - "--with-openssl=/usr", - "--with-libpcap=/usr", - "--with-libncurses=/usr", - "--with-libpcre=#{HOMEBREW_PREFIX}", - "--with-libnet=#{HOMEBREW_PREFIX}" - system "make install" - end -end - -__END__ ---- src/Makefile.in 2009-12-20 14:09:50.000000000 -0500 -+++ src/Makefile.in.new 2009-12-20 14:10:42.000000000 -0500 -@@ -47,7 +47,7 @@ - bin_PROGRAMS = ettercap$(EXEEXT) - @HAVE_DN_EXPAND_TRUE@am__append_1 = dissectors/ec_dns.c - @OPENSSL_TRUE@am__append_2 = dissectors/ec_ssh.c --@NCURSES_TRUE@am__append_3 = interfaces/curses/libec_curses.a -+@NCURSES_TRUE@am__append_3 = interfaces/curses/libec_curses.a interfaces/curses/widgets/libwdg.a - @GTK_TRUE@am__append_4 = interfaces/gtk/libec_gtk.a - subdir = src - ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 diff --git a/Formula/ettercap.rb b/Formula/ettercap.rb new file mode 100644 index 0000000000..3ad152c143 --- /dev/null +++ b/Formula/ettercap.rb @@ -0,0 +1,45 @@ +require 'formula' + +class Ettercap < Formula + url 'http://downloads.sourceforge.net/project/ettercap/ettercap/0.7.4-Lazarus/ettercap-0.7.4.tar.gz' + homepage 'http://ettercap.sourceforge.net' + md5 'c3a0d91975673c6dfdf8682bcfb661d3' + + depends_on 'pcre' + depends_on 'libnet' + + # The below DATA patch fixes an issue where the linker doesn't get passed the ettercap-built + # 'libwdg' archive which is used for the ncurses interface, thus causing a build failure. + # See https://github.com/mxcl/homebrew/pull/9540 + def patches + { :p0 => DATA } + end + + def install + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--mandir=#{man}", + "--infodir=#{info}", + "--disable-gtk", + "--disable-plugins", + "--with-openssl=/usr", + "--with-libpcap=/usr", + "--with-libncurses=/usr", + "--with-libpcre=#{HOMEBREW_PREFIX}", + "--with-libnet=#{HOMEBREW_PREFIX}" + system "make install" + end +end + +__END__ +--- src/Makefile.in 2009-12-20 14:09:50.000000000 -0500 ++++ src/Makefile.in.new 2009-12-20 14:10:42.000000000 -0500 +@@ -47,7 +47,7 @@ + bin_PROGRAMS = ettercap$(EXEEXT) + @HAVE_DN_EXPAND_TRUE@am__append_1 = dissectors/ec_dns.c + @OPENSSL_TRUE@am__append_2 = dissectors/ec_ssh.c +-@NCURSES_TRUE@am__append_3 = interfaces/curses/libec_curses.a ++@NCURSES_TRUE@am__append_3 = interfaces/curses/libec_curses.a interfaces/curses/widgets/libwdg.a + @GTK_TRUE@am__append_4 = interfaces/gtk/libec_gtk.a + subdir = src + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4