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