View | Details | Raw Unified | Return to bug 158473
Collapse All | Expand All

(-)misc/grc/Makefile (-13 / +16 lines)
Lines 7-13 Link Here
7
#
7
#
8
8
9
PORTNAME=	grc
9
PORTNAME=	grc
10
PORTVERSION=	1.3
10
PORTVERSION=	1.4
11
CATEGORIES=	misc
11
CATEGORIES=	misc
12
MASTER_SITES=	http://kassiopeia.juls.savba.sk/~garabik/software/grc/
12
MASTER_SITES=	http://kassiopeia.juls.savba.sk/~garabik/software/grc/
13
DISTNAME=	${PORTNAME}_${PORTVERSION}
13
DISTNAME=	${PORTNAME}_${PORTVERSION}
Lines 15-41 Link Here
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	Generic Colouriser
16
COMMENT=	Generic Colouriser
17
17
18
DEPRECATED=	Look like an abandonware, no more public distifles
19
EXPIRATION_DATE=	2011-08-01
20
21
USE_PYTHON=	yes
22
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
18
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
23
NO_BUILD=	yes
19
NO_BUILD=	yes
24
20
21
USE_PYTHON_RUN=	yes
22
25
MAN1=	grc.1 grcat.1
23
MAN1=	grc.1 grcat.1
26
24
27
post-patch:
25
post-patch:
28
.for file in grc grcat
26
.for i in grc grcat
29
	@${REINPLACE_CMD} -e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g ; \
27
	@${REINPLACE_CMD} -e \
30
		s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
28
		's|/usr/bin/python|${SETENV} python|g ; \
29
		 s|"/etc/grc|"${PREFIX}/etc/grc|g ; \
30
		 s|/usr/local/share/grc|${DATADIR}|g ; \
31
		 s|, "/usr/share/grc/"||g' ${WRKSRC}/${i}
32
	@${REINPLACE_CMD} -e \
33
		's| /etc/grc| ${PREFIX}/etc/grc|g ; \
34
		 s|/usr/local/share/grc|${DATADIR}|g ; \
35
		 s|, /usr/share/grc/||g' ${WRKSRC}/${i}.1
31
.endfor
36
.endfor
32
37
33
do-install:
38
do-install:
34
.for f in grc grcat
39
.for i in grc grcat
35
	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin
40
	${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/bin
36
.endfor
41
	${INSTALL_MAN} ${WRKSRC}/${i}.1 ${MAN1PREFIX}/man/man1
37
.for i in ${MAN1}
38
	${INSTALL_MAN} ${WRKSRC}/${i} ${MAN1PREFIX}/man/man1
39
.endfor
42
.endfor
40
	@${MKDIR} ${DATADIR}
43
	@${MKDIR} ${DATADIR}
41
	${INSTALL_DATA} ${WRKSRC}/conf.* ${DATADIR}
44
	${INSTALL_DATA} ${WRKSRC}/conf.* ${DATADIR}
(-)misc/grc/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (grc_1.3.tar.gz) = cee26860a866aa1e905ff9e15b1dd5e4671263a1c109c94a2b70d836a10c0821
1
SHA256 (grc_1.4.tar.gz) = bbfdc5ee074a857a8cff52f4b1941527c1dd192e1c2b45f69c624ce9fad4f4d0
2
SIZE (grc_1.3.tar.gz) = 23658
2
SIZE (grc_1.4.tar.gz) = 24302
(-)misc/grc/files/patch-grc (-17 lines)
Lines 1-17 Link Here
1
--- grc.orig	Wed Sep  4 05:01:42 2002
2
+++ grc	Tue Nov 12 00:58:50 2002
3
@@ -1,4 +1,4 @@
4
-#! /usr/bin/python
5
+#!%%PYTHON_CMD%%
6
 
7
 import os, re, string, sys, getopt, signal
8
 
9
@@ -74,7 +74,7 @@
10
     home = []
11
     if os.environ.has_key('HOME'):
12
         home = [os.environ['HOME']+"/.grc/grc.conf"]
13
-    conffilenames = home + ["/etc/grc.conf"]
14
+    conffilenames = home + ["%%PREFIX%%/etc/grc.conf"]
15
     for i in conffilenames:
16
         if os.path.isfile(i):
17
             conffile = i
(-)misc/grc/files/patch-grc.1 (-14 lines)
Lines 1-14 Link Here
1
--- grc.1.orig	Sun Mar 25 21:10:52 2001
2
+++ grc.1	Sun Mar 25 21:14:38 2001
3
@@ -17,9 +17,9 @@
4
 
5
 Configuration file for 
6
 .BR grc
7
-is determined by /etc/grc.conf file.
8
+is determined by %%PREFIX%%/etc/grc.conf file.
9
 
10
-Format of /etc/grc.conf:
11
+Format of %%PREFIX%%/etc/grc.conf:
12
 each entry consists of 2 lines, between entries there can be any number of empty 
13
 lines or lines beginning with # (comments)
14
 
(-)misc/grc/files/patch-grcat (-8 lines)
Lines 1-8 Link Here
1
--- grcat.orig	Sun Mar 25 20:48:10 2001
2
+++ grcat	Sun Mar 25 20:48:51 2001
3
@@ -1,4 +1,4 @@
4
-#! /usr/bin/python
5
+#!%%PYTHON_CMD%%
6
 
7
 import sys, os, string, getopt, re, signal, sys
8
 
(-)misc/grc/files/patch-grcat.1 (-11 lines)
Lines 1-11 Link Here
1
--- grcat.1.orig	Sun Mar 25 21:15:18 2001
2
+++ grcat.1	Sun Mar 25 21:15:39 2001
3
@@ -8,7 +8,7 @@
4
 .SH DESCRIPTION
5
 .I "configuration"
6
 is a name of a configuration file. Directories 
7
-~/.grc/, /usr/local/share/grc/, /usr/share/grc/
8
+~/.grc/, %%PREFIX%%/share/grc/, /usr/share/grc/
9
 are searched for the file (in this order).
10
 
11
 If the file is not found, it is assumed to be an absolute path of a 
(-)misc/grc/pkg-descr (-1 / +1 lines)
Lines 1-4 Link Here
1
Generic Colouriser is yet another colouriser for beautifying your logfiles
1
Generic Colouriser is yet another colouriser for beautifying your logfiles
2
or output of commands.
2
or output of commands.
3
3
4
WWW: http://melkor.dnp.fmph.uniba.sk/~garabik/grc.html
4
WWW: http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
(-)misc/grc/pkg-plist (-1 / +2 lines)
Lines 1-6 Link Here
1
bin/grc
1
bin/grc
2
bin/grcat
2
bin/grcat
3
etc/grc.conf
3
etc/grc.conf
4
%%DATADIR%%/conf.configure
5
%%DATADIR%%/conf.cvs
4
%%DATADIR%%/conf.diff
6
%%DATADIR%%/conf.diff
5
%%DATADIR%%/conf.esperanto
7
%%DATADIR%%/conf.esperanto
6
%%DATADIR%%/conf.gcc
8
%%DATADIR%%/conf.gcc
Lines 12-16 Link Here
12
%%DATADIR%%/conf.proftpd
14
%%DATADIR%%/conf.proftpd
13
%%DATADIR%%/conf.traceroute
15
%%DATADIR%%/conf.traceroute
14
%%DATADIR%%/conf.wdiff
16
%%DATADIR%%/conf.wdiff
15
%%DATADIR%%/conf.cvs
16
@dirrm %%DATADIR%%
17
@dirrm %%DATADIR%%

Return to bug 158473