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