Being overflooded with different logfile colo(u)?ri(s|z)ers,
colortails, gccolors, colormakes and similar programs for making
text files or outputs of different programs more readable by
inserting ansi colour control codes into them, I decided to write
my very own colouriser, eventually providing the functions of all
those others.
Two programs are provided: grc and grcat. The main is grcat, which
acts as a filter, i.e. taking standard input, colourising it and
writing to standard output.
TODO:
Does not seem to work for me on NetBSD. -- wiz
20150928
COMMENT= WIP pkgsrc packages
+#SUBDIR+= .git # to silence pkglint
SUBDIR+= 389-ds-base
SUBDIR+= Bear
SUBDIR+= Chinput
SUBDIR+= grass-WakeCounty
SUBDIR+= grass-gully
SUBDIR+= graveman
+SUBDIR+= grc
SUBDIR+= gretl
SUBDIR+= grip
SUBDIR+= grisbi
SUBDIR+= libeio-cvs
SUBDIR+= libepc
SUBDIR+= libeps
-SUBDIR+= libestr
SUBDIR+= libfm
SUBDIR+= libfplll
-SUBDIR+= libfs
SUBDIR+= libftdi1
SUBDIR+= libgadu
SUBDIR+= libgda-bdb
SUBDIR+= litecoin
SUBDIR+= lives
SUBDIR+= livestreamer
-SUBDIR+= lldpd
+SUBDIR+= lldb-git
SUBDIR+= llvm-rtlib
SUBDIR+= lmdbg-current
SUBDIR+= lmfit
SUBDIR+= openca
SUBDIR+= opencascade
SUBDIR+= opendchub
+SUBDIR+= opendylan
SUBDIR+= openerp-server
SUBDIR+= openh264
SUBDIR+= openlogos
SUBDIR+= py-liveplots
SUBDIR+= py-llfuse
SUBDIR+= py-locustio
+SUBDIR+= py-logbook
SUBDIR+= py-loggly
SUBDIR+= py-logilab-database
SUBDIR+= py-logilab-mtconverter
SUBDIR+= py-report
SUBDIR+= py-repositoryhandler
SUBDIR+= py-repoze.tm2
-SUBDIR+= py-requests-oauthlib
SUBDIR+= py-restkit
SUBDIR+= py-rf
SUBDIR+= py-rlcompleter2
SUBDIR+= py-tsgeom
SUBDIR+= py-ttk
SUBDIR+= py-turbojson
+SUBDIR+= py-twilio
SUBDIR+= py-twisted-kqueue
SUBDIR+= py-txWS
SUBDIR+= py-txZMQ
SUBDIR+= stonx
SUBDIR+= structure
SUBDIR+= stumpwm
-SUBDIR+= stunnel3
SUBDIR+= sudo
SUBDIR+= suitesparse
SUBDIR+= sun-j2me
--- /dev/null
+Being overflooded with different logfile colo(u)?ri(s|z)ers,
+colortails, gccolors, colormakes and similar programs for making
+text files or outputs of different programs more readable by
+inserting ansi colour control codes into them, I decided to write
+my very own colouriser, eventually providing the functions of all
+those others.
+
+Two programs are provided: grc and grcat. The main is grcat, which
+acts as a filter, i.e. taking standard input, colourising it and
+writing to standard output.
--- /dev/null
+# $NetBSD$
+
+DISTNAME= grc-1.9
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=garabik/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/garabik/grc/
+COMMENT= Generic colouriser
+LICENSE= gnu-gpl-v2
+
+INSTALLATION_DIRS= share/grc share/examples/grc bin ${PKGMANDIR}/man1
+CONF_FILES+= ${PREFIX}/share/examples/grc/grc.conf ${PKG_SYSCONFDIR}/grc.conf
+
+REPLACE_PYTHON= grc grcat
+
+SUBST_CLASSES+= path
+SUBST_STAGE.path= post-build
+SUBST_SED.path= -e "s,/usr/local,${PREFIX},"
+SUBST_FILES.path= grcat grcat.1
+SUBST_MESSAGE.path= Fixing path to config files.
+
+do-build:
+
+do-install:
+ cd ${WRKSRC} && \
+ ${INSTALL_DATA} conf.* ${DESTDIR}${PREFIX}/share/grc && \
+ ${INSTALL_DATA} grc.conf ${DESTDIR}${PREFIX}/share/examples/grc && \
+ ${INSTALL_SCRIPT} grc grcat ${DESTDIR}${PREFIX}/bin && \
+ ${INSTALL_DATA} grc.1 grcat.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
--- /dev/null
+@comment $NetBSD$
+bin/grc
+bin/grcat
+man/man1/grc.1
+man/man1/grcat.1
+share/examples/grc/grc.conf
+share/grc/conf.configure
+share/grc/conf.cvs
+share/grc/conf.df
+share/grc/conf.diff
+share/grc/conf.dig
+share/grc/conf.esperanto
+share/grc/conf.gcc
+share/grc/conf.ifconfig
+share/grc/conf.irclog
+share/grc/conf.ldap
+share/grc/conf.log
+share/grc/conf.ls
+share/grc/conf.mount
+share/grc/conf.mount2
+share/grc/conf.mtr
+share/grc/conf.netstat
+share/grc/conf.php
+share/grc/conf.ping
+share/grc/conf.proftpd
+share/grc/conf.ps
+share/grc/conf.traceroute
+share/grc/conf.wdiff
--- /dev/null
+Does not seem to work for me on NetBSD. -- wiz 20150928
--- /dev/null
+$NetBSD$
+
+SHA1 (grc-1.9.tar.gz) = 13c8dc32084b707021636d654ef25d7804277207
+RMD160 (grc-1.9.tar.gz) = a6d6d7144623a1875bb1f39d8ecdf797c6ad012c
+Size (grc-1.9.tar.gz) = 29252 bytes