File monitoring-plugins-snmp_brocade.spec of Package monitoring-plugins-snmp_brocade
#
# spec file for package monitoring-plugins-snmp_brocade
#
# Copyright (c) 2014, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: monitoring-plugins-snmp_brocade
Version: 3.2.0
Release: 0
Summary: A nagios plugin for monitoring Brocade FC-switches
License: GPL-2.0+
Group: System/Monitoring
Url: http://exchange.nagios.org/directory/Plugins/Hardware/Network-Gear/Brocade/check_snmp_brocade--2D-monitor-Brocade-fibre-channel-switches/details
Source0: check_snmp_brocade_3.2.0
Source1: sample_commands.cfg
Source2: check_brocade_systeminfo.php
Source3: check_brocade_sfptemp.php
BuildRequires: nagios-rpm-macros
Requires: perl-Net-SNMP
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A Nagios plugin to monitor the status of a single fc-port on a Brocade
(labeled or original) fibre-channel switch.
%prep
cp %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} .
%build
true
%install
mkdir -p %{buildroot}/%{nagios_plugindir}
install -D -m755 check_snmp_brocade_3.2.0 %{buildroot}/%{nagios_plugindir}/check_snmp_brocade
install -D -m644 check_brocade_systeminfo.php %{buildroot}/%{pnp4nagios_templatedir}/check_brocade_systeminfo.php
install -D -m644 check_brocade_sfptemp.php %{buildroot}/%{pnp4nagios_templatedir}/check_brocade_sfptemp.php
%files
%defattr(-,root,root)
%doc sample_commands.cfg
# avoid build dependency of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{pnp4nagios_datadir}
%dir %{pnp4nagios_templatedir}
%{nagios_plugindir}/
%{pnp4nagios_templatedir}/check_brocade_systeminfo.php
%{pnp4nagios_templatedir}/check_brocade_sfptemp.php
%changelog