3 #awk: line 36: regular expression compile failed (bad class -- [], [^] or [)
5 #awk: line 36: syntax error at or near ]
6 #awk: line 87: regular expression compile failed (bad class -- [], [^] or [)
8 #awk: line 87: syntax error at or near ]
9 Summary: AT Computing System Activity Report - a sar clone for Linux
10 Summary(pl): Atsar - odpowiednik uniksowego programu sar dla Linuksa
16 Source0: ftp://ftp.atcomputing.nl/pub/tools/linux/%{name}_linux-%{version}.tar.gz
17 # Source0-md5: 2aa73a4a99dd176a02c5336889d8b028
20 Patch0: %{name}-runfrompath.patch
21 URL: ftp://ftp.atcomputing.nl/pub/tools/linux/
22 BuildRequires: rpmbuild(macros) >= 1.268
23 Requires(post,preun): /sbin/chkconfig
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Atsar can be used to measure the load on the most relevant system
30 resources, such as CPU, disk, memory and network. Long-term analysis
31 can be done via cron, by maintaining log files with statistical
32 information. Short-term analysis can be done by starting the command
33 atsar with an interval and a number of samples. The current version of
34 atsar gathers statistics about the utilization of CPU's, disks, memory
35 and swap, serial lines and network (TCP/IP v4 and v6).
38 Atsar przydaje siê do pomiarów obci±¿enia najbardziej istotnych
39 zasobów systemowych, takich jak procesor, dysk, pamiêæ i sieæ. Dziêki
40 po³±czeniu z cronem mo¿liwe jest otrzymanie logów z informacj±
41 statystyczn±, przydatnych do d³ugoterminowych analiz. Krótkoterminowe
42 analizy mog± byæ wykonywane przez bezpo¶rednie uruchomienie programu
43 atsar z podaniem parametrów takich jak ilo¶æ próbek i odstêp czasowy
44 miêdzy próbkami. Aktualna wersja programu atsar gromadzi informacje o
45 wykorzystaniu procesora, dysków, pamiêci (operacyjnej i wymiany),
46 ³±czy szeregowych i sieci (TCP/IP v4 i v6).
49 %setup -q -n %{name}_linux-%{version}
53 for r in atsar atsadc \*.o ;do
54 find -iname $r -exec rm -v {} \;
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/var/log/atsar} \
61 $RPM_BUILD_ROOT/etc/{rc.d/init.d,cron.d}
63 for s in scripts/atsa1 atsar_linux.conf ;do
64 cat $s | sed -e 's|usr/local/bin|%{_bindir}|g' > sed.$$
68 install atsar/atsar atsadc/atsadc scripts/atsa1 \
69 scripts/atsaftp scripts/atsahttp $RPM_BUILD_ROOT%{_bindir}
70 install man/* $RPM_BUILD_ROOT%{_mandir}/man1
72 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/atsar
73 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/atsar
74 install atsar_linux.conf $RPM_BUILD_ROOT%{_sysconfdir}/atsar.conf
77 rm -rf $RPM_BUILD_ROOT
81 %service atsar restart
84 if [ "$1" = "0" ]; then
86 /sbin/chkconfig --del atsar
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_bindir}/atsar
93 %attr(755,root,root) %{_bindir}/atsadc
94 %attr(755,root,root) %{_bindir}/atsa1
95 %attr(755,root,root) %{_bindir}/atsaftp
96 %attr(755,root,root) %{_bindir}/atsahttp
97 %{_mandir}/man1/atsar.1*
98 %{_mandir}/man1/atsadc.1*
100 %attr(754,root,root) %config /etc/rc.d/init.d/atsar
101 %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/atsar
102 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/atsar.conf