2 # - configure without options not working
5 %bcond_without tcp_wrappers # build with tcp_wrappers support
6 %bcond_without sasl # build with sasl support
10 Summary: Real time network flow monitor
11 Summary(pl.UTF-8): Monitor obciążenia sieci czasu rzeczywistego
13 Version: %{_ver_major}.%{_ver_minor}
16 Group: Applications/Networking
17 Source0: ftp://qosient.com/dev/argus-%{_ver_major}/%{name}-%{version}.tar.gz
18 # Source0-md5: c5f143fce0fa41239612fcc3619e6886
21 Source3: %{name}.sysconfig
22 Source4: %{name}.logrotate
23 URL: http://www.qosient.com/argus/
25 %{?with_sasl:BuildRequires: cyrus-sasl-devel}
26 BuildRequires: libpcap-devel
27 %{?with_tcp_wrappers:BuildRequires: libwrap-devel}
28 BuildRequires: rpmbuild(macros) >= 1.268
29 Requires(post,preun): /sbin/chkconfig
31 Provides: group(argus)
33 Conflicts: logrotate < 3.7-4
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Argus is a Real Time Flow Monitor designed to track and report on the
38 status and performance of all network transactions seen in a data
39 network traffic stream. It is similiar to Cisco NetFlow, however more
40 powerful and with different data format.
42 %description -l pl.UTF-8
43 Argus jest monitorem sieci czasu rzeczywistego zaprojektowanym do
44 śledzenia i raportowania stanu sieci oraz wszelkiego typu transakcji
45 sieciowych widzianych w strumieniu danych. Jest bardzo podobny do
46 NetFlow z Cisco, jednak bardziej rozbudowany i posiada inny format
54 --with%{!?with_tcp_wrappers:out}-libwrap \
55 --with%{!?with_sasl:out}-sasl
59 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
62 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig}
63 install -d $RPM_BUILD_ROOT%{_var}/log/%{name}
65 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
66 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
67 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
68 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
70 touch $RPM_BUILD_ROOT%{_var}/log/%{name}/%{name}.log
73 DESTDIR=$RPM_BUILD_ROOT
76 rm -rf $RPM_BUILD_ROOT
79 %groupadd -g 214 argus
80 %useradd -u 214 -d /usr/share/empty -s /bin/sh -g argus -c "argus daemon" argus
83 /sbin/chkconfig --add %{name}
84 %service %{name} restart
87 if [ "$1" = "0" ]; then
88 %service -q %{name} stop
89 /sbin/chkconfig --del %{name}
93 %defattr(644,root,root,755)
94 %doc CREDITS ChangeLog README doc/{CHANGES,FAQ,HOW-TO}
95 %attr(755,root,root) %{_bindir}/argusbug
96 %attr(755,root,root) %{_sbindir}/argus
97 %attr(754,root,root) /etc/rc.d/init.d/%{name}
98 %dir %{_sysconfdir}/%{name}
99 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
100 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
101 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
102 %attr(770,root,argus) %dir %{_var}/log/%{name}
103 %attr(660,root,argus) %ghost %{_var}/log/%{name}/%{name}.log
104 %{_mandir}/man5/argus.conf.5*
105 %{_mandir}/man8/argus.8*