mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-05 01:53:44 +01:00
677ec90e3e
nagios-okplugin-check_updates was the wrong name for nagios-okplugin-check_package_updates. It was renamed but some might have installed check_updates in the mean time.
66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
%define debug_package %{nil}
|
|
%define plugin check_package_updates
|
|
|
|
Summary: A Nagios plugin to check operating system updates
|
|
Name: nagios-okplugin-%{plugin}
|
|
Version: 0.0.6
|
|
Release: 1%{?dist}
|
|
License: GPLv3+
|
|
Group: Applications/System
|
|
URL: https://github.com/opinkerfi/nagios-plugins/tree/master/%{plugin}
|
|
Source0: https://github.com/opinkerfi/nagios-plugins/tree/master/%{plugin}/releases/%{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Packager: Tomas Edwardsson <tommi@opensource.is>
|
|
BuildArch: noarch
|
|
Requires: nrpe
|
|
Requires: pynag
|
|
Requires: PackageKit
|
|
Obsoletes: nagios-okplugin-check_yum
|
|
Obsoletes: nagios-okplugin-check_updates
|
|
|
|
|
|
%description
|
|
Checks updates via PackageKit and can notify on various different situations
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
install -D -p -m 0755 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin}
|
|
mkdir -p %{buildroot}%{_sysconfdir}/nrpe.d
|
|
sed "s^/usr/lib64^%{_libdir}^g" nrpe.d/%{plugin}.cfg > %{buildroot}%{_sysconfdir}/nrpe.d/%{plugin}.cfg
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.md
|
|
%{_libdir}/nagios/plugins/*
|
|
%config(noreplace) %{_sysconfdir}/nrpe.d/%{plugin}.cfg
|
|
|
|
%changelog
|
|
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.6-1
|
|
- Fix failure on a fully patched system (tommi@tommi.org)
|
|
|
|
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.5-1
|
|
- Known types always have a metric, even if 0 (tommi@tommi.org)
|
|
|
|
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.4-1
|
|
- new package built with tito
|
|
|
|
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.3-1
|
|
- Plugin should conflict with check_yum (tommi@tommi.org)
|
|
- No obsolete (tommi@tommi.org)
|
|
- Obsolete nagios-okplugin-check_yum (tommi@tommi.org)
|
|
|
|
* Tue Jul 16 2013 Tomas Edwardsson <tommi@tommi.org> 0.0.2-1
|
|
- new package built with tito
|
|
|
|
* Wed Jul 16 2013 Tomas Edwardsson <tommi@opensource.is> 0.0.1-1
|
|
- Initial Packaging
|