From 1268cbaa1b4800eea0b2e97fbb987060a581494c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3mas=20Edwardsson?= Date: Wed, 15 Sep 2010 00:43:26 +0000 Subject: [PATCH] RPM specs for check_yum --- check_yum/trunk/check_yum.cfg | 3 -- .../trunk/nagios-okplugin-check_yum.spec | 41 +++++++++++++++++++ check_yum/trunk/nrpe.d/check_yum.cfg | 3 ++ 3 files changed, 44 insertions(+), 3 deletions(-) delete mode 100644 check_yum/trunk/check_yum.cfg create mode 100644 check_yum/trunk/nagios-okplugin-check_yum.spec create mode 100644 check_yum/trunk/nrpe.d/check_yum.cfg diff --git a/check_yum/trunk/check_yum.cfg b/check_yum/trunk/check_yum.cfg deleted file mode 100644 index 4e7b3a6..0000000 --- a/check_yum/trunk/check_yum.cfg +++ /dev/null @@ -1,3 +0,0 @@ - - -command[check_updates]=sudo /usr/lib/nagios/plugins/ok/check_yum diff --git a/check_yum/trunk/nagios-okplugin-check_yum.spec b/check_yum/trunk/nagios-okplugin-check_yum.spec new file mode 100644 index 0000000..3bbdfb2 --- /dev/null +++ b/check_yum/trunk/nagios-okplugin-check_yum.spec @@ -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 + + +%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 0.1-1 +- Initial packaging diff --git a/check_yum/trunk/nrpe.d/check_yum.cfg b/check_yum/trunk/nrpe.d/check_yum.cfg new file mode 100644 index 0000000..6e8330d --- /dev/null +++ b/check_yum/trunk/nrpe.d/check_yum.cfg @@ -0,0 +1,3 @@ + + +command[check_updates]=sudo /usr/lib/nagios/plugins/check_yum