2012-01-11 18:15:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ettercap < Formula
|
2012-03-03 12:11:10 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/ettercap/ettercap/0.7.4-Lazarus/ettercap-0.7.4.1.tar.gz'
|
2012-01-11 18:15:58 +00:00
|
|
|
homepage 'http://ettercap.sourceforge.net'
|
2012-03-03 12:11:10 +00:00
|
|
|
md5 '8e13ff5504b5bb4f1fc6a465d57ce7ea'
|
2012-01-11 18:15:58 +00:00
|
|
|
|
|
|
|
depends_on 'pcre'
|
|
|
|
depends_on 'libnet'
|
|
|
|
|
2012-01-18 22:17:32 +00:00
|
|
|
# Stripping breaks plugin support
|
|
|
|
skip_clean 'bin'
|
|
|
|
|
2012-01-11 18:15:58 +00:00
|
|
|
# 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
|
2012-03-18 03:24:06 +00:00
|
|
|
def patches; DATA; end
|
2012-01-11 18:15:58 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--infodir=#{info}",
|
|
|
|
"--disable-gtk",
|
2012-01-18 22:17:32 +00:00
|
|
|
"--enable-plugins",
|
2012-01-11 18:15:58 +00:00
|
|
|
"--with-openssl=/usr",
|
|
|
|
"--with-libpcap=/usr",
|
|
|
|
"--with-libncurses=/usr",
|
|
|
|
"--with-libpcre=#{HOMEBREW_PREFIX}",
|
|
|
|
"--with-libnet=#{HOMEBREW_PREFIX}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
2012-03-18 03:24:06 +00:00
|
|
|
--- a/src/Makefile.in 2009-12-20 14:09:50.000000000 -0500
|
|
|
|
+++ b/src/Makefile.in 2009-12-20 14:10:42.000000000 -0500
|
2012-01-11 18:15:58 +00:00
|
|
|
@@ -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
|