Date: Wed, 06 Jan 1999 17:08:33 +0200 From: Sheldon Hearn <axl@iafrica.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/9347: [PATCH] unbreak apache13-php3 for over-install Message-ID: <9723.915635313@axl.noc.iafrica.com>
next in thread | raw e-mail | index | archive | help
>Number: 9347 >Category: ports >Synopsis: [PATCH] unbreak apache13-php3 for over-install >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: Wed Jan 6 07:10:00 PST 1999 >Closed-Date: >Last-Modified: >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: >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?9723.915635313>