aboutsummaryrefslogtreecommitdiff
path: root/misc/grc
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-03-25 13:17:54 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-03-25 13:17:54 +0000
commit323aa7a8f00f7494a5ba562204a3621c7dd53544 (patch)
tree6d1860f158cf06e627503ebba5e8cce38ef98037 /misc/grc
parent1f3c5b6d9d0d87e5a48baa35475aab7af1812caf (diff)
downloadports-323aa7a8f00f7494a5ba562204a3621c7dd53544.tar.gz
ports-323aa7a8f00f7494a5ba562204a3621c7dd53544.zip
Notes
Diffstat (limited to 'misc/grc')
-rw-r--r--misc/grc/Makefile42
-rw-r--r--misc/grc/distinfo1
-rw-r--r--misc/grc/files/patch-grc17
-rw-r--r--misc/grc/files/patch-grc.114
-rw-r--r--misc/grc/files/patch-grcat8
-rw-r--r--misc/grc/files/patch-grcat.111
-rw-r--r--misc/grc/pkg-comment1
-rw-r--r--misc/grc/pkg-descr4
-rw-r--r--misc/grc/pkg-plist13
9 files changed, 111 insertions, 0 deletions
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