]> git.pld-linux.org Git - packages/snort.git/blame - snort.spec
- updated to 2.9.8.2
[packages/snort.git] / snort.spec
CommitLineData
946f7ae3 1#
2# TODO: - snort rules - fix description
cb19b407 3# - snort_inline - prepare separate sets of config-files, rules
9d61ae4f 4# and startup script, adds some docs
01f3f79b 5#
e817c488 6# Conditional build:
12e2e783 7%bcond_with registered # build with rules available for registered users
01f3f79b 8#
92ea8dee 9Summary: Network intrusion detection system (IDS/IPS)
cbf82e1d
ER
10Summary(pl.UTF-8): System wykrywania intruzów w sieciach (IDS/IPS)
11Summary(pt_BR.UTF-8): Ferramenta de detecção de intrusos
12Summary(ru.UTF-8): Snort - система обнаружения попыток вторжения в сеть
13Summary(uk.UTF-8): Snort - система виявлення спроб вторгнення в мережу
8775223f 14Name: snort
2c40db26
JR
15Version: 2.9.8.2
16Release: 1
12e2e783 17License: GPL v2 (vrt rules on VRT-License)
b3907a72 18Group: Networking
2c40db26
JR
19Source0: http://www.snort.org/downloads/snort/%{name}-%{version}.tar.gz
20# Source0-md5: b5005f88a01b42ff7ee0defb94161ffc
57c9b91b
AM
21Source1: http://www.snort.org/pub-bin/downloads.cgi/Download/vrt_pr/%{name}rules-pr-2.4.tar.gz
22# Source1-md5: 35d9a2486f8c0280bb493aa03c011927
12e2e783 23%if %{with registered}
0e511834 24Source2: http://www.snort.org/pub-bin/downloads.cgi/Download/vrt_os/%{name}rules-snapshot-2.6.tar.gz
25# NoSource2-md5: 0405ec828cf9ad85a03cbf670818f690
12e2e783 26NoSource: 2
27%endif
28Source3: http://www.snort.org/pub-bin/downloads.cgi/Download/comm_rules/Community-Rules-2.4.tar.gz
0e511834 29# Source3-md5: f236b8a4ac12e99d3e7bd81bf3b5a482
12e2e783 30Source4: %{name}.init
31Source5: %{name}.logrotate
2c40db26 32Patch0: %{name}-link.patch
5ad2f8a8 33URL: http://www.snort.org/
08df69e6
JB
34BuildRequires: autoconf
35BuildRequires: automake
2c40db26
JR
36BuildRequires: daq-static
37BuildRequires: libdnet-devel
f479ddcb 38BuildRequires: libnet-devel
5d617823 39BuildRequires: libnet1-devel = 1.0.2a
b3907a72 40BuildRequires: libpcap-devel
48886295 41BuildRequires: libtool
95620817 42BuildRequires: openssl-devel >= 0.9.7d
2cc2dce2 43BuildRequires: pcre-devel
31126327 44BuildRequires: rpmbuild(macros) >= 1.202
2fa6d1a5 45BuildRequires: rpmbuild(macros) >= 1.268
d87f0eb8 46BuildRequires: zlib-devel
27fdff69 47Requires(post,preun): /sbin/chkconfig
48Requires(postun): /usr/sbin/groupdel
49Requires(postun): /usr/sbin/userdel
08df69e6 50Requires(pre): /bin/id
d9c3717f 51Requires(pre): /usr/bin/getgid
08df69e6
JB
52Requires(pre): /usr/sbin/groupadd
53Requires(pre): /usr/sbin/useradd
5d617823 54Requires: libnet1 = 1.0.2a
27fdff69 55Requires: rc-scripts >= 0.2.0
d9c3717f 56Provides: group(snort)
d9c3717f 57Provides: user(snort)
cb19b407 58Obsoletes: snort-rules
c40a7757 59Conflicts: logrotate < 3.7-4
5ad2f8a8 60BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
5ad2f8a8 62%define _bindir %{_sbindir}
ab81a4d5 63
64%description
99fed451
AM
65Snort is an open source network intrusion detection system, capable of
66performing real-time traffic analysis and packet logging on IP
67networks. It can perform protocol analysis and content
68searching/matching in order to detect a variety of attacks and probes,
69such as buffer overflows, stealth port scans, CGI attacks, SMB probes,
70OS fingerprinting attempts, and much more. Snort uses a flexible rules
71language to describe traffic that it should collect or pass, as well
72as a detection engine that utilizes a modular plugin architecture.
73Snort has a real- time alerting capability as well, incorporating
74alerting mechanisms for syslog, user specified files, a UNIX socket,
75or WinPopup messages to Windows clients using Samba's smbclient.
b3907a72 76
67a06db2 77Sourcefire VRT Certified Rules requires registration.
78https://www.snort.org/pub-bin/register.cgi
79
27666db8
JR
80%description -l pl.UTF-8
81Snort to bazujący na open source NIDS (network intrusion detection
82systems) wykonujący w czasie rzeczywistym analizę ruchu oraz logowanie
83pakietów w sieciach IP. Jego możliwości to analiza protokołu oraz
84zawartości w poszukiwaniu różnego rodzaju ataków lub prób takich jak
85przepełnienia bufora, skanowanie portów typu stealth, ataki CGI,
86próbkowanie SMB, OS fingerprinting i dużo więcej. Snort używa
87elastycznego języka regułek do opisu ruchu, który należy
88przeanalizować jak również silnika wykrywającego, wykorzystującego
89modułową architekturę. Snort umożliwia alarmowanie w czasie
90rzeczywistym poprzez sysloga, osobny plik lub jako wiadomość WinPopup
99fed451
AM
91poprzez klienta Samby: smbclient.
92
27666db8 93Reguły certyfikowane poprzez Sourcefire wymagają rejestracji.
67a06db2 94https://www.snort.org/pub-bin/register.cgi
95
27666db8
JR
96%description -l pt_BR.UTF-8
97Snort é um sniffer baseado em libpcap que pode ser usado como um
98pequeno sistema de detecção de intrusos. Tem como característica o
99registro de pacotes baseado em regras e também pode executar uma
100análise do protocolo, pesquisa de padrões e detectar uma variedade de
0955b0c3 101assinaturas de ataques, como estouros de buffer, varreduras "stealth"
102de portas, ataques CGI, pesquisas SMB, tentativas de descobrir o
103sistema operacional e muito mais. Possui um sistema de alerta em tempo
104real, com alertas enviados para o syslog, um arquivo de alertas em
105separado ou como uma mensagem Winpopup.
ab81a4d5 106
27666db8
JR
107%description -l ru.UTF-8
108Snort - это сниффер пакетов, который может использоваться как система
109обнаружения попыток вторжения в сеть. Snort поддерживает
110протоколирование пакетов на основе правил, может выполнять анализ
111протоколов, поиск в содержимом пакетов. Может также использоваться для
112обнаружения атак и "разведок", таких как попытки атак типа
113"переполнение буфера", скрытого сканирования портов, CGI атак, SMB
114разведок, попыток обнаружения типа ОС и много другого. Snort может
115информировать о событиях в реальном времени, посылая сообщения в
116syslog, отдельный файл или как WinPopup сообщения через smbclient.
cd357cee 117
27666db8
JR
118%description -l uk.UTF-8
119Snort - це сніфер пакетів, що може використовуватись як система
120виявлення спроб вторгнень в мережу. Snort підтримує протоколювання
121пакетів на основі правил, може виконувати аналіз протоколів, пошук у
122вмісті пакетів. Може також використовуватись для виявлення атак та
123"розвідок", таких як спроби атак типу "переповнення буфера",
124прихованого сканування портів, CGI атак, SMB розвідок, спроб виявлення
125типу ОС та багато іншого. Snort може інформувати про події в реальному
126часі, надсилаючи повідомлення до syslog, окремого файлу чи як WinPopup
127повідомлення через smbclient.
cd357cee 128
ab81a4d5 129%prep
12e2e783 130%setup -q %{!?with_registered:-a1} %{?with_registered:-a2} -a3
2eb1dd1f 131%patch0 -p1
ab81a4d5 132
6a0c25e4 133sed -i "s#var\ RULE_PATH.*#var RULE_PATH /etc/snort/rules#g" rules/snort.conf
134_DIR=$(pwd)
135cd rules
136for I in community-*.rules; do
137 echo "include \$RULE_PATH/$I" >> snort.conf
138done
139cd $_DIR
140
ab81a4d5 141%build
e0b76e62 142%{__libtoolize}
4529e62c 143%{__aclocal} -I m4
89e97d3b 144%{__autoconf}
145%{__automake}
e1df464a 146# we don't need libnsl, so don't use it
b3907a72 147%configure \
af18b2c0 148 no_libnsl=yes \
2c40db26
JR
149 --enable-pthread \
150 --enable-so-with-static-lib \
151 --enable-control-socket \
152 --enable-side-channel \
153 --enable-build-dynamic-examples
99fed451 154
76b05458 155%{__make} -j1
ab81a4d5 156
157%install
158rm -rf $RPM_BUILD_ROOT
48886295 159install -d $RPM_BUILD_ROOT%{_initrddir} \
96b7be9c 160 $RPM_BUILD_ROOT%{_sysconfdir}/{%{name},cron.daily,logrotate.d} \
aad71c3c 161 $RPM_BUILD_ROOT%{_var}/log/{%{name},archive/%{name}} \
75d3e2a6 162 $RPM_BUILD_ROOT%{_datadir}/mibs/site \
48886295 163 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/rules
ab81a4d5 164
5ad2f8a8 165%{__make} install \
166 DESTDIR=$RPM_BUILD_ROOT
2917f470 167
48886295 168install rules/*.config $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
169install etc/unicode.map $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
170install rules/*.rules $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/rules
171install %{SOURCE4} $RPM_BUILD_ROOT%{_initrddir}/%{name}
172install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}
173install rules/snort.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
6a0c25e4 174
b3907a72
AM
175%clean
176rm -rf $RPM_BUILD_ROOT
2917f470 177
b3907a72 178%pre
31126327 179%groupadd -g 46 -r snort
946f7ae3 180%useradd -u 46 -g snort -M -r -d %{_var}/log/snort -s /bin/false -c "SNORT IDS/IPS" snort
7e9750d1 181
b3907a72 182%post
2fa6d1a5
ER
183/sbin/chkconfig --add snort
184%service snort restart
2917f470
MP
185
186%preun
51402fe7 187if [ "$1" = "0" ] ; then
2fa6d1a5 188 %service snort stop
51402fe7 189 /sbin/chkconfig --del snort
190fi
2917f470
MP
191
192%postun
51402fe7 193if [ "$1" = "0" ] ; then
d9c3717f 194 %userremove snort
195 %groupremove snort
51402fe7 196fi
ab81a4d5 197
198%files
b3907a72 199%defattr(644,root,root,755)
48886295 200%doc doc/{AUTHORS,BUGS,CREDITS,INSTALL,NEWS,PROBLEMS,README*,TODO,USAGE,WISHLIST,generators,*.pdf}
980aa956 201%attr(755,root,root) %{_sbindir}/*
48886295 202%attr(770,root,snort) %dir %{_var}/log/%{name}
51d7d44e 203%attr(770,root,snort) %dir %{_var}/log/archive/%{name}
48886295 204%attr(750,root,snort) %dir %{_sysconfdir}/%{name}
205%attr(640,root,snort) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/unicode.map
206%attr(640,root,snort) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.config
207%attr(640,root,snort) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
208%attr(750,root,snort) %dir %{_sysconfdir}/%{name}/rules
96b7be9c 209%attr(640,root,snort) %{_sysconfdir}/%{name}/rules/*
48886295 210%attr(754,root,root) %{_initrddir}/%{name}
96b7be9c 211%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
99fed451 212%{_mandir}/man?/*
48886295 213%dir %{_libdir}/snort_dynamicengine
214%dir %{_libdir}/snort_dynamicpreprocessor
48886295 215%attr(755,root,root) %{_libdir}/snort_dynamicengine/libsf_engine.so*
216%attr(755,root,root) %{_libdir}/snort_dynamicpreprocessor/*.so*
This page took 0.106675 seconds and 4 git commands to generate.