From edwin@mavetju.org  Sun Sep 22 02:13:06 2002
Return-Path: <edwin@mavetju.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7ACB037B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Sep 2002 02:13:06 -0700 (PDT)
Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1845143E65
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Sep 2002 02:13:06 -0700 (PDT)
	(envelope-from edwin@mavetju.org)
Received: from k7.mavetju (topaz.mdcc.cx [212.204.230.141])
	by topaz.mdcc.cx (Postfix) with ESMTP id ED4E32B8D8
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Sep 2002 11:13:03 +0200 (CEST)
Received: by k7.mavetju (Postfix, from userid 1001)
	id 973C36A7124; Sun, 22 Sep 2002 19:13:01 +1000 (EST)
Message-Id: <20020922091301.973C36A7124@k7.mavetju>
Date: Sun, 22 Sep 2002 19:13:01 +1000 (EST)
From: Edwin Groothuis <edwin@mavetju.org>
Reply-To: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] fix x11/bgrot extra files
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         43245
>Category:       ports
>Synopsis:       [patch] fix x11/bgrot extra files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 22 02:20:01 PDT 2002
>Closed-Date:    Fri Nov 01 01:55:18 PST 2002
>Last-Modified:  Fri Nov 01 01:55:18 PST 2002
>Originator:     Edwin Groothuis
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 4.5-RELEASE FreeBSD 4.5-RELEASE #4: Sat Sep 14 10:41:50 EST 2002 edwin@k7.mavetju:/usr/src/sys/compile/k7 i386

$FreeBSD: ports/x11/bgrot/Makefile,v 1.8 2002/07/18 02:38:41 pat Exp $

>Description:

bgrot left a file behind and overwrote the orignial configfile anyway.

>How-To-Repeat:

>Fix:

Add this file to x11/bgrot/files as patch-Makefile
--- Makefile.old	Sun Sep 22 19:03:43 2002
+++ Makefile	Sun Sep 22 19:04:30 2002
@@ -52,7 +52,7 @@
 .endif
 	@echo Installing files...
 	-install -o ${BINOWN} -g ${BINGRP} -m ${FILEMODE} -c ${INSTALLFILES} ${BINDIR}
-	-install -o ${BINOWN} -g ${BINGRP} -m ${FILEMODE} -c bgrot.conf ${CONFDIR}
+	-install -o ${BINOWN} -g ${BINGRP} -m ${FILEMODE} -c bgrot.conf.skel ${CONFDIR}
 	@echo Compressing manpage...
 	@gzip -c bgrot.1 > bgrot.1.gz
 	@echo Installing manpage...
@@ -88,7 +88,7 @@
 		rm -f ${BINDIR}/$${entry}; \
 	done
 	@echo Uninstalling configuration...
-	@rm -f ${CONFDIR}/bgrot.conf
+	@rm -f ${CONFDIR}/bgrot.conf.skel
 	@echo Uninstalling manpage...
 	@rm -f ${MANDIR}/man1/bgrot.1.gz
 	@echo Done.

Add this file to x11/bgrot as pkg-message
***
*** Please copy ${PREFIX}/etc/bgrot.conf.skel to ${PREFIX}/etc/bgrot.conf
***

Apply this patch to x11/bgrot/Makefile
--- Makefile.old	Sun Sep 22 19:08:28 2002
+++ Makefile	Sun Sep 22 19:09:02 2002
@@ -21,6 +21,6 @@
 MANCOMPRESSED=	yes
 
 post-install:
-	@${INSTALL_DATA} ${WRKSRC}/bgrot.conf.skel ${PREFIX}/etc
+	@${CAT} pkg-message
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Fri Nov 1 01:55:03 PST 2002 
State-Changed-Why:  
Commited 

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