summaryrefslogtreecommitdiff
path: root/www/zope/Makefile.common
blob: cb0e35a0cc1cc58c030030458a982463273edda3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $NetBSD: Makefile.common,v 1.3 2008/07/20 02:12:33 taca Exp $
#
# used by www/zope29/Makefile
# used by www/zope210/Makefile
# used by www/zope211/Makefile

FILES_SUBST+=	RCVAR_SUFFIX=${RCVAR_SUFFIX}
MESSAGE_SUBST+=	RCVAR_SUFFIX=${RCVAR_SUFFIX}

PKG_GROUPS_VARS+=	ZOPE_GROUP
PKG_USERS_VARS+=	ZOPE_USER

PKG_GROUPS=	${ZOPE_GROUP}
PKG_USERS=	${ZOPE_USER}:${ZOPE_GROUP}

SUBST_CLASSES+=		site
SUBST_STAGE.site=	pre-configure
SUBST_FILES.site+=	lib/python/sitecustomize.py
SUBST_SED.site=		-e "s|@ZOPE_VERSION@|${ZOPE_VERSION}|g"
SUBST_MESSAGE.site=	Update sitecustomize.py to ${ZOPE_PKG}

.include "../../mk/bsd.prefs.mk"

.if ${_USE_DESTDIR} == "no"
PRIVILEGED_STAGES+=	clean
.endif

.if ${OPSYS} == "FreeBSD"
RCVAR_SUFFIX=	_enable
.else
RCVAR_SUFFIX=	# empty
.endif