sysstat-6.1.2.spec
来自「linux下查看系统工具原码,如IOSTAT等」· SPEC 代码 · 共 79 行
SPEC
79 行
Summary: SAR, SADF, MPSTAT and IOSTAT for LinuxName: sysstatVersion: 6.1.2Release: 1Copyright: GPLGroup: Applications/SystemSource0: %{name}-%{version}.tar.gzURL: http://perso.wanadoo.fr/sebastien.godardPackager: Damien Faure <damien-jn.faure@bull.net>BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)%descriptionThe sysstat package contains the sar, sadf, mpstat, iostat and sa tools for Linux.The sar command collects and reports system activity information.The sadf command may be used to display data collected by sar invarious formats (XML, etc.).The iostat command reports CPU utilization and I/O statistics for disks.The mpstat command reports global and per-processor statistics.The information collected by sar can be saved in a file in a binary format for future inspection. The statistics reported by sar concern I/O transfer rates, paging activity, process-related activities, interrupts, network activity, memory and swap space utilization, CPUutilization, kernel activities and TTY statistics, among others. Both UP and SMP machines are fully supported.%prep %setup %buildmake PREFIX=%{_prefix} \ SA_LIB_DIR=%{_libdir}/sa \ MAN_DIR=%{_mandir} %installrm -rf $RPM_BUILD_ROOTinstall -d $RPM_BUILD_ROOT/var/log/samake IGNORE_MAN_GROUP=y \ DESTDIR=$RPM_BUILD_ROOT \ PREFIX=%{_prefix} \ MAN_DIR=%{_mandir} \ SA_LIB_DIR=%{_libdir}/sa \ installmkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.dinstall -m 755 sysstat $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstatmkdir -p $RPM_BUILD_ROOT/etc/sysconfiginstall -m 644 sysstat.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/sysstatinstall -m 644 sysstat.ioconf $RPM_BUILD_ROOT/etc/sysconfig/sysstat.ioconfmkdir -p $RPM_BUILD_ROOT/etc/cron.dinstall -m 644 sysstat.crond.sample $RPM_BUILD_ROOT/etc/cron.d/sysstatmkdir -p $RPM_BUILD_ROOT/etc/rc2.dcd $RPM_BUILD_ROOT/etc/rc2.d && ln -sf ../init.d/sysstat S03sysstatmkdir -p $RPM_BUILD_ROOT/etc/rc3.dcd $RPM_BUILD_ROOT/etc/rc3.d && ln -sf ../init.d/sysstat S03sysstatmkdir -p $RPM_BUILD_ROOT/etc/rc5.dcd $RPM_BUILD_ROOT/etc/rc5.d && ln -sf ../init.d/sysstat S03sysstat%cleanrm -rf $RPM_BUILD_ROOT%files %defattr(644,root,root,755)%doc %{_prefix}/doc/sysstat-%{version}/*%attr(755,root,root) %{_bindir}/*%attr(755,root,root) %{_libdir}/sa/*%attr(644,root,root) %{_mandir}/man*/*%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/sysstat.mo%attr(755,root,root) %dir /var/log/sa%attr(755,root,root) /etc/rc.d/init.d/sysstat%attr(644,root,root) /etc/sysconfig/sysstat%attr(644,root,root) /etc/sysconfig/sysstat.ioconf%attr(755,root,root) /etc/rc2.d/S03sysstat%attr(755,root,root) /etc/rc3.d/S03sysstat%attr(755,root,root) /etc/rc5.d/S03sysstat%config(noreplace) %attr(0644,root,root) /etc/cron.d/sysstat
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?