2 %global plugin check_linux_bonding
4 # No binaries here, do not build a debuginfo package
5 %global debug_package %{nil}
7 # SUSE installs Nagios plugins under /usr/lib, even on 64-bit
8 # It also uses noarch for non-binary Nagios plugins and has different
9 # package names for docbook.
10 %if %{defined suse_version}
11 %global nagiospluginsdir /usr/lib/nagios/plugins
12 %global docbookpkg docbook-xsl-stylesheets
15 %global nagiospluginsdir %{_libdir}/nagios/plugins
16 %global docbookpkg docbook-style-xsl
19 Name: nagios-plugins-bonding
22 Summary: Nagios plugin to check Linux bonding interfaces
24 Group: Applications/System
26 URL: http://folk.uio.no/trondham/software/%{plugin}.html
27 Source0: http://folk.uio.no/trondham/software/files/%{plugin}-%{version}.tar.gz
29 # Since we're also building for RHEL5
30 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
32 # Building requires Docbook XML
33 BuildRequires: libxslt
34 BuildRequires: libxml2
35 BuildRequires: %{docbookpkg}
37 # Owns the nagios plugins directory
38 Requires: nagios-plugins
40 # Makes the transition to new package name easier for existing
41 # users of RPM packages
42 Provides: check_linux_bonding = %{version}-%{release}
43 Obsoletes: check_linux_bonding < 1.3.2
46 check_linux_bonding is a plugin for Nagios that checks bonding
47 interfaces on Linux. The plugin is fairly simple and will report any
48 interfaces that are down (both masters and slaves). It will also alert
49 you of bonding interfaces with only one slave, since that usually
50 points to a misconfiguration.
53 %setup -q -n %{plugin}-%{version}
62 install -Dp -m 0755 %{plugin} %{buildroot}%{nagiospluginsdir}/%{plugin}
63 install -Dp -m 0644 man/%{plugin}.8 %{buildroot}%{_mandir}/man8/%{plugin}.8
69 %defattr(-, root, root, -)
71 %{nagiospluginsdir}/%{plugin}
72 %{_mandir}/man8/%{plugin}.8*
76 * Fri Dec 14 2012 Trond Hasle Amundsen <t.h.amundsen@usit.uio.no> - 1.3.2-1
80 - Fixed buildrequires and requires
82 * Tue Oct 26 2010 Trond Hasle Amundsen <t.h.amundsen@usit.uio.no> - 1.3.1-1
85 * Thu Aug 26 2010 Trond Hasle Amundsen <t.h.amundsen@usit.uio.no> - 1.3.0-1
88 * Wed Feb 17 2010 Trond Hasle Amundsen <t.h.amundsen@usit.uio.no> - 1.2.1-1
91 * Tue Feb 16 2010 Trond Hasle Amundsen <t.h.amundsen@usit.uio.no> - 1.2.0-1
94 * Thu Oct 9 2009 Trond Hasle Amundsen <t.h.amundsen@usit.uio.no> - 1.1.0-1
96 - Locations for plugin and man page changed
98 * Thu Jul 23 2009 Trond Hasle Amundsen <t.h.amundsen@usit.uio.no> - 1.0.1-1
101 * Wed Jun 10 2009 Trond Hasle Amundsen <t.h.amundsen@usit.uio.no> - 1.0.0-1
102 - Initial release 1.0.0