1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00

ettercap: update from 0.8.0 to 0.8.1 and adopt it

This commit is contained in:
Pascal Wittmann 2014-11-14 13:03:23 +01:00
parent 6e1cbd6473
commit 16c30d7d70

View file

@ -1,13 +1,15 @@
{ stdenv, fetchurl, cmake, libpcap, libnet, zlib, curl, pcre,
{ stdenv, fetchFromGitHub, cmake, libpcap, libnet, zlib, curl, pcre,
openssl, ncurses, glib, gtk, atk, pango, flex, bison }:
stdenv.mkDerivation rec {
name = "ettercap-${version}";
version = "0.8.0";
version = "0.8.1";
src = fetchurl {
url = "https://github.com/Ettercap/ettercap/archive/v${version}.tar.gz";
sha256 = "1g69782wk2hag8h76jqy81szw5jhvqqnn3m4v0wjkbv9zjxy44w0";
src = fetchFromGitHub {
owner = "Ettercap";
repo = "ettercap";
rev = "v${version}";
sha256 = "017398fiqcl2x1bjfnz97y6j8v5n83gbsniy73vbx21kmhh5pacg";
};
buildInputs = [
@ -16,7 +18,8 @@ stdenv.mkDerivation rec {
];
preConfigure = ''
substituteInPlace CMakeLists.txt --replace /etc \$\{INSTALL_PREFIX\}/etc
substituteInPlace CMakeLists.txt --replace /etc \$\{INSTALL_PREFIX\}/etc \
--replace /usr \$\{INSTALL_PREFIX\}
'';
cmakeFlags = [
@ -24,10 +27,11 @@ stdenv.mkDerivation rec {
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk}/lib/gtk-2.0/include"
];
meta = {
meta = with stdenv.lib; {
description = "Comprehensive suite for man in the middle attacks";
homepage = http://ettercap.github.io/ettercap/;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix;
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ pSub ];
};
}