2012-01-11 18:15:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ettercap < Formula
|
|
|
|
homepage 'http://ettercap.sourceforge.net'
|
2013-02-03 07:38:18 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/ettercap/ettercap/0.7.5-Assimilation/ettercap-0.7.5.3.tar.gz'
|
|
|
|
sha1 'b0be4c6fc9b7037366b3b2f919df2bb98add5e24'
|
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
|