summaryrefslogtreecommitdiff
path: root/www/zope
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2008-01-06 15:52:29 +0000
committertaca <taca@pkgsrc.org>2008-01-06 15:52:29 +0000
commit9242153fe05c76e828efd772fa49da94d8b6e11e (patch)
treeaceb9688e3ebf2d9308cbaaa4252df6f6e0d1087 /www/zope
parentdf8393ac2480f7822d0b5057141ab02dfbee5484 (diff)
downloadpkgsrc-9242153fe05c76e828efd772fa49da94d8b6e11e.tar.gz
Add common Makefile part for zope29, zope210 and possibly zope211 in feature.
Diffstat (limited to 'www/zope')
-rw-r--r--www/zope/Makefile.common29
1 files changed, 29 insertions, 0 deletions
diff --git a/www/zope/Makefile.common b/www/zope/Makefile.common
new file mode 100644
index 00000000000..192b3f8bdd8
--- /dev/null
+++ b/www/zope/Makefile.common
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile.common,v 1.1 2008/01/06 15:52:29 taca Exp $
+#
+
+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