Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 2002 19:13:01 +1000 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/43245: [patch] fix x11/bgrot extra files
Message-ID:  <20020922091301.973C36A7124@k7.mavetju>

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

>Number:         43245
>Category:       ports
>Synopsis:       [patch] fix x11/bgrot extra files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 22 02:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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