3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/ids/snort/default.nix

36 lines
1.2 KiB
Nix
Raw Normal View History

2020-05-26 22:29:57 +01:00
{stdenv, pkgconfig, luajit, openssl, fetchurl, libpcap, pcre, libdnet, daq, zlib, flex, bison, makeWrapper}:
2013-05-30 14:05:39 +01:00
stdenv.mkDerivation rec {
2020-05-26 22:29:57 +01:00
version = "2.9.16";
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";
2020-05-26 22:29:57 +01:00
sha256 = "1mxspk0060f62xp631w589b9ryb21qygn020az3dw2fsy7nxi24n";
2013-05-30 14:05:39 +01:00
};
2020-05-26 22:29:57 +01:00
buildInputs = [ makeWrapper pkgconfig luajit openssl 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
};
}