diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
commit | c4625b175f8200f643fd6e11010932ea44c78433 (patch) | |
tree | bce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/applications/networking/sniffers/ettercap | |
parent | 49f735974dd103039ddc4cb576bb76555164a9e7 (diff) | |
parent | d661aa56a8843e991261510c1bb28fdc2f6975ae (diff) |
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie
git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7
git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/networking/sniffers/ettercap')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/applications/networking/sniffers/ettercap/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/networking/sniffers/ettercap/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/networking/sniffers/ettercap/default.nix new file mode 100644 index 000000000000..8489b414cbc5 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/networking/sniffers/ettercap/default.nix @@ -0,0 +1,50 @@ +{ stdenv, fetchFromGitHub, cmake, libpcap, libnet, zlib, curl, pcre +, openssl, ncurses, glib, gtk3, atk, pango, flex, bison, geoip, harfbuzz +, pkgconfig }: + +stdenv.mkDerivation rec { + pname = "ettercap"; + version = "0.8.3.1"; + + src = fetchFromGitHub { + owner = "Ettercap"; + repo = "ettercap"; + rev = "v${version}"; + sha256 = "1sdf1ssa81ib6k0mc5m2jzbjl4jd1yv6ahv5dwx2x9w4b2pyqg1c"; + }; + + strictDeps = true; + nativeBuildInputs = [ cmake flex bison pkgconfig ]; + buildInputs = [ + libpcap libnet zlib curl pcre openssl ncurses + glib gtk3 atk pango geoip harfbuzz + ]; + + preConfigure = '' + substituteInPlace CMakeLists.txt --replace /etc \$\{INSTALL_PREFIX\}/etc \ + --replace /usr \$\{INSTALL_PREFIX\} + ''; + + cmakeFlags = [ + "-DBUNDLED_LIBS=Off" + "-DGTK3_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include" + ]; + + # TODO: Remove after the next release (0.8.4 should work without this): + NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ]; + + meta = with stdenv.lib; { + description = "Comprehensive suite for man in the middle attacks"; + longDescription = '' + Ettercap is a comprehensive suite for man in the middle attacks. It + features sniffing of live connections, content filtering on the fly and + many other interesting tricks. It supports active and passive dissection + of many protocols and includes many features for network and host + analysis. + ''; + homepage = "https://www.ettercap-project.org/"; + license = licenses.gpl2; + platforms = platforms.unix; + maintainers = with maintainers; [ pSub ]; + }; +} |