From a0ec029ac0cebcb783ab9d97a2efb9690dc8c03d Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Thu, 7 Sep 2000 11:04:44 +0000 Subject: Fix numerous bugs in my upgrading to 2.2.1. It may even work out the box now. --- www/zope213/Makefile | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'www/zope213') diff --git a/www/zope213/Makefile b/www/zope213/Makefile index b5925d44eb60..64b8596309c4 100644 --- a/www/zope213/Makefile +++ b/www/zope213/Makefile @@ -27,14 +27,19 @@ do-build: # empty, but needs to be there for the python dependency. # there, too. I don't know whether this still applies to current apache # releases, though. I still run 2.2.8-STABLE. -WEBBASEDIR?= ${PREFIX}/www -ZOPEBASEDIR?= ${WEBBASEDIR}/Zope -CGIBINDIR?= ${PREFIX}/www/cgi-bin.default +# Change these, if you like, via the environment. +WEBBASEDIR?= www +SZOPEBASEDIR?= ${WEBBASEDIR}/Zope +SCGIBINDIR?= ${WEBBASEDIR}/cgi-bin.default APACHE_CONFDIR?= ${PREFIX}/etc/apache PYTHON15?= ${LOCALBASE}/bin/python1.5 -PLIST_SUB= ZOPEBASEDIR=${ZOPEBASEDIR} \ - CGIBINDIR=${CGIBINDIR} \ +# Don't change these. +ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR} +CGIBINDIR= ${PREFIX}/${SCGIBINDIR} + +PLIST_SUB= ZOPEBASEDIR=${SZOPEBASEDIR} \ + CGIBINDIR=${SCGIBINDIR} \ VERSION=${PORTVERSION} # I decided to consider the whole souce tree to be part of the package @@ -45,25 +50,29 @@ do-install: # ${ECHO} "Saving existing Database to /tmp/Data.fs.BAK." ; \ ${MV} ${ZOPEBASEDIR}/var/Data.fs /tmp/Data.fs.BAK ; \ fi + # @${MKDIR} ${ZOPEBASEDIR} @${ECHO} "===> Please be patient, some builds need their time." @${ECHO} "===> Copying..." @${CP} -Rp ${WRKSRC}/* ${ZOPEBASEDIR}/ + # @(cd ${ZOPEBASEDIR} ; \ ${PYTHON15} w_pcgi.py ; \ ${PYTHON15} wo_pcgi.py ; \ ${MV} Zope.cgi Zope.cgi.orig ; \ ${ECHO} "#! ${CGIBINDIR}/pcgi-wrapper" > Zope.cgi ; \ ${CAT} Zope.cgi.orig >> Zope.cgi ) + # @${MKDIR} ${CGIBINDIR} @(cd ${ZOPEBASEDIR} ; \ ${INSTALL} -o nobody -m 555 Zope.cgi \ pcgi/pcgi-wrapper \ ${CGIBINDIR} ) + # @${ECHO} "===> Fixing permissions of Zope's own var directory..." - @${CHMOD} ugo+rwt ${ZOPEBASDIR}/var - @${CHOWN} nobody ${ZOPEBASDIR}/var - @${CHOWN} nobody ${ZOPEBASDIR}/var/* + @${CHMOD} ugo+rwt ${ZOPEBASEDIR}/var + @${CHOWN} nobody ${ZOPEBASEDIR}/var + @${CHOWN} nobody ${ZOPEBASEDIR}/var/* # @${ECHO} "===> Setting user/password to zopemaster/test..." @(cd ${ZOPEBASEDIR} && \ -- cgit v1.2.3