Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 1999 00:39:30 +0200
From:      Sheldon Hearn <sheldonh@iafrica.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        jseger@FreeBSD.ORG (www/lynx MAINTAINER)
Subject:   ports/10120: [PATCH] www/lynx overwrites existing lynx.cfg
Message-ID:  <54869.919204770@axl.noc.iafrica.com>

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

>Number:         10120
>Category:       ports
>Synopsis:       [PATCH] www/lynx overwrites existing lynx.cfg
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 16 14:50:00 PST 1999
>Closed-Date:
>Last-Modified:
>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:
>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?54869.919204770>