debian/0000755000000000000000000000000012240114562007163 5ustar debian/compat0000644000000000000000000000000212240114474010363 0ustar 9 debian/copyright0000644000000000000000000001404612240114474011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: lnav Upstream-Contact: Timothy Stack Source: http://lnav.org/ Files: * Copyright: 2007-2013, Timothy Stack License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Timothy Stack nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: src/bin2c.c Copyright: none License: THE "BEER-WARE LICENSE" (Revision 3.1415): sandro AT sigala DOT it wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Sandro Sigala Files: src/string-extension-functions.cc Copyright: none License: public-domain Written by Alexey Tourbin . . The author has dedicated the code to the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. Files: src/strnatcmp.c src/strnatcmp.h Copyright: 2000, 2004, Martin Pool License: This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Files: src/yajl/api/yajl_common.h src/yajl/api/yajl_gen.h src/yajl/api/yajl_parse.h src/yajl/yajl.c src/yajl/yajl_alloc.c src/yajl/yajl_alloc.h src/yajl/yajl_buf.c src/yajl/yajl_buf.h src/yajl/yajl_bytestack.h src/yajl/yajl_common.h src/yajl/yajl_encode.c src/yajl/yajl_encode.h src/yajl/yajl_gen.c src/yajl/yajl_lex.c src/yajl/yajl_lex.h src/yajl/yajl_parser.c src/yajl/yajl_parser.h Copyright: 2007-2011, Lloyd Hilaiel License: ISC Files: src/yajl/api/yajl_tree.h src/yajl/yajl_tree.c Copyright: 2010-2011, Florian Forster License: ISC Files: debian/* Copyright: 2013 Salvatore Bonaccorso License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: ISC Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. . THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. debian/rules0000755000000000000000000000030612240114474010244 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh $@ --with autotools-dev override_dh_auto_configure: dh_auto_configure -- --disable-static override_dh_installchangelogs: dh_installchangelogs NEWS debian/lnav.10000644000000000000000000000461112240114474010211 0ustar .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.43.3. .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .\" Define macros .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .TH LNAV "1" "August 2013" .SH NAME lnav \- ncurses-based log file viewer .SH SYNOPSIS .B lnav [\-hVsar] [logfile1 logfile2 ...] .SH DESCRIPTION The log file navigator, lnav, is an enhanced log file viewer that takes advantage of any semantic information that can be gleaned from the files being viewed, such as timestamps and log levels. Using this extra semantic information, lnav can do things like interleaving messages from different files, generate histograms of messages over time, and providing hotkeys for navigating through the file. It is hoped that these features will allow the user to quickly and efficiently zero in on problems. .SH KEY BINDINGS .TP ? View/leave the online help text. .TP q Quit the program. .SH OPTIONS .TP \fB\-h\fR Print help and exit .TP \fB\-d\fR file Write debug messages to the given file. .TP \fB\-V\fR Print version information. .TP \fB\-s\fR Load the most recent syslog messages file. .TP \fB\-a\fR Load all of the most recent log file types. .TP \fB\-r\fR Load older rotated log files as well. .TP \fB\-t\fR Prepend timestamps to the lines of data being read in on the standard input. .TP \fB\-w\fR file Write the contents of the standard input to this file. .SS "Optional arguments:" .TP logfile1 The log files or directories to view. If a directory is given, all of the files in the directory will be loaded. .SH EXAMPLES To load and follow the syslog file: .PP .Vb 1 \& lnav \-s .Ve .PP To load all of the files in /var/log: .PP .Vb 1 \& lnav /var/log .Ve .PP To watch the output of make with timestamps prepended: .PP .Vb 1 \& make 2>&1 | lnav \-t .Ve .SH AUTHOR This manual page was written by Salvatore Bonaccorso for the Debian system (but may be used by others). debian/watch0000644000000000000000000000021212240114474010211 0ustar version=3 https://github.com/tstack/lnav/releases /tstack/lnav/releases/download/(?:.*)/lnav-(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/control0000644000000000000000000000212112240114474010564 0ustar Source: lnav Section: admin Priority: optional Maintainer: Salvatore Bonaccorso Build-Depends: autotools-dev, debhelper (>= 9), libbz2-dev, libncurses5-dev, libncursesw5-dev, libpcre3-dev, libreadline-dev, libsqlite3-dev, libssl-dev, python-all, sqlite3, zlib1g-dev Standards-Version: 3.9.5 Homepage: http://lnav.org Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/carnil/lnav.git Vcs-Git: git://anonscm.debian.org/users/carnil/lnav.git Package: lnav Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: ncurses-based log file viewer The log file navigator, lnav, is an enhanced log file viewer that takes advantage of any semantic information that can be gleaned from the files being viewed, such as timestamps and log levels. Using this extra semantic information, lnav can do things like interleaving messages from different files, generate histograms of messages over time, and providing hotkeys for navigating through the file. It is hoped that these features will allow the user to quickly and efficiently zero in on problems. debian/source/0000755000000000000000000000000012240114474010465 5ustar debian/source/format0000644000000000000000000000001412240114474011673 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012240114474010614 5ustar debian/patches/default-to-var-log-syslog-on-Debian.patch0000644000000000000000000000170312240114474020357 0ustar Description: Prefer /var/log/syslog over /var/log/messages On Debian the default /etc/rsyslog.conf shipped with rsyslog prefers logs *.* to /var/log/syslog. Thus prefer this logfile in list of default logfiles. Origin: vendor Bug-Debian: http://bugs.debian.org/721700 Forwarded: not-needed Author: Salvatore Bonaccorso Last-Update: 2013-09-26 --- a/src/lnav.cc +++ b/src/lnav.cc @@ -3576,10 +3576,10 @@ } } - DEFAULT_FILES.insert(make_pair(LNF_SYSLOG, string("var/log/messages"))); - DEFAULT_FILES.insert(make_pair(LNF_SYSLOG, string("var/log/system.log"))); DEFAULT_FILES.insert(make_pair(LNF_SYSLOG, string("var/log/syslog"))); DEFAULT_FILES.insert(make_pair(LNF_SYSLOG, string("var/log/syslog.log"))); + DEFAULT_FILES.insert(make_pair(LNF_SYSLOG, string("var/log/messages"))); + DEFAULT_FILES.insert(make_pair(LNF_SYSLOG, string("var/log/system.log"))); init_lnav_commands(lnav_commands); debian/patches/series0000644000000000000000000000005212240114474012026 0ustar default-to-var-log-syslog-on-Debian.patch debian/changelog0000644000000000000000000000240612240114474011041 0ustar lnav (0.6.2-1) unstable; urgency=low * Imported Upstream version 0.6.2 * Refresh default-to-var-log-syslog-on-Debian.patch (offset) * Bump Standards-Version to 3.9.5 -- Salvatore Bonaccorso Mon, 11 Nov 2013 08:54:33 +0100 lnav (0.6.1-1) unstable; urgency=low * Imported Upstream version 0.6.1 * Rewrite watch file for github releases location * Update copyright years for upstream files * Add copyright stanzas for new files in source * Refresh default-to-var-log-syslog-on-Debian.patch patch * Add Build-Depends on python-all * Add Build-Depends on sqlite3 -- Salvatore Bonaccorso Thu, 26 Sep 2013 19:47:03 +0200 lnav (0.5.1-2) unstable; urgency=low * Install src/help.txt additionally into /usr/share/doc/lnav docs (Closes: #721817) * Add default-to-var-log-syslog-on-Debian.patch patch. On Debian the default /etc/rsyslog.conf shipped with rsyslog prefers logs *.* to /var/log/syslog. Thus prefer this logfile in list of default logfiles. (Closes: #721700) -- Salvatore Bonaccorso Thu, 05 Sep 2013 19:23:43 +0200 lnav (0.5.1-1) unstable; urgency=low * Initial release (Closes: #719211) -- Salvatore Bonaccorso Sat, 17 Aug 2013 13:48:24 +0200 debian/lnav.docs0000644000000000000000000000001512240114474010773 0ustar src/help.txt debian/lnav.manpages0000644000000000000000000000001612240114474011637 0ustar debian/lnav.1