diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-03-25 21:17:54 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-03-25 21:17:54 +0800 |
commit | 8811bd6b71b7e8299e3e1f33c31e3cce28b1f2eb (patch) | |
tree | 1d7a417afcbb94f912a7de3ee9dc359a4109990d /misc | |
parent | 4f2fbb2378548d435d82e8b0c8bca90d10d266c5 (diff) | |
download | freebsd-ports-gnome-8811bd6b71b7e8299e3e1f33c31e3cce28b1f2eb.tar.gz freebsd-ports-gnome-8811bd6b71b7e8299e3e1f33c31e3cce28b1f2eb.tar.zst freebsd-ports-gnome-8811bd6b71b7e8299e3e1f33c31e3cce28b1f2eb.zip |
add grc
Generic Colouriser is yet another colouriser for beautifying your logfiles
or output of commands
Diffstat (limited to 'misc')
-rw-r--r-- | misc/Makefile | 1 | ||||
-rw-r--r-- | misc/grc/Makefile | 42 | ||||
-rw-r--r-- | misc/grc/distinfo | 1 | ||||
-rw-r--r-- | misc/grc/files/patch-grc | 17 | ||||
-rw-r--r-- | misc/grc/files/patch-grc.1 | 14 | ||||
-rw-r--r-- | misc/grc/files/patch-grcat | 8 | ||||
-rw-r--r-- | misc/grc/files/patch-grcat.1 | 11 | ||||
-rw-r--r-- | misc/grc/pkg-comment | 1 | ||||
-rw-r--r-- | misc/grc/pkg-descr | 4 | ||||
-rw-r--r-- | misc/grc/pkg-plist | 13 |
10 files changed, 112 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile index 7675c8f2ab76..42b315031b63 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -62,6 +62,7 @@ SUBDIR += gone SUBDIR += gplbp SUBDIR += granulate + SUBDIR += grc SUBDIR += grdb SUBDIR += grun SUBDIR += gtkfind diff --git a/misc/grc/Makefile b/misc/grc/Makefile new file mode 100644 index 000000000000..bbba0e81f1f6 --- /dev/null +++ b/misc/grc/Makefile @@ -0,0 +1,42 @@ +# ex:ts=8 +# New ports collection makefile for: grc +# Date created: Mar 25, 2001 +# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= grc +PORTVERSION= 1.0.1 +CATEGORIES= misc +MASTER_SITES= http://melkor.dnp.fmph.uniba.sk/~garabik/grc/ +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= ijliao@FreeBSD.org + +USE_PYTHON= yes + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +NO_BUILD= yes + +MAN1= grc.1 grcat.1 + +post-patch: +.for file in grc grcat + @${PERL} -pi -e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g ; \ + s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file} +.endfor + +do-install: +.for file in grc grcat ${MAN1} + ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin +.endfor + +.for file in ${MAN1} + ${INSTALL_MAN} ${WRKSRC}/${file} ${MAN1PREFIX}/man/man1 +.endfor + ${MKDIR} ${PREFIX}/share/grc + ${CP} ${WRKSRC}/conf.* ${PREFIX}/share/grc + ${CP} ${WRKSRC}/grc.conf ${PREFIX}/etc/grc.conf + +.include <bsd.port.mk> diff --git a/misc/grc/distinfo b/misc/grc/distinfo new file mode 100644 index 000000000000..6a8046170462 --- /dev/null +++ b/misc/grc/distinfo @@ -0,0 +1 @@ +MD5 (grc_1.0.1.tar.gz) = 709d0a52a5df086813c00aeafa7b2b38 diff --git a/misc/grc/files/patch-grc b/misc/grc/files/patch-grc new file mode 100644 index 000000000000..8a772969902f --- /dev/null +++ b/misc/grc/files/patch-grc @@ -0,0 +1,17 @@ +--- grc.orig Sun Mar 25 20:40:51 2001 ++++ grc Sun Mar 25 20:43:14 2001 +@@ -1,4 +1,4 @@ +-#! /usr/bin/python ++#!%%PYTHON_CMD%% + + import os, re, string, sys, getopt, signal + +@@ -65,7 +65,7 @@ + + conffile = None + if cfile == "": +- conffilename = [os.environ['HOME']+"/.grc/grc.conf", "/etc/grc.conf"] ++ conffilename = [os.environ['HOME']+"/.grc/grc.conf", "%%PREFIX%%/etc/grc.conf"] + for i in conffilename: + if os.path.isfile(i): + conffile = i diff --git a/misc/grc/files/patch-grc.1 b/misc/grc/files/patch-grc.1 new file mode 100644 index 000000000000..12001107851a --- /dev/null +++ b/misc/grc/files/patch-grc.1 @@ -0,0 +1,14 @@ +--- grc.1.orig Sun Mar 25 21:10:52 2001 ++++ grc.1 Sun Mar 25 21:14:38 2001 +@@ -17,9 +17,9 @@ + + Configuration file for + .BR grc +-is determined by /etc/grc.conf file. ++is determined by %%PREFIX%%/etc/grc.conf file. + +-Format of /etc/grc.conf: ++Format of %%PREFIX%%/etc/grc.conf: + each entry consists of 2 lines, between entries there can be any number of empty + lines or lines beginning with # (comments) + diff --git a/misc/grc/files/patch-grcat b/misc/grc/files/patch-grcat new file mode 100644 index 000000000000..c81e4533bc7c --- /dev/null +++ b/misc/grc/files/patch-grcat @@ -0,0 +1,8 @@ +--- grcat.orig Sun Mar 25 20:48:10 2001 ++++ grcat Sun Mar 25 20:48:51 2001 +@@ -1,4 +1,4 @@ +-#! /usr/bin/python ++#!%%PYTHON_CMD%% + + import sys, os, string, getopt, re, signal, sys + diff --git a/misc/grc/files/patch-grcat.1 b/misc/grc/files/patch-grcat.1 new file mode 100644 index 000000000000..97ff0b3e9202 --- /dev/null +++ b/misc/grc/files/patch-grcat.1 @@ -0,0 +1,11 @@ +--- grcat.1.orig Sun Mar 25 21:15:18 2001 ++++ grcat.1 Sun Mar 25 21:15:39 2001 +@@ -8,7 +8,7 @@ + .SH DESCRIPTION + .I "configuration" + is a name of a configuration file. Directories +-~/.grc/, /usr/local/share/grc/, /usr/share/grc/ ++~/.grc/, %%PREFIX%%/share/grc/, /usr/share/grc/ + are searched for the file (in this order). + + If the file is not found, it is assumed to be an absolute path of a diff --git a/misc/grc/pkg-comment b/misc/grc/pkg-comment new file mode 100644 index 000000000000..f4029973fbaf --- /dev/null +++ b/misc/grc/pkg-comment @@ -0,0 +1 @@ +Generic Colouriser diff --git a/misc/grc/pkg-descr b/misc/grc/pkg-descr new file mode 100644 index 000000000000..5f9e26dbbc18 --- /dev/null +++ b/misc/grc/pkg-descr @@ -0,0 +1,4 @@ +Generic Colouriser is yet another colouriser for beautifying your logfiles +or output of commands. + +WWW: http://melkor.dnp.fmph.uniba.sk/~garabik/grc.html diff --git a/misc/grc/pkg-plist b/misc/grc/pkg-plist new file mode 100644 index 000000000000..d5a8a9c54788 --- /dev/null +++ b/misc/grc/pkg-plist @@ -0,0 +1,13 @@ +bin/grc +bin/grcat +etc/grc.conf +share/grc/conf.esperanto +share/grc/conf.gcc +share/grc/conf.irclog +share/grc/conf.ldap +share/grc/conf.log +share/grc/conf.netstat +share/grc/conf.ping +share/grc/conf.proftpd +share/grc/conf.traceroute +@dirrm share/grc |