debian/0000755000000000000000000000000011421201274007160 5ustar debian/docs0000644000000000000000000000002611413535222010035 0ustar BUGS NEWS README TODO debian/control0000644000000000000000000000116711421200170010562 0ustar Source: colortail Section: utils Priority: optional Maintainer: Elías Alejandro Año Mendoza Build-Depends: debhelper (>=7.0.50~) Standards-Version: 3.9.0 Homepage: http://joakimandersson.se/projects/colortail/ Package: colortail Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: log colorizer that makes log checking easier colortail works like tail but can optionally read one or more config files where it's specified which patterns results in which colors. Colortail uses regular expressions (see regex(7)) to determine which lines and parts of lines to print in which colors. debian/colortail.manpages0000644000000000000000000000002311413535646012676 0ustar debian/colortail.1 debian/rules0000755000000000000000000000022511421200200010223 0ustar #!/usr/bin/make -f %: dh $@ override_dh_install: cp $(CURDIR)/example-conf/conf.messages $(CURDIR)/debian/colortail/etc/colortail/conf.colortail debian/watch0000644000000000000000000000010311413536030010205 0ustar version=3 http://joakimandersson.se/files/colortail-(.*)\.tar\.gz debian/changelog0000644000000000000000000000177611415274375011064 0ustar colortail (0.3.3-1) unstable; urgency=low * New upstream release * Updated Standards-Version to 3.9.0 * Corrected lintian's error * Switch to dpkg-source 3.0 (quilt) format * No changes needed -- Elías Alejandro Año Mendoza Fri, 02 Jul 2010 23:20:28 -0500 colortail (0.3.2-2) unstable; urgency=low * Fixed FTBFS on alpha, ia64, kfreebsd-*, hurd-i386: libc6-dev is virtual (Closes: #564135). * Remove autotools-dev from B-D, is not needed -- Elías Alejandro Año Mendoza Fri, 08 Jan 2010 01:34:53 -0500 colortail (0.3.2-1) unstable; urgency=low * Initial release (Closes: #556733) * Config file is included in : /etc/colortail. * Config files examples are included in : /usr/share/doc/colortail/examples. * Using the config file conf.colortail by default. * debian/patches/01_new_colortail.patch: Added. * debian/patches/02_adding_option.patch: Added. -- Elías Alejandro Año Mendoza Sat, 02 Jan 2010 12:33:26 -0500 debian/colortail.10000644000000000000000000000372111413535646011253 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH COLORTAIL 1 "January 2, 2010" .\" Please adjust this date whenever revising the manpage. .\" .\" 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) .SH NAME colortail \- log colorizer that makes log checking easier .SH SYNOPSIS .B colortail .RI [ options ] [file...] .br .SH DESCRIPTION This manual page documents briefly the .B colortail commands. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBcolortail\fP is basically tail but with support for colors. With the help of color config files you define what part of the output to print in which color. .SH OPTIONS .TP .B \-h, \-\-help Show summary of options. .TP .B \-f, \-\-follow Output appended data as the file grows. .TP .B \-k, \-\-config=file .B \-\-config=file1,file2,... Color config files for the tail files. If only one config file it's global otherwise one config file for each tail file. .TP .B \-n, \-\-lines=N Output the last N lines, instead of last 10. .TP .B \-l Display without colors. .TP .B \-q, \-\-quiet, \-\-silent Never output headers giving file names. .TP .B \-v, \-\-version Output version information and exit. .TP .br .SH AUTHOR colortail was written by Joakim Andersson Copyright (C) 2009 .PP This manual page was written by Elías Alejandro Año Mendoza , for the Debian project (and may be used by others). debian/compat0000644000000000000000000000000211413535222010362 0ustar 7 debian/colortail.examples0000644000000000000000000000002511413535646012723 0ustar example-conf/conf.* debian/README.Debian0000644000000000000000000000071611413535532011235 0ustar colortail for Debian -------------------- * Created a conf.colortail file to display the logs with a common format, which is used by default to colorize and not is necessary specify with the option -k, but optionally it can using. The config file conf.colortail is in /etc/colortail. * The config files examples are in : /usr/share/doc/colortail/examples. -- Elías Alejandro Año Mendoza Sat, 02 Jan 2010 12:33:26 -0500 debian/source/0000755000000000000000000000000011415272210010461 5ustar debian/source/format0000644000000000000000000000001411413535222011672 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011413546420010615 5ustar debian/patches/01_colorize_default.patch0000644000000000000000000000327111413536255015500 0ustar Patch to use /etc/colortail/conf.colortail by default to colorizer without the option -k Index: colortail-0.3.2/ColorTail.cc =================================================================== --- colortail-0.3.2.orig/ColorTail.cc 2010-01-02 13:13:03.000000000 -0500 +++ colortail-0.3.2/ColorTail.cc 2010-01-02 13:17:31.000000000 -0500 @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include "ColorTail.h" #include "TailFile.h" @@ -102,9 +104,14 @@ { // no config file // print error - cout << "colortail: Couldn't open global color config file. Skipping colors for the " << argv[i] << " file." << endl; + //cout << "colortail: Couldn't open global color config file. Skipping colors for the " << argv[i] << " file." << endl; // open the tailfile without colorizer - new_tailfile->open(argv[i], NULL); + //new_tailfile->open(argv[i], NULL); + string cade = "/etc/colortail/conf.colortail"; + char* ccade = new char[cade.length()+1]; + strcpy(ccade, cade.c_str()); + colorizer = new Colorizer(ccade); + new_tailfile->open(argv[i], colorizer); } } else @@ -126,7 +133,12 @@ // no config file // no error message because it can be cfgfile1,,cfgfile2 // open the tailfile without colorizer - new_tailfile->open(argv[i], NULL); + //new_tailfile->open(argv[i], NULL); + string cade = "/etc/colortail/conf.colortail"; + char* ccade = new char[cade.length()+1]; + strcpy(ccade, cade.c_str()); + colorizer = new Colorizer(ccade); + new_tailfile->open(argv[i], colorizer); } } } debian/patches/02_adding_option.patch0000644000000000000000000000142211413536255014761 0ustar Patch to show the option -l to display without colors. Index: colortail-0.3.2/Usage.cc =================================================================== --- colortail-0.3.2.orig/Usage.cc 2010-01-02 13:22:27.000000000 -0500 +++ colortail-0.3.2/Usage.cc 2010-01-02 13:24:43.000000000 -0500 @@ -46,6 +46,7 @@ cout << "\t\t\t\tIf only one config file it's global otherwise" << endl; cout << "\t\t\t\tone config file for each tail file" << endl; cout << " -n, --lines=N\t\t\toutput the last N lines, instead of last 10" << endl; + cout << " -l \t\t\t\tdisplay without colors" << endl; cout << " -q, --quiet, --silent\t\tnever output headers giving file names" << endl; cout << " -v, --version\t\t\toutput version information and exit" << endl; cout << endl; debian/patches/series0000644000000000000000000000006111413536255012034 0ustar 02_adding_option.patch 01_colorize_default.patch debian/copyright0000644000000000000000000000144311413536030011117 0ustar This work was packaged for Debian by: Elías Alejandro Año Mendoza on Sat, 02 Jan 2010 12:33:26 -0500 It was downloaded from http://joakimandersson.se/projects/colortail/ Upstream Author: Joakim Andersson Copyright: Copyright (C) 2009 Joakim Andersson Copyright (C) 1999 Joakim Andersson Copyright (C) 1992,1993,1994,1995,1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,2005, 2006, 2007, 2008 Free Software Foundation, Inc. License: This software comes under the GPL license version 2. The Debian packaging is: Copyright (C) 2010 Elías Alejandro Año Mendoza and is licensed under the GPL version 2 see `/usr/share/common-licenses/GPL-2'. debian/colortail.dirs0000644000000000000000000000001611413535646012046 0ustar etc/colortail