Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
logwarn
logwarn.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File logwarn.spec of Package logwarn
# # spec file for package logwarn # # Copyright (c) 2022 SUSE LLC # Copyright (c) 2010-2011 Archie L. Cobbs. All rights reserved. # # 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/ # Name: logwarn Version: 1.0.17 Release: 0 Summary: Utility for finding interesting messages in log files License: Apache-2.0 Group: System/Monitoring URL: https://github.com/archiecobbs/%{name}/ Source: %{name}/%{name}-%{version}.tar.gz BuildRequires: automake BuildRequires: gcc BuildRequires: make BuildRequires: nagios-rpm-macros %description %{name} searches for interesting messages in log files, where ``interest- ing'' is defined by an user-supplied list of positive and negative (pre- ceeded with a ``!'') extended regular expressions provided on the command line. Each log message is compared against each pattern in the order given. If the log message matches a positive pattern before matching a negative !pattern then it's printed to standard output. %{name} keeps track of its position between invocations, so each matching line is only ever output once. It also finds messages in log files that have been rotated (and possibly compressed) since the previous invoca- tion. %{name} also includes support for log messages that span multiple lines. %prep %autosetup -p1 %build ./autogen.sh %configure %make_build %check %make_build tests %install %make_install install -d %{buildroot}%{_var}/lib/%{name} install -d %{buildroot}%{_docdir}/%{name} install COPYING %{buildroot}%{_docdir}/%{name}/ rm -rf %{buildroot}%{_docdir}/%{name}/INSTALL %files %attr(0755,root,root) %{_bindir}/%{name} %attr(0644,root,root) %{_mandir}/man1/%{name}.1.gz %defattr(0644,root,root,0755) %{_var}/lib/%{name} %doc %{_docdir}/%{name} %package nagios-plugin Summary: Nagios plugin based on the logwarn(1) utility Group: System/Monitoring Requires: bash Requires: logwarn >= %{version} BuildArch: noarch %description nagios-plugin %{name} searches for interesting messages in log files, where ``interest- ing'' is defined by an user-supplied list of positive and negative (pre- ceeded with a ``!'') extended regular expressions provided on the command line. This package contains the Nagios plugin that is based on %{name}. %files nagios-plugin %defattr(0755,root,root,0755) # avoid build dependecy of nagios - own the dirs %dir %{nagios_libdir} %dir %{nagios_plugindir} %{nagios_plugindir}/check_logwarn %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor