2017-09-28 16:17:13 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, libpcap, libnet, zlib, curl, pcre
|
2019-08-21 00:29:22 +02:00
|
|
|
, openssl, ncurses, glib, gtk3, atk, pango, flex, bison, geoip
|
|
|
|
, pkgconfig }:
|
2013-10-03 15:35:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ettercap";
|
2019-08-21 00:29:22 +02:00
|
|
|
version = "0.8.3";
|
2013-10-03 15:35:34 +02:00
|
|
|
|
2014-11-14 13:03:23 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ettercap";
|
|
|
|
repo = "ettercap";
|
|
|
|
rev = "v${version}";
|
2019-08-21 00:29:22 +02:00
|
|
|
sha256 = "0m40bmbrv9a8qlg54z3b5f8r541gl9vah5hm0bbqcgyyljpg39bz";
|
2013-10-03 15:35:34 +02:00
|
|
|
};
|
|
|
|
|
2019-08-21 00:29:22 +02:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ cmake flex bison pkgconfig ];
|
2013-10-03 15:35:34 +02:00
|
|
|
buildInputs = [
|
2019-08-21 00:29:22 +02:00
|
|
|
libpcap libnet zlib curl pcre openssl ncurses
|
|
|
|
glib gtk3 atk pango geoip
|
2013-10-03 15:35:34 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2014-11-14 13:03:23 +01:00
|
|
|
substituteInPlace CMakeLists.txt --replace /etc \$\{INSTALL_PREFIX\}/etc \
|
|
|
|
--replace /usr \$\{INSTALL_PREFIX\}
|
2013-10-03 15:35:34 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2019-08-21 00:29:22 +02:00
|
|
|
"-DBUNDLED_LIBS=Off"
|
|
|
|
"-DGTK3_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
2013-10-03 15:35:34 +02:00
|
|
|
];
|
|
|
|
|
2014-11-14 13:03:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Comprehensive suite for man in the middle attacks";
|
2013-10-03 15:35:34 +02:00
|
|
|
homepage = http://ettercap.github.io/ettercap/;
|
2014-11-14 13:03:23 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2013-10-03 15:35:34 +02:00
|
|
|
};
|
|
|
|
}
|