diff options
Diffstat (limited to 'www/zope210/Makefile')
-rw-r--r-- | www/zope210/Makefile | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/www/zope210/Makefile b/www/zope210/Makefile index 8aeabc48706d..628f4def60a9 100644 --- a/www/zope210/Makefile +++ b/www/zope210/Makefile @@ -6,21 +6,29 @@ # PORTNAME= zope -PORTVERSION= 2.4.2 +PORTVERSION= 2.5.0 PORTREVISION= 0 CATEGORIES= www python zope MASTER_SITES= http://www.zope.org/Products/Zope/${PORTVERSION}/ DISTNAME= Zope-${PORTVERSION}-src -DISTFILES= ${DISTNAME}.tgz +EXTRACT_SUFX= .tgz + +PATCHFILES= Zope-2.5.0-unix-security.patch +PATCH_DIST_STRIP= -p1 +PATCH_SITES= http://www.zope.org/Members/zigg/UnixSecurityPatch/ MAINTAINER= nbm@FreeBSD.org USE_PYTHON= yes +PYTHON_VERSION= python2.1 #RUN_DEPENDS= ${LOCALBASE}/sbin/apache:${PORTSDIR}/www/apache13-modssl DIST_SUBDIR= zope +post-patch: + @${FIND} ${WRKSRC} -name \*.orig -exec ${RM} {} \; + # Build has to be done in the final location after installing the sources # there. It was a major action to fix all paths otherwise. do-build: # empty, but needs to be there for the python dependency. @@ -30,13 +38,11 @@ WEBBASEDIR?= www SZOPEBASEDIR?= ${WEBBASEDIR}/Zope SCGIBINDIR?= ${WEBBASEDIR}/cgi-bin.default SAPACHE_CONFDIR?= etc/apache +ZOPE_HTTP_PORT?= 8080 +ZOPE_FTP_PORT?= 8021 +ZOPE_MONITOR_PORT?= '' -WHOAMI!= id -un -.if ${WHOAMI} == "root" -NOBODY_USER?= nobody -.else -NOBODY_USER?= ${WHOAMI} -.endif +ZOPE_USER= www # Don't change these. ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR} @@ -49,6 +55,9 @@ PLIST_SUB= ZOPEBASEDIR=${SZOPEBASEDIR} \ VERSION=${PORTVERSION} \ WEBBASEDIR=${WEBBASEDIR} +pre-install: + PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL + # I decided to consider the whole souce tree to be part of the package # since in there, Zope can live on its own. I can use Zope's own building # mechanism. @@ -86,8 +95,8 @@ do-install: @# @${ECHO} "===> Fixing permissions of Zope's own var directory..." @${CHMOD} ugo+rwt ${ZOPEBASEDIR}/var - @${CHOWN} ${NOBODY_USER} ${ZOPEBASEDIR}/var - @${CHOWN} ${NOBODY_USER} ${ZOPEBASEDIR}/var/* + @${CHOWN} ${ZOPE_USER} ${ZOPEBASEDIR}/var + @${CHOWN} ${ZOPE_USER} ${ZOPEBASEDIR}/var/* @${RM} ${ZOPEBASEDIR}/var/.cvsignore @if [ -e ${ZOPEBASEDIR}/var/Data.fs.preserve ] ; then \ ${ECHO} "Restoring existing Database from ${ZOPEBASEDIR}/var/Data.fs.preserve." ; \ @@ -101,7 +110,7 @@ do-install: -p test -e CLEARTEXT access ); \ fi @# - @${CHOWN} ${NOBODY_USER} ${ZOPEBASEDIR}/access + @${CHOWN} ${ZOPE_USER} ${ZOPEBASEDIR}/access @# @${ECHO} "===> Copying Apache config file changes to ${APACHE_CONFDIR}/apache.conf.Zope-Changes." @${MKDIR} ${APACHE_CONFDIR} @@ -111,7 +120,12 @@ do-install: @${ECHO} "===> therein and incorporate them to your apache.conf." @${ECHO} "===> Creating rc startup file for Zope-${PORTVERSION}..." @${MKDIR} ${PREFIX}/etc/rc.d - @${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" -e "s|%%CGIBINDIR%%|${CGIBINDIR}|g" \ + @${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" \ + -e "s|%%CGIBINDIR%%|${CGIBINDIR}|g" \ + -e "s|%%ZOPE_USER%%|${ZOPE_USER}|g" \ + -e "s|%%ZOPE_HTTP_PORT%%|${ZOPE_HTTP_PORT}|g" \ + -e "s|%%ZOPE_FTP_PORT%%|${ZOPE_FTP_PORT}|g" \ + -e "s|%%ZOPE_MONITOR_PORT%%|${ZOPE_MONITOR_PORT}|g" \ < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc/rc.d/zope.sh @${CHMOD} ug+x,o-rwx ${PREFIX}/etc/rc.d/zope.sh @${ECHO} "===> Done with ${PREFIX}/etc/rc.d/zope.sh." |