mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Add colorize 0.3.0, a robust log colorizer.
PR: 28113 Submitted by: petef@databits.net
This commit is contained in:
parent
fc5157c173
commit
961a5675c5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43932
@ -19,6 +19,7 @@
|
||||
SUBDIR += cfengine
|
||||
SUBDIR += checkservice
|
||||
SUBDIR += clockspeed
|
||||
SUBDIR += colorize
|
||||
SUBDIR += comconsole
|
||||
SUBDIR += consolehm
|
||||
SUBDIR += contool
|
||||
|
37
sysutils/colorize/Makefile
Normal file
37
sysutils/colorize/Makefile
Normal file
@ -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>
|
1
sysutils/colorize/distinfo
Normal file
1
sysutils/colorize/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (colorize_0.3.0.tar.gz) = 2a6284866f6dd1e60534f4512ff79098
|
1
sysutils/colorize/pkg-comment
Normal file
1
sysutils/colorize/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A robust log colorizer
|
8
sysutils/colorize/pkg-descr
Normal file
8
sysutils/colorize/pkg-descr
Normal file
@ -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
|
7
sysutils/colorize/pkg-message
Normal file
7
sysutils/colorize/pkg-message
Normal file
@ -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
|
||||
---------------------------------------------------------------------------
|
2
sysutils/colorize/pkg-plist
Normal file
2
sysutils/colorize/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/colorize
|
||||
etc/colorizerc.sample
|
Loading…
Reference in New Issue
Block a user