snort: rename to snort2

allow the introduction of the new version of snort (snort3+) which is
largely a rewrite of snort. leaving the origional version of snort here
as version 2 incase there are non-backward compatible deployments.

snort2 is largely unmaintained upstream.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
This commit is contained in:
Brian McGillion
2025-02-13 15:02:02 +04:00
parent e889770f00
commit ba3b6a7fe8
@@ -16,13 +16,15 @@
libtirpc,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
version = "2.9.20";
pname = "snort";
pname = "snort2";
src = fetchurl {
name = "${pname}-${version}.tar.gz";
url = "https://snort.org/downloads/archive/snort/${pname}-${version}.tar.gz";
# TODO: remove this package after 25.05 release
# https://github.com/NixOS/nixpkgs/pull/381363#issuecomment-2653483597
src = fetchurl rec {
name = "snort-${finalAttrs.version}.tar.gz";
url = "https://snort.org/downloads/snort/${name}";
sha256 = "sha256-KUAOE/U7GDHguLEOwSJKHLqm3BUzpTIqIN2Au4S0mBw=";
};
@@ -65,4 +67,4 @@ stdenv.mkDerivation rec {
license = lib.licenses.gpl2;
platforms = with lib.platforms; linux;
};
}
})