monitorix/monitorix.spec

Name: monitorix
Summary: Monitorix is a system monitoring tool
Version: 3.2.1
Release: 1
License: GPL
Group: Applications/System
URL: http://www.monitorix.org
Description: Monitorix is a free, open source, lightweight system monitoring tool designed to monitor as many services and system resources as possible. It has been created to be used under production UNIX/Linux servers, but due to its simplicity and small size may also be used on embedded devices as well.

CentOS 7 x86_64

The build could not start because the following file is missing: monitorix-3.2.1.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: monitorix-3.2.1.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dfateyev
# Upstream: Jordi Sanfeliu <jordi$fibranet,cat>

Summary: Monitorix is a system monitoring tool
Name: monitorix
Version: 3.2.1
Release: 1%{?dist}
License: GPL
Group: Applications/System
URL: http://www.monitorix.org

Source: http://www.monitorix.org/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch

Requires: rrdtool
Requires: perl
Requires: perl-libwww-perl
Requires: perl-MailTools
Requires: perl-MIME-Lite
Requires: perl-DBI
Requires: perl-XML-Simple
Requires: perl-Config-General
Requires: perl-HTTP-Server-Simple

Requires: /sbin/chkconfig
Requires: /sbin/service

%description
Monitorix is a free, open source, lightweight system monitoring tool designed
to monitor as many services and system resources as possible. It has been
created to be used under production UNIX/Linux servers, but due to its
simplicity and small size may also be used on embedded devices as well.

%prep
%setup

%build

%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_initrddir}
%{__install} -m 0755 docs/monitorix.init %{buildroot}%{_initrddir}/monitorix
%{__mkdir_p} %{buildroot}%{_sysconfdir}/logrotate.d
%{__install} -m 0644 docs/monitorix.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/monitorix
%{__mkdir_p} %{buildroot}%{_sysconfdir}/sysconfig
%{__install} -m 0644 docs/monitorix.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/monitorix
%{__mkdir_p} %{buildroot}%{_sysconfdir}
%{__install} -m 0644 monitorix.conf %{buildroot}%{_sysconfdir}/monitorix.conf
%{__mkdir_p} %{buildroot}%{_bindir}
%{__install} -m 0755 monitorix %{buildroot}%{_bindir}
%{__mkdir_p} %{buildroot}%{_libdir}/monitorix
%{__install} -m 0644 lib/*.pm %{buildroot}%{_libdir}/monitorix
%{__mkdir_p} %{buildroot}%{_datadir}/monitorix
%{__install} -m 0644 logo_top.png %{buildroot}%{_datadir}/monitorix
%{__install} -m 0644 logo_bot.png %{buildroot}%{_datadir}/monitorix
%{__install} -m 0644 monitorixico.png %{buildroot}%{_datadir}/monitorix
%{__mkdir_p} %{buildroot}%{_datadir}/monitorix/imgs
%{__mkdir_p} %{buildroot}%{_datadir}/monitorix/cgi
%{__install} -m 0755 monitorix.cgi %{buildroot}%{_datadir}/monitorix/cgi
%{__mkdir_p} %{buildroot}%{_localstatedir}/lib/monitorix/reports
%{__install} -m 0644 reports/*.html %{buildroot}%{_localstatedir}/lib/monitorix/reports
%{__mkdir_p} %{buildroot}%{_localstatedir}/lib/monitorix/usage
%{__mkdir_p} %{buildroot}%{_mandir}/man5
%{__mkdir_p} %{buildroot}%{_mandir}/man8
%{__install} -m 0644 man/man5/monitorix.conf.5 %{buildroot}%{_mandir}/man5
%{__install} -m 0644 man/man8/monitorix.8 %{buildroot}%{_mandir}/man8

%clean
%{__rm} -rf %{buildroot}

%post
if [ $1 -eq 1 ]; then
    /sbin/chkconfig --add monitorix
fi

%preun
if [ $1 -eq 0 ]; then
    /sbin/service monitorix stop &>/dev/null || :
    /sbin/chkconfig --del monitorix
fi

%postun
if [ $1 -ge 1 ]; then
    /sbin/service monitorix condrestart &>/dev/null || :
fi

%files
%defattr(-, root, root)
%{_initrddir}/monitorix
%config(noreplace) %{_sysconfdir}/logrotate.d/monitorix
%config(noreplace) %{_sysconfdir}/sysconfig/monitorix
%config(noreplace) %{_sysconfdir}/monitorix.conf
%{_bindir}/monitorix
%{_libdir}/monitorix/*.pm
%{_datadir}/monitorix/logo_top.png
%{_datadir}/monitorix/logo_bot.png
%{_datadir}/monitorix/monitorixico.png
%{_datadir}/monitorix/cgi/monitorix.cgi
%attr(777,root,root) %{_datadir}/monitorix/imgs
%attr(755,root,root) %{_localstatedir}/lib/monitorix/usage
%config(noreplace) %{_localstatedir}/lib/monitorix/reports/*.html
%doc %{_mandir}/man5/monitorix.conf.5.gz
%doc %{_mandir}/man8/monitorix.8.gz
%doc Changes COPYING README README.nginx README.FreeBSD README.OpenBSD README.NetBSD docs/monitorix-alert.sh docs/monitorix-apache.conf docs/monitorix-lighttpd.conf docs/monitorix.service docs/htpasswd.pl

%changelog
* Thu Jun 16 2013 Jordi Sanfeliu <jordi@fibranet.cat> - 3.2.1-1
- Updated to the latest version.

* Thu Sep 20 2012 Jordi Sanfeliu <jordi@fibranet.cat> - 2.6.0-1
- Updated to the latest version.

* Tue May 22 2012 Jordi Sanfeliu <jordi@fibranet.cat> - 2.5.2-1
- Updated to the latest version.

* Wed Apr 25 2012 Jordi Sanfeliu <jordi@fibranet.cat> - 2.5.1-1
- Updated to the latest version.

* Thu Mar 22 2012 Jordi Sanfeliu <jordi@fibranet.cat> - 2.5.0-1
- Updated to the latest version.

* Tue Jan 17 2012 Jordi Sanfeliu <jordi@fibranet.cat> - 2.4.1-1
- Updated to the latest version.

* Tue Sep 06 2011 Yury V. Zaytsev <yury@shurup.com> - 2.3.0-1
- Updated to the latest release (thanks to Jordi Sanfeliu!)
- Init script now supports condrestart (see gh-52 for details)

* Tue Jun 21 2011 Yury V. Zaytsev <yury@shurup.com> - 2.2.0-1
- Updated to the latest release (thanks to Jordi Sanfeliu!)
- See gh-13 for the details

* Thu Sep 01 2005 Jordi Sanfeliu <jordi@fibranet.cat> - 0.7.8-1
- Release 0.7.8.
- First public release.
- All changes are described in the Changes file.