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-11-16 01:02:25 +01:00
|
|
|
PORTVERSION= 2.7.3
|
2001-08-04 19:29:00 +02:00
|
|
|
CATEGORIES= www python zope
|
2004-07-24 13:06:23 +02:00
|
|
|
MASTER_SITES= http://www.zope.org/Products/Zope/${PORTVERSION}/
|
|
|
|
DISTNAME= Zope-${PORTVERSION}-0
|
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
|
2004-04-20 16:18:32 +02:00
|
|
|
USE_RC_SUBR= yes
|
2004-05-28 18:54:56 +02:00
|
|
|
USE_REINPLACE= 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.
|
|
|
|
|
2000-09-07 13:04:44 +02:00
|
|
|
# Change these, if you like, via the environment.
|
2004-04-20 16:18:32 +02:00
|
|
|
ZOPE_USER?= www
|
2001-03-06 23:30:21 +01:00
|
|
|
WEBBASEDIR?= www
|
|
|
|
SZOPEBASEDIR?= ${WEBBASEDIR}/Zope
|
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
|
|
|
|
2004-04-20 16:18:32 +02:00
|
|
|
.if defined(INSTANCENAME)
|
|
|
|
ZOPEINSTANCENAME= ${INSTANCENAME}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR}
|
|
|
|
ZOPEINSTANCEBASE?= ${PREFIX}/${SZOPEBASEDIR}
|
|
|
|
ZOPEINSTANCEDIR?= ${ZOPEINSTANCEBASE}/${ZOPEINSTANCENAME}
|
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}
|
2004-04-20 16:18:32 +02:00
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
|
|
|
|
RC_SUBR=${RC_SUBR}
|
|
|
|
CONFIG_SUB= ZOPEBASEDIR=${ZOPEBASEDIR} \
|
|
|
|
ZOPE_USER=${ZOPE_USER} \
|
|
|
|
ZOPEINSTANCEDIR=${ZOPEINSTANCEDIR}
|
2004-07-02 22:41:00 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2004-04-02 02:00:29 +02:00
|
|
|
|
|
|
|
.if defined(BATCH)
|
|
|
|
ISBATCH= -u admin:test123
|
|
|
|
.else
|
|
|
|
ISBATCH= ""
|
|
|
|
.endif
|
|
|
|
|
2004-05-28 18:54:56 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,^\(ACCEPTABLE="\)\(.*"\)$$,\1 2.3.4 \2,g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2004-04-02 02:00:29 +02:00
|
|
|
post-install:
|
2004-04-20 16:18:32 +02:00
|
|
|
@${MV} ${ZOPEBASEDIR}/skel/etc/zope.conf.in ${ZOPEBASEDIR}/skel/etc/zope.conf.sample.in
|
2004-07-02 22:41:00 +02:00
|
|
|
@${SED} ${CONFIG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} < ${FILESDIR}/pkg-message.in \
|
|
|
|
> ${PKGMESSAGE}
|
2004-04-20 16:18:32 +02:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/zope.sh > ${PREFIX}/etc/rc.d/zope.sh
|
|
|
|
@${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/zope.sh
|
2004-11-16 01:02:25 +01:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/zeo.sh > ${PREFIX}/etc/rc.d/zeo.sh
|
|
|
|
@${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/zeo.sh
|
2004-04-20 16:18:32 +02:00
|
|
|
@${MKDIR} ${ZOPEBASEDIR}/Products
|
2004-07-24 13:06:23 +02:00
|
|
|
@${CP} ${FILESDIR}/Products_00readme-freebsd.txt ${ZOPEBASEDIR}/Products/00readme-freebsd.txt
|
2004-07-02 22:41:00 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG}
|
2004-04-02 02:00:29 +02:00
|
|
|
|
|
|
|
instance:
|
2004-04-20 16:18:32 +02:00
|
|
|
@${ZOPEBASEDIR}/bin/mkzopeinstance.py -d ${ZOPEINSTANCEDIR} ${ISBATCH}
|
|
|
|
@${SED} ${CONFIG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${FILESDIR}/zope.conf_changes | \
|
|
|
|
${PATCH} ${ZOPEINSTANCEDIR}/etc/zope.conf.sample
|
|
|
|
@${RM} ${ZOPEINSTANCEDIR}/etc/zope.conf.sample.orig
|
|
|
|
@${CHOWN} ${ZOPE_USER} ${ZOPEINSTANCEDIR}/var
|
|
|
|
@${CHOWN} ${ZOPE_USER} ${ZOPEINSTANCEDIR}/log
|
|
|
|
@${SED} ${CONFIG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${FILESDIR}/instance_message
|
2004-07-24 13:06:23 +02:00
|
|
|
@${RM} -f ${ZOPEBASEDIR}/bin/copyzopeskel.pyc
|
|
|
|
|
2004-11-16 01:02:25 +01:00
|
|
|
zeo:
|
|
|
|
@${ZOPEBASEDIR}/bin/mkzeoinstance.py ${ZOPEINSTANCEDIR}
|
|
|
|
@${CHOWN} ${ZOPE_USER} ${ZOPEINSTANCEDIR}/var
|
|
|
|
@${CHOWN} ${ZOPE_USER} ${ZOPEINSTANCEDIR}/log
|
|
|
|
@${SED} ${CONFIG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${FILESDIR}/zeo_message
|
|
|
|
|
2004-07-24 13:06:23 +02:00
|
|
|
pre-package:
|
|
|
|
@${SED} ${CONFIG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} < ${FILESDIR}/pkg-message.package.in \
|
|
|
|
> ${PKGMESSAGE}
|
1999-11-01 03:40:07 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|