pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/zope Remove Zope (Zope2) supporting files.
details: https://anonhg.NetBSD.org/pkgsrc/rev/1f5aec03166b
branches: trunk
changeset: 601362:1f5aec03166b
user: taca <taca%pkgsrc.org@localhost>
date: Tue Mar 20 14:25:29 2012 +0000
description:
Remove Zope (Zope2) supporting files.
diffstat:
www/zope/Makefile.common | 32 ------
www/zope/files/sitecustomize.py | 15 ---
www/zope/files/zeo.sh | 87 -----------------
www/zope/files/zope.sh | 82 ----------------
www/zope/product.mk | 91 ------------------
www/zope/replace.mk | 40 --------
www/zope/zopeversion.mk | 200 ----------------------------------------
7 files changed, 0 insertions(+), 547 deletions(-)
diffs (truncated from 575 to 300 lines):
diff -r 48031f545809 -r 1f5aec03166b www/zope/Makefile.common
--- a/www/zope/Makefile.common Tue Mar 20 14:24:23 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-# $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
diff -r 48031f545809 -r 1f5aec03166b www/zope/files/sitecustomize.py
--- a/www/zope/files/sitecustomize.py Tue Mar 20 14:24:23 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#
-# $NetBSD: sitecustomize.py,v 1.1 2008/01/06 15:51:39 taca Exp $
-#
-# Set default character encoding for Zope.
-#
-
-import os, sys
-
-env = os.environ
-
-try :
- encoding = env['ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING']
- sys.setdefaultencoding(encoding)
-except:
- pass
diff -r 48031f545809 -r 1f5aec03166b www/zope/files/zeo.sh
--- a/www/zope/files/zeo.sh Tue Mar 20 14:24:23 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,87 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# Startup script for Zeo @ZOPE_VERSION@ server.
-#
-# $NetBSD: zeo.sh,v 1.2 2008/07/25 08:23:11 taca Exp $
-#
-
-# PROVIDE: zeo@ZOPE_VERSION@
-# REQUIRE: DAEMON
-# BEFORE: @ZOPE_PKG@
-#
-# You will need to set some variables in /etc/rc.conf to start one
-# or more instances.
-#
-# zeo@ZOPE_VERSION@@RCVAR_SUFFIX@ : bool
-# Enable Zeo ("YES") or not ("NO", the default).
-#
-# zeo@ZOPE_VERSION@_encoding : list
-# Default character encoding for zeo@ZOPE_VERSION@ (default is "utf-8").
-#
-# zeo@ZOPE_VERSION@_instances : list
-# List of dirs with Zeo's instances ("" by default).
-#
-
-if [ -f /etc/rc.subr ]
-then
- . /etc/rc.subr
-fi
-
-name="zeo@ZOPE_VERSION@"
-rcvar="$name@RCVAR_SUFFIX@"
-zeo_name="Zeo @ZOPE_FULL_VERSION@"
-
-zeo@ZOPE_VERSION@ctl () {
- cmd = $1
-
- set ${zeo@ZOPE_VERSION@_encoding}
- for instance in $zeo@ZOPE_VERSION@_instances; do
- if [ "$1" ]; then
- ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING="$1"
- export ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING
- else
- unset ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING
- fi
- if [ -d ${instance} ]; then
- echo -n " Zeo instance ${instance} -> "
- ${instance}/bin/zeoctl ${cmd}
- fi
- shift
- done
-}
-
-zeo@ZOPE_VERSION@_start () {
- echo "Starting ${zeo_name}:"
- zeo@ZOPE_VERSION@ctl "start"
-}
-
-zeo@ZOPE_VERSION@_stop () {
- echo "Stopping ${zeo_name}:"
- zeo@ZOPE_VERSION@ctl "stop"
-}
-
-zeo@ZOPE_VERSION@_restart () {
- echo "Restarting ${zeo_name}:"
- zeo@ZOPE_VERSION@ctl "restart"
-}
-
- start_cmd="zeo@ZOPE_VERSION@_start"
- stop_cmd="zeo@ZOPE_VERSION@_stop"
-restart_cmd="zeo@ZOPE_VERSION@_restart"
-
-load_rc_config $name
-
-: ${zeo@ZOPE_VERSION@_@RCVAR_SUFFIX@="NO"}
-: ${zeo@ZOPE_VERSION@_encoding="utf-8"}
-: ${zeo@ZOPE_VERSION@_instances=""}
-
-cmd="$1"
-[ $# -gt 0 ] && shift
-[ -n "$*" ] && zeo@ZOPE_VERSION@_instances="$*"
-
-if [ "${zeo@ZOPE_VERSION@_encoding}" ]; then
- ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING=${@ZOPE_PKG@_encoding}
- export ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING
-fi
-
-run_rc_command "${cmd}"
diff -r 48031f545809 -r 1f5aec03166b www/zope/files/zope.sh
--- a/www/zope/files/zope.sh Tue Mar 20 14:24:23 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,82 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# Startup script for Zope @ZOPE_VERSION@ server.
-#
-# $NetBSD: zope.sh,v 1.2 2008/07/25 08:23:23 taca Exp $
-#
-
-# PROVIDE: @ZOPE_PKG@
-# REQUIRE: DAEMON
-
-# You will need to set some variables in /etc/rc.conf to start Zope
-#
-# @ZOPE_PKG@@RCVAR_SUFFIX@ : bool
-# Enable Zope ("YES") or not ("NO", the default).
-#
-# @ZOPE_PKG@_encoding : list
-# Default character encoding for @ZOPE_PKG@ (default is "utf-8").
-# You can specify single character encoding for all Zope instances
-# or specify a list for each Zope instance. "none" means specify
-# nothing.
-#
-# @ZOPE_PKG@_instances : list
-# List of dirs with Zope's instances ("" by default).
-#
-
-if [ -f /etc/rc.subr ]
-then
- . /etc/rc.subr
-fi
-
-name="@ZOPE_PKG@"
-rcvar="$name@RCVAR_SUFFIX@"
-zope_name="Zope @ZOPE_FULL_VERSION@"
-start_cmd="@ZOPE_PKG@_start"
-stop_cmd="@ZOPE_PKG@_stop"
-restart_cmd="@ZOPE_PKG@_restart"
-
-@ZOPE_PKG@ctl () {
- cmd=$1
-
- for encoding in ${@ZOPE_PKG@_encoding}; do
- if [ "$encoding" ]; then
- ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING="$encoding"
- export ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING
- else
- unset ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING
- fi
- for instance in ${@ZOPE_PKG@_instances}; do
- if [ -d ${instance} ]; then
- echo -n " Zope instance ${instance} -> "
- ${instance}/bin/zopectl ${cmd}
- fi
- done
- done
-}
-
-@ZOPE_PKG@_start () {
- echo "Starting ${zope_name}:"
- @ZOPE_PKG@ctl "start"
-}
-
-@ZOPE_PKG@_stop () {
- echo "Stopping ${zope_name}:"
- @ZOPE_PKG@ctl "stop"
-}
-
-@ZOPE_PKG@_restart () {
- echo "Restarting ${zope_name}:"
- @ZOPE_PKG@ctl "restart"
-}
-
-load_rc_config $name
-
-: ${@ZOPE_PKG@@RCVAR_SUFFIX@="NO"}
-: ${@ZOPE_PKG@_encoding="utf-8"}
-: ${@ZOPE_PKG@_instances=""}
-
-cmd="$1"
-[ $# -gt 0 ] && shift
-[ -n "$*" ] && @ZOPE_PKG@_instances="$*"
-
-run_rc_command "${cmd}"
diff -r 48031f545809 -r 1f5aec03166b www/zope/product.mk
--- a/www/zope/product.mk Tue Mar 20 14:24:23 2012 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,91 +0,0 @@
-# $NetBSD: product.mk,v 1.4 2008/05/26 02:13:26 joerg Exp $
-#
-
-.if !defined(_ZOPE_PRODUCT_MK)
-_ZOPE_PRODUCT_MK= # defined
-
-#
-# ZOPE_PRODUCT_NAME
-# Zope extention (product) name.
-#
-# ZOPE_PKG_PRODUCT/ZOPE_PKG_PRODUCT_DIR
-# Basename/directory of Zope's extention package.
-#
-# ZOPE_PRODUCT_SRC
-# Source directory name relative to ${WRKSRC} of Zope's extention.
-#
-# ZOPE_PRODUCT_DST
-# Destination directory name of Zope's extention.
-#
-
-.include "../../www/zope/zopeversion.mk"
-
-USE_TOOLS+= pax
-
-DEPENDS+= ${ZOPE_DEPENDENCY}
-
-ZOPE_PKG_PRODUCT?= ${ZOPE_PRODUCTS_BASE}/${ZOPE_PRODUCT_NAME}
-ZOPE_PKG_PRODUCT_DIR= ${ZOPE_PRODUCTS_DIR}/${ZOPE_PRODUCT_NAME}
-
-ZOPE_PRODUCT_SRC?= .
-ZOPE_PRODUCT_DST?= ${ZOPE_PRODUCT_NAME}
-
-.if ${_ZOPE_VERSION} == "29"
-_ZOPE_PRODUCT_DSTDIR= ${BUILDLINK_PREFIX.zope29}/${ZOPE_PKG_PRODUCT}
-.elif ${_ZOPE_VERSION} == "210"
-_ZOPE_PRODUCT_DSTDIR= ${BUILDLINK_PREFIX.zope210}/${ZOPE_PKG_PRODUCT}
-.else
-PKG_SKIP_REASON+= "No valid Zope version"
-.endif
-
-ZOPE_PRODUCT_SRCDIR?= ${WRKSRC}/${ZOPE_PRODUCT_SRC}
-ZOPE_PRODUCT_DSTDIR?= ${_ZOPE_PRODUCT_DSTDIR}
-
-ZOPE_BYTE_COMPILE?= yes
-.if ${ZOPE_BYTE_COMPILE} == "yes" || ${ZOPE_BYTE_COMPILE} == "YES"
-ZOPE_BUILD_METHOD?= zope-simple-build
-.else
-ZOPE_BUILD_METHOD= # empty
-.endif
-
-PLIST_SUBST+= ZOPE_PRODUCT_NAME=${ZOPE_PRODUCT_NAME} \
- ZOPE_PKG_PRODUCT=${ZOPE_PKG_PRODUCT}
-
-.if !target(do-build)
-do-build: ${ZOPE_BUILD_METHOD}
- cd ${WRKSRC}; ${FIND} ${ZOPE_PRODUCT_SRC} -type f -print0 | \
- ${XARGS} -0 -- ${CHMOD} a-w
-
-zope-simple-build:
-.for m in ${ZOPE_PRODUCT_SRC}
- cd ${WRKSRC}; ${PY_COMPILE_ALL} ${m}
-.endfor
-
-zope-force-build:
Home |
Main Index |
Thread Index |
Old Index