summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2001-03-28 15:41:04 +0000
committerzuntum <zuntum@pkgsrc.org>2001-03-28 15:41:04 +0000
commit5538d166f1162c6c6edcfb32eb851993483bcfba (patch)
tree23880c3ee0bdba1a3668ee37172a48095bf31cb0 /misc
parent843e560e1ca5f9d9d6c33f710d5193a521e5f113 (diff)
downloadpkgsrc-5538d166f1162c6c6edcfb32eb851993483bcfba.tar.gz
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.
Diffstat (limited to 'misc')
-rw-r--r--misc/mtail/Makefile27
-rw-r--r--misc/mtail/files/md53
-rw-r--r--misc/mtail/pkg/DESCR13
-rw-r--r--misc/mtail/pkg/PLIST4
4 files changed, 47 insertions, 0 deletions
diff --git a/misc/mtail/Makefile b/misc/mtail/Makefile
new file mode 100644
index 00000000000..a8dc1cb2dea
--- /dev/null
+++ b/misc/mtail/Makefile
@@ -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"
diff --git a/misc/mtail/files/md5 b/misc/mtail/files/md5
new file mode 100644
index 00000000000..5a4c4a8a016
--- /dev/null
+++ b/misc/mtail/files/md5
@@ -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
diff --git a/misc/mtail/pkg/DESCR b/misc/mtail/pkg/DESCR
new file mode 100644
index 00000000000..d5d5eae6abb
--- /dev/null
+++ b/misc/mtail/pkg/DESCR
@@ -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.
diff --git a/misc/mtail/pkg/PLIST b/misc/mtail/pkg/PLIST
new file mode 100644
index 00000000000..a2fd0530f8f
--- /dev/null
+++ b/misc/mtail/pkg/PLIST
@@ -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