Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 2004 19:48:48 +0800
From:      Rong-En Fan <rafan@infor.org>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc:        stolz@i2.informatik.rwth-aachen.de
Subject:   Re: ports/66562: Update Port: mail/mailgraph by maintainer
Message-ID:  <20040512114848.GA34046@muse.csie.ntu.edu.tw>
In-Reply-To: <200405121040.i4CAeCew008447@freefall.freebsd.org>
References:  <20040512103009.E96A552ED0@muse.csie.ntu.edu.tw> <200405121040.i4CAeCew008447@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

This patch will fix the problem that vs@ mentioned.


diff -ruN mailgraph.old/Makefile mailgraph/Makefile
--- mailgraph.old/Makefile	Wed May 12 19:43:17 2004
+++ mailgraph/Makefile	Wed May 12 19:42:24 2004
@@ -27,9 +27,13 @@
 RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} DATADIR=${DATADIR}
 STARTUP_FILE=	${PREFIX}/etc/rc.d/mailgraph.sh
 
+MSG_FILE=	${PKGDIR}/pkg-message
+PKGMESSAGE=	${WRKSRC}/pkg-message
+
 
 post-patch:
 	@${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/mailgraph.cgi
+	@${SED} 's|%%DATADIR%%|${DATADIR}|g' ${MSG_FILE} > ${PKGMESSAGE}
 
 do-install:
 	${MKDIR} ${PREFIX}/www/cgi-bin
@@ -43,7 +47,7 @@
 
 post-install:
 	@${ECHO}
-	@${CAT} ${PKGMESSAGE} | ${SED} -e "s,%%DATADIR%%,${DATADIR}," ${PKGMESSAGE}
+	@${CAT} ${PKGMESSAGE}
 	@${ECHO}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040512114848.GA34046>