]>
Commit | Line | Data |
---|---|---|
d31e0d15 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without sasl # build with sasl support | |
4 | # | |
5 | %define _ver_major 3.0 | |
6 | %define _ver_minor 0 | |
7 | %define _rc rc.40 | |
8 | %define _rel 0.1 | |
9 | Summary: Real time network flow monitor | |
10 | Summary(pl.UTF-8): Monitor obciążenia sieci czasu rzeczywistego | |
11 | Name: argus-clients | |
12 | Version: %{_ver_major}.%{_ver_minor} | |
13 | Release: 0.%{_rc}.%{_rel} | |
14 | License: GPL v2 | |
15 | Group: Applications/Networking | |
16 | Source0: ftp://qosient.com/dev/argus-%{_ver_major}/%{name}-%{version}.%{_rc}.tar.gz | |
17 | # Source0-md5: 78ad75c148f1ee7b48d0c3029c4be7e4 | |
18 | Source1: %{name}-excel.rc | |
19 | Source2: %{name}-racluster.conf | |
20 | Source3: %{name}-radium.conf | |
21 | Source4: %{name}-radium.init | |
22 | Source5: %{name}-radium.sysconfig | |
23 | Source6: %{name}-radium.logrotate | |
24 | Source7: %{name}-ranonymize.conf | |
25 | Source8: %{name}-ra.print.all.conf | |
26 | Source9: %{name}-rarc | |
27 | URL: http://www.qosient.com/argus/ | |
28 | BuildRequires: bison | |
29 | %{?with_sasl:BuildRequires: cyrus-sasl-devel} | |
30 | BuildRequires: flex | |
31 | BuildRequires: rpmbuild(macros) >= 1.268 | |
32 | Requires(post,preun): /sbin/chkconfig | |
33 | Requires: rc-scripts | |
34 | Provides: group(argus) | |
35 | Provides: user(argus) | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | Argus is a Real Time Flow Monitor designed to track and report on the | |
40 | status and performance of all network transactions seen in a data | |
41 | network traffic stream. It is similiar to Cisco NetFlow, however more | |
42 | powerful and with different data format. | |
43 | ||
44 | This package provides variuos methods to process and present the data. | |
45 | ||
46 | %description -l pl.UTF-8 | |
47 | Argus jest monitorem sieci czasu rzeczywistego zaprojektowanym do | |
48 | śledzenia i raportowania stanu sieci oraz wszelkiego typu transakcji | |
49 | strumieni danych. Jest bardzo podobny do NetFlow z Cisco, jednak | |
50 | bardziej rozbudowany i posiada inny format danych. | |
51 | ||
52 | Ta paczka dostarcza różnych metod do przetwarzania i prezentowania | |
53 | danych. | |
54 | ||
55 | %prep | |
56 | %setup -q -n %{name}-%{version}.%{_rc} | |
57 | ||
58 | %build | |
59 | %configure \ | |
60 | --with%{!?with_sasl:out}-sasl | |
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
67 | install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} | |
68 | install -d $RPM_BUILD_ROOT%{_var}/log/%{name} | |
69 | ||
70 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/excel.rc | |
71 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/racluster.conf | |
72 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/radium.conf | |
73 | install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/randomize.conf | |
74 | install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ra.print.all.conf | |
75 | install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/rarc | |
76 | ||
77 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/radium | |
78 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/radium | |
79 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/radium | |
80 | ||
81 | touch $RPM_BUILD_ROOT%{_var}/log/%{name}/radium.log | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | # same file is in argus.spec | |
87 | mv $RPM_BUILD_ROOT%{_bindir}/argusbug $RPM_BUILD_ROOT%{_bindir}/argusbug-clients | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %pre | |
93 | %groupadd -g 214 argus | |
94 | %useradd -u 214 -d /usr/share/empty -s /bin/sh -g argus -c "argus daemon" argus | |
95 | ||
96 | %post | |
97 | /sbin/chkconfig --add radium | |
98 | %service radium restart | |
99 | ||
100 | %preun | |
101 | if [ "$1" = "0" ]; then | |
102 | %service -q radium stop | |
103 | /sbin/chkconfig --del radium | |
104 | fi | |
105 | ||
106 | %files | |
107 | %defattr(644,root,root,755) | |
108 | %doc CREDITS ChangeLog README doc/{CHANGES,FAQ,HOW-TO} | |
109 | %attr(755,root,root) %{_bindir}/argusbug-clients | |
110 | %attr(755,root,root) %{_bindir}/ra | |
111 | %attr(755,root,root) %{_bindir}/rabins | |
112 | %attr(755,root,root) %{_bindir}/racluster | |
113 | %attr(755,root,root) %{_bindir}/racount | |
114 | %attr(755,root,root) %{_bindir}/ragraph | |
115 | %attr(755,root,root) %{_bindir}/ragrep | |
116 | %attr(755,root,root) %{_bindir}/rahisto | |
117 | %attr(755,root,root) %{_bindir}/ranonymize | |
118 | %attr(755,root,root) %{_bindir}/rapath | |
119 | %attr(755,root,root) %{_bindir}/rapolicy | |
120 | %attr(755,root,root) %{_bindir}/rasort | |
121 | %attr(755,root,root) %{_bindir}/rasplit | |
122 | %attr(755,root,root) %{_bindir}/rastrip | |
123 | %attr(755,root,root) %{_bindir}/ratemplate | |
124 | %attr(755,root,root) %{_bindir}/ratop | |
125 | %attr(755,root,root) %{_sbindir}/radium | |
126 | %attr(754,root,root) /etc/rc.d/init.d/radium | |
127 | %dir %{_sysconfdir}/%{name} | |
128 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/excel.rc | |
129 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/racluster.conf | |
130 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/radium.conf | |
131 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/randomize.conf | |
132 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/ra.print.all.conf | |
133 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/rarc | |
134 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/radium | |
135 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/radium | |
62b74fbe ER |
136 | %{_mandir}/man1/ra.1* |
137 | %{_mandir}/man1/rabins.1* | |
138 | %{_mandir}/man1/racluster.1* | |
139 | %{_mandir}/man1/racount.1* | |
140 | %{_mandir}/man1/ragraph.1* | |
141 | %{_mandir}/man1/ragrep.1* | |
142 | %{_mandir}/man1/rahisto.1* | |
143 | %{_mandir}/man1/rasort.1* | |
144 | %{_mandir}/man1/rasplit.1* | |
145 | %{_mandir}/man1/rastrip.1* | |
146 | %{_mandir}/man5/racluster.5* | |
147 | %{_mandir}/man5/radium.conf.5* | |
148 | %{_mandir}/man5/rarc.5* | |
149 | %{_mandir}/man8/radium.8* | |
d31e0d15 | 150 | %attr(770,root,argus) %dir %{_var}/log/%{name} |
151 | %attr(660,root,argus) %ghost %{_var}/log/%{name}/radium.log |