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 {
|
2018-02-28 09:35:35 +00:00
|
|
|
version = "2.9.11.1";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "snort";
|
2013-05-30 14:05:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
name = "${pname}-${version}.tar.gz";
|
|
|
|
url = "https://snort.org/downloads/archive/snort/${pname}-${version}.tar.gz";
|
2018-02-28 09:35:35 +00:00
|
|
|
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 ];
|
2015-10-02 08:11:04 +01:00
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
2015-10-02 08:11:04 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2015-10-03 15:22:40 +01:00
|
|
|
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"
|
2015-10-02 08:11:04 +01:00
|
|
|
'';
|
2013-05-30 14:05:39 +01:00
|
|
|
|
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Network intrusion prevention and detection system (IDS/IPS)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.snort.org";
|
2014-09-24 09:43:51 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ aycanirican ];
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2013-05-30 14:05:39 +01:00
|
|
|
};
|
|
|
|
}
|