grc: add new package
authorThomas Klausner <wiz@NetBSD.org>
Mon, 28 Sep 2015 19:52:53 +0000 (21:52 +0200)
committerThomas Klausner <wiz@NetBSD.org>
Mon, 28 Sep 2015 19:52:53 +0000 (21:52 +0200)
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

Makefile
grc/DESCR [new file with mode: 0644]
grc/Makefile [new file with mode: 0644]
grc/PLIST [new file with mode: 0644]
grc/TODO [new file with mode: 0644]
grc/distinfo [new file with mode: 0644]

index 44986d67d96eff9eca29f6bd2238d97dc418476f..1378f9914cf0452e2b24b5c3d5adb8da70600d8d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
 
 COMMENT=       WIP pkgsrc packages
 
+#SUBDIR+=      .git # to silence pkglint
 SUBDIR+=       389-ds-base
 SUBDIR+=       Bear
 SUBDIR+=       Chinput
@@ -915,6 +916,7 @@ SUBDIR+=    grass-Spearfish-imagery
 SUBDIR+=       grass-WakeCounty
 SUBDIR+=       grass-gully
 SUBDIR+=       graveman
+SUBDIR+=       grc
 SUBDIR+=       gretl
 SUBDIR+=       grip
 SUBDIR+=       grisbi
@@ -1466,10 +1468,8 @@ SUBDIR+= libeio
 SUBDIR+=       libeio-cvs
 SUBDIR+=       libepc
 SUBDIR+=       libeps
-SUBDIR+=       libestr
 SUBDIR+=       libfm
 SUBDIR+=       libfplll
-SUBDIR+=       libfs
 SUBDIR+=       libftdi1
 SUBDIR+=       libgadu
 SUBDIR+=       libgda-bdb
@@ -1605,7 +1605,7 @@ SUBDIR+=  lissac
 SUBDIR+=       litecoin
 SUBDIR+=       lives
 SUBDIR+=       livestreamer
-SUBDIR+=       lldpd
+SUBDIR+=       lldb-git
 SUBDIR+=       llvm-rtlib
 SUBDIR+=       lmdbg-current
 SUBDIR+=       lmfit
@@ -1997,6 +1997,7 @@ SUBDIR+=  openbsd-input-usbtablet
 SUBDIR+=       openca
 SUBDIR+=       opencascade
 SUBDIR+=       opendchub
+SUBDIR+=       opendylan
 SUBDIR+=       openerp-server
 SUBDIR+=       openh264
 SUBDIR+=       openlogos
@@ -2873,6 +2874,7 @@ SUBDIR+=  py-lire
 SUBDIR+=       py-liveplots
 SUBDIR+=       py-llfuse
 SUBDIR+=       py-locustio
+SUBDIR+=       py-logbook
 SUBDIR+=       py-loggly
 SUBDIR+=       py-logilab-database
 SUBDIR+=       py-logilab-mtconverter
@@ -3123,7 +3125,6 @@ SUBDIR+=  py-remctl
 SUBDIR+=       py-report
 SUBDIR+=       py-repositoryhandler
 SUBDIR+=       py-repoze.tm2
-SUBDIR+=       py-requests-oauthlib
 SUBDIR+=       py-restkit
 SUBDIR+=       py-rf
 SUBDIR+=       py-rlcompleter2
@@ -3264,6 +3265,7 @@ SUBDIR+=  py-trollius
 SUBDIR+=       py-tsgeom
 SUBDIR+=       py-ttk
 SUBDIR+=       py-turbojson
+SUBDIR+=       py-twilio
 SUBDIR+=       py-twisted-kqueue
 SUBDIR+=       py-txWS
 SUBDIR+=       py-txZMQ
@@ -3627,7 +3629,6 @@ SUBDIR+=  stmpclean
 SUBDIR+=       stonx
 SUBDIR+=       structure
 SUBDIR+=       stumpwm
-SUBDIR+=       stunnel3
 SUBDIR+=       sudo
 SUBDIR+=       suitesparse
 SUBDIR+=       sun-j2me
diff --git a/grc/DESCR b/grc/DESCR
new file mode 100644 (file)
index 0000000..78b8b1b
--- /dev/null
+++ b/grc/DESCR
@@ -0,0 +1,10 @@
+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.
diff --git a/grc/Makefile b/grc/Makefile
new file mode 100644 (file)
index 0000000..48573c2
--- /dev/null
@@ -0,0 +1,34 @@
+# $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"
diff --git a/grc/PLIST b/grc/PLIST
new file mode 100644 (file)
index 0000000..cc356d3
--- /dev/null
+++ b/grc/PLIST
@@ -0,0 +1,28 @@
+@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
diff --git a/grc/TODO b/grc/TODO
new file mode 100644 (file)
index 0000000..72772e0
--- /dev/null
+++ b/grc/TODO
@@ -0,0 +1 @@
+Does not seem to work for me on NetBSD. -- wiz 20150928
diff --git a/grc/distinfo b/grc/distinfo
new file mode 100644 (file)
index 0000000..52ffcd4
--- /dev/null
@@ -0,0 +1,5 @@
+$NetBSD$
+
+SHA1 (grc-1.9.tar.gz) = 13c8dc32084b707021636d654ef25d7804277207
+RMD160 (grc-1.9.tar.gz) = a6d6d7144623a1875bb1f39d8ecdf797c6ad012c
+Size (grc-1.9.tar.gz) = 29252 bytes