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

#
# spec file for package monitoring-plugins-running_kernel
#
# Copyright (c) 2017 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-running_kernel
Version:        1.1
Release:        0
License:        GPL-2.0+
Summary:        Checks if the latest installed kernel is the running kernel
Group:          System/Monitoring
Source0:        check_running_kernel
Source1:        check_running_kernel.cfg
BuildRequires:  nagios-rpm-macros
BuildArch:      noarch

%description
This package contains monitoring plugins for testing if
the latest installed kernel is the running kernel.

%prep

%build
#

%install
install -Dm755 %{S:0} %{buildroot}%{nagios_plugindir}/check_running_kernel
install -Dm644 %{S:1} %{buildroot}%{nrpe_sysconfdir}/check_running_kernel.cfg

%files
%defattr(-,root,root)
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/*
%dir %{nrpe_sysconfdir}
%config(noreplace) %{nrpe_sysconfdir}/*.cfg

%changelog
openSUSE Build Service is sponsored by