From sheldonh@axl.noc.iafrica.com Tue Feb 16 14:40:17 1999
Return-Path: <sheldonh@axl.noc.iafrica.com>
Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175])
	by hub.freebsd.org (Postfix) with ESMTP
	id D26B910F7B; Tue, 16 Feb 1999 14:39:32 -0800 (PST)
	(envelope-from sheldonh@axl.noc.iafrica.com)
Received: from sheldonh (helo=axl.noc.iafrica.com)
	by axl.noc.iafrica.com with local-esmtp (Exim 2.12 #1)
	id 10Ct9O-000EH0-00; Wed, 17 Feb 1999 00:39:30 +0200
Message-Id: <54869.919204770@axl.noc.iafrica.com>
Date: Wed, 17 Feb 1999 00:39:30 +0200
From: Sheldon Hearn <sheldonh@iafrica.com>
Sender: Sheldon Hearn <sheldonh@axl.noc.iafrica.com>
Reply-To: Sheldon Hearn <sheldonh@iafrica.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: jseger@FreeBSD.ORG (www/lynx MAINTAINER)
Subject: [PATCH] www/lynx overwrites existing lynx.cfg
X-Send-Pr-Version: 3.2

>Number:         10120
>Category:       ports
>Synopsis:       [PATCH] www/lynx overwrites existing lynx.cfg
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 16 14:50:00 PST 1999
>Closed-Date:    Sun Mar 14 09:34:24 PST 1999
>Last-Modified:  Sun Mar 14 09:34:53 PST 1999
>Originator:     Sheldon Hearn
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
UUNET Internet Africa
>Environment:

	FreeBSD 4.0-CURRENT #1: Mon Feb 15 19:34:06 SAST 1999

>Description:

	The www/lynx port overwrites any existing lynx.cfg file during
	the install target. This is annoying.

>How-To-Repeat:

	make install ; make -DFORCE_PKG_REGISTER install

>Fix:
	
	The following diff (intended to create patch-ab) teaches the
	port to leave any existing lynx.cfg alone:

Index: patches/patch-ab
===================================================================
RCS file: patch-ab
diff -N patch-ab
--- /dev/null	Wed Feb 17 00:22:44 1999
+++ patch-ab	Tue Sep 22 16:26:15 1998
@@ -0,0 +1,15 @@
+--- makefile.in.orig	Tue Mar 10 14:07:58 1998
++++ makefile.in	Thu Sep 17 16:34:21 1998
+@@ -271,8 +271,10 @@
+ 	-rm -f $(libdir)/lynx.tmp
+ 
+ install-cfg : $(libdir)
+-	-mv -f $(libdir)/lynx.cfg $(libdir)/lynx.oldcfg
+-	$(INSTALL_DATA) $(srcdir)/lynx.cfg $(libdir)/lynx.cfg
++	sh -c 'if test ! -f $(libdir)/lynx.cfg ; then \
++		mv -f $(libdir)/lynx.cfg $(libdir)/lynx.oldcfg ; \
++		$(INSTALL_DATA) $(srcdir)/lynx.cfg $(libdir)/lynx.cfg ; \
++	fi'
+ 
+ install-lss : $(libdir)
+ 	-mv -f $(libdir)/lynx.lss $(libdir)/lynx.oldlss

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Sun Mar 14 09:34:24 PST 1999 
State-Changed-Why:  
ports/www/lynx/patches/patch-ab added, thanks. 
>Unformatted:
