From dc023a322b8c14f3ff8527c1b131eef8304d46de Mon Sep 17 00:00:00 2001 From: Tomas Edwardsson Date: Tue, 4 Oct 2011 22:25:35 +0000 Subject: [PATCH] Added RPM specfile for crit2warn.sh --- .../trunk/nagios-okplugin-crit2warn.spec | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 crit2warn.sh/trunk/nagios-okplugin-crit2warn.spec diff --git a/crit2warn.sh/trunk/nagios-okplugin-crit2warn.spec b/crit2warn.sh/trunk/nagios-okplugin-crit2warn.spec new file mode 100644 index 0000000..ac6236e --- /dev/null +++ b/crit2warn.sh/trunk/nagios-okplugin-crit2warn.spec @@ -0,0 +1,38 @@ +%define debug_package %{nil} + +Summary: A Nagios plugin wrapper that changes critical to warnings +Name: nagios-okplugin-crit2warn +Version: 0.0.1 +Release: 1%{?dist} +License: GPLv2+ +Group: Applications/System +URL: http://opensource.ok.is/trac/wiki/Nagios-OKPlugin-Crit2warn +Source0: http://opensource.ok.is/trac/browser/nagios-plugins/crit2warn/releases/%{name}-%{version}.tar.gz +Requires: nagios-plugins +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Packager: Tomas Edwardsson + + +%description +Modifies critical return code of plugins to warning + +%prep +%setup -q + +%build + + +%install +rm -rf %{buildroot} +install -D -p -m 0755 crit2warn.sh %{buildroot}%{_libdir}/nagios/plugins/crit2warn.sh + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_libdir}/nagios/plugins/* + +%changelog +* Mon Mar 1 2010 Tomas Edwardsson 0.1-1 +- Initial packaging