git: d6a8a2919375 - main - sysutils/colorize: Remove Perl core module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Jun 2022 14:05:22 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d6a8a29193758b68f9c93bf25564ccfe22ec921c
commit d6a8a29193758b68f9c93bf25564ccfe22ec921c
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-16 13:59:15 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-16 13:59:15 +0000
sysutils/colorize: Remove Perl core module
- Fix LICENSE
- Convert REINPLACE_CMD to patch file
- Do not silence installation message
- Update manpage location (003a571d1d6585196545295efc181514f171c4c4, r523104)
- Bump PORTREVISION for dependency and package change
- Take maintainership
---
sysutils/colorize/Makefile | 24 ++++++++++++------------
sysutils/colorize/files/patch-colorize | 11 +++++++++++
sysutils/colorize/pkg-descr | 2 +-
sysutils/colorize/pkg-plist | 2 +-
4 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/sysutils/colorize/Makefile b/sysutils/colorize/Makefile
index 731353f1896a..c3fba2f55eb7 100644
--- a/sysutils/colorize/Makefile
+++ b/sysutils/colorize/Makefile
@@ -3,31 +3,31 @@
PORTNAME= colorize
PORTVERSION= 0.3.4
DISTVERSIONPREFIX= v
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Robust log colorizer
-LICENSE= GPLv2
+LICENSE= GPLv2+
-RUN_DEPENDS= p5-Term-ANSIColor>=0:devel/p5-Term-ANSIColor
+USES= shebangfix perl5
+
+NO_BUILD= yes
+
+SUB_FILES= pkg-message
USE_GITHUB= yes
GH_ACCOUNT= raszi
-NO_BUILD= yes
-SUB_FILES= pkg-message
-USES= shebangfix perl5
SHEBANG_FILES= colorize
post-patch:
- @${REINPLACE_CMD} -i '' -e 's|/etc/colorizerc|${PREFIX}/etc/colorizerc|' \
- ${WRKSRC}/colorize
+ @${REINPLACE_CMD} -e 's|%%PREFFIX%%|${PREFIX}|' ${WRKSRC}/colorize
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/colorize ${STAGEDIR}${PREFIX}/bin
- @${INSTALL_DATA} ${WRKSRC}/colorizerc ${STAGEDIR}${PREFIX}/etc/colorizerc.sample
- @${INSTALL_MAN} ${WRKSRC}/colorize.1.gz ${STAGEDIR}${MAN1PREFIX}/man/man1
+ ${INSTALL_SCRIPT} ${WRKSRC}/colorize ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/colorizerc ${STAGEDIR}${PREFIX}/etc/colorizerc.sample
+ ${INSTALL_MAN} ${WRKSRC}/colorize.1.gz ${STAGEDIR}${PREFIX}/share/man/man1
.include <bsd.port.mk>
diff --git a/sysutils/colorize/files/patch-colorize b/sysutils/colorize/files/patch-colorize
new file mode 100644
index 000000000000..98d998e31999
--- /dev/null
+++ b/sysutils/colorize/files/patch-colorize
@@ -0,0 +1,11 @@
+--- colorize.orig 2004-01-10 15:40:50 UTC
++++ colorize
+@@ -68,7 +68,7 @@ $default_output = "STDOUT";
+ $default_color = "white";
+
+ # Config file places (order is important, we will override the previous values of config)
+-@config_files = ("/etc/colorizerc");
++@config_files = ("%%PREFIX%%/etc/colorizerc");
+ if (defined($ENV{HOME})) {
+ push(@config_files, "$ENV{HOME}/.colorizerc");
+ }
diff --git a/sysutils/colorize/pkg-descr b/sysutils/colorize/pkg-descr
index c5ea6380d116..66f3206853a8 100644
--- a/sysutils/colorize/pkg-descr
+++ b/sysutils/colorize/pkg-descr
@@ -2,4 +2,4 @@ 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://colorize.raszi.hu/
+WWW: https://github.com/raszi/colorize
diff --git a/sysutils/colorize/pkg-plist b/sysutils/colorize/pkg-plist
index fecc9ffb0808..f4f4de8c4258 100644
--- a/sysutils/colorize/pkg-plist
+++ b/sysutils/colorize/pkg-plist
@@ -1,3 +1,3 @@
bin/colorize
@sample etc/colorizerc.sample
-man/man1/colorize.1.gz
+share/man/man1/colorize.1.gz