[nagios-plugins-bonding] Initial import (#887821).

Trond Hasle Amundsen trondham at fedoraproject.org
Tue May 13 15:18:24 UTC 2014


commit c7385f82003e3bb3f0670f6f01387afa5d6a43f9
Author: Trond Hasle Amundsen <t.h.amundsen at usit.uio.no>
Date:   Tue May 13 17:18:00 2014 +0200

    Initial import (#887821).

 .gitignore                  |    1 +
 nagios-plugins-bonding.spec |   71 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..25789b4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/check_linux_bonding-1.4.tar.gz
diff --git a/nagios-plugins-bonding.spec b/nagios-plugins-bonding.spec
new file mode 100644
index 0000000..b40fe99
--- /dev/null
+++ b/nagios-plugins-bonding.spec
@@ -0,0 +1,71 @@
+# Name of the plugin
+%global plugin check_linux_bonding
+
+# No binaries here, do not build a debuginfo package. This is a binary
+# package on RHEL/Fedora because it depends on %_libdir which is arch
+# dependent
+%global debug_package %{nil}
+
+Name:          nagios-plugins-bonding
+Version:       1.4
+Release:       1%{?dist}
+Summary:       Nagios plugin to monitor Linux bonding interfaces
+
+Group:         Applications/System
+License:       GPLv3+
+URL:           http://folk.uio.no/trondham/software/%{plugin}.html
+Source0:       http://folk.uio.no/trondham/software/files/%{plugin}-%{version}.tar.gz
+
+# Since we're also building for RHEL5
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+# Building requires Docbook XML
+BuildRequires: libxslt
+BuildRequires: libxml2
+BuildRequires: docbook-style-xsl
+
+# Owns the nagios plugins directory
+%if 0%{?rhel} < 6 || 0%{?fedora} < 19
+Requires: nagios-plugins
+%else
+Requires: nagios-common
+%endif
+
+# Makes the transition to new package name easier for existing
+# users of RPM packages
+Provides:      check_linux_bonding = %{version}-%{release}
+Obsoletes:     check_linux_bonding < 1.3.2
+
+%description
+This package contains check_linux_bonding, which is a plugin for
+Nagios that checks bonding network interfaces on Linux. The plugin
+will report any interfaces that are down (both masters and slaves), as
+well as other aspects which may point to a problem with bonded
+interfaces.
+
+%prep
+%setup -q -n %{plugin}-%{version}
+
+%build
+pushd man
+make clean && make
+popd
+
+%install
+rm -rf %{buildroot}
+install -Dp -m 0755 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin}
+install -Dp -m 0644 man/%{plugin}.8 %{buildroot}%{_mandir}/man8/%{plugin}.8
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%doc COPYING CHANGES
+%{_libdir}/nagios/plugins/%{plugin}
+%{_mandir}/man8/%{plugin}.8*
+
+
+%changelog
+* Tue May 13 2014 Trond Hasle Amundsen <t.h.amundsen at usit.uio.no> - 1.4-1
+- Upstream release 1.4
diff --git a/sources b/sources
index e69de29..ece9a55 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e24485019d2502b04c6506938c7951cf  check_linux_bonding-1.4.tar.gz


More information about the scm-commits mailing list