summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 2c6b4fbea25b..c646bce57d93 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 000000000000..2ed4b1320e6a
--- /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 000000000000..abc7a5b8b6f7
--- /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 000000000000..3be081ed3898
--- /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 000000000000..cbc068bbb10f
--- /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 000000000000..13dff4830818
--- /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 000000000000..f1abf96676cb
--- /dev/null
+++ b/sysutils/colorize/pkg-plist
@@ -0,0 +1,2 @@
+bin/colorize
+etc/colorizerc.sample