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

# spec file for package monitoring-plugins-v46 
# Copyright (c) 2014 SUSE LINUX 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

Name:           monitoring-plugins-v46
Version:        20130826
Release:        1
License:        GPL-3.0+
Summary:        IPv4/IPv6 monitoring plugin wrapper
Group:          System/Monitoring
Source0:        check_v46
Source1:        LICENSE
Patch0:         monitoring-plugins-v46-disable-epn.patch
BuildRequires:  nagios-rpm-macros
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

check_v46 is a plugin wrapper for running the actual plugin for both / either
of IPv6 and/or IPv4. The worst result of the actual plugin runs will be the
wrapper return value, that is, result will be OK only if all checks returned
OK. This check is compatible with any plugin with standard command line options
-6 and -4.

%setup -q -T -c %{name}-%{version}
install -m755 %{SOURCE0} .
install -m644 %{SOURCE1} .
%patch0 -p0

install -Dm755 check_v46 %{buildroot}%{nagios_plugindir}/check_v46

%dir %{nagios_libdir}
%dir %{nagios_plugindir}