Compare commits
67 Commits
3.1.19.0-1
...
3.9.1.0-1m
Author | SHA1 | Date | |
---|---|---|---|
a1e41a8256 | |||
ea00a3da69 | |||
cc6c079b8e | |||
c41cf40d1d | |||
35253be5bb | |||
d5933184ef | |||
20a403c4f9 | |||
f1ac52a0fc | |||
f9e393a624 | |||
dcbcf1cca0 | |||
6c2d791125 | |||
11ebca0e50 | |||
d79c029091 | |||
7bfc6bb966 | |||
d9d926c4cc | |||
58e89b1165 | |||
11518a694e | |||
11197b54bb | |||
5f560773c6 | |||
99bd33ae13 | |||
d51957adee | |||
cea4824a3f | |||
fdf38c17d0 | |||
480f6cb180 | |||
296c7b4aa9 | |||
c158550fd0 | |||
7952688b25 | |||
90b9ecfee8 | |||
b686e77b25 | |||
3645344100 | |||
12ef21df59 | |||
5d100d370e | |||
dcd094f588 | |||
d919559c93 | |||
ee749b171d | |||
eb7d081059 | |||
8eb9026607 | |||
6060d7ddd6 | |||
77db33b3f0 | |||
aeb747ed39 | |||
318b108c3d | |||
8b14989a94 | |||
b05f172db4 | |||
14478a1185 | |||
62223477a2 | |||
87c26455c5 | |||
e56da8bcaa | |||
ac750fac6b | |||
84f9aa8289 | |||
793d0575ee | |||
6397322db2 | |||
ae8c5b1963 | |||
8c25a9ce81 | |||
952e96e425 | |||
677d02aa8c | |||
b5666e581c | |||
763c1b8fae | |||
7eb3f6dfe6 | |||
fd44ce639c | |||
6f20271456 | |||
96a0d13e1d | |||
f4045f2005 | |||
78484f2062 | |||
b310678131 | |||
688f354d7e | |||
130172799c | |||
1c826cc7af |
313
snort.spec
313
snort.spec
@ -5,7 +5,7 @@
|
||||
%define userid 65023
|
||||
|
||||
Name: snort
|
||||
Version: 3.1.19.0
|
||||
Version: 3.9.1.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,26 +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: libdaq-devel
|
||||
BuildRequires: libdnet-devel
|
||||
BuildRequires: libflatbuffers-devel
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libhwloc-devel
|
||||
BuildRequires: liblzma-devel
|
||||
BuildRequires: libmnl-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
|
||||
|
||||
@ -79,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
|
||||
@ -87,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
|
||||
@ -121,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
|
||||
:
|
||||
@ -172,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
|
||||
:
|
||||
|
||||
@ -184,10 +128,11 @@ fi
|
||||
%defattr(-,root,root)
|
||||
%dir %{_sysconfdir}/snort
|
||||
%{_sysconfdir}/snort/*.lua
|
||||
%config %{_sysconfdir}/snort/*.rules
|
||||
%dir %{_sysconfdir}/snort/rules
|
||||
%{_sysconfdir}/snort/rules/*
|
||||
%{_bindir}/appid_detector_builder.sh
|
||||
%{_bindir}/fbstreamer
|
||||
#%{_bindir}/fbstreamer
|
||||
%{_bindir}/u2boat
|
||||
%{_bindir}/u2spewfoo
|
||||
%{_bindir}/snort
|
||||
@ -208,6 +153,210 @@ fi
|
||||
%{_libdir}/pkgconfig/snort.pc
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
* Thu Aug 03 2023 Automatic Build System <autodist@mambasoft.it> 3.1.67.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Jun 04 2023 Automatic Build System <autodist@mambasoft.it> 3.1.63.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon May 22 2023 Automatic Build System <autodist@mambasoft.it> 3.1.62.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun May 07 2023 Automatic Build System <autodist@mambasoft.it> 3.1.61.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Apr 23 2023 Automatic Build System <autodist@mambasoft.it> 3.1.60.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Apr 08 2023 Automatic Build System <autodist@mambasoft.it> 3.1.59.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Mar 25 2023 Automatic Build System <autodist@mambasoft.it> 3.1.58.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Mar 13 2023 Automatic Build System <autodist@mambasoft.it> 3.1.57.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Feb 24 2023 Automatic Build System <autodist@mambasoft.it> 3.1.56.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Feb 10 2023 Automatic Build System <autodist@mambasoft.it> 3.1.55.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Jan 27 2023 Automatic Build System <autodist@mambasoft.it> 3.1.53.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Jan 19 2023 Automatic Build System <autodist@mambasoft.it> 3.1.52.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Jan 13 2023 Automatic Build System <autodist@mambasoft.it> 3.1.51.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Dec 26 2022 Automatic Build System <autodist@mambasoft.it> 3.1.50.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Dec 03 2022 Automatic Build System <autodist@mambasoft.it> 3.1.48.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Nov 24 2022 Automatic Build System <autodist@mambasoft.it> 3.1.47.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Oct 29 2022 Automatic Build System <autodist@mambasoft.it> 3.1.45.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Oct 08 2022 Automatic Build System <autodist@mambasoft.it> 3.1.43.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Sep 28 2022 Automatic Build System <autodist@mambasoft.it> 3.1.42.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Sep 15 2022 Automatic Build System <autodist@mambasoft.it> 3.1.41.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Aug 27 2022 Automatic Build System <autodist@mambasoft.it> 3.1.40.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Aug 13 2022 Automatic Build System <autodist@mambasoft.it> 3.1.39.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Jul 29 2022 Automatic Build System <autodist@mambasoft.it> 3.1.38.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Jul 18 2022 Automatic Build System <autodist@mambasoft.it> 3.1.36.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Jun 18 2022 Automatic Build System <autodist@mambasoft.it> 3.1.32.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Jun 04 2022 Automatic Build System <autodist@mambasoft.it> 3.1.31.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat May 21 2022 Automatic Build System <autodist@mambasoft.it> 3.1.30.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Feb 25 2022 Automatic Build System <autodist@mambasoft.it> 3.1.24.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Feb 10 2022 Automatic Build System <autodist@mambasoft.it> 3.1.23.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Feb 05 2022 Automatic Build System <autodist@mambasoft.it> 3.1.22.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Jan 27 2022 Automatic Build System <autodist@mambasoft.it> 3.1.21.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Jan 13 2022 Automatic Build System <autodist@mambasoft.it> 3.1.20.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Dec 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.19.0-1mamba
|
||||
- update to 3.1.19.0
|
||||
|
||||
|
Reference in New Issue
Block a user