Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1:Update
logwarn
logwarn.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File logwarn.spec of Package logwarn
# # Logwarn - Utility for finding interesting messages in log files # # Copyright (C) 2010-2011 Archie L. Cobbs. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # $Id: logwarn.spec.in 54 2011-05-23 15:49:17Z archie.cobbs $ # Name: logwarn Version: 1.0.10 Release: 1 License: Apache-2.0 Summary: Utility for finding interesting messages in log files Group: System/Monitoring Source: %{name}-%{version}.tar.gz URL: http://%{name}.googlecode.com/ BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: make BuildRequires: gcc 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 %setup -q %build %{configure} make %install %{makeinstall} install -d %{buildroot}%{_var}/lib/%{name} install -d %{buildroot}%{_datadir}/doc/packages/%{name} install COPYING %{buildroot}%{_datadir}/doc/packages/%{name}/ rm -rf %{buildroot}%{_datadir}/doc/packages/%{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 %{_datadir}/doc/packages/%{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