From sheldonh@axl.noc.iafrica.com  Wed Jan  6 07:09:40 1999
Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA25719
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 6 Jan 1999 07:09:07 -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.10 #1)
	id 0zxuZV-0002Wq-00
	for FreeBSD-gnats-submit@freebsd.org; Wed, 6 Jan 1999 17:08:33 +0200
Message-Id: <9723.915635313@axl.noc.iafrica.com>
Date: Wed, 06 Jan 1999 17:08:33 +0200
From: Sheldon Hearn <axl@iafrica.com>
Sender: Sheldon Hearn <sheldonh@axl.noc.iafrica.com>
Reply-To: Sheldon Hearn <axl@iafrica.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] unbreak apache13-php3 for over-install
X-Send-Pr-Version: 3.2

>Number:         9347
>Category:       ports
>Synopsis:       [PATCH] unbreak apache13-php3 for over-install
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dirk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan  6 07:10:00 PST 1999
>Closed-Date:    Fri Jan 8 09:23:43 PST 1999
>Last-Modified:  Fri Jan  8 09:24:58 PST 1999
>Originator:     Sheldon Hearn
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
UUNET Internet Africa
>Environment:

	Where symlinks for (apache_pb.gif|index.html|manual) exist in
	${PREFIX}/www/data/ from prior installations.

>Description:

	The www/apache13-php3 port install target breaks apache is
	already installed. This is because it assumes that
	(apache_pb.gif|index.html|manual) do not exist in
	${PREFIX}/www/data/ when it creates symlinks referencing
	installed files.

>How-To-Repeat:

	cd ${PORTSDIR}/www/apache13-php3 ; make install ; make clean \
	make install

>Fix:

	The following patch teaches www/apache13-php3 not to create a
	symlink in ${PREFIX}/www/data/ if a file with the same name
	of the intended link already exists in that directory.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/apache13-php3/Makefile,v
retrieving revision 1.63
diff -u -d -r1.63 Makefile
--- Makefile	1999/01/03 12:26:47	1.63
+++ Makefile	1999/01/06 14:59:19
@@ -113,7 +116,9 @@
 	find ${APACHEDOCDIR} -type d -exec chmod a+rx {} \; ; \
 	find ${APACHEDOCDIR} -type f -exec chmod a+r {} \;
 .for i in apache_pb.gif index.html manual
-	${LN} -s ${PREFIX}/share/doc/apache/$i ${PREFIX}/www/data/$i
+	if [ ! -e ${PREFIX}/www/data/$i ] ; then \
+	    ${LN} -s ${PREFIX}/share/doc/apache/$i ${PREFIX}/www/data/$i ; \
+	fi
 .endfor
 .for i in CODING_STANDARDS EXTENSION_STATUS LICENSE
 	${INSTALL_DATA} ${WRKDIR}/php-${VERSION_PHP3}/$i ${PHP3DOCDIR}
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->dirk 
Responsible-Changed-By: dirk 
Responsible-Changed-When: Wed Jan 6 07:50:06 PST 1999 
Responsible-Changed-Why:  
I'll handle this. 
State-Changed-From-To: open->closed 
State-Changed-By: dirk 
State-Changed-When: Fri Jan 8 09:23:43 PST 1999 
State-Changed-Why:  
patch applied, thanks! 
>Unformatted:
