summaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormarkp <markp@FreeBSD.org>2001-06-13 07:19:08 +0000
committermarkp <markp@FreeBSD.org>2001-06-13 07:19:08 +0000
commitfb0fe6469e98eb4c4ced2876a90899b4a343e98a (patch)
treee414e83ac8575d99a64722c9db29ee0fd8c7837f /sysutils
parent12c2a7209cdb801637146cef2fdb2a6b24cd5080 (diff)
downloadFreeBSD-ports-fb0fe6469e98eb4c4ced2876a90899b4a343e98a.zip
FreeBSD-ports-fb0fe6469e98eb4c4ced2876a90899b4a343e98a.tar.gz
Add colorize 0.3.0, a robust log colorizer.
PR: 28113 Submitted by: petef@databits.net
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/colorize/Makefile37
-rw-r--r--sysutils/colorize/distinfo1
-rw-r--r--sysutils/colorize/pkg-comment1
-rw-r--r--sysutils/colorize/pkg-descr8
-rw-r--r--sysutils/colorize/pkg-message7
-rw-r--r--sysutils/colorize/pkg-plist2
7 files changed, 57 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 2c6b4fb..c646bce 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -19,6 +19,7 @@
SUBDIR += cfengine
SUBDIR += checkservice
SUBDIR += clockspeed
+ SUBDIR += colorize
SUBDIR += comconsole
SUBDIR += consolehm
SUBDIR += contool
diff --git a/sysutils/colorize/Makefile b/sysutils/colorize/Makefile
new file mode 100644
index 0000000..2ed4b13
--- /dev/null
+++ b/sysutils/colorize/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: colorize
+# Date created: 12 June 2001
+# Whom: petef@databits.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= colorize
+PORTVERSION= 0.3.0
+CATEGORIES= sysutils
+MASTER_SITES= http://nrg.martos.bme.hu/release/colorize/download/gz/
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+
+MAINTAINER= petef@databits.net
+
+RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Term/ANSIColor.pm:${PORTSDIR}/devel/p5-Term-ANSIColor
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
+NO_BUILD= yes
+USE_PERL5= yes
+MAN1= colorize.1
+
+post-patch:
+ @${PERL} -pi -e "s|/etc/colorizerc|${PREFIX}/etc/colorizerc|; \
+ s|#!/usr/bin/perl|#!${PERL}|g" ${WRKSRC}/colorize.pl
+ @${GZIP_CMD} -d ${WRKSRC}/colorize.pl.1.gz
+ @${PERL} -pi -e 's!colorize.pl!colorize!g' ${WRKSRC}/colorize.pl.1
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/colorize.pl ${PREFIX}/bin/colorize
+ ${INSTALL_DATA} ${WRKSRC}/colorizerc ${PREFIX}/etc/colorizerc.sample
+ ${INSTALL_MAN} ${WRKSRC}/colorize.pl.1 ${PREFIX}/man/man1/colorize.1
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/sysutils/colorize/distinfo b/sysutils/colorize/distinfo
new file mode 100644
index 0000000..abc7a5b
--- /dev/null
+++ b/sysutils/colorize/distinfo
@@ -0,0 +1 @@
+MD5 (colorize_0.3.0.tar.gz) = 2a6284866f6dd1e60534f4512ff79098
diff --git a/sysutils/colorize/pkg-comment b/sysutils/colorize/pkg-comment
new file mode 100644
index 0000000..3be081e
--- /dev/null
+++ b/sysutils/colorize/pkg-comment
@@ -0,0 +1 @@
+A robust log colorizer
diff --git a/sysutils/colorize/pkg-descr b/sysutils/colorize/pkg-descr
new file mode 100644
index 0000000..cbc068b
--- /dev/null
+++ b/sysutils/colorize/pkg-descr
@@ -0,0 +1,8 @@
+colorize is a perl script to add color to your logs (system logs, apache
+logs, squid logs, and many other formats). colorize can also output a
+colorized version of your logs as HTML.
+
+WWW: http://nrg.martos.bme.hu/release/colorize/
+
+- Pete
+petef@databits.net
diff --git a/sysutils/colorize/pkg-message b/sysutils/colorize/pkg-message
new file mode 100644
index 0000000..13dff48
--- /dev/null
+++ b/sysutils/colorize/pkg-message
@@ -0,0 +1,7 @@
+---------------------------------------------------------------------------
+You will need to copy PREFIX/etc/colorizerc.sample to PREFIX/etc/colorizerc
+
+To customize the colorize utility, you can make changes to
+ PREFIX/etc/colorizerc
+or user-specific changes in ~/.colorizerc
+---------------------------------------------------------------------------
diff --git a/sysutils/colorize/pkg-plist b/sysutils/colorize/pkg-plist
new file mode 100644
index 0000000..f1abf96
--- /dev/null
+++ b/sysutils/colorize/pkg-plist
@@ -0,0 +1,2 @@
+bin/colorize
+etc/colorizerc.sample
OpenPOWER on IntegriCloud