6aad4bf55e
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/qan26dfxzzbh27cd91hcvad69ls7xnhw-snort-2.9.11.1/bin/snort -V` and found version 2.9.11.1 - ran `/nix/store/qan26dfxzzbh27cd91hcvad69ls7xnhw-snort-2.9.11.1/bin/snort --version` and found version 2.9.11.1 - ran `/nix/store/qan26dfxzzbh27cd91hcvad69ls7xnhw-snort-2.9.11.1/bin/u2spewfoo help` got 0 exit code - ran `/nix/store/qan26dfxzzbh27cd91hcvad69ls7xnhw-snort-2.9.11.1/bin/.snort-wrapped -V` and found version 2.9.11.1 - ran `/nix/store/qan26dfxzzbh27cd91hcvad69ls7xnhw-snort-2.9.11.1/bin/.snort-wrapped --version` and found version 2.9.11.1 - found 2.9.11.1 with grep in /nix/store/qan26dfxzzbh27cd91hcvad69ls7xnhw-snort-2.9.11.1 - found 2.9.11.1 in filename of file in /nix/store/qan26dfxzzbh27cd91hcvad69ls7xnhw-snort-2.9.11.1 cc "@aycanirican"
31 lines
1.1 KiB
Nix
31 lines
1.1 KiB
Nix
{stdenv, fetchurl, libpcap, pcre, libdnet, daq, zlib, flex, bison, makeWrapper}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.9.11.1";
|
|
name = "snort-${version}";
|
|
|
|
src = fetchurl {
|
|
name = "${name}.tar.gz";
|
|
url = "https://snort.org/downloads/archive/snort/${name}.tar.gz";
|
|
sha256 = "1ka67zrrhs32c729v4h76mvv2723mij0adxx0iaza2d1qpm3lswz";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper libpcap pcre libdnet daq zlib flex bison ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Network intrusion prevention and detection system (IDS/IPS)";
|
|
homepage = http://www.snort.org;
|
|
maintainers = with stdenv.lib.maintainers; [ aycanirican ];
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|