diff options
author | nbm <nbm@FreeBSD.org> | 2000-09-07 11:04:44 +0000 |
---|---|---|
committer | nbm <nbm@FreeBSD.org> | 2000-09-07 11:04:44 +0000 |
commit | 8ab0a667af964d35d4df939c47f0c8eda6d315ac (patch) | |
tree | 792447de66467f32618116c0ab2c56b1b1932c62 /www/zope28 | |
parent | bced0caff80082df4f04533be2658d158e72d653 (diff) | |
download | FreeBSD-ports-8ab0a667af964d35d4df939c47f0c8eda6d315ac.zip FreeBSD-ports-8ab0a667af964d35d4df939c47f0c8eda6d315ac.tar.gz |
Fix numerous bugs in my upgrading to 2.2.1.
It may even work out the box now.
Diffstat (limited to 'www/zope28')
-rw-r--r-- | www/zope28/Makefile | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/www/zope28/Makefile b/www/zope28/Makefile index b5925d4..64b8596 100644 --- a/www/zope28/Makefile +++ b/www/zope28/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} && \ |