From a0d8267ddb664f65a8f282830e35b1744bacfb0f Mon Sep 17 00:00:00 2001 From: pawel Date: Tue, 29 Oct 2013 21:45:12 +0000 Subject: - Update to version 1.5 [1] - Add support for STAGEDIR PR: ports/181892 [1] Submitted by: KATO Tsuguru --- misc/grc/Makefile | 22 +++++++++++----------- misc/grc/distinfo | 4 ++-- misc/grc/pkg-plist | 9 +++++++++ 3 files changed, 22 insertions(+), 13 deletions(-) (limited to 'misc') diff --git a/misc/grc/Makefile b/misc/grc/Makefile index 84605af4d4af..1f1c48ed704d 100644 --- a/misc/grc/Makefile +++ b/misc/grc/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= grc -PORTVERSION= 1.4 +PORTVERSION= 1.5 CATEGORIES= misc MASTER_SITES= http://kassiopeia.juls.savba.sk/~garabik/software/grc/ DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -10,19 +10,19 @@ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Generic Colouriser +LICENSE= GPLv2 + WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} NO_BUILD= yes +USES= shebangfix +SHEBANG_FILES= grc grcat USE_PYTHON_RUN= yes -MAN1= grc.1 grcat.1 - -NO_STAGE= yes post-patch: .for i in grc grcat @${REINPLACE_CMD} -e \ - 's|/usr/bin/python|${SETENV} python|g ; \ - s|"/etc/grc|"${PREFIX}/etc/grc|g ; \ + 's|"/etc/grc|"${PREFIX}/etc/grc|g ; \ s|/usr/local/share/grc|${DATADIR}|g ; \ s|, "/usr/share/grc/"||g' ${WRKSRC}/${i} @${REINPLACE_CMD} -e \ @@ -33,11 +33,11 @@ post-patch: do-install: .for i in grc grcat - ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/${i}.1 ${MAN1PREFIX}/man/man1 + (cd ${WRKSRC} && ${INSTALL_SCRIPT} ${i} ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} ${i}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1) .endfor - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/conf.* ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/grc.conf ${PREFIX}/etc + (cd ${WRKSRC} && ${INSTALL_DATA} grc.conf ${STAGEDIR}${PREFIX}/etc) + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${INSTALL_DATA} conf.* ${STAGEDIR}${DATADIR}) .include diff --git a/misc/grc/distinfo b/misc/grc/distinfo index 590da3483b23..3edf4052c9ab 100644 --- a/misc/grc/distinfo +++ b/misc/grc/distinfo @@ -1,2 +1,2 @@ -SHA256 (grc_1.4.tar.gz) = bbfdc5ee074a857a8cff52f4b1941527c1dd192e1c2b45f69c624ce9fad4f4d0 -SIZE (grc_1.4.tar.gz) = 24302 +SHA256 (grc_1.5.tar.gz) = a2581f065236868bd8b09536616a588792f60fcba4e54d69e2cad65aae73dddc +SIZE (grc_1.5.tar.gz) = 26363 diff --git a/misc/grc/pkg-plist b/misc/grc/pkg-plist index 05a0b95faf4a..77c341b2c3a4 100644 --- a/misc/grc/pkg-plist +++ b/misc/grc/pkg-plist @@ -1,17 +1,26 @@ bin/grc bin/grcat etc/grc.conf +man/man1/grc.1.gz +man/man1/grcat.1.gz %%DATADIR%%/conf.configure %%DATADIR%%/conf.cvs %%DATADIR%%/conf.diff +%%DATADIR%%/conf.dig %%DATADIR%%/conf.esperanto %%DATADIR%%/conf.gcc +%%DATADIR%%/conf.ifconfig %%DATADIR%%/conf.irclog %%DATADIR%%/conf.ldap +%%DATADIR%%/conf.ls %%DATADIR%%/conf.log +%%DATADIR%%/conf.mount +%%DATADIR%%/conf.mount2 +%%DATADIR%%/conf.mtr %%DATADIR%%/conf.netstat %%DATADIR%%/conf.ping %%DATADIR%%/conf.proftpd +%%DATADIR%%/conf.ps %%DATADIR%%/conf.traceroute %%DATADIR%%/conf.wdiff @dirrm %%DATADIR%% -- cgit