1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

Add port misc/mtail:

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.

WWW: http://matt.immute.net/src/mtail/
Author: Matt Hellige <matt@immute.net>

Based on:	NetBSD pkgsrc package
This commit is contained in:
Andrew Pantyukhin 2007-08-09 10:03:48 +00:00
parent b7d0d9c75a
commit b795ffa423
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197375
4 changed files with 57 additions and 0 deletions

View File

@ -322,6 +322,7 @@
SUBDIR += misterproper
SUBDIR += mmv
SUBDIR += mshell
SUBDIR += mtail
SUBDIR += mtx
SUBDIR += nagios-base-logos
SUBDIR += najitool

37
misc/mtail/Makefile Normal file
View File

@ -0,0 +1,37 @@
# New ports collection makefile for: mtail
# Date created: 9 August 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mtail
PORTVERSION= 1.1.1
CATEGORIES= misc
MASTER_SITES= http://matt.immute.net/src/mtail/ CENKES
EXTRACT_SUFX= .tgz
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Small tail workalike that performs output coloring
NO_BUILD= yes
USE_PYTHON_RUN= yes
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= CHANGES LICENSE README
PORTEXAMPLES= mtailrc
post-patch:
@${REINPLACE_CMD} -e '1s|/.*|${PYTHON_CMD}|' ${WRKSRC}/${PORTNAME}
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
.ifndef NOPORTEXAMPLES
@${INSTALL} -d ${EXAMPLESDIR}/
@${INSTALL_DATA} ${WRKSRC}/mtailrc.sample ${EXAMPLESDIR}/mtailrc
.endif
.include <bsd.port.mk>

3
misc/mtail/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (mtail-1.1.1.tgz) = 166ccd3bfea04fdc81940b256d7d6f18
SHA256 (mtail-1.1.1.tgz) = 1c82feb4ced3dc861497d4adc27a4d62d7002112bcfa24d1655348dda79bf3ab
SIZE (mtail-1.1.1.tgz) = 9124

16
misc/mtail/pkg-descr Normal file
View File

@ -0,0 +1,16 @@
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.
WWW: http://matt.immute.net/src/mtail/
Author: Matt Hellige <matt@immute.net>