1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- update to 0.3.3

- working webpage + download site now
- install as 'colorize', not 'colorize.pl'.
This commit is contained in:
Pete Fritchman 2003-04-13 17:04:40 +00:00
parent 7871da092c
commit e75254b66b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78896
4 changed files with 11 additions and 17 deletions

View File

@ -6,11 +6,9 @@
#
PORTNAME= colorize
PORTVERSION= 0.3.0
PORTVERSION= 0.3.3
CATEGORIES= sysutils
MASTER_SITES= http://nrg.martos.bme.hu/release/colorize/download/gz/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= petef
MASTER_SITES= http://colorize.raszi.hu/download/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= petef@FreeBSD.org
@ -23,24 +21,20 @@ WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
NO_BUILD= yes
USE_PERL5= yes
MAN1= colorize.pl.1
FMT?= /usr/bin/fmt
MAN1= colorize.1
MANCOMPRESSED= yes
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
s|#!/usr/bin/perl|#!${PERL}|g" ${WRKSRC}/colorize
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/colorize.pl ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKSRC}/colorize ${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/colorizerc ${PREFIX}/etc/colorizerc.dist
.if !exists(${PREFIX}/etc/colorizerc)
@${INSTALL_DATA} ${WRKSRC}/colorizerc ${PREFIX}/etc/colorizerc
.endif
@${INSTALL_MAN} ${WRKSRC}/colorize.pl.1 ${PREFIX}/man/man1/colorize.pl.1
@${PERL} -pi -e 's,PREFIX,${PREFIX},' ${PKGMESSAGE}
@${SED} s!/usr/local/!${PREFIX}/! ${PKGMESSAGE} | ${FMT}
@${INSTALL_MAN} ${WRKSRC}/colorize.1.gz ${PREFIX}/man/man1
@${SED} -e "s!/usr/local/!${PREFIX}/!" < ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (colorize_0.3.0.tar.gz) = 2a6284866f6dd1e60534f4512ff79098
MD5 (colorize_0.3.3.tar.gz) = 7f0fb9c6759b8c2280fe832ba15f5007

View File

@ -2,7 +2,7 @@ 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/
WWW: http://colorize.raszi.hu/
- Pete
petef@databits.net

View File

@ -1,4 +1,4 @@
bin/colorize.pl
bin/colorize
@unexec if cmp -s %D/etc/colorizerc %D/etc/colorizerc.dist; then rm -f %D/etc/colorizerc; fi
etc/colorizerc.dist
@exec if [ ! -f %D/etc/colorizerc ]; then cp -f %D/etc/%f %D/etc/colorizerc; fi