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

#
# spec file for package monitoring-plugins-logfiles
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#


%define         base_name check_logfiles
Name:           monitoring-plugins-logfiles
Version:        4.1.1
Release:        0
Summary:        Check logfiles monitoring plugin
License:        GPL-2.0-or-later
Group:          System/Monitoring
URL:            http://labs.consol.de/nagios/check_logfiles/
#Git-Clone:     https://github.com/lausser/check_logfiles.git
Source0:        https://labs.consol.de/assets/downloads/nagios/%{base_name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  nagios-rpm-macros
BuildRequires:  perl
Requires:       perl
Provides:       nagios-plugins-logfiles = %{version}-%{release}
Obsoletes:      nagios-plugins-logfiles < 3.5.3.3
BuildArch:      noarch

%description
The conventional plugins which scan log files are not adequate in a mission
critical environment. Especially the missing ability to handle logfile
rotation and inclusion of the rotated archives in the scan allow gaps in the
monitoring. Check_logfiles was written because these deficiencies would have
prevented Nagios from replacing a propritetary monitoring system.

%prep
%setup -q -n %{base_name}-%{version}
chmod -x AUTHORS COPYING README TODO ChangeLog

%build
%configure \
    --bindir=%{nagios_plugindir} \
    --libdir=%{nagios_plugindir} \
    --prefix=%{nagios_plugindir} \
    --with-seekfiles-dir=%{_var}/cache/%{base_name} \
    --with-protocols-dir=%{_var}/cache/%{base_name}
make %{?_smp_mflags}

%install
install -D -m755 plugins-scripts/%{base_name} %{buildroot}/%{nagios_plugindir}/%{base_name}
mkdir -p %{buildroot}/%{_var}/cache/%{base_name}

%files
%license COPYING
%doc AUTHORS README TODO ChangeLog
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %attr(775, root, nagios) %{_var}/cache/%{base_name}
%{nagios_plugindir}/%{base_name}

%changelog
openSUSE Build Service is sponsored by