diff options
author | makefu <github@syntax-fehler.de> | 2016-06-27 23:16:39 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-06-27 23:16:39 +0200 |
commit | b504ad2b446ab250bf3b6b7e22d36c3cb63177f6 (patch) | |
tree | 95a403d2f6b40c3fe3ab989afeeda7a6e49a3b7b /makefu/5pkgs/honeyd/default.nix | |
parent | 4d0eb00084c1026f0171d97e979e1b2e9798a6f4 (diff) |
m 5 honeyd: initial commit
Diffstat (limited to 'makefu/5pkgs/honeyd/default.nix')
-rw-r--r-- | makefu/5pkgs/honeyd/default.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/makefu/5pkgs/honeyd/default.nix b/makefu/5pkgs/honeyd/default.nix new file mode 100644 index 000000000..5dca35f33 --- /dev/null +++ b/makefu/5pkgs/honeyd/default.nix @@ -0,0 +1,62 @@ +{ stdenv, lib, pkgs, fetchurl,fetchFromGitHub, + libpcap, libdnet, libevent, readline, autoconf, automake, libtool, zlib, pcre, + ... }: +stdenv.mkDerivation rec { + name = "honeyd-${version}"; + + #version = "1.5c"; #original, does not compile due to libc errors + #src = fetchurl { + # url = "http://www.honeyd.org/uploads/honeyd-${version}.tar.gz"; + # sha256 = "0vcih16fk5pir5ssfil8x79nvi62faw0xvk8s5klnysv111db1ii"; + #}; + + #version = "64d087c"; # honeyd-1.6.7 + # sha256 = "0zhnn13r24y1q494xcfx64vyp84zqk8qmsl41fq2674230bn0p31"; + + version = "c135fea08"; #nova-13.09 + src = fetchFromGitHub { + owner = "DataSoft"; + repo = "honeyd"; + rev = version; + sha256 = "1r9qds7a1yp3nkccwh3isrizpr2njhpf1m6qp3lqkj0i9c4w6x44"; + }; + + buildInputs = with pkgs;[ + automake + gnugrep + libpcap + libdnet + pcre + libevent + readline + autoconf + libtool + zlib + coreutils + python + pythonPackages.sqlite3 + ]; + patches = [ ./fix-autogen.patch ]; + + # removes user install script from Makefile before automake + preConfigure = '' + sed -i '/init.py$/d' Makefile.am + sh ./autogen.sh + ''; + + makeFlags = [ "LIBS=-lz" ]; + configureFlags = [ + "--with-libpcap=${libpcap}" + "--with-libevent=${libevent}" + "--with-zlib=${zlib}" + "--with-python" + "--with-libpcre=${pcre}" + "--with-libreadline=${readline}" + ]; + + meta = { + homepage = http://www.honeyd.org/; + description = "virtual Honeypots"; + license = lib.licenses.gpl2; + }; +} |