File monitoring-plugins-drbd.spec of Package monitoring-plugins-drbd

#
# spec file for package monitoring-plugins-drbd
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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-drbd
Summary:        Checks the state of DRBD devices
Version:        0.5.3
Release:        100
Url:            http://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/check_drbd
License:        GPL-2.0+
Group:          System/Monitoring
Source0:        check_drbd
%if 0%{?suse_version} > 1010
# nagios can execute the script with embedded perl
Recommends:     perl
%endif
Requires:       perl(File::Basename)
Requires:       perl(Getopt::Long)
BuildRequires:  nagios-rpm-macros
%if 0%{?suse_version} < 01210
Requires:       drbd-kmp
%endif
Provides:       nagios-plugins-drbd = %{version}-%{release}
Obsoletes:      nagios-plugins-drbd < %{version}-%{release}
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a monitoring plugin for checking DRBD device states. It parses the
/proc/drbd device and analyses the output.

Authors:
--------
   Brandon Lee Poyner 

%prep

%build

%install
install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_drbd

%clean
rm -rf %buildroot

%files 
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_drbd

%changelog
openSUSE Build Service is sponsored by