File nagios-plugins-nfsmounts.spec of Package nagios-plugins-nfsmounts
#
# spec file for package nagios-plugins-nfsmounts
#
# Copyright (c) 2013 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: nagios-plugins-nfsmounts
Version: 1.0
Release: 1
License: GPL-3.0+
Summary: Checks all local NFS mounts
Url: https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/check_nfsmounts
Group: System/Monitoring
Source0: check_nfsmounts
Source1: GPLv3
%if 0%{?suse_version} > 1010
# nagios can execute the script with embedded perl
Recommends: perl
%endif
BuildRequires: nagios-rpm-macros
Requires: nagios-plugins-common
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A perl script that checks all local NFS mounts by forking itself and trying to
chdir to it and (optionally) writing to a file. It includes performance data
and allows warnings based on thresholds.
%prep
%build
%install
install -D -m755 %{SOURCE0} %{buildroot}/%{nagios_plugindir}/check_nfsmounts
install -D -m644 %{SOURCE1} %{buildroot}/%{_defaultdocdir}/%{name}/COPYING
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_nfsmounts
%changelog