]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
snort: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 30 Dec 2022 16:24:35 +0000 (16:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 30 Dec 2022 16:24:35 +0000 (16:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
snort/snort.nm [new file with mode: 0644]

diff --git a/snort/snort.nm b/snort/snort.nm
new file mode 100644 (file)
index 0000000..3334d5b
--- /dev/null
@@ -0,0 +1,60 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = snort
+version    = 3.1.50.0
+release    = 1
+thisapp    = snort3-%{version}
+
+groups     = Networking/Tools
+url        = https://github.com/snort3/snort3
+license    = GPLv2
+summary    = A Network Intrusion Detection/Prevention System
+
+description
+       Snort 3 is the next generation Snort IPS (Intrusion Prevention System).
+end
+
+source_dl  = https://github.com/snort3/snort3/archive/refs/tags/%{version}.tar.gz#/
+
+build
+       requires
+               cmake
+               flex-devel >= 2.6.0
+               hwloc-devel
+               libdaq-devel >= 3.0.10
+               libdnet-devel
+               libpcap-devel
+               libtirpc-devel
+               libunwind-devel
+               libuuid-devel
+               luajit-devel
+               openssl-devel
+               pcre-devel
+               xz-devel
+               zlib-devel
+
+               # Hyperscan only exists on x86_64
+               (hyperscan-devel if arch(x86_64))
+       end
+
+       build
+               %{cmake} .
+
+               make %{PARALLELISMFLAGS}
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end