nixpkgs/pkgs/applications/networking/ids/snort/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2015-10-15 20:46:13 +01:00
{stdenv, fetchurl, libpcap, pcre, libdnet, daq, zlib, flex, bison, makeWrapper}:
2013-05-30 14:05:39 +01:00
stdenv.mkDerivation rec {
version = "2.9.11.1";
pname = "snort";
2013-05-30 14:05:39 +01:00
src = fetchurl {
name = "${pname}-${version}.tar.gz";
url = "https://snort.org/downloads/archive/snort/${pname}-${version}.tar.gz";
sha256 = "1ka67zrrhs32c729v4h76mvv2723mij0adxx0iaza2d1qpm3lswz";
2013-05-30 14:05:39 +01:00
};
2015-10-02 08:18:55 +01:00
buildInputs = [ makeWrapper libpcap pcre libdnet daq zlib flex bison ];
enableParallelBuilding = true;
2018-07-25 22:44:21 +01:00
configureFlags = [
"--disable-static-daq"
"--enable-control-socket"
"--with-daq-includes=${daq}/includes"
"--with-daq-libraries=${daq}/lib"
];
postInstall = ''
wrapProgram $out/bin/snort --add-flags "--daq-dir ${daq}/lib/daq --dynamic-preprocessor-lib-dir $out/lib/snort_dynamicpreprocessor/ --dynamic-engine-lib-dir $out/lib/snort_dynamicengine"
'';
2013-05-30 14:05:39 +01:00
meta = {
description = "Network intrusion prevention and detection system (IDS/IPS)";
homepage = "https://www.snort.org";
2014-09-24 09:43:51 +01:00
maintainers = with stdenv.lib.maintainers; [ aycanirican ];
license = stdenv.lib.licenses.gpl2;
platforms = with stdenv.lib.platforms; linux;
2013-05-30 14:05:39 +01:00
};
}