Name: atop Version: 2.0.2 Release: %mkrel 5 Source: http://www.atcomputing.nl/Tools/atop/packages/%{name}-%{version}.tar.gz URL: http://www.ATComputing.nl/atop Summary: AT Computing System and Process Monitor License: GPL Group: Monitoring Buildrequires: zlib-devel Buildrequires: ncurses-devel %description The program atop is an interactive monitor to view the load on a Linux-system. It shows the occupation of the most critical hardware-resources (from a performance point of view) on system-level, i.e. cpu, memory, disk and network. It also shows which processes are responsible for the indicated load (again cpu-, memory-, disk- and network-load on process-level). The program atop can also be used to log system- and process-level information in raw format for long-term analysis. The program atopsar can be used to view system-level statistics as reports, similar to the program sar. %prep %setup -q sed -i -e "s/CFLAGS =/CFLAGS +=/" Makefile %build CFLAGS="%{optflags}" %make %install rm -rf $RPM_BUILD_ROOT install -Dp -m 04711 atop $RPM_BUILD_ROOT%{_bindir}/atop ln -s atop $RPM_BUILD_ROOT%{_bindir}/atopsar install -Dp -m 0644 man/atop.1 $RPM_BUILD_ROOT%{_mandir}/man1/atop.1 install -Dp -m 0644 man/atopsar.1 $RPM_BUILD_ROOT%{_mandir}/man1/atopsar.1 install -Dp -m 0755 atop.init $RPM_BUILD_ROOT%{_initrddir}/atop install -Dp -m 0711 atop.daily $RPM_BUILD_ROOT/etc/atop/atop.daily install -Dp -m 0644 atop.cron $RPM_BUILD_ROOT/etc/cron.d/atop install -Dp -m 0644 psaccs_atop $RPM_BUILD_ROOT/etc/logrotate.d/psaccs_atop install -Dp -m 0644 psaccu_atop $RPM_BUILD_ROOT/etc/logrotate.d/psaccu_atop install -d -m 0755 $RPM_BUILD_ROOT/var/log/atop %post %_post_service atop # save today's logfile (format might be incompatible) mv /var/log/atop/atop_`date +%Y%m%d` /var/log/atop/atop_`date +%Y%m%d`.save \ 2> /dev/null || : # create dummy files to be rotated touch /var/log/atop/dummy_before /var/log/atop/dummy_after # activate daily logging for today /etc/atop/atop.daily %preun %_preun_service atop %files %doc README COPYING README AUTHOR ChangeLog %{_bindir}/atop %{_bindir}/atopsar %{_mandir}/man1/atop.1* %{_mandir}/man1/atopsar.1* %config %{_initrddir}/atop %{_sysconfdir}/%{name}/atop.daily %{_sysconfdir}/cron.d/atop %{_sysconfdir}/logrotate.d/psaccs_atop %{_sysconfdir}/logrotate.d/psaccu_atop %dir /var/log/atop/ %changelog * Wed Oct 15 2014 umeabot <umeabot> 2.0.2-5.mga5 + Revision: 750430 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 2.0.2-4.mga5 + Revision: 678030 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 2.0.2-3.mga4 + Revision: 502919 - Mageia 4 Mass Rebuild * Fri Jan 11 2013 umeabot <umeabot> 2.0.2-2.mga3 + Revision: 346551 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jan 09 2013 anssi <anssi> 2.0.2-1.mga3 + Revision: 343618 - new version 2.0.2 - drop initscript_LSB.patch, fixed upstream + malo <malo> - fix RPM group * Thu Mar 17 2011 tv <tv> 1.26-1.mga1 + Revision: 73418 - imported package atop * Fri Jan 07 2011 Antoine Ginies <aginies@mandriva.com> 1.26-1mdv2011.0 + Revision: 629520 - atop version 1.26 * Wed Dec 01 2010 Funda Wang <fwang@mandriva.org> 1.25-2mdv2011.0 + Revision: 604338 - rebuild for new zlib * Sun Aug 15 2010 Sandro Cazzaniga <kharec@mandriva.org> 1.25-1mdv2011.0 + Revision: 569923 - use %%{_sysconfdir} in file list - fix license according to COPYING file - rediff patch - update to 1.25 * Fri Jan 29 2010 Frederik Himpe <fhimpe@mandriva.org> 1.24-1mdv2010.1 + Revision: 498286 - Update to new version 1.24 - Use Mandriva CFLAGS * Tue Nov 10 2009 Andrey Borzenkov <arvidjaar@mandriva.org> 1.23-4mdv2010.1 + Revision: 464255 - patch1 - LSBify init script * Tue Sep 01 2009 Thierry Vignaud <tv@mandriva.org> 1.23-3mdv2010.0 + Revision: 423974 - rebuild * Thu Jun 19 2008 Thierry Vignaud <tv@mandriva.org> 1.23-2mdv2009.0 + Revision: 226190 - rebuild * Thu Mar 06 2008 Antoine Ginies <aginies@mandriva.com> 1.23-1mdv2008.1 + Revision: 180922 - add ncurses-devel buildrequires - it's zlib-devel buildrequires, not bzip2-devel requires - add bzip2-devel buildrequires - new version - new version 1.2.3 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request + Erwan Velu <erwan@mandriva.org> - Import atop