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