From tlp@LiquidX.org  Wed Jul  7 05:38:55 2004
Return-Path: <tlp@LiquidX.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7DC8116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  7 Jul 2004 05:38:55 +0000 (GMT)
Received: from mail.cableone.net (scanmail2.cableone.net [24.116.0.122])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D9EB543D45
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  7 Jul 2004 05:38:54 +0000 (GMT)
	(envelope-from tlp@LiquidX.org)
Received: from maya.liquidx.org (unverified [24.119.12.184]) 
	by smail2.cableone.net (SurgeMail 1.9b) with ESMTP id 8287893 
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 06 Jul 2004 22:25:21 -0700
Message-Id: <20040706233920.1ec00a69@maya.liquidx.org>
Date: Tue, 6 Jul 2004 23:39:20 -0600
From: Travis Poppe <tlp@LiquidX.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [MAINTAINER UPDATE]: games/wargus - fix wrkdir/pkg-message

>Number:         68753
>Category:       ports
>Synopsis:       [MAINTAINER UPDATE] games/wargus - fix wrkdir/pkg-message
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 07 05:40:25 GMT 2004
>Closed-Date:    Wed Jul 07 07:02:23 GMT 2004
>Last-Modified:  Wed Jul 07 07:02:23 GMT 2004
>Originator:     Travis Poppe
>Release:        
>Organization:
>Environment:
>Description:
Fixed problem reported by kris about creating new stuff in ${WRKDIR}. Port 
revision should not be bumped because the package content has not changed.
>How-To-Repeat:
>Fix:
--- Makefile.orig	Tue Jul  6 23:28:30 2004
+++ Makefile	Tue Jul  6 23:36:47 2004
@@ -23,6 +23,7 @@
 USE_REINPLACE=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+PKGMESSAGE=	${WRKDIR}/pkg-message
 
 do-install:
 	${MKDIR} ${PREFIX}/share/wargus
@@ -58,7 +59,7 @@
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile
 	@(cp ${FILESDIR}/wargus.in ${WRKDIR}/wargus)
 	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKDIR}/wargus
-	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
+	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/pkg-message.in > ${WRKDIR}/pkg-message
 
 post-install:
 	@${CAT} ${PKGMESSAGE}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Wed Jul 7 07:01:38 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

Second chunk of your patch is not needed - you put pkg-message 
into ${WRKDIR} in the first chunk, you can keep using ${PKGMESSAGE} 
in post-build target too. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68753 
>Unformatted:
