Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2002 03:25:37 -0400 (EDT)
From:      Alan Eldridge <ports@geeksrus.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        nmb@FreeBSD.org
Subject:   ports/39687: www/zope: should use www/cgi-bin (the symlink) to install scripts
Message-ID:  <200206230725.g5N7PbUb048526@wwweasel.geeksrus.net>

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

>Number:         39687
>Category:       ports
>Synopsis:       www/zope: should use www/cgi-bin (the symlink) to install scripts
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 23 00:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alan Eldridge
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
Geeksrus.NET
>Environment:
System: FreeBSD wwweasel.geeksrus.net 4.6-STABLE FreeBSD 4.6-STABLE #1: Wed Jun 19 13:50:13 EDT 2002 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386
>Description:

The recent apache changes have made the zope install the cgi scripts in a
location that will not ever be referenced.

The right way to do the install is to use the (existing) cgi-bin symlink and
only do a mkdir if www/cgi-bin does not exist at all.

nmb@, I would like permission to commit this patch ASAP. Thanks.
>How-To-Repeat:
>Fix:

==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
Index: www/zope/Makefile
===================================================================
RCS file: /home/ncvs/ports/www/zope/Makefile,v
retrieving revision 1.37
diff -u -3 -r1.37 Makefile
--- www/zope/Makefile	20 Jun 2002 00:25:43 -0000	1.37
+++ www/zope/Makefile	23 Jun 2002 07:08:23 -0000
@@ -29,7 +29,7 @@
 # Change these, if you like, via the environment.
 WEBBASEDIR?=		www
 SZOPEBASEDIR?=		${WEBBASEDIR}/Zope
-SCGIBINDIR?=		${WEBBASEDIR}/cgi-bin.default
+SCGIBINDIR?=		${WEBBASEDIR}/cgi-bin
 SAPACHE_CONFDIR?=	etc/apache
 ZOPE_HTTP_PORT?=	8080
 ZOPE_FTP_PORT?=		8021
@@ -81,7 +81,7 @@
 	@(cd ${ZOPEBASEDIR}/pcgi/Test && ${RM} *.o)
 	@(cd ${ZOPEBASEDIR}/pcgi && ${RM} *.o)
 	@#
-	@${MKDIR} ${CGIBINDIR}
+	@if test ! -e ${CGIBINDIR}; then ${MKDIR} ${CGIBINDIR}; fi
 	@(cd ${ZOPEBASEDIR} && \
 		${MV} Zope.cgi \
 			pcgi/pcgi-wrapper \
==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==


>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?200206230725.g5N7PbUb048526>