]>
Commit | Line | Data |
---|---|---|
24e10cb4 | 1 | Summary: The sar and iostat system monitoring commands |
2408247e ER |
2 | Summary(pl.UTF-8): Polecenia sar i iostat dla systemu Linux |
3 | Summary(ru.UTF-8): Содержит программы системного мониторинга sar и iostat | |
4 | Summary(uk.UTF-8): Містить команди системного моніторингу sar та iostat | |
5 | Summary(zh_CN.UTF-8): sar, iostat 等系统监视工具 | |
ae943c3e | 6 | Name: sysstat |
2746affb | 7 | Version: 10.1.6 |
03ec5a9f | 8 | Release: 3 |
ba4d6e89 | 9 | License: GPL v2 |
7b0005ef | 10 | Group: Applications/System |
c01e3dd5 | 11 | Source0: http://perso.wanadoo.fr/sebastien.godard/%{name}-%{version}.tar.bz2 |
2746affb | 12 | # Source0-md5: 61792b2591e4b3adcb7b979af2330fba |
9ff3620d | 13 | Source2: %{name}.init |
7b0005ef | 14 | Patch0: %{name}-opt.patch |
ae943c3e | 15 | URL: http://perso.wanadoo.fr/sebastien.godard/ |
e16590db | 16 | BuildRequires: autoconf >= 2.53 |
a966432f | 17 | BuildRequires: automake |
ae943c3e | 18 | BuildRequires: gettext-devel |
e16590db | 19 | BuildRequires: lm_sensors-devel |
2746affb | 20 | BuildRequires: rpmbuild(macros) >= 1.671 |
d13c5b10 JB |
21 | Requires(post,preun): /sbin/chkconfig |
22 | Requires: crondaemon | |
41f5c5ff | 23 | Requires: rc-scripts |
2746affb | 24 | Requires: systemd-units >= 38 |
ae943c3e AM |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
24e10cb4 | 28 | This package provides the sar and iostat commands for the Linux |
29 | operating system, similar to their traditional UNIX counterparts. They | |
30 | enable system monitoring of disk, network, and other IO activity. | |
ae943c3e | 31 | |
e769df85 JR |
32 | %description -l pl.UTF-8 |
33 | Pakiet ten udostępnia polecenia sar i iostat dla systemu Linux podobne | |
34 | w działaniu do tradycyjnych narzędzi systemu Unix. Polecenia te | |
35 | umożliwiają monitorowanie obciążenia zasobów dyskowych, interfejsów | |
36 | sieciowych i innych operacji wejścia/wyjścia. | |
24e10cb4 | 37 | |
e769df85 JR |
38 | %description -l ru.UTF-8 |
39 | Этот пакет содержит программы sar и iostat для Linux, похожие на | |
40 | традиционные одноименные программы UNIX. Они позволяют осуществлять | |
41 | мониторинг дисковой, сетевой и прочей активности системы. | |
24e10cb4 | 42 | |
e769df85 JR |
43 | %description -l uk.UTF-8 |
44 | Цей пакет містить програми sar та iostat для Linux, схожі на | |
45 | традиційні відповідні програми UNIX. Вони дозволяють здійснювати | |
46 | моніторинг дискової, мережевої та іншої активності системи. | |
ae943c3e | 47 | |
e769df85 | 48 | %description -l zh_CN.UTF-8 |
8487f232 | 49 | 本软件提供了用于Linux的系统监视工具, 可以监视磁盘, 网络以及 其他 IO 的活动情况. |
c9202779 | 50 | |
ae943c3e AM |
51 | %prep |
52 | %setup -q | |
53 | %patch0 -p1 | |
54 | ||
55 | %build | |
f14dd4de | 56 | %{__aclocal} |
57 | %{__autoconf} | |
2746affb JR |
58 | %configure \ |
59 | history=28 \ | |
60 | compressafter=31 \ | |
b9d80979 JR |
61 | cron_owner=root \ |
62 | cron_interval=10 \ | |
63 | --enable-install-cron \ | |
2746affb JR |
64 | --disable-stripping \ |
65 | --with-systemdsystemunitdir=%{systemdunitdir} | |
ae943c3e | 66 | |
2746affb JR |
67 | %{__sed} -i 's/SADC_OPTIONS=""/SADC_OPTIONS="-L"/' sysstat.sysconfig |
68 | ||
69 | %{__make} -j1 \ | |
6a0a6121 | 70 | CC="%{__cc}" \ |
4428587d | 71 | CFLAGS="%{rpmcflags}" |
ae943c3e AM |
72 | |
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
2746affb JR |
75 | install -d $RPM_BUILD_ROOT{/etc/{cron.d,rc.d/init.d,sysconfig},/var/log/sa,%{systemdunitdir}} |
76 | ||
77 | %{__make} install \ | |
b9d80979 JR |
78 | CHOWN=/bin/true \ |
79 | SYSTEMCTL=/bin/true \ | |
80 | SYSTEMD_UNIT_DIR=$RPM_BUILD_ROOT%{systemdunitdir} \ | |
2746affb | 81 | DESTDIR=$RPM_BUILD_ROOT |
ae943c3e | 82 | |
2746affb | 83 | install -p sysstat.service $RPM_BUILD_ROOT%{systemdunitdir} |
c01e3dd5 | 84 | |
03ec5a9f | 85 | %{__sed} -e 's|/usr/lib/sa|%{_libdir}/sa|g' %{SOURCE2} >$RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat |
2746affb JR |
86 | |
87 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} | |
ae943c3e | 88 | |
ae943c3e AM |
89 | %find_lang %{name} |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
da6f1e31 | 94 | %post |
bfead14d | 95 | /sbin/chkconfig --add sysstat |
41f5c5ff | 96 | %service sysstat restart |
2746affb | 97 | %systemd_post sysstat.service |
da6f1e31 JB |
98 | |
99 | %preun | |
100 | if [ "$1" = "0" ]; then | |
41f5c5ff | 101 | %service sysstat stop |
da6f1e31 JB |
102 | /sbin/chkconfig --del sysstat |
103 | fi | |
2746affb JR |
104 | %systemd_preun sysstat.service |
105 | ||
106 | %postun | |
107 | %systemd_reload | |
108 | ||
109 | %triggerpostun -- %{name} < 10.1.6-1 | |
110 | %systemd_trigger sysstat.service | |
da6f1e31 | 111 | |
ae943c3e AM |
112 | %files -f %{name}.lang |
113 | %defattr(644,root,root,755) | |
2746affb | 114 | %doc CHANGES CREDITS README FAQ |
e16590db JB |
115 | %attr(755,root,root) %{_bindir}/cifsiostat |
116 | %attr(755,root,root) %{_bindir}/iostat | |
117 | %attr(755,root,root) %{_bindir}/mpstat | |
118 | %attr(755,root,root) %{_bindir}/nfsiostat | |
119 | %attr(755,root,root) %{_bindir}/pidstat | |
120 | %attr(755,root,root) %{_bindir}/sadf | |
121 | %attr(755,root,root) %{_bindir}/sar | |
2746affb | 122 | %dir %{_libdir}/sa |
e16590db | 123 | %attr(755,root,root) %{_libdir}/sa/sa* |
aa77e4d0 | 124 | %attr(750,root,root) %dir /var/log/sa |
e16590db JB |
125 | %attr(754,root,root) /etc/rc.d/init.d/sysstat |
126 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/sysstat | |
127 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sysstat | |
128 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sysstat.ioconf | |
2746affb | 129 | %{systemdunitdir}/sysstat.service |
e16590db JB |
130 | %{_mandir}/man1/cifsiostat.1* |
131 | %{_mandir}/man1/iostat.1* | |
132 | %{_mandir}/man1/mpstat.1* | |
133 | %{_mandir}/man1/nfsiostat.1* | |
134 | %{_mandir}/man1/pidstat.1* | |
135 | %{_mandir}/man1/sadf.1* | |
136 | %{_mandir}/man1/sar.1* | |
137 | %{_mandir}/man5/sysstat.5* | |
138 | %{_mandir}/man8/sa1.8* | |
139 | %{_mandir}/man8/sa2.8* | |
140 | %{_mandir}/man8/sadc.8* |