mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
30dab342fe
With hat: secteam
114 lines
3.6 KiB
Makefile
114 lines
3.6 KiB
Makefile
# New ports collection makefile for: Zope
|
|
# Date created: Sat 21 Aug 1999
|
|
# Whom: Peter Cornelius <pcc@gmx.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= zope
|
|
PORTVERSION= 2.7.9
|
|
PORTREVISION= 1
|
|
CATEGORIES= www python zope
|
|
MASTER_SITES= http://www.zope.org/Products/Zope/Zope-${PORTVERSION}/:src \
|
|
http://www.zope.org/Products/Zope/Hotfix-2006-08-21/Hotfix-20060821/:hotfix
|
|
DISTFILES= Zope-${PORTVERSION}-final.tgz:src \
|
|
${HOTFIX}.tar.gz:hotfix
|
|
|
|
MAINTAINER= estartu@augusta.de
|
|
COMMENT= An object-based web application platform
|
|
|
|
WRKSRC= ${WRKDIR}/Zope-${PORTVERSION}-final
|
|
USE_PYTHON= 2.3
|
|
USE_RC_SUBR= yes
|
|
DIST_SUBDIR= zope
|
|
HOTFIX= Hotfix_20060821
|
|
|
|
FORBIDDEN= contains cross-site scripting vulnerability http://VuXML.FreeBSD.org/34414a1e-e377-11db-b8ab-000c76189c4c.html
|
|
|
|
# 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.
|
|
|
|
# Change these, if you like, via the environment.
|
|
ZOPE_USER?= www
|
|
WEBBASEDIR?= www
|
|
SZOPEBASEDIR?= ${WEBBASEDIR}/Zope
|
|
|
|
# Do not change anything below this line.
|
|
|
|
.if defined(INSTANCENAME)
|
|
ZOPEINSTANCENAME= ${INSTANCENAME}
|
|
.endif
|
|
|
|
ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR}
|
|
ZOPEINSTANCEBASE?= ${PREFIX}/${SZOPEBASEDIR}
|
|
ZOPEINSTANCEDIR?= ${ZOPEINSTANCEBASE}/${ZOPEINSTANCENAME}
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix=${ZOPEBASEDIR}
|
|
|
|
USE_GMAKE= yes
|
|
ALL_TARGET= build
|
|
MAKEFILE= makefile
|
|
|
|
PLIST_SUB= ZOPEBASEDIR=${SZOPEBASEDIR}
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
|
|
RC_SUBR=${RC_SUBR}
|
|
CONFIG_SUB= ZOPEBASEDIR=${ZOPEBASEDIR} \
|
|
ZOPE_USER=${ZOPE_USER} \
|
|
ZOPEINSTANCEDIR=${ZOPEINSTANCEDIR}
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
.if defined(BATCH)
|
|
ISBATCH= -u admin:test123
|
|
.else
|
|
ISBATCH= ""
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,^\(ACCEPTABLE="\).*"$$,\1${PYTHON_PORTVERSION}",g' \
|
|
-e 's,^\(TARGET="\).*"$$,\1${PYTHON_PORTVERSION}",g' \
|
|
-e 's,^\(EXENAMES="\).*"$$,\1${PYTHON_VERSION}",g' \
|
|
${WRKSRC}/configure
|
|
|
|
post-build:
|
|
-${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKDIR}/${HOTFIX}
|
|
|
|
post-install:
|
|
@${CP} -R ${WRKDIR}/${HOTFIX} ${ZOPEBASEDIR}/lib/python/Products/
|
|
@${MV} ${ZOPEBASEDIR}/skel/etc/zope.conf.in ${ZOPEBASEDIR}/skel/etc/zope.conf.sample.in
|
|
@${SED} ${CONFIG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} < ${FILESDIR}/pkg-message.in \
|
|
> ${PKGMESSAGE}
|
|
@${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
|
|
@${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
|
|
@${MKDIR} ${ZOPEBASEDIR}/Products
|
|
@${CP} ${FILESDIR}/Products_00readme-freebsd.txt ${ZOPEBASEDIR}/Products/00readme-freebsd.txt
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_MSG}
|
|
|
|
instance:
|
|
@${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
|
|
@${RM} -f ${ZOPEBASEDIR}/bin/copyzopeskel.pyc
|
|
|
|
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
|
|
|
|
pre-package:
|
|
@${SED} ${CONFIG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} < ${FILESDIR}/pkg-message.package.in \
|
|
> ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|