1999-10-31 21:40:07 -05:00
|
|
|
# New ports collection makefile for: Zope
|
|
|
|
# Date created: Sat 21 Aug 1999
|
|
|
|
# Whom: Peter Cornelius <pcc@gmx.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2000-04-09 20:07:29 -04:00
|
|
|
#
|
1999-10-31 21:40:07 -05:00
|
|
|
|
2000-04-09 20:07:29 -04:00
|
|
|
PORTNAME= zope
|
2004-11-15 19:02:25 -05:00
|
|
|
PORTVERSION= 2.7.3
|
2001-08-04 13:29:00 -04:00
|
|
|
CATEGORIES= www python zope
|
2004-07-24 07:06:23 -04:00
|
|
|
MASTER_SITES= http://www.zope.org/Products/Zope/${PORTVERSION}/
|
|
|
|
DISTNAME= Zope-${PORTVERSION}-0
|
2002-05-08 14:50:07 -04:00
|
|
|
EXTRACT_SUFX= .tgz
|
1999-10-31 21:40:07 -05:00
|
|
|
|
2004-04-13 22:54:22 -04:00
|
|
|
MAINTAINER= estartu@augusta.de
|
2003-05-11 23:36:53 -04:00
|
|
|
COMMENT= An object-based web application platform
|
2003-05-06 20:12:29 -04:00
|
|
|
|
2004-12-05 09:00:31 -05:00
|
|
|
USE_PYTHON= 2.3
|
2004-04-20 10:18:32 -04:00
|
|
|
USE_RC_SUBR= yes
|
2004-05-28 12:54:56 -04:00
|
|
|
USE_REINPLACE= yes
|
2000-10-14 19:33:12 -04:00
|
|
|
DIST_SUBDIR= zope
|
|
|
|
|
2002-11-03 08:17:17 -05: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 07:04:44 -04:00
|
|
|
# Change these, if you like, via the environment.
|
2004-04-20 10:18:32 -04:00
|
|
|
ZOPE_USER?= www
|
2001-03-06 17:30:21 -05:00
|
|
|
WEBBASEDIR?= www
|
|
|
|
SZOPEBASEDIR?= ${WEBBASEDIR}/Zope
|
1999-10-31 21:40:07 -05:00
|
|
|
|
2004-04-01 19:00:29 -05:00
|
|
|
# Do not change anything below this line.
|
2000-09-19 10:25:24 -04:00
|
|
|
|
2004-04-20 10:18:32 -04:00
|
|
|
.if defined(INSTANCENAME)
|
|
|
|
ZOPEINSTANCENAME= ${INSTANCENAME}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR}
|
|
|
|
ZOPEINSTANCEBASE?= ${PREFIX}/${SZOPEBASEDIR}
|
|
|
|
ZOPEINSTANCEDIR?= ${ZOPEINSTANCEBASE}/${ZOPEINSTANCENAME}
|
2004-04-01 19:00:29 -05:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --prefix=${ZOPEBASEDIR}
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
ALL_TARGET= build
|
|
|
|
MAKEFILE= makefile
|
|
|
|
|
|
|
|
PLIST_SUB= ZOPEBASEDIR=${SZOPEBASEDIR}
|
2004-04-20 10:18:32 -04:00
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
|
|
|
|
RC_SUBR=${RC_SUBR}
|
|
|
|
CONFIG_SUB= ZOPEBASEDIR=${ZOPEBASEDIR} \
|
|
|
|
ZOPE_USER=${ZOPE_USER} \
|
|
|
|
ZOPEINSTANCEDIR=${ZOPEINSTANCEDIR}
|
2004-07-02 16:41:00 -04:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2004-04-01 19:00:29 -05:00
|
|
|
|
|
|
|
.if defined(BATCH)
|
|
|
|
ISBATCH= -u admin:test123
|
|
|
|
.else
|
|
|
|
ISBATCH= ""
|
|
|
|
.endif
|
|
|
|
|
2004-05-28 12:54:56 -04:00
|
|
|
post-patch:
|
2004-12-02 11:21:30 -05:00
|
|
|
@${REINPLACE_CMD} -e 's,^\(ACCEPTABLE="\).*"$$,\1${PYTHON_PORTVERSION}",g' \
|
|
|
|
-e 's,^\(TARGET="\).*"$$,\1${PYTHON_PORTVERSION}",g' \
|
|
|
|
-e 's,^\(EXENAMES="\).*"$$,\1${PYTHON_VERSION}",g' \
|
2004-05-28 12:54:56 -04:00
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2004-04-01 19:00:29 -05:00
|
|
|
post-install:
|
2004-04-20 10:18:32 -04:00
|
|
|
@${MV} ${ZOPEBASEDIR}/skel/etc/zope.conf.in ${ZOPEBASEDIR}/skel/etc/zope.conf.sample.in
|
2004-07-02 16:41:00 -04:00
|
|
|
@${SED} ${CONFIG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} < ${FILESDIR}/pkg-message.in \
|
|
|
|
> ${PKGMESSAGE}
|
2004-04-20 10:18:32 -04: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-15 19:02:25 -05: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 10:18:32 -04:00
|
|
|
@${MKDIR} ${ZOPEBASEDIR}/Products
|
2004-07-24 07:06:23 -04:00
|
|
|
@${CP} ${FILESDIR}/Products_00readme-freebsd.txt ${ZOPEBASEDIR}/Products/00readme-freebsd.txt
|
2004-07-02 16:41:00 -04:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG}
|
2004-04-01 19:00:29 -05:00
|
|
|
|
|
|
|
instance:
|
2004-04-20 10:18:32 -04: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 07:06:23 -04:00
|
|
|
@${RM} -f ${ZOPEBASEDIR}/bin/copyzopeskel.pyc
|
|
|
|
|
2004-11-15 19:02:25 -05: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 07:06:23 -04:00
|
|
|
pre-package:
|
|
|
|
@${SED} ${CONFIG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} < ${FILESDIR}/pkg-message.package.in \
|
|
|
|
> ${PKGMESSAGE}
|
1999-10-31 21:40:07 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|