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