mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-05 01:53:44 +01:00
RPM specs for check_yum
This commit is contained in:
parent
da50ee02e4
commit
1268cbaa1b
@ -1,3 +0,0 @@
|
||||
|
||||
|
||||
command[check_updates]=sudo /usr/lib/nagios/plugins/ok/check_yum
|
41
check_yum/trunk/nagios-okplugin-check_yum.spec
Normal file
41
check_yum/trunk/nagios-okplugin-check_yum.spec
Normal file
@ -0,0 +1,41 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
Summary: Nagios plugin to test for Yum updates on RedHat/CentOS Linux.
|
||||
Name: nagios-okplugin-check_yum
|
||||
Version: 0.7.1
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
URL: http://opensource.is/trac/wiki/check_yum
|
||||
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_yum/releases/nagios-okplugin-check_yum-%{version}.tar.gz
|
||||
Requires: yum-security
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Packager: Pall Sigurdsson <palli@opensource.is>
|
||||
|
||||
|
||||
%description
|
||||
Nagios plugin to test for Yum updates on RedHat/CentOS Linux.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_yum.cfg
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
install -D -p -m 0755 check_yum %{buildroot}%{_libdir}/nagios/plugins/check_yum
|
||||
install -D -p -m 0755 nrpe.d/check_yum.cfg %{buildroot}/etc/nrpe.d/check_yum.cfg
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/nagios/plugins/*
|
||||
/etc/nrpe.d/check_yum.cfg
|
||||
|
||||
%changelog
|
||||
* Mon Sep 14 2010 Pall Sigurdsson <palli@opensource.is> 0.1-1
|
||||
- Initial packaging
|
3
check_yum/trunk/nrpe.d/check_yum.cfg
Normal file
3
check_yum/trunk/nrpe.d/check_yum.cfg
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
command[check_updates]=sudo /usr/lib/nagios/plugins/check_yum
|
Loading…
Reference in New Issue
Block a user