1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-09-28 16:33:46 +02:00

Added configuration to bond rpm.

This commit is contained in:
Tomas Edwardsson 2011-10-16 10:58:46 +00:00
parent 27fb3773fc
commit 4ba1a8dd01

View File

@ -3,7 +3,7 @@
Summary: A Nagios plugin to check network bond devices Summary: A Nagios plugin to check network bond devices
Name: nagios-okplugin-bond Name: nagios-okplugin-bond
Version: 0.0.1 Version: 0.0.1
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/System Group: Applications/System
URL: http://opensource.ok.is/trac/wiki/Nagios-OKPlugin-Bond URL: http://opensource.ok.is/trac/wiki/Nagios-OKPlugin-Bond
@ -11,6 +11,8 @@ Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_bond/releases
Requires: nagios-plugins Requires: nagios-plugins
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Packager: Tomas Edwardsson <tommi@ok.is> Packager: Tomas Edwardsson <tommi@ok.is>
BuildArch: noarch
Requires: nrpe
%description %description
@ -25,6 +27,8 @@ Checks the network bond device on a Linux machine
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
install -D -p -m 0755 check_bond %{buildroot}%{_libdir}/nagios/plugins/check_bond install -D -p -m 0755 check_bond %{buildroot}%{_libdir}/nagios/plugins/check_bond
mkdir -p %{buildroot}%{_sysconfdir}/nrpe.d
sed "s^/usr/lib64^%{_libdir}^g" nrpe.d/check_bond.cfg > %{buildroot}%{_sysconfdir}/nrpe.d/check_bond.cfg
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -35,5 +39,8 @@ rm -rf %{buildroot}
%{_libdir}/nagios/plugins/* %{_libdir}/nagios/plugins/*
%changelog %changelog
* Sun Oct 16 2011 Tomas Edwardsson <tommi@opensource.is> 0.1-2
- Added configuration into package
* Mon Mar 1 2010 Tomas Edwardsson <tommi@ok.is> 0.1-1 * Mon Mar 1 2010 Tomas Edwardsson <tommi@ok.is> 0.1-1
- Initial packaging - Initial packaging