Compare commits

...

36 Commits

Author SHA1 Message Date
f041cbbf05 automatic version update by autodist [release 3.9.2.0-1mamba;Wed Jul 23 2025] 2025-07-23 10:34:52 +02:00
a1e41a8256 automatic version update by autodist [release 3.9.1.0-1mamba;Sat Jul 05 2025] 2025-07-05 20:01:32 +02:00
ea00a3da69 automatic version update by autodist [release 3.8.1.0-1mamba;Fri May 30 2025] 2025-05-30 09:08:06 +02:00
cc6c079b8e automatic version update by autodist [release 3.7.4.0-1mamba;Sun May 11 2025] 2025-05-11 22:29:35 +02:00
c41cf40d1d automatic version update by autodist [release 3.7.3.0-1mamba;Tue Apr 22 2025] 2025-04-22 23:31:28 +02:00
35253be5bb automatic version update by autodist [release 3.7.2.0-1mamba;Sat Apr 05 2025] 2025-04-05 21:47:27 +02:00
d5933184ef automatic version update by autodist [release 3.7.1.0-1mamba;Sun Mar 16 2025] 2025-03-16 21:48:43 +01:00
20a403c4f9 automatic version update by autodist [release 3.7.0.0-1mamba;Tue Feb 18 2025] 2025-02-18 14:21:50 +01:00
f1ac52a0fc automatic version update by autodist [release 3.6.3.0-1mamba;Thu Feb 06 2025] 2025-02-06 12:26:49 +01:00
f9e393a624 automatic version update by autodist [release 3.6.2.0-1mamba;Mon Jan 27 2025] 2025-01-27 09:34:05 +01:00
dcbcf1cca0 automatic version update by autodist [release 3.6.1.0-1mamba;Tue Dec 31 2024] 2024-12-31 09:30:27 +01:00
6c2d791125 automatic version update by autodist [release 3.6.0.0-1mamba;Thu Dec 05 2024] 2024-12-05 22:29:35 +01:00
11ebca0e50 automatic version update by autodist [release 3.5.2.0-1mamba;Wed Nov 20 2024] 2024-11-20 18:09:14 +01:00
d79c029091 automatic version update by autodist [release 3.5.1.0-1mamba;Tue Nov 12 2024] 2024-11-12 20:56:49 +01:00
7bfc6bb966 automatic version update by autodist [release 3.5.0.0-1mamba;Wed Oct 23 2024] 2024-10-23 20:47:12 +02:00
d9d926c4cc automatic version update by autodist [release 3.3.7.0-1mamba;Mon Sep 30 2024] 2024-09-30 18:19:11 +02:00
58e89b1165 automatic version update by autodist [release 3.3.5.0-1mamba;Tue Sep 10 2024] 2024-09-11 16:35:32 +02:00
11518a694e automatic version update by autodist [release 3.3.4.0-1mamba;Wed Aug 28 2024] 2024-08-29 10:41:07 +02:00
11197b54bb automatic version update by autodist [release 3.3.3.0-1mamba;Sat Aug 17 2024] 2024-08-18 22:57:55 +02:00
5f560773c6 automatic version update by autodist [release 3.3.2.0-1mamba;Wed Jul 31 2024] 2024-07-31 22:12:35 +02:00
99bd33ae13 automatic version update by autodist [release 3.3.1.0-1mamba;Fri Jul 19 2024] 2024-07-19 10:04:00 +02:00
d51957adee automatic version update by autodist [release 3.3.0.0-1mamba;Tue Jul 16 2024] 2024-07-18 01:36:21 +02:00
cea4824a3f automatic version update by autodist [release 3.2.2.0-1mamba;Sat Jun 08 2024] 2024-06-08 14:57:33 +02:00
fdf38c17d0 automatic version update by autodist [release 3.2.1.0-1mamba;Fri May 24 2024] 2024-05-24 12:16:13 +02:00
480f6cb180 automatic version update by autodist [release 3.1.84.0-1mamba;Sat Apr 13 2024] 2024-04-13 17:18:43 +02:00
296c7b4aa9 automatic version update by autodist [release 3.1.83.0-1mamba;Tue Mar 26 2024] 2024-03-26 13:23:00 +01:00
c158550fd0 automatic version update by autodist [release 3.1.82.0-1mamba;Sat Mar 16 2024] 2024-03-16 08:43:12 +01:00
7952688b25 automatic version update by autodist [release 3.1.81.0-1mamba;Thu Feb 22 2024] 2024-02-22 20:01:06 +01:00
90b9ecfee8 automatic version update by autodist [release 3.1.78.0-1mamba;Fri Jan 19 2024] 2024-01-19 10:00:09 +01:00
b686e77b25 automatic version update by autodist [release 3.1.77.0-1mamba;Sat Dec 23 2023] 2024-01-05 17:57:12 +01:00
3645344100 automatic version update by autodist [release 3.1.76.0-1mamba;Tue Dec 05 2023] 2024-01-05 17:57:11 +01:00
12ef21df59 automatic version update by autodist [release 3.1.75.0-1mamba;Thu Nov 23 2023] 2024-01-05 17:57:11 +01:00
5d100d370e automatic version update by autodist [release 3.1.74.0-1mamba;Thu Nov 09 2023] 2024-01-05 17:57:10 +01:00
dcd094f588 automatic version update by autodist [release 3.1.73.0-1mamba;Thu Oct 26 2023] 2024-01-05 17:57:10 +01:00
d919559c93 automatic version update by autodist [release 3.1.71.0-1mamba;Tue Sep 26 2023] 2024-01-05 17:57:08 +01:00
ee749b171d automatic version update by autodist [release 3.1.70.0-1mamba;Wed Sep 13 2023] 2024-01-05 17:57:08 +01:00

View File

@ -5,7 +5,7 @@
%define userid 65023
Name: snort
Version: 3.1.69.0
Version: 3.9.2.0
Release: 1mamba
Summary: The Open Source Intrusion Detection System
Group: Network/Monitoring
@ -18,11 +18,32 @@ Source1: snort-initscript
Source2: snort-sysconfig
Source3: snort-createmysql
Source4: snort-createmysql-archive
#Source5: http://www.snort.org/dl/contrib/...
Source5: snortdb-extra.bz2
Source6: https://www.snort.org/downloads/community/snort3-community-rules.tar.gz
Source7: snort-conf
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libatomic-devel
BuildRequires: libdaq-devel
BuildRequires: libdnet-devel
BuildRequires: libgcc
BuildRequires: libhwloc-devel
BuildRequires: libluajit-devel
BuildRequires: liblzma-devel
BuildRequires: libmnl-devel
BuildRequires: libnuma-devel
BuildRequires: libopenssl-devel
BuildRequires: libpcap-devel
BuildRequires: libpcre2-devel
BuildRequires: libstdc++6-devel
BuildRequires: libunwind-devel
BuildRequires: libuuid-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libdnet-devel
BuildRequires: libdaq-devel >= 3.0.5
BuildRequires: libluajit-devel
%if %enable_mysql
BuildRequires: libmysql5-devel
%endif
@ -34,27 +55,6 @@ BuildRequires: libodbc-devel >= 2.2.6
Requires: postgresql >= 7.3.3
BuildRequires: postgresql-devel >= 7.4-2
%endif
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libatomic-devel
BuildRequires: libdaq-devel
BuildRequires: libdnet-devel
BuildRequires: libgcc
BuildRequires: libhwloc-devel
BuildRequires: liblzma-devel
BuildRequires: libmnl-devel
BuildRequires: libnuma-devel
BuildRequires: libopenssl-devel
BuildRequires: libpcap-devel
BuildRequires: libpcre-devel
BuildRequires: libstdc++6-devel
BuildRequires: libunwind-devel
BuildRequires: libuuid-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libdnet-devel
BuildRequires: libdaq-devel >= 3.0.5
BuildRequires: libluajit-devel
Provides: %{_datadir}/snort/contrib/createmysql
Provides: %{_datadir}/snort/contrib/createmysql-archive
@ -80,7 +80,6 @@ Snort has three primary uses.
It can be used as a straight packet sniffer like tcpdump(1), a packet logger (useful for network traffic debugging, etc), or as a full blown network intrusion detection system.
This package contains the static libraries, headers and source files for development.
%debug_package
%prep
%setup -q -n snort3-%{version} -a6
@ -88,33 +87,11 @@ This package contains the static libraries, headers and source files for develop
%build
%cmake -d build \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir}
%make
:<< __OLD
%configure \
--sysconfdir=%{_sysconfdir}/snort \
--enable-linux-smp-stat \
--enable-smbalerts \
%if %enable_mysql
--with-mysql \
%else
--without-mysql --disable-mysql \
%endif
%if %enable_odbc
--with-odbc \
%endif
%if %enable_postgresql
--with-postgresql \
%endif
CFLAGS="%{optflags} -I%{_includedir}/tirpc"
# --enable-sourcefire
# --enable-perfmonitor
# --enable-flexresp
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall -C build
@ -122,47 +99,15 @@ This package contains the static libraries, headers and source files for develop
install -d %{buildroot}%{_sysconfdir}/snort/{rules,preproc_rules}
cp snort3-community-rules/*.rules %{buildroot}%{_sysconfdir}/snort/rules/
:<< __OLD
#cp preproc_rules/*.rules %{buildroot}%{_sysconfdir}/snort/preproc_rules/
#cp etc/*.conf etc/*.config etc/*.map %{buildroot}%{_sysconfdir}/snort
#install -D -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/snort
#install -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/snort
#install -d %{buildroot}/var/log/snort
install -D %{SOURCE3} %{buildroot}%{_datadir}/snort/contrib/createmysql
install -D %{SOURCE4} %{buildroot}%{_datadir}/snort/contrib/createmysql-archive
install -D %{SOURCE7} %{buildroot}%{_sysconfdir}/snort/snort.conf
#cp contrib/create* contrib/snortdb-extra.bz2 %{buildroot}%{_datadir}/snort/contrib/
cp %{SOURCE5} %{buildroot}%{_datadir}/snort/contrib/
#cp schemas/create_* %{buildroot}%{_datadir}/snort/contrib/
__OLD
%pre
/usr/sbin/groupadd snort -g %{groupid} 2>/dev/null
/usr/sbin/useradd -u %{userid} -c 'Snort user' -d /dev/null -g snort \
-s /bin/false snort 2>/dev/null
exit 0
#%post
# new install
#if [ $1 -eq 1 ]; then
# RANDOM_PASSWD=`/usr/bin/mkpasswd -l 10 -s 0`
# sed -i "s|# output database: log, mysql.*|output database: log, mysql, user=snort password=$RANDOM_PASSWD dbname=snort host=localhost|" \
# %{_sysconfdir}/snort/snort.conf
# %{_datadir}/snort/contrib/createmysql $RANDOM_PASSWD
# %{_datadir}/snort/contrib/createmysql-archive $RANDOM_PASSWD
#fi
#:
:
%preun
# erase
if [ $1 -eq 0 ]; then
#service snort stop 2>/dev/null
#/sbin/chkconfig --del snort
/usr/sbin/userdel snort 2>/dev/null
fi
:
@ -173,8 +118,6 @@ if [ $1 -eq 1 ]; then
groupadd snort -g %{groupid} 2>/dev/null
/usr/sbin/useradd -u %{userid} -c 'Snort user' -d /dev/null -g snort \
-s /bin/false snort 2>/dev/null
#/sbin/chkconfig snort
#[ $? -eq 0 ] && service snort restart
fi
:
@ -210,6 +153,114 @@ fi
%{_libdir}/pkgconfig/snort.pc
%changelog
* Wed Jul 23 2025 Automatic Build System <autodist@openmamba.org> 3.9.2.0-1mamba
- automatic version update by autodist
* Sat Jul 05 2025 Automatic Build System <autodist@openmamba.org> 3.9.1.0-1mamba
- automatic version update by autodist
* Fri May 30 2025 Automatic Build System <autodist@openmamba.org> 3.8.1.0-1mamba
- automatic version update by autodist
* Sun May 11 2025 Automatic Build System <autodist@openmamba.org> 3.7.4.0-1mamba
- automatic version update by autodist
* Tue Apr 22 2025 Automatic Build System <autodist@openmamba.org> 3.7.3.0-1mamba
- automatic version update by autodist
* Sat Apr 05 2025 Automatic Build System <autodist@openmamba.org> 3.7.2.0-1mamba
- automatic version update by autodist
* Sun Mar 16 2025 Automatic Build System <autodist@openmamba.org> 3.7.1.0-1mamba
- automatic version update by autodist
* Tue Feb 18 2025 Automatic Build System <autodist@openmamba.org> 3.7.0.0-1mamba
- automatic version update by autodist
* Thu Feb 06 2025 Automatic Build System <autodist@openmamba.org> 3.6.3.0-1mamba
- automatic version update by autodist
* Mon Jan 27 2025 Automatic Build System <autodist@openmamba.org> 3.6.2.0-1mamba
- automatic version update by autodist
* Tue Dec 31 2024 Automatic Build System <autodist@openmamba.org> 3.6.1.0-1mamba
- automatic version update by autodist
* Thu Dec 05 2024 Automatic Build System <autodist@openmamba.org> 3.6.0.0-1mamba
- automatic version update by autodist
* Wed Nov 20 2024 Automatic Build System <autodist@openmamba.org> 3.5.2.0-1mamba
- automatic version update by autodist
* Tue Nov 12 2024 Automatic Build System <autodist@openmamba.org> 3.5.1.0-1mamba
- automatic version update by autodist
* Wed Oct 23 2024 Automatic Build System <autodist@openmamba.org> 3.5.0.0-1mamba
- automatic version update by autodist
* Mon Sep 30 2024 Automatic Build System <autodist@openmamba.org> 3.3.7.0-1mamba
- automatic version update by autodist
* Tue Sep 10 2024 Automatic Build System <autodist@openmamba.org> 3.3.5.0-1mamba
- automatic version update by autodist
* Wed Aug 28 2024 Automatic Build System <autodist@openmamba.org> 3.3.4.0-1mamba
- automatic version update by autodist
* Sat Aug 17 2024 Automatic Build System <autodist@openmamba.org> 3.3.3.0-1mamba
- automatic version update by autodist
* Wed Jul 31 2024 Automatic Build System <autodist@openmamba.org> 3.3.2.0-1mamba
- automatic version update by autodist
* Fri Jul 19 2024 Automatic Build System <autodist@openmamba.org> 3.3.1.0-1mamba
- automatic version update by autodist
* Tue Jul 16 2024 Automatic Build System <autodist@openmamba.org> 3.3.0.0-1mamba
- automatic version update by autodist
* Sat Jun 08 2024 Automatic Build System <autodist@openmamba.org> 3.2.2.0-1mamba
- automatic version update by autodist
* Fri May 24 2024 Automatic Build System <autodist@openmamba.org> 3.2.1.0-1mamba
- automatic version update by autodist
* Sat Apr 13 2024 Automatic Build System <autodist@openmamba.org> 3.1.84.0-1mamba
- automatic version update by autodist
* Tue Mar 26 2024 Automatic Build System <autodist@openmamba.org> 3.1.83.0-1mamba
- automatic version update by autodist
* Sat Mar 16 2024 Automatic Build System <autodist@openmamba.org> 3.1.82.0-1mamba
- automatic version update by autodist
* Thu Feb 22 2024 Automatic Build System <autodist@openmamba.org> 3.1.81.0-1mamba
- automatic version update by autodist
* Fri Jan 19 2024 Automatic Build System <autodist@openmamba.org> 3.1.78.0-1mamba
- automatic version update by autodist
* Sat Dec 23 2023 Automatic Build System <autodist@mambasoft.it> 3.1.77.0-1mamba
- automatic version update by autodist
* Tue Dec 05 2023 Automatic Build System <autodist@mambasoft.it> 3.1.76.0-1mamba
- automatic version update by autodist
* Thu Nov 23 2023 Automatic Build System <autodist@mambasoft.it> 3.1.75.0-1mamba
- automatic version update by autodist
* Thu Nov 09 2023 Automatic Build System <autodist@mambasoft.it> 3.1.74.0-1mamba
- automatic version update by autodist
* Thu Oct 26 2023 Automatic Build System <autodist@mambasoft.it> 3.1.73.0-1mamba
- automatic version update by autodist
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 3.1.71.0-1mamba
- automatic version update by autodist
* Wed Sep 13 2023 Automatic Build System <autodist@mambasoft.it> 3.1.70.0-1mamba
- automatic version update by autodist
* Tue Aug 29 2023 Automatic Build System <autodist@mambasoft.it> 3.1.69.0-1mamba
- automatic version update by autodist