2012-01-11 18:15:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ettercap < Formula
|
|
|
|
homepage 'http://ettercap.sourceforge.net'
|
2013-03-27 05:52:33 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/ettercap/ettercap/0.7.6-Locard/ettercap-0.7.6.tar.gz'
|
|
|
|
sha1 '55818952a8c28beb1b650f3ccc9600a2d784a18f'
|
2012-01-11 18:15:58 +00:00
|
|
|
|
2013-01-10 09:00:10 +00:00
|
|
|
depends_on 'cmake' => :build
|
|
|
|
depends_on 'ghostscript' => :build
|
2012-01-11 18:15:58 +00:00
|
|
|
depends_on 'pcre'
|
|
|
|
depends_on 'libnet'
|
2013-01-10 09:00:10 +00:00
|
|
|
depends_on 'curl' # require libcurl >= 7.26.0
|
2012-01-11 18:15:58 +00:00
|
|
|
|
|
|
|
def install
|
2013-01-10 09:00:10 +00:00
|
|
|
libnet = Formula.factory 'libnet'
|
|
|
|
|
|
|
|
args = ['..'] + std_cmake_args + [
|
|
|
|
"-DINSTALL_SYSCONFDIR=#{etc}",
|
|
|
|
'-DENABLE_GTK=OFF',
|
|
|
|
"-DHAVE_LIBNET:FILEPATH=#{libnet.opt_prefix}/lib/libnet.dylib"
|
|
|
|
]
|
|
|
|
|
|
|
|
mkdir "build" do
|
|
|
|
system "cmake", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
2012-01-11 18:15:58 +00:00
|
|
|
end
|
|
|
|
end
|