File monitoring-plugins-pacemaker-node.spec of Package monitoring-plugins-pacemaker-node
#
# spec file for package monitoring-plugins-pacemaker-node
#
# Copyright (c) 2013-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-pacemaker-node
Version: 1.0
Release: 1
Summary: Check pacemaker node plugin for Nagios
License: BSD-4-Clause
Group: System/Monitoring
Url: https://github.com/justintime/nagios-plugins
Source0: check_pacemaker-node
%if 0%{?suse_version} > 1010
# nagios can execute the script with embedded perl
Recommends: perl
%endif
BuildRequires: nagios-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A script for monitoring Linux HA status, to be used as a NRPE Plugin.
%prep
%setup -q -T -c %{name}
install -m644 %{SOURCE0} .
%build
%install
install -D -m755 check_pacemaker-node %{buildroot}/%{nagios_plugindir}/check_pacemaker-node
%files
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_pacemaker-node
%changelog