1999-11-01 03:40:07 +01:00
|
|
|
# New ports collection makefile for: Zope
|
|
|
|
# Date created: Sat 21 Aug 1999
|
|
|
|
# Whom: Peter Cornelius <pcc@gmx.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2000-04-10 02:07:29 +02:00
|
|
|
#
|
1999-11-01 03:40:07 +01:00
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= zope
|
2004-04-02 02:00:29 +02:00
|
|
|
PORTVERSION= 2.7.0
|
2001-08-04 19:29:00 +02:00
|
|
|
CATEGORIES= www python zope
|
2004-04-02 02:00:29 +02:00
|
|
|
MASTER_SITES= http://www.zope.org/Products/Zope/${PORTVERSION}/${PORTVERSION}/
|
|
|
|
DISTNAME= Zope-${PORTVERSION}
|
2002-05-08 20:50:07 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
1999-11-01 03:40:07 +01:00
|
|
|
|
2004-04-14 04:54:22 +02:00
|
|
|
MAINTAINER= estartu@augusta.de
|
2003-05-12 05:36:53 +02:00
|
|
|
COMMENT= An object-based web application platform
|
2003-05-07 02:12:29 +02:00
|
|
|
|
2004-04-02 02:00:29 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_xmlplus/sax/expatreader.py:${PORTSDIR}/textproc/py-xml
|
2000-09-07 00:12:35 +02:00
|
|
|
|
2004-04-02 02:00:29 +02:00
|
|
|
USE_PYTHON= yes
|
2000-10-15 01:33:12 +02:00
|
|
|
DIST_SUBDIR= zope
|
|
|
|
|
2002-11-03 14:17:17 +01:00
|
|
|
# Note: the notes that follow reflect the decisions of prior maintainers
|
|
|
|
# of this port. IOW, don't blame me if you don't like the way it's done.
|
|
|
|
# Exceptions to this are marked as such.
|
|
|
|
|
1999-11-01 03:40:07 +01:00
|
|
|
# Build has to be done in the final location after installing the sources
|
2001-03-06 23:30:21 +01:00
|
|
|
# there. It was a major action to fix all paths otherwise.
|
1999-11-01 03:40:07 +01:00
|
|
|
|
2000-09-07 13:04:44 +02:00
|
|
|
# Change these, if you like, via the environment.
|
2001-03-06 23:30:21 +01:00
|
|
|
WEBBASEDIR?= www
|
|
|
|
SZOPEBASEDIR?= ${WEBBASEDIR}/Zope
|
2002-07-27 08:29:13 +02:00
|
|
|
SCGIBINDIR?= ${WEBBASEDIR}/cgi-bin
|
2001-03-06 23:30:21 +01:00
|
|
|
SAPACHE_CONFDIR?= etc/apache
|
2004-04-02 02:00:29 +02:00
|
|
|
ZOPE_USER?= www
|
1999-11-01 03:40:07 +01:00
|
|
|
|
2004-04-02 02:00:29 +02:00
|
|
|
# Do not change anything below this line.
|
2000-09-19 16:25:24 +02:00
|
|
|
|
2000-09-07 13:04:44 +02:00
|
|
|
ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR}
|
2004-04-02 02:00:29 +02:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --prefix=${ZOPEBASEDIR}
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
ALL_TARGET= build
|
|
|
|
MAKEFILE= makefile
|
|
|
|
|
|
|
|
PLIST_SUB= ZOPEBASEDIR=${SZOPEBASEDIR}
|
|
|
|
|
|
|
|
.if defined(BATCH)
|
|
|
|
ISBATCH= -u admin:test123
|
|
|
|
.else
|
|
|
|
ISBATCH= ""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MV} ${PREFIX}/${SZOPEBASEDIR}/skel/etc/zope.conf.in ${PREFIX}/${SZOPEBASEDIR}/skel/etc/zope.conf.sample.in
|
|
|
|
@${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" < pkg-message
|
|
|
|
|
|
|
|
instance:
|
|
|
|
@${PREFIX}/${SZOPEBASEDIR}/bin/mkzopeinstance.py -d ${ZOPEBASEDIR} ${ISBATCH}
|
|
|
|
@${CAT} ${FILESDIR}/zope.conf_changes | \
|
|
|
|
${SED} "s/@@@ZOPE_USER@@@/${ZOPE_USER}/g" | \
|
|
|
|
${PATCH} ${ZOPEBASEDIR}/etc/zope.conf.sample
|
|
|
|
@${RM} ${ZOPEBASEDIR}/etc/zope.conf.sample.orig
|
|
|
|
@${CHOWN} ${ZOPE_USER} ${ZOPEBASEDIR}/var
|
|
|
|
@${CHOWN} ${ZOPE_USER} ${ZOPEBASEDIR}/log
|
|
|
|
@${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc/rc.d/zope.sh.sample
|
1999-11-01 03:40:07 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|