# New ports collection makefile for: Zope # Date created: Sat 21 Aug 1999 # Whom: Peter Cornelius # # $FreeBSD$ # PORTNAME= zope PORTVERSION= 2.5.1 PORTREVISION= 0 CATEGORIES= www python zope MASTER_SITES= http://www.zope.org/Products/Zope/${PORTVERSION}/ DISTNAME= Zope-${PORTVERSION}-src EXTRACT_SUFX= .tgz MAINTAINER= nbm@FreeBSD.org USE_PYTHON= yes PYTHON_VERSION= python2.1 #RUN_DEPENDS= ${LOCALBASE}/sbin/apache:${PORTSDIR}/www/apache13-modssl DIST_SUBDIR= zope # 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. # Change these, if you like, via the environment. 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?= '' ZOPE_USER= www # Don't change these. ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR} CGIBINDIR= ${PREFIX}/${SCGIBINDIR} APACHE_CONFDIR= ${PREFIX}/${SAPACHE_CONFDIR} PLIST_SUB= ZOPEBASEDIR=${SZOPEBASEDIR} \ CGIBINDIR=${SCGIBINDIR} \ APACHE_CONFDIR=${SAPACHE_CONFDIR} \ 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. do-install: @if [ -e ${ZOPEBASEDIR}/var/Data.fs ] ; then \ ${ECHO} "Saving existing Database to ${ZOPEBASEDIR}/var/Data.fs.preserve." ; \ ${MV} ${ZOPEBASEDIR}/var/Data.fs ${ZOPEBASEDIR}/var/Data.fs.preserve; \ fi @# @${MKDIR} ${ZOPEBASEDIR} @${ECHO} "===> Please be patient, some builds need their time." @${ECHO} "===> Copying..." @${CP} -Rp ${WRKSRC}/* ${ZOPEBASEDIR}/ # # Copying some patches # #@${CP} -Rp ${WRKDIR}/lib ${ZOPEBASEDIR}/ @# @${CHMOD} -R u+w ${ZOPEBASEDIR} @(cd ${ZOPEBASEDIR} && ${PYTHON_CMD} w_pcgi.py) @${CHMOD} -R u+w ${ZOPEBASEDIR} @(cd ${ZOPEBASEDIR} && ${PYTHON_CMD} wo_pcgi.py) @(cd ${ZOPEBASEDIR} && \ ${MV} Zope.cgi Zope.cgi.orig ; \ ${ECHO_CMD} "#! ${CGIBINDIR}/pcgi-wrapper" > Zope.cgi ; \ ${CAT} Zope.cgi.orig >> Zope.cgi ; \ ${RM} Zope.cgi.orig ) @(cd ${ZOPEBASEDIR}/pcgi/Test && ${RM} *.o) @(cd ${ZOPEBASEDIR}/pcgi && ${RM} *.o) @# @${MKDIR} ${CGIBINDIR} @(cd ${ZOPEBASEDIR} && \ ${MV} Zope.cgi \ pcgi/pcgi-wrapper \ ${CGIBINDIR} ) @(cd ${CGIBINDIR} && \ ${CHMOD} 555 Zope.cgi pcgi-wrapper ) @# @${ECHO} "===> Fixing permissions of Zope's own var directory..." @${CHMOD} ugo+rwt ${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." ; \ ${MV} ${ZOPEBASEDIR}/var/Data.fs.preserve ${ZOPEBASEDIR}/var/Data.fs; \ fi @# @if [ ! -f ${ZOPEBASEDIR}/access ]; then \ ${ECHO} "===> Setting user/password to zopemaster/test..."; \ (cd ${ZOPEBASEDIR} && \ ${PYTHON_CMD} zpasswd.py -u zopemaster \ -p test -e CLEARTEXT access ); \ fi @# @${CHOWN} ${ZOPE_USER} ${ZOPEBASEDIR}/access @# @${ECHO} "===> Copying Apache config file changes to ${APACHE_CONFDIR}/apache.conf.Zope-Changes." @${MKDIR} ${APACHE_CONFDIR} @${CP} -p ${FILESDIR}/apache.conf.Zope-Changes ${APACHE_CONFDIR}/ @# @${ECHO} "===> Please have a look at this file and the instructions" @${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" \ -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." @${CAT} ${FILESDIR}/Message @${ECHO} "===> Your Zope base directory is ${ZOPEBASEDIR}." @${ECHO} "===> The Zope license is in ${ZOPEBASEDIR}/LICENSE.txt." @${ECHO} "===> For Apache changes see ${APACHE_CONFDIR}/apache.conf.Zope-Changes." @${ECHO} "===> Zope.cgi and pcgi-wrapper live in ${CGIBINDIR}." .include by: distilator Convert to USES=dos2unix 2013-11-18T13:45:44+00:00 bapt bapt@FreeBSD.org 2013-11-18T13:45:44+00:00 fa5cfad14187ef5fd9e14f12908abe0a5fc73787 While here stagify some of the ports Modernize LIB_DEPENDS Extract zip with bsdtar when possible
While here stagify some of the ports
Modernize LIB_DEPENDS
Extract zip with bsdtar when possible
Add NO_STAGE all over the place in preparation for the staging support (cat: benchmarks) 2013-09-20T15:52:44+00:00 bapt bapt@FreeBSD.org 2013-09-20T15:52:44+00:00 b715b89a1416d2148b4fef07ef9a3ce0c8e4d11d

Reset g.gonter@ieee.org: mbox full. 2013-06-19T20:12:38+00:00 linimon linimon@FreeBSD.org 2013-06-19T20:12:38+00:00 184a1c33c991e89155f8c31f1717e9038be127cf While here, modernize headers.
While here, modernize headers.
- Enhances detection of CPU count 2012-04-15T11:43:13+00:00 scheidell scheidell@FreeBSD.org 2012-04-15T11:43:13+00:00 eacdf0e5d8b416b0e229e5fe25c2be1fb32d8916 - fixes compile time warnings with string.hg not being included in xdd.h PR: ports/165197 Submitted by: Garrett Cooper <yanegomi@gmail.com> Approved by: g.gonter@ieee.org (maintainer, timeout 60 days)
- fixes compile time warnings with string.hg not being included in xdd.h

PR:		ports/165197
Submitted by:	Garrett Cooper <yanegomi@gmail.com>
Approved by:	g.gonter@ieee.org (maintainer, timeout 60 days)
- Get Rid MD5 support 2011-03-18T17:59:50+00:00 miwi miwi@FreeBSD.org 2011-03-18T17:59:50+00:00 433e7e60a8b1913f6fcdb20b7cdec167203dd208 With hat: portmgr (myself)
With hat:	portmgr (myself)