aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ettercap.rb
diff options
context:
space:
mode:
authorAustin Seipp2012-01-11 12:15:58 -0600
committerAdam Vandenberg2012-01-15 12:31:16 -0800
commitb12b3e3fe59f09f3cade02d600aadef0536657e6 (patch)
tree4604dbde45e6e457a78dedf751ddf075ee5e21de /Library/Formula/ettercap.rb
parentb88c58f1ce901cf8262010be58c33899614d3e4c (diff)
downloadhomebrew-b12b3e3fe59f09f3cade02d600aadef0536657e6.tar.bz2
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 <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/ettercap.rb')
-rw-r--r--Library/Formula/ettercap.rb45
1 files changed, 45 insertions, 0 deletions
diff --git a/Library/Formula/ettercap.rb b/Library/Formula/ettercap.rb
new file mode 100644
index 000000000..3ad152c14
--- /dev/null
+++ b/Library/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