3 # _without_pgsql build without PostgreSQL support
4 # _without_mysql build without MySQL support
5 # _without_snmp without SNMP support
7 Summary: Network intrusion detection system
8 Summary(pl): System wykrywania intruzów w sieciach
9 Summary(pt_BR): Ferramenta de detecção de intrusos
10 Summary(ru): Snort - ÓÉÓÔÅÍÁ ÏÂÎÁÒÕÖÅÎÉÑ ÐÏÐÙÔÏË ×ÔÏÒÖÅÎÉÑ × ÓÅÔØ
11 Summary(uk): Snort - ÓÉÓÔÅÍÁ ×ÉÑ×ÌÅÎÎÑ ÓÐÒÏ ×ÔÏÒÇÎÅÎÎÑ × ÍÅÒÅÖÕ
16 Vendor: Marty Roesch <roesch@sourcefire.com>
18 Source0: http://www.snort.org/dl/%{name}-%{version}.tar.gz
19 # snort rules from: Sat Oct 26 14:15:30 2002 GMT
20 Source1: http://www.snort.org/dl/signatures/%{name}rules-stable.tar.gz
22 Source3: %{name}.logrotate
23 URL: http://www.snort.org/
24 BuildRequires: libnet-devel
25 BuildRequires: libpcap-devel
26 %{!?_without_mysql:BuildRequires: mysql-devel}
27 %{!?_without_pgsql:BuildRequires: postgresql-devel}
28 BuildRequires: openssl-devel >= 0.9.7
29 %{!?_without_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
30 BuildRequires: zlib-devel
31 BuildRequires: autoconf
32 BuildRequires: automake
33 %{!?_without_mysql:Provides: snort(mysql) = %{version}}
34 %{!?_without_pgsql:Provides: snort(pgsql) = %{version}}
35 Prereq: rc-scripts >= 0.2.0
36 Prereq: /sbin/chkconfig
37 Prereq: %{_sbindir}/useradd
38 Prereq: %{_sbindir}/groupadd
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _sysconfdir /etc/snort
42 %define _bindir %{_sbindir}
45 Snort is an open source network intrusion detection system, capable of
46 performing real-time traffic analysis and packet logging on IP
47 networks. It can perform protocol analysis and content
48 searching/matching in order to detect a variety of attacks and probes,
49 such as buffer overflows, stealth port scans, CGI attacks, SMB probes,
50 OS fingerprinting attempts, and much more. Snort uses a flexible rules
51 language to describe traffic that it should collect or pass, as well
52 as a detection engine that utilizes a modular plugin architecture.
53 Snort has a real- time alerting capability as well, incorporating
54 alerting mechanisms for syslog, user specified files, a UNIX socket,
55 or WinPopup messages to Windows clients using Samba's smbclient.
58 Snort to bazuj±cy na open source NIDS (network intrusion detection
59 systems) wykonuj±cy w czasie rzeczywistym analizê ruchu oraz logowanie
60 pakietów w sieciach IP. Jego mo¿liwo¶ci to analiza protoko³u oraz
61 zawarto¶ci w poszukiwaniu ró¿nego rodzaju ataków lub prób takich jak
62 przepe³nienia bufora, skanowanie portów typu stealth, ataki CGI,
63 próbkowanie SMB, OS fingerprinting i du¿o wiêcej. Snort u¿ywa
64 elastycznego jêzyka regu³ek do opisu ruchu, który nale¿y
65 przeanalizowaæ jak równie¿ silnika wykrywaj±cego, wykorzystuj±cego
66 modu³ow± architekturê. Snort umo¿liwia alarmowanie w czasie
67 rzeczywistym poprzez sysloga, osobny plik lub jako wiadomo¶æ WinPopup
68 poprzez klienta Samby: smbclient.
71 Snort é um sniffer baseado em libpcap que pode ser usado como um
72 pequeno sistema de detecção de intrusos. Tem como característica o
73 registro de pacotes baseado em regras e também pode executar uma
74 análise do protocolo, pesquisa de padrões e detectar uma variedade de
75 assinaturas de ataques, como estouros de buffer, varreduras "stealth"
76 de portas, ataques CGI, pesquisas SMB, tentativas de descobrir o
77 sistema operacional e muito mais. Possui um sistema de alerta em tempo
78 real, com alertas enviados para o syslog, um arquivo de alertas em
79 separado ou como uma mensagem Winpopup.
82 Snort - ÜÔÏ ÓÎÉÆÆÅÒ ÐÁËÅÔÏ×, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ ËÁË ÓÉÓÔÅÍÁ
83 ÏÂÎÁÒÕÖÅÎÉÑ ÐÏÐÙÔÏË ×ÔÏÒÖÅÎÉÑ × ÓÅÔØ. Snort ÐÏÄÄÅÒÖÉ×ÁÅÔ
84 ÐÒÏÔÏËÏÌÉÒÏ×ÁÎÉÅ ÐÁËÅÔÏ× ÎÁ ÏÓÎÏ×Å ÐÒÁ×ÉÌ, ÍÏÖÅÔ ×ÙÐÏÌÎÑÔØ ÁÎÁÌÉÚ
85 ÐÒÏÔÏËÏÌÏ×, ÐÏÉÓË × ÓÏÄÅÒÖÉÍÏÍ ÐÁËÅÔÏ×. íÏÖÅÔ ÔÁËÖÅ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ ÄÌÑ
86 ÏÂÎÁÒÕÖÅÎÉÑ ÁÔÁË É "ÒÁÚ×ÅÄÏË", ÔÁËÉÈ ËÁË ÐÏÐÙÔËÉ ÁÔÁË ÔÉÐÁ
87 "ÐÅÒÅÐÏÌÎÅÎÉÅ ÂÕÆÅÒÁ", ÓËÒÙÔÏÇÏ ÓËÁÎÉÒÏ×ÁÎÉÑ ÐÏÒÔÏ×, CGI ÁÔÁË, SMB
88 ÒÁÚ×ÅÄÏË, ÐÏÐÙÔÏË ÏÂÎÁÒÕÖÅÎÉÑ ÔÉÐÁ ïó É ÍÎÏÇÏ ÄÒÕÇÏÇÏ. Snort ÍÏÖÅÔ
89 ÉÎÆÏÒÍÉÒÏ×ÁÔØ Ï ÓÏÂÙÔÉÑÈ × ÒÅÁÌØÎÏÍ ×ÒÅÍÅÎÉ, ÐÏÓÙÌÁÑ ÓÏÏÂÝÅÎÉÑ ×
90 syslog, ÏÔÄÅÌØÎÙÊ ÆÁÊÌ ÉÌÉ ËÁË WinPopup ÓÏÏÂÝÅÎÉÑ ÞÅÒÅÚ smbclient.
93 Snort - ÃÅ ÓΦÆÅÒ ÐÁËÅÔ¦×, ÝÏ ÍÏÖÅ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉÓØ ÑË ÓÉÓÔÅÍÁ
94 ×ÉÑ×ÌÅÎÎÑ ÓÐÒÏ ×ÔÏÒÇÎÅÎØ × ÍÅÒÅÖÕ. Snort ЦÄÔÒÉÍÕ¤ ÐÒÏÔÏËÏÌÀ×ÁÎÎÑ
95 ÐÁËÅÔ¦× ÎÁ ÏÓÎÏצ ÐÒÁ×ÉÌ, ÍÏÖÅ ×ÉËÏÎÕ×ÁÔÉ ÁÎÁÌ¦Ú ÐÒÏÔÏËÏ̦×, ÐÏÛÕË Õ
96 ×ͦÓÔ¦ ÐÁËÅÔ¦×. íÏÖÅ ÔÁËÏÖ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉÓØ ÄÌÑ ×ÉÑ×ÌÅÎÎÑ ÁÔÁË ÔÁ
97 "ÒÏÚצÄÏË", ÔÁËÉÈ ÑË ÓÐÒÏÂÉ ÁÔÁË ÔÉÐÕ "ÐÅÒÅÐÏ×ÎÅÎÎÑ ÂÕÆÅÒÁ",
98 ÐÒÉÈÏ×ÁÎÏÇÏ ÓËÁÎÕ×ÁÎÎÑ ÐÏÒÔ¦×, CGI ÁÔÁË, SMB ÒÏÚצÄÏË, ÓÐÒÏ ×ÉÑ×ÌÅÎÎÑ
99 ÔÉÐÕ ïó ÔÁ ÂÁÇÁÔÏ ¦ÎÛÏÇÏ. Snort ÍÏÖÅ ¦ÎÆÏÒÍÕ×ÁÔÉ ÐÒÏ ÐÏĦ§ × ÒÅÁÌØÎÏÍÕ
100 ÞÁÓ¦, ÎÁÄÓÉÌÁÀÞÉ ÐÏצÄÏÍÌÅÎÎÑ ÄÏ syslog, ÏËÒÅÍÏÇÏ ÆÁÊÌÕ ÞÉ ÑË WinPopup
101 ÐÏצÄÏÍÌÅÎÎÑ ÞÅÒÅÚ smbclient.
114 --with%{?_without_snmp:out}-snmp \
116 --with%{?_without_pgsql:out}-postgresql \
117 --with%{?_without_mysql:out}-mysql
122 rm -rf $RPM_BUILD_ROOT
123 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,%{name},cron.daily,logrotate.d} \
124 $RPM_BUILD_ROOT%{_var}/log/{%{name},archiv/%{name}} \
125 $RPM_BUILD_ROOT%{_datadir}/mibs/site
128 DESTDIR=$RPM_BUILD_ROOT
130 install etc/*MIB*.txt $RPM_BUILD_ROOT%{_datadir}/mibs/site
131 install etc/snort.conf $RPM_BUILD_ROOT%{_sysconfdir}
132 install rules/*.{rules,config} $RPM_BUILD_ROOT%{_sysconfdir}
133 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
134 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
137 rm -rf $RPM_BUILD_ROOT
140 if [ -z "`getgid %{name}`" ]; then
141 %{_sbindir}/groupadd -g 46 -r snort 2> /dev/null || true
144 if [ -z "`id -u %{name} 2>/dev/null`" ]; then
145 %{_sbindir}/useradd -u 46 -g %{name} -M -r -d %{_var}/log/%{name} -s /bin/false \
146 -c "SNORT" snort 2> /dev/null || true
150 if [ "$1" = "1" ] ; then
151 /sbin/chkconfig --add snort
152 touch %{_var}/log/%{name} && chown snort.snort %{_var}/log/%{name}
156 if [ "$1" = "0" ] ; then
157 if [ -f /var/lock/subsys/snort ]; then
158 /etc/rc.d/init.d/snort stop 1>&2
160 /sbin/chkconfig --del snort
164 if [ "$1" = "0" ] ; then
165 %{_sbindir}/userdel snort 2> /dev/null || true
166 %{_sbindir}/groupdel snort 2> /dev/null || true
170 %defattr(644,root,root,755)
171 %doc doc/{AUTHORS,BUGS,CREDITS,FAQ,NEWS,README*,RULES*,TODO,USAGE}
172 %doc contrib/create* doc/*.pdf
173 %attr(755,root,root) %{_sbindir}/*
174 %attr(770,root,snort) %dir %{_var}/log/%{name}
175 %attr(770,root,snort) %dir %{_var}/log/archiv/%{name}
176 %attr(750,root,snort) %dir %{_sysconfdir}
177 %attr(640,root,snort) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
178 %attr(754,root,root) /etc/rc.d/init.d/%{name}
179 %attr(640,root,root) /etc/logrotate.d/*
180 %{_datadir}/mibs/site/*.txt