mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
436414eba2
PR: ports/135910 Submitted by: Gerhard Schmidt <estartu@augusta.de> (maintainer)
111 lines
2.8 KiB
Makefile
111 lines
2.8 KiB
Makefile
# New ports collection makefile for: Zope-2.10.x
|
|
# Date created: Mon Mar 22 15:32:00 CET 2006
|
|
# Whom: Gerhard Schmidt <estartu@augusta.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= zope211
|
|
PORTVERSION= 2.11.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= www python zope
|
|
MASTER_SITES= http://www.zope.org/Products/Zope/${PORTVERSION}/
|
|
DISTNAME= Zope-${PORTVERSION}-final
|
|
EXTRACT_SUFX= .tgz
|
|
DIST_SUBDIR= zope
|
|
|
|
MAINTAINER= estartu@augusta.de
|
|
COMMENT= An object-based web application platform Version 2.11
|
|
|
|
USE_PYTHON= 2.4
|
|
USE_RC_SUBR= ${PORTNAME} zeo211
|
|
|
|
ZOPE_USER?= www
|
|
WEBBASEDIR?= www
|
|
SZOPEBASEDIR?= ${WEBBASEDIR}/Zope211
|
|
|
|
.if defined(INSTANCENAME)
|
|
ZOPEINSTANCENAME= ${INSTANCENAME}
|
|
.endif
|
|
|
|
ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR}
|
|
ZOPEINSTANCEBASE?= ${PREFIX}/${SZOPEBASEDIR}
|
|
ZOPEINSTANCEDIR?= ${ZOPEINSTANCEBASE}/${ZOPEINSTANCENAME}
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix=${ZOPEBASEDIR}
|
|
|
|
ALL_TARGET= build
|
|
MAKEFILE= makefile
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
PLIST_SUB= ZOPEBASEDIR=${SZOPEBASEDIR}
|
|
SUB_FILES= instance_message package-pkg-message pkg-message zeo_message
|
|
SUB_LIST= ZOPEBASEDIR=${ZOPEBASEDIR} \
|
|
ZOPE_USER=${ZOPE_USER} \
|
|
ZOPEINSTANCEDIR=${ZOPEINSTANCEDIR}
|
|
|
|
.if defined(BATCH)
|
|
ISBATCH= -u admin:test123
|
|
.else
|
|
ISBATCH= ""
|
|
.endif
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name '*.orig' -print0 | ${XARGS} -0 -- ${RM}
|
|
@${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-configure:
|
|
@${REINPLACE_CMD} \
|
|
-e 's,\(--home="\).*",\1${ZOPEBASEDIR}",g' \
|
|
-e 's,^.*LN.*PYTHON.*$$,,g' \
|
|
${WRKSRC}/${MAKEFILE}
|
|
|
|
post-build:
|
|
-@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/
|
|
|
|
post-install:
|
|
${MV} ${ZOPEBASEDIR}/skel/etc/zope.conf.in \
|
|
${ZOPEBASEDIR}/skel/etc/zope.conf.sample.in
|
|
|
|
${MKDIR} ${ZOPEBASEDIR}/Products
|
|
${INSTALL_DATA} ${FILESDIR}/Products_00readme-freebsd.txt \
|
|
${ZOPEBASEDIR}/Products/00readme-freebsd.txt
|
|
|
|
.for d in lib bin doc skel Products
|
|
${FIND} ${ZOPEBASEDIR}/$d -type f -print0 | ${XARGS} -0 -- ${CHMOD} a-w+r
|
|
.endfor
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_MSG}
|
|
|
|
instance:
|
|
${ZOPEBASEDIR}/bin/mkzopeinstance.py -d ${ZOPEINSTANCEDIR} ${ISBATCH}
|
|
|
|
${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
${FILESDIR}/zope.conf_changes \
|
|
| ${PATCH} ${ZOPEINSTANCEDIR}/etc/zope.conf.sample
|
|
|
|
${CHOWN} ${ZOPE_USER} ${ZOPEINSTANCEDIR}/var
|
|
${CHOWN} ${ZOPE_USER} ${ZOPEINSTANCEDIR}/log
|
|
|
|
${RM} ${ZOPEINSTANCEDIR}/etc/zope.conf.sample.orig
|
|
${RM} -f ${ZOPEBASEDIR}/bin/copyzopeskel.pyc
|
|
|
|
@${CAT} ${WRKDIR}/instance_message
|
|
|
|
zeo:
|
|
${ZOPEBASEDIR}/bin/mkzeoinstance.py ${ZOPEINSTANCEDIR}
|
|
${CHOWN} ${ZOPE_USER} ${ZOPEINSTANCEDIR}/var
|
|
${CHOWN} ${ZOPE_USER} ${ZOPEINSTANCEDIR}/log
|
|
@${CAT} ${WRKDIR}/zeo_message
|
|
|
|
pre-package:
|
|
${INSTALL_DATA} ${WRKDIR}/package-pkg-message ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|