Initial import of mtail-0.9.2
mtail is a small tail workalike that performs output coloring using ansi escape sequences (although the sequences are overridable, so you could cause it to output something else, e.g. html font tags, if you really wanted to). mtail is written in python, is fairly small, and should be relatively platform-independent. It has a config file that can contain an arbitrary number of entries, each of which has a series of regular expressions to indicate which files to color according to which entry. for each entry, the config file specifies a coloring scheme using regular expressions and, optionally, filters to apply to each line before coloring (for example, to strip out extra info, etc.). the config file also may override the predefined colors and the escape sequences (or whatever) actually used to perform the coloring.
This commit is contained in:
parent
843e560e1c
commit
5538d166f1
4 changed files with 47 additions and 0 deletions
27
misc/mtail/Makefile
Normal file
27
misc/mtail/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2001/03/28 15:41:04 zuntum Exp $
|
||||
#
|
||||
|
||||
DISTNAME= mtail-0.9.2
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= http://matt.immute.net/src/mtail/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= zuntum@netbsd.org
|
||||
HOMEPAGE= http://matt.immute.net/src/mtail/
|
||||
COMMENT= small tail workalike that performs output coloring
|
||||
|
||||
DEPENDS+= python>=1.5:../../lang/python
|
||||
|
||||
NO_BUILD= yes
|
||||
|
||||
post-patch:
|
||||
${SED} "s,/usr/bin/python,${LOCALBASE}/bin/python," \
|
||||
${WRKSRC}/mtail > ${WRKSRC}/mtail.done
|
||||
${MV} ${WRKSRC}/mtail.done ${WRKSRC}/mtail
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/mtail ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mtail.README
|
||||
${INSTALL_DATA} ${WRKSRC}/mtailrc.sample ${PREFIX}/share/examples
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
3
misc/mtail/files/md5
Normal file
3
misc/mtail/files/md5
Normal file
|
@ -0,0 +1,3 @@
|
|||
$NetBSD: md5,v 1.1.1.1 2001/03/28 15:41:04 zuntum Exp $
|
||||
|
||||
SHA1 (mtail-0.9.2.tgz) = 9e2d1c8fcad2076f25425dda929eaa5a8a258b57
|
13
misc/mtail/pkg/DESCR
Normal file
13
misc/mtail/pkg/DESCR
Normal file
|
@ -0,0 +1,13 @@
|
|||
mtail is a small tail workalike that performs output coloring using ansi
|
||||
escape sequences (although the sequences are overridable, so you could cause
|
||||
it to output something else, e.g. html font tags, if you really wanted to).
|
||||
mtail is written in python, is fairly small, and should be relatively
|
||||
platform-independent.
|
||||
|
||||
It has a config file that can contain an arbitrary number of entries, each
|
||||
of which has a series of regular expressions to indicate which files to color
|
||||
according to which entry. for each entry, the config file specifies a coloring
|
||||
scheme using regular expressions and, optionally, filters to apply to each
|
||||
line before coloring (for example, to strip out extra info, etc.). the config
|
||||
file also may override the predefined colors and the escape sequences (or
|
||||
whatever) actually used to perform the coloring.
|
4
misc/mtail/pkg/PLIST
Normal file
4
misc/mtail/pkg/PLIST
Normal file
|
@ -0,0 +1,4 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/28 15:41:04 zuntum Exp $
|
||||
bin/mtail
|
||||
share/doc/mtail.README
|
||||
share/examples/mtailrc.sample
|
Loading…
Reference in a new issue