2010-11-26 00:49:26 +01:00
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
Summary: A Nagios plugin to compare time on remote host with localhost
|
2010-11-26 01:03:21 +01:00
|
|
|
Name: nagios-okplugin-check_time
|
2014-04-04 15:10:38 +02:00
|
|
|
Version: 1.0.3
|
2010-11-26 00:49:26 +01:00
|
|
|
Release: 1%{?dist}
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Applications/System
|
|
|
|
URL: http://opensource.is/trac/wiki/check_time
|
|
|
|
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_time/releases/nagios-okplugin-check_time-%{version}.tar.gz
|
|
|
|
Requires: nagios-nrpe
|
2014-04-04 15:07:33 +02:00
|
|
|
Requires: bc
|
2010-11-26 00:49:26 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Packager: Pall Sigurdsson <palli@opensource.is>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
2010-11-26 01:03:21 +01:00
|
|
|
A Nagios plugin to compare time on remote host with localhost
|
2010-11-26 00:49:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_time.cfg
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2010-11-26 01:03:21 +01:00
|
|
|
install -D -p -m 0755 check_time.sh %{buildroot}%{_libdir}/nagios/plugins/check_time.sh
|
2010-11-26 00:49:26 +01:00
|
|
|
install -D -p -m 0755 nrpe.d/check_time.cfg %{buildroot}/etc/nrpe.d/check_time.cfg
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2010-11-26 01:03:21 +01:00
|
|
|
#%doc README LICENSE
|
2010-11-26 00:49:26 +01:00
|
|
|
%{_libdir}/nagios/plugins/*
|
|
|
|
/etc/nrpe.d/check_time.cfg
|
|
|
|
|
|
|
|
%changelog
|
2014-04-04 15:10:38 +02:00
|
|
|
* Fri Apr 04 2014 Tomas Edwardsson <tommi@tommi.org> 1.0.3-1
|
|
|
|
- check_time - Added requirement for bc (tommi@tommi.org)
|
|
|
|
|
2014-03-25 13:08:35 +01:00
|
|
|
* Tue Mar 25 2014 Tomas Edwardsson <tommi@tommi.org> 1.0.2-1
|
|
|
|
- Bump version
|
|
|
|
|
2012-03-12 17:08:59 +01:00
|
|
|
* Mon Mar 12 2012 Pall Sigurdsson <palli@opensource.is> 1.0.1-1
|
|
|
|
- new package built with tito
|
|
|
|
|
2010-11-26 00:49:26 +01:00
|
|
|
* Thu Nov 25 2010 Pall Sigurdsson <palli@opensource.is> 0.1-1
|
|
|
|
- Initial packaging
|