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