summaryrefslogtreecommitdiff
path: root/www/cocoon
diff options
context:
space:
mode:
Diffstat (limited to 'www/cocoon')
-rw-r--r--www/cocoon/Makefile137
-rw-r--r--www/cocoon/Makefile.options197
-rw-r--r--www/cocoon/Makefile.test-options363
-rw-r--r--www/cocoon/distinfo2
-rw-r--r--www/cocoon/files/cocoon.in43
-rw-r--r--www/cocoon/files/cocoonctl.in163
-rw-r--r--www/cocoon/files/message-advanced.in23
-rw-r--r--www/cocoon/files/message.in30
-rw-r--r--www/cocoon/files/patch-build.sh17
-rw-r--r--www/cocoon/files/patch-src-blocks-ajax-samples16
-rw-r--r--www/cocoon/files/patch-src-blocks-forms-samples134
-rw-r--r--www/cocoon/files/pkg-deinstall.in63
-rw-r--r--www/cocoon/files/pkg-install.in53
-rw-r--r--www/cocoon/files/upstreams-cocoon.sh.in209
-rw-r--r--www/cocoon/pkg-descr15
-rw-r--r--www/cocoon/pkg-plist2
16 files changed, 0 insertions, 1467 deletions
diff --git a/www/cocoon/Makefile b/www/cocoon/Makefile
deleted file mode 100644
index 85b8c16895dc..000000000000
--- a/www/cocoon/Makefile
+++ /dev/null
@@ -1,137 +0,0 @@
-# $FreeBSD$
-
-PORTNAME= cocoon
-PORTVERSION= 2.1.11
-PORTREVISION= 1
-CATEGORIES= www java
-MASTER_SITES= APACHE/${PORTNAME}
-DISTNAME= ${PDISTNAME}-src
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= XML Web Development Framework
-
-# Cocoon version 2.2.0 released OCT 2014, makefile requires complete overhaul
-# It also requires a maintainer, it's too complex for ports@FreeBSD.org
-DEPRECATED= Overly complex port with no maintainer since 2008, requires openjdk 1.6
-EXPIRATION_DATE= 2017-04-30
-
-USE_RC_SUBR= ${PORTNAME}
-USE_JAVA= yes
-JAVA_VERSION= 1.6
-USES= cpe python
-CPE_VENDOR= apache
-MAKE_ENV= JAVA_HOME=${JAVA_HOME}
-WRKSRC= ${WRKDIR}/${PDISTNAME}
-APP_NAME?= ${PORTNAME}
-APP_HOME?= ${PREFIX}/${APP_NAME}
-PLIST= ${WRKDIR}/pkg-plist
-PDISTNAME= ${PORTNAME}-${PORTVERSION}
-PKGMESSAGE= ${WRKDIR}/pkg-message
-NO_ARCH= yes
-
-COCOON_LIB= ${JAVASHAREDIR}/${APP_NAME}
-PLIST_SUB+= COCOON_LIB="${COCOON_LIB}"
-
-COPYDIRS= *.txt tools/jetty tools/loader legal webapp
-
-PORT?= 8888
-PID_FILE?= ${APP_HOME}/${APP_NAME}.pid
-RUNASUSER?= www
-RUNASUID?= 80
-GROUP?= www
-GID?= 80
-LOG_FILE?= ${APP_HOME}/${APP_NAME}.log
-
-SUB_LIST= APP_HOME=${APP_HOME} \
- APP_NAME=${APP_NAME} \
- PORT=${PORT} \
- COCOON_LIB=${COCOON_LIB} \
- JAVA_HOME=${JAVA_HOME} \
- JAVA=${JAVA} \
- PID_FILE=${PID_FILE} \
- RUNASUSER=${RUNASUSER} \
- RUNASUID=${RUNASUID} \
- GROUP=${GROUP} \
- GID=${GID} \
- LOG_FILE=${LOG_FILE} \
- PYTHON_CMD=${PYTHON_CMD}
-
-SUB_FILES= pkg-install \
- pkg-deinstall \
- ${APP_NAME}ctl \
- upstreams-cocoon.sh \
- message \
- message-advanced
-
-# Load options (before including bsd.port.pre.mk)
-.include "${.CURDIR}/Makefile.options"
-
-.include <bsd.port.pre.mk>
-
-# Test for options
-.include "${MASTERDIR}/Makefile.test-options"
-
-.for BLOCK in ${BLOCKS}
-BLOCKSEXP+= -e 's/^include.block.${BLOCK}=.*$$/include.block.${BLOCK}=true/'
-.endfor
-
-post-configure:
- @${ECHO_MSG} "===> Configuring blocks: ${BLOCKS}"
- ${SED} -e 's/.*include.block\(.*\)=.*$$/include.block\1=false/' < ${WRKSRC}/blocks.properties | \
- ${SED} ${BLOCKSEXP} > ${WRKSRC}/local.blocks.properties
- ${CP} ${WRKSRC}/build.properties ${WRKSRC}/local.build.properties
-.if ! ${PORT_OPTIONS:MDOCS}
- ${REINPLACE_CMD} \
- -e 's/^#\(exclude.webapp.documentation=\)/\1/' \
- -e 's/^#\(exclude.webapp.javadocs=\)/\1/' \
- -e 's/^#\(exclude.documentation=\)/\1/' \
- -e 's/^#\(exclude.javadocs=\)/\1/' \
- ${WRKSRC}/local.build.properties
-.endif
-.if ! ${PORT_OPTIONS:MSAMPLES}
- ${REINPLACE_CMD} \
- -e 's/^#\(exclude.webapp.samples=\)/\1/' \
- -e 's/^#\(exclude.webapp.test-suite=\)/\1/' \
- ${WRKSRC}/local.build.properties
-.endif
-# Include Java source code into the binary jar files
-.if (defined(WITH_SOURCES))
- ${REINPLACE_CMD} \
- -e 's/^#\(include.sources-in-jars=\)/\1/' \
- ${WRKSRC}/local.build.properties
-.endif
-
-pre-build:
- ${CHMOD} a+rx ${WRKSRC}/build.sh
-
-do-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build.sh
-
-post-build:
- ${TEST} -h ${WRKSRC}/webapp || ${LN} -s ${WRKSRC}/build/webapp ${WRKSRC}/webapp
-
- @${ECHO_MSG} "===> Building packing list"
- @> ${PLIST}
-
- @cd ${WRKSRC} && ${FIND} -H ${COPYDIRS} -not -type d \
- | ${SED} -e "s|^|${APP_NAME}/|" >> ${PLIST}
-
- @cd ${WRKSRC} && ${FIND} -H -d ${COPYDIRS} -type d -empty \
- | ${SED} -e "s|^|@dir ${APP_NAME}/|" >> ${PLIST}
-
- @${CAT} ${MASTERDIR}/pkg-plist >> ${PLIST}
-
-pre-install:
- @${FMT} -w80 ${WRKDIR}/message > ${PKGMESSAGE}
- @${CAT} ${WRKDIR}/message-advanced >> ${PKGMESSAGE}
-
-do-install:
- @${ECHO_MSG} "===> Installing ${COPYDIRS}"
- @${MKDIR} ${STAGEDIR}${APP_HOME}
- @cd ${WRKSRC} && ${FIND} -H ${COPYDIRS} | ${CPIO} -pdmuL -R ${LIBOWN}:${LIBGRP} ${STAGEDIR}${APP_HOME}
- @${INSTALL} ${WRKDIR}/upstreams-cocoon.sh ${STAGEDIR}${APP_HOME}/cocoon.sh
-
- @${ECHO_MSG} "===> Installing into ${PREFIX}/sbin"
- @${INSTALL_SCRIPT} ${WRKDIR}/${APP_NAME}ctl ${STAGEDIR}${PREFIX}/sbin
-
-.include <bsd.port.post.mk>
diff --git a/www/cocoon/Makefile.options b/www/cocoon/Makefile.options
deleted file mode 100644
index 4d346105f709..000000000000
--- a/www/cocoon/Makefile.options
+++ /dev/null
@@ -1,197 +0,0 @@
-# ex:ts=22
-#
-
-OPTIONS_DEFINE= \
- DOCS \
- SAMPLES \
- SOURCES \
- AUTHENTICATION_FW \
- BATIK \
- BSF \
- CHAPERON \
- DATABASES \
- FOP \
- FORMS \
- HSQLDB \
- HTML \
- ITEXT \
- JFOR \
- JSP \
- LINKREWRITER \
- LUCENE \
- MIDI \
- NAMING \
- OJB \
- PARANOID \
- POI \
- PORTAL \
- PROFILER \
- PYTHON \
- SESSION_FW \
- VELOCITY \
- WEB3 \
- XMLDB \
- XSP \
- PHP \
- PORTAL_FW \
- SWF \
- WOODY \
- AJAX \
- APPLES \
- ASCIIART \
- AUTH \
- AXIS \
- CAPTCHA \
- CRON \
- DELI \
- EVENTCACHE \
- FACES \
- IMAGEOP \
- JAVAFLOW \
- JCR \
- JMS \
- LINOTYPE \
- MAIL \
- PETSTORE \
- PROXY \
- QDOX \
- QUERYBEAN \
- REPOSITORY \
- SERIALIZERS \
- SLIDE \
- SLOP \
- STX \
- TAGLIB \
- TEMPLATE \
- TOUR \
- VALIDATION \
- WEBDAV \
- XSLTAL
-
-OPTIONS_DEFAULT= \
- DOCS \
- SAMPLES \
- AUTHENTICATION_FW \
- BATIK \
- BSF \
- CHAPERON \
- DATABASES \
- FOP \
- FORMS \
- HSQLDB \
- HTML \
- ITEXT \
- JFOR \
- JSP \
- LINKREWRITER \
- LUCENE \
- MIDI \
- NAMING \
- OJB \
- PARANOID \
- POI \
- PORTAL \
- PROFILER \
- PYTHON \
- SESSION_FW \
- VELOCITY \
- WEB3 \
- XMLDB \
- XSP \
- AJAX \
- APPLES \
- ASCIIART \
- AUTH \
- AXIS \
- CAPTCHA \
- CRON \
- DELI \
- EVENTCACHE \
- FACES \
- IMAGEOP \
- JAVAFLOW \
- JMS \
- LINOTYPE \
- MAIL \
- PETSTORE \
- PROXY \
- QDOX \
- QUERYBEAN \
- REPOSITORY \
- SERIALIZERS \
- SLIDE \
- SLOP \
- STX \
- TAGLIB \
- TEMPLATE \
- TOUR \
- VALIDATION \
- WEBDAV \
- XSLTAL
-
-
-DOCS_DESC= Include the documentationn
-SAMPLES_DESC= Include the samples
-SOURCES_DESC= Include the sources in jarsff
-AUTHENTICATION_FW_DESC= Enable the authentication-fw blockn
-BATIK_DESC= Enable the batik blockn
-BSF_DESC= Enable the bsf blockn
-CHAPERON_DESC= Enable the chaperon blockn
-DATABASES_DESC= Enable the databases blockn
-FOP_DESC= Enable the fop blockn
-FORMS_DESC= Enable the forms blockn
-HSQLDB_DESC= Enable the hsqldb blockn
-HTML_DESC= Enable the html blockn
-ITEXT_DESC= Enable the itext blockn
-JFOR_DESC= Enable the jfor blockn
-JSP_DESC= Enable the jsp blockn
-LINKREWRITER_DESC= Enable the linkrewriter blockn
-LUCENE_DESC= Enable the lucene blockn
-MIDI_DESC= Enable the midi blockn
-NAMING_DESC= Enable the naming blockn
-OJB_DESC= Enable the ojb blockn
-PARANOID_DESC= Enable the paranoid blockn
-POI_DESC= Enable the poi blockn
-PORTAL_DESC= Enable the portal blockn
-PROFILER_DESC= Enable the profiler blockn
-PYTHON_DESC= Enable the python blockn
-SESSION_FW_DESC= Enable the session-fw blockn
-VELOCITY_DESC= Enable the velocity blockn
-WEB3_DESC= Enable the web3 blockn
-XMLDB_DESC= Enable the xmldb blockn
-XSP_DESC= Enable the xsp blockn
-PHP_DESC= Enable the php blockff
-PORTAL_FW_DESC= Enable the portal-fw blockff
-SWF_DESC= Enable the swf blockff
-WOODY_DESC= Enable the woody blockff
-AJAX_DESC= Enable the ajax blockn
-APPLES_DESC= Enable the apples blockn
-ASCIIART_DESC= Enable the asciiart blockn
-AUTH_DESC= Enable the auth blockn
-AXIS_DESC= Enable the axis blockn
-CAPTCHA_DESC= Enable the captcha blockn
-CRON_DESC= Enable the cron blockn
-DELI_DESC= Enable the deli blockn
-EVENTCACHE_DESC= Enable the eventcache blockn
-FACES_DESC= Enable the faces blockn
-IMAGEOP_DESC= Enable the imageop blockn
-JAVAFLOW_DESC= Enable the javaflow blockn
-JCR_DESC= Enable the jcr blockff
-JMS_DESC= Enable the jms blockn
-LINOTYPE_DESC= Enable the linotype blockn
-MAIL_DESC= Enable the mail blockn
-PETSTORE_DESC= Enable the petstore blockn
-PROXY_DESC= Enable the proxy blockn
-QDOX_DESC= Enable the qdox blockn
-QUERYBEAN_DESC= Enable the querybean blockn
-REPOSITORY_DESC= Enable the repository blockn
-SERIALIZERS_DESC= Enable the serializers blockn
-SLIDE_DESC= Enable the slide blockn
-SLOP_DESC= Enable the slop blockn
-STX_DESC= Enable the stx blockn
-TAGLIB_DESC= Enable the taglib blockn
-TEMPLATE_DESC= Enable the template blockn
-TOUR_DESC= Enable the tour blockn
-VALIDATION_DESC= Enable the validation blockn
-WEBDAV_DESC= Enable the webdav blockn
-XSLTAL_DESC= Enable the xsltal blockn
diff --git a/www/cocoon/Makefile.test-options b/www/cocoon/Makefile.test-options
deleted file mode 100644
index f67e8ef09f31..000000000000
--- a/www/cocoon/Makefile.test-options
+++ /dev/null
@@ -1,363 +0,0 @@
-.if ${PORT_OPTIONS:MAUTHENTICATION_FW}
-BLOCKS+= authentication-fw
-BLOCKS+= session-fw
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MBATIK}
-BLOCKS+= batik
-.endif
-
-.if ${PORT_OPTIONS:MBSF}
-BLOCKS+= bsf
-.endif
-
-.if ${PORT_OPTIONS:MCHAPERON}
-BLOCKS+= chaperon
-.endif
-
-.if ${PORT_OPTIONS:MDATABASES}
-BLOCKS+= databases
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MFOP}
-BLOCKS+= fop
-BLOCKS+= batik
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MFORMS}
-BLOCKS+= forms
-BLOCKS+= ajax
-BLOCKS+= template
-.endif
-
-.if ${PORT_OPTIONS:MHSQLDB}
-BLOCKS+= hsqldb
-BLOCKS+= databases
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MHTML}
-BLOCKS+= html
-.endif
-
-.if ${PORT_OPTIONS:MITEXT}
-BLOCKS+= itext
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MJFOR}
-BLOCKS+= jfor
-.endif
-
-.if ${PORT_OPTIONS:MJSP}
-BLOCKS+= jsp
-.endif
-
-.if ${PORT_OPTIONS:MLINKREWRITER}
-BLOCKS+= linkrewriter
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MLUCENE}
-BLOCKS+= lucene
-.endif
-
-.if ${PORT_OPTIONS:MMIDI}
-BLOCKS+= midi
-.endif
-
-.if ${PORT_OPTIONS:MNAMING}
-BLOCKS+= naming
-.endif
-
-.if ${PORT_OPTIONS:MOJB}
-BLOCKS+= ojb
-BLOCKS+= ajax
-BLOCKS+= databases
-BLOCKS+= forms
-BLOCKS+= hsqldb
-BLOCKS+= template
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MPARANOID}
-BLOCKS+= paranoid
-.endif
-
-.if ${PORT_OPTIONS:MPOI}
-BLOCKS+= poi
-.endif
-
-.if ${PORT_OPTIONS:MPORTAL}
-BLOCKS+= portal
-BLOCKS+= ajax
-BLOCKS+= auth
-BLOCKS+= authentication-fw
-BLOCKS+= cron
-BLOCKS+= databases
-BLOCKS+= forms
-BLOCKS+= hsqldb
-BLOCKS+= ojb
-BLOCKS+= session-fw
-BLOCKS+= template
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MPROFILER}
-BLOCKS+= profiler
-BLOCKS+= auth
-.endif
-
-.if ${PORT_OPTIONS:MPYTHON}
-BLOCKS+= python
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MSESSION_FW}
-BLOCKS+= session-fw
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MVELOCITY}
-BLOCKS+= velocity
-.endif
-
-.if ${PORT_OPTIONS:MWEB3}
-BLOCKS+= web3
-.endif
-
-.if ${PORT_OPTIONS:MXMLDB}
-BLOCKS+= xmldb
-BLOCKS+= databases
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MXSP}
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MPHP}
-BLOCKS+= php
-.endif
-
-.if ${PORT_OPTIONS:MPORTAL_FW}
-BLOCKS+= portal-fw
-BLOCKS+= authentication-fw
-BLOCKS+= session-fw
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MSWF}
-BLOCKS+= swf
-.endif
-
-.if ${PORT_OPTIONS:MWOODY}
-BLOCKS+= woody
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MAJAX}
-BLOCKS+= ajax
-BLOCKS+= template
-.endif
-
-.if ${PORT_OPTIONS:MAPPLES}
-BLOCKS+= apples
-BLOCKS+= ajax
-BLOCKS+= forms
-BLOCKS+= template
-.endif
-
-.if ${PORT_OPTIONS:MASCIIART}
-BLOCKS+= asciiart
-.endif
-
-.if ${PORT_OPTIONS:MAUTH}
-BLOCKS+= auth
-.endif
-
-.if ${PORT_OPTIONS:MAXIS}
-BLOCKS+= axis
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MCAPTCHA}
-BLOCKS+= captcha
-BLOCKS+= template
-.endif
-
-.if ${PORT_OPTIONS:MCRON}
-BLOCKS+= cron
-.endif
-
-.if ${PORT_OPTIONS:MDELI}
-BLOCKS+= deli
-.endif
-
-.if ${PORT_OPTIONS:MEVENTCACHE}
-BLOCKS+= eventcache
-BLOCKS+= cron
-BLOCKS+= databases
-BLOCKS+= hsqldb
-BLOCKS+= jms
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MFACES}
-BLOCKS+= faces
-BLOCKS+= ajax
-BLOCKS+= auth
-BLOCKS+= authentication-fw
-BLOCKS+= cron
-BLOCKS+= databases
-BLOCKS+= forms
-BLOCKS+= hsqldb
-BLOCKS+= ojb
-BLOCKS+= portal
-BLOCKS+= session-fw
-BLOCKS+= taglib
-BLOCKS+= template
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MIMAGEOP}
-BLOCKS+= imageop
-.endif
-
-.if ${PORT_OPTIONS:MJAVAFLOW}
-BLOCKS+= javaflow
-BLOCKS+= ajax
-BLOCKS+= databases
-BLOCKS+= forms
-BLOCKS+= hsqldb
-BLOCKS+= ojb
-BLOCKS+= template
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MJCR}
-BLOCKS+= jcr
-.endif
-
-.if ${PORT_OPTIONS:MJMS}
-BLOCKS+= jms
-BLOCKS+= cron
-BLOCKS+= databases
-BLOCKS+= hsqldb
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MLINOTYPE}
-BLOCKS+= linotype
-.endif
-
-.if ${PORT_OPTIONS:MMAIL}
-BLOCKS+= mail
-BLOCKS+= asciiart
-.endif
-
-.if ${PORT_OPTIONS:MPETSTORE}
-BLOCKS+= petstore
-BLOCKS+= ajax
-BLOCKS+= databases
-BLOCKS+= forms
-BLOCKS+= hsqldb
-BLOCKS+= template
-BLOCKS+= velocity
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MPROXY}
-BLOCKS+= proxy
-.endif
-
-.if ${PORT_OPTIONS:MQDOX}
-BLOCKS+= qdox
-.endif
-
-.if ${PORT_OPTIONS:MQUERYBEAN}
-BLOCKS+= querybean
-BLOCKS+= ajax
-BLOCKS+= databases
-BLOCKS+= forms
-BLOCKS+= hsqldb
-BLOCKS+= lucene
-BLOCKS+= ojb
-BLOCKS+= template
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MREPOSITORY}
-BLOCKS+= repository
-BLOCKS+= cron
-BLOCKS+= databases
-BLOCKS+= eventcache
-BLOCKS+= hsqldb
-BLOCKS+= jms
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MSERIALIZERS}
-BLOCKS+= serializers
-.endif
-
-.if ${PORT_OPTIONS:MSLIDE}
-BLOCKS+= slide
-BLOCKS+= cron
-BLOCKS+= databases
-BLOCKS+= eventcache
-BLOCKS+= hsqldb
-BLOCKS+= jms
-BLOCKS+= repository
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MSLOP}
-BLOCKS+= slop
-.endif
-
-.if ${PORT_OPTIONS:MSTX}
-BLOCKS+= stx
-.endif
-
-.if ${PORT_OPTIONS:MTAGLIB}
-BLOCKS+= taglib
-.endif
-
-.if ${PORT_OPTIONS:MTEMPLATE}
-BLOCKS+= template
-.endif
-
-.if ${PORT_OPTIONS:MTOUR}
-BLOCKS+= tour
-BLOCKS+= ajax
-BLOCKS+= batik
-BLOCKS+= fop
-BLOCKS+= forms
-BLOCKS+= slop
-BLOCKS+= template
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MVALIDATION}
-BLOCKS+= validation
-.endif
-
-.if ${PORT_OPTIONS:MWEBDAV}
-BLOCKS+= webdav
-BLOCKS+= cron
-BLOCKS+= databases
-BLOCKS+= eventcache
-BLOCKS+= hsqldb
-BLOCKS+= jms
-BLOCKS+= repository
-BLOCKS+= xsp
-.endif
-
-.if ${PORT_OPTIONS:MXSLTAL}
-BLOCKS+= xsltal
-.endif
-
diff --git a/www/cocoon/distinfo b/www/cocoon/distinfo
deleted file mode 100644
index 1252f7819c0f..000000000000
--- a/www/cocoon/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (cocoon-2.1.11-src.tar.gz) = 4b1d9f8ebd75d6228b3d76802941a8f41bfc0836c21d9d8cab764521c800a60c
-SIZE (cocoon-2.1.11-src.tar.gz) = 48674390
diff --git a/www/cocoon/files/cocoon.in b/www/cocoon/files/cocoon.in
deleted file mode 100644
index 7e292e0e6f32..000000000000
--- a/www/cocoon/files/cocoon.in
+++ /dev/null
@@ -1,43 +0,0 @@
-#! /bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: %%APP_NAME%%
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-
-#
-# Add the following line to /etc/rc.conf to enable %%APP_NAME%%:
-#
-# %%APP_NAME%%_enable="YES"
-#
-
-. /etc/rc.subr
-
-name=%%APP_NAME%%
-rcvar=%%APP_NAME%%_enable
-
-command="%%PREFIX%%/sbin/%%APP_NAME%%ctl"
-command_args="start"
-pidfile=%%PID_FILE%%
-
-# set defaults
-
-%%APP_NAME%%_enable=${%%APP_NAME%%_enable:-"NO"}
-%%APP_NAME%%_user=${%%APP_NAME%%_user:-"www"}
-%%APP_NAME%%_group=${%%APP_NAME%%_group:-"www"}
-
-load_rc_config ${name}
-
-if test -n "${%%APP_NAME%%_java_version}" ; then
- JAVA_HOME=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2)
- procname=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2)
-else
- JAVA_HOME=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2)
- procname=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2)
-fi
-
-export JAVA_HOME
-
-run_rc_command "$1"
diff --git a/www/cocoon/files/cocoonctl.in b/www/cocoon/files/cocoonctl.in
deleted file mode 100644
index b7f3b2bd68c4..000000000000
--- a/www/cocoon/files/cocoonctl.in
+++ /dev/null
@@ -1,163 +0,0 @@
-#! %%PYTHON_CMD%%
-
-################################################################################
-# Author: Jean-Baptiste Quenot <jb.quenot@caraldi.com>
-# Purpose: Control cocoon process
-# Date Created: 2004-05-04 11:14:05
-# Revision: $FreeBSD$
-################################################################################
-# Copyright (c) 2004, Jean-Baptiste Quenot <jb.quenot@caraldi.com>
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-# * The name of the contributors may not be used to endorse or promote products
-# derived from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
-# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-################################################################################
-#
-# Files handled by this script (pid file, log files) must reside in a writable
-# directory, ie the directory must be owned by the user running the program.
-
-import sys, os, signal, time, stat, re
-
-def readProcessId():
- f = open(PID_FILE, 'r')
- pid = int(f.readline())
- f.close()
- return pid
-
-def isProgramRunning(pid):
- # Send a dummy signal to the process. If it died, an exception is
- # thrown
- try:
- os.kill(pid, signal.SIGCONT)
- return 1
- except OSError:
- return 0
-
-def usage():
- print >> sys.stderr, "Usage: %s {start|stop|restart}" % sys.argv[0]
-
-def start():
- cwd = os.getcwd()
- if os.path.exists(PID_FILE):
- # Read the process id
- pid = readProcessId()
-
- if isProgramRunning(pid):
- print >> sys.stderr, '%s already started' % APP_NAME
- sys.exit(3)
-
- if not(os.path.exists(COMMAND)):
- print >> sys.stderr, '%s cannot be found' % COMMAND
- sys.exit(3)
-
- # Append program output to a log file
- l = open(LOG_FILE, 'a')
- orig_stderr = os.dup(sys.stderr.fileno())
- os.dup2(l.fileno(), sys.stdout.fileno())
- os.dup2(l.fileno(), sys.stderr.fileno())
-
- finfo = os.stat(COMMAND)[stat.ST_MODE]
- executable = stat.S_IMODE(finfo) & 0111
- if not(executable):
- sys.stderr = os.fdopen(orig_stderr, 'w')
- print >> sys.stderr, 'Cannot run %s, execute bit is missing' % COMMAND
- sys.exit(5)
-
- if APP_HOME:
- # Change current directory to APP_HOME
- os.chdir(APP_HOME)
-
- # Start program in the background
- pid = os.spawnv(os.P_NOWAIT, COMMAND, ARGS)
-
- # Wait a little
- time.sleep(.4)
- (status_pid, status) = os.waitpid(pid, os.WNOHANG)
-
- # Check program exit status, if available
- if status_pid != 0 and os.WIFEXITED(status):
- sys.stderr = os.fdopen(orig_stderr, 'w')
- print >> sys.stderr, 'Could not start %s. Check %s for errors.' % (APP_NAME, LOG_FILE)
- sys.exit(2)
-
- # It's alive, so write down the process id
- os.chdir(cwd)
- f = open(PID_FILE, 'w')
- print >> f, pid
- f.close()
-
-def warnNotRunning():
- if sys.argv[1] == "stop":
- print >> sys.stderr, '%s is not running' % APP_NAME
- else:
- print >> sys.stderr, 'Warning: %s was not running' % APP_NAME
-
-def cleanup():
- os.unlink(PID_FILE)
-
-def stop():
- if os.path.exists(PID_FILE):
- # Read the process id
- pid = readProcessId()
- else:
- warnNotRunning()
- return
-
- if not(isProgramRunning(pid)):
- warnNotRunning()
- cleanup()
- return
-
- # Terminate program
- os.kill(pid, signal.SIGTERM)
-
- while isProgramRunning(pid):
- time.sleep(.1)
-
- cleanup()
-
-if __name__ == '__main__':
- LOG_FILE = "%%LOG_FILE%%"
- APP_NAME = "%%APP_NAME%%"
- APP_HOME = "%%APP_HOME%%"
- PID_FILE = "%%PID_FILE%%"
- COMMAND = "%%APP_HOME%%/cocoon.sh"
- os.environ["JAVA_OPTIONS"] = " ".join(sys.argv[1:-1])
- ARGS = [COMMAND, "servlet"]
-
- if len(sys.argv) < 2:
- usage()
- sys.exit(1)
-
- if sys.argv[-1] == "start":
- start()
-
- elif sys.argv[-1] == "stop":
- stop()
-
- elif sys.argv[-1] == "restart":
- stop()
- start()
-
- else:
- usage()
- sys.exit(1)
diff --git a/www/cocoon/files/message-advanced.in b/www/cocoon/files/message-advanced.in
deleted file mode 100644
index 868b590b6e2e..000000000000
--- a/www/cocoon/files/message-advanced.in
+++ /dev/null
@@ -1,23 +0,0 @@
-
---------------------------------------------------------------------------------
-ADVANCED USAGE
-
-If you need to pass special options to Java, please set the
-%%APP_NAME%%_flags option in /etc/rc.conf, see examples below:
-
- # Prevent Java from opening an X11 display
-
- %%APP_NAME%%_flags="-Djava.awt.headless=true"
-
- # Increase memory limit of the Java virtual machine
-
- %%APP_NAME%%_flags="-Xms32m -Xmx256m"
-
- # Run Java with remote debugging turned on on port 8000
-
- %%APP_NAME%%_flags="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
-
-To specify the java version to use, please use %%APP_NAME%%_java_version:
-
- %%APP_NAME%%_java_version="1.6"
-
diff --git a/www/cocoon/files/message.in b/www/cocoon/files/message.in
deleted file mode 100644
index 6bf8f769ec8c..000000000000
--- a/www/cocoon/files/message.in
+++ /dev/null
@@ -1,30 +0,0 @@
-Cocoon is now installed in %%APP_HOME%%.
-
-In order to be able to run Cocoon, please add the following line to
-/etc/rc.conf:
-
- %%APP_NAME%%_enable="YES"
-
-If you wish to start cocoon right now, invoke the startup script with
-`%%PREFIX%%/etc/rc.d/%%APP_NAME%%.sh start'
-and point your web browser to the default home page at
-http://localhost:%%PORT%%/ where you may read the documentation and test the
-samples.
-
-For this control script to run seamlessly, it is recommended to increase the
-maximum length of commands displayed by ps(1). Please append the following
-setting to /etc/sysctl.conf:
-
- # Do not truncate command line arguments in ps(1) listing
- kern.ps_arg_cache_limit=10000
-
-This setting will take effect at next reboot, however it is possible to have
-immediate effect with the following command as root:
-
- # sysctl kern.ps_arg_cache_limit=10000
-
-If you wish to skip this setting, please note that the `stop', `restart' and
-`status' will not function properly with %%APP_NAME%%.sh.
-
-
-Enjoy!
diff --git a/www/cocoon/files/patch-build.sh b/www/cocoon/files/patch-build.sh
deleted file mode 100644
index 08f852f4a959..000000000000
--- a/www/cocoon/files/patch-build.sh
+++ /dev/null
@@ -1,17 +0,0 @@
---- build.sh.orig Wed Mar 23 12:44:13 2005
-+++ build.sh Wed Jul 27 18:50:50 2005
-@@ -1,4 +1,4 @@
--#!/bin/sh
-+#!/bin/sh -e
-
- # Copyright 1999-2004 The Apache Software Foundation
- #
-@@ -27,7 +27,7 @@
-
- # ----- Ignore system CLASSPATH variable
- OLD_CLASSPATH="$CLASSPATH"
--unset CLASSPATH
-+unset CLASSPATH || true
- CLASSPATH="`echo lib/endorsed/*.jar | tr ' ' $S`"
- export CLASSPATH
-
diff --git a/www/cocoon/files/patch-src-blocks-ajax-samples b/www/cocoon/files/patch-src-blocks-ajax-samples
deleted file mode 100644
index 92ccb02a1c41..000000000000
--- a/www/cocoon/files/patch-src-blocks-ajax-samples
+++ /dev/null
@@ -1,16 +0,0 @@
---- src/blocks/ajax/samples/sitemap.xmap.orig Tue Apr 11 18:05:10 2006
-+++ src/blocks/ajax/samples/sitemap.xmap Tue Apr 11 18:05:18 2006
-@@ -19,13 +19,6 @@
- @version $Id: sitemap.xmap 385331 2006-03-12 18:25:56Z sylvain $
- -->
- <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
-- <map:components>
-- <map:generators>
-- <!-- use the new implementation of JX -->
-- <map:generator name="jx" src="org.apache.cocoon.template.JXTemplateGenerator"/>
-- </map:generators>
-- </map:components>
--
- <map:resources>
- <!-- this will later become a virtual transformer -->
- <map:resource name="simple-page2html">
diff --git a/www/cocoon/files/patch-src-blocks-forms-samples b/www/cocoon/files/patch-src-blocks-forms-samples
deleted file mode 100644
index 6bfa833ed38e..000000000000
--- a/www/cocoon/files/patch-src-blocks-forms-samples
+++ /dev/null
@@ -1,134 +0,0 @@
-Index: src/blocks/forms/samples/forms/inplace_edit_form.xml
-===================================================================
---- src/blocks/forms/samples/forms/inplace_edit_form.xml (revision 0)
-+++ src/blocks/forms/samples/forms/inplace_edit_form.xml (revision 393475)
-@@ -0,0 +1,51 @@
-+<?xml version="1.0"?>
-+<!--
-+ Copyright 1999-2004 The Apache Software Foundation
-+
-+ Licensed under the Apache License, Version 2.0 (the "License");
-+ you may not use this file except in compliance with the License.
-+ You may obtain a copy of the License at
-+
-+ http://www.apache.org/licenses/LICENSE-2.0
-+
-+ Unless required by applicable law or agreed to in writing, software
-+ distributed under the License is distributed on an "AS IS" BASIS,
-+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-+ See the License for the specific language governing permissions and
-+ limitations under the License.
-+-->
-+
-+<!--
-+ @version $Id: inplace_edit_form.xml 393475 2006-04-12 14:48:00Z jbq $
-+-->
-+
-+<fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition">
-+ <fd:widgets>
-+
-+ <fd:field id="name">
-+ <fd:datatype base="string"/>
-+ <fd:hint>Your name</fd:hint>
-+ </fd:field>
-+
-+ <fd:field id="occupation">
-+ <fd:initial-value>Cocoon user</fd:initial-value>
-+ <fd:datatype base="string"/>
-+ <fd:hint>Occupation</fd:hint>
-+ </fd:field>
-+
-+ <fd:field id="comments">
-+ <fd:datatype base="string"/>
-+ <fd:hint>Comments</fd:hint>
-+ </fd:field>
-+
-+ <fd:action id="check">
-+ <fd:label>Check</fd:label>
-+ <fd:hint>Redisplays the page so you can see the various renderings of inplace inputs depending on their values.</fd:hint>
-+ </fd:action>
-+
-+ <fd:submit id="ok">
-+ <fd:label>OK</fd:label>
-+ </fd:submit>
-+
-+ </fd:widgets>
-+</fd:form>
-\ No newline at end of file
-Index: src/blocks/forms/samples/forms/inplace_edit_template.xml
-===================================================================
---- src/blocks/forms/samples/forms/inplace_edit_template.xml (revision 0)
-+++ src/blocks/forms/samples/forms/inplace_edit_template.xml (revision 393475)
-@@ -0,0 +1,72 @@
-+<?xml version="1.0"?>
-+<!--
-+ Copyright 1999-2004 The Apache Software Foundation
-+
-+ Licensed under the Apache License, Version 2.0 (the "License");
-+ you may not use this file except in compliance with the License.
-+ You may obtain a copy of the License at
-+
-+ http://www.apache.org/licenses/LICENSE-2.0
-+
-+ Unless required by applicable law or agreed to in writing, software
-+ distributed under the License is distributed on an "AS IS" BASIS,
-+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-+ See the License for the specific language governing permissions and
-+ limitations under the License.
-+-->
-+<page xmlns:ft="http://apache.org/cocoon/forms/1.0#template"
-+ xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"
-+ xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
-+
-+ <!-- Import the macros that define CForms template elements -->
-+ <jx:import uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/>
-+ <h4 class="samplesGroup">Inline editing</h4>
-+ <title>Inline editing</title>
-+ <script type="text/javascript">
-+ //cocoon.ajax.BrowserUpdater.highlight = cocoon.ajax.Fader.fade;
-+ </script>
-+ <content>
-+ <ft:form-template action="#{$cocoon/continuation/id}.continue" method="POST" ajax="true">
-+ <p>The fields below show the various features of in-place editing. "In place" means that inputs are rendered as normal text, and become editable once you click on them.
-+ </p>
-+ <table width="100%" border="1">
-+ <tbody>
-+ <tr>
-+ <td>
-+ Your name:<br/>
-+ <small>An inplace input with no initial value. The displayed text is
-+ the input's hint</small>
-+ </td>
-+ <td>
-+ <ft:widget id="name" fi:type="inplace"/>
-+ </td>
-+ </tr>
-+ <tr>
-+ <td>
-+ Your occupation:<br/>
-+ <small>An inplace input with an initial value.</small>
-+ </td>
-+ <td>
-+ <ft:widget id="occupation" fi:type="inplace"/>
-+ </td>
-+ </tr>
-+ <tr>
-+ <td>
-+ Comments:<br/>
-+ <small>An multiline inplace input.</small>
-+ </td>
-+ <td>
-+ <ft:widget id="comments" fi:type="inplace-area"/>
-+ </td>
-+ </tr>
-+ </tbody>
-+ </table>
-+ <br/>
-+ <ft:widget id="check"/>
-+ <ft:widget id="ok"/>
-+ <br/>
-+ <a href="./do-inplace.flow">Restart this sample</a> - <a href="./">Back to Forms samples</a>
-+
-+ </ft:form-template>
-+ </content>
-+</page>
diff --git a/www/cocoon/files/pkg-deinstall.in b/www/cocoon/files/pkg-deinstall.in
deleted file mode 100644
index fcfbbb0d33c2..000000000000
--- a/www/cocoon/files/pkg-deinstall.in
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-#
-# This script does the following.
-#
-# * Checks if the PID file exists. If it does, it kills the
-# process and removes the PID file.
-#
-# * Checks if the 'www' user exists. If it does, then it displays
-# a message.
-#
-# $FreeBSD$
-#
-# Borrowed from the jakarta-tomcat port
-#
-
-set -e
-
-PID_FILE=%%PID_FILE%%
-RUNASUSER=%%RUNASUSER%%
-APP_NAME=%%APP_NAME%%
-LOG_FILE=%%LOG_FILE%%
-
-# Make sure we're in the right stage of the process
-if [ "$2" = "DEINSTALL" ]; then
-
- # Kill the process if it is still running
- if [ -s ${PID_FILE} ]; then
- PID=`cat ${PID_FILE}`
- echo -n ">> Killing ${APP_NAME} process (${PID})..."
-
- if /bin/kill ${PID} > /dev/null 2> /dev/null ; then
- echo " [ DONE ]"
- else
- echo " [ FAILED ]"
- fi
-
- echo -n ">> Removing PID file (${PID_FILE})..."
-
- if rm ${PID_FILE} > /dev/null 2> /dev/null ; then
- echo " [ DONE ]"
- else
- echo " [ FAILED ]"
- fi
- fi
-
- if [ -e ${LOG_FILE} ] ; then
- echo -n ">> Removing log file (${LOG_FILE})..."
- if rm ${LOG_FILE} > /dev/null 2> /dev/null ; then
- echo " [ DONE ]"
- else
- echo " [ FAILED ]"
- fi
- fi
-fi
-
-if [ "$2" = "POST-DEINSTALL" ]; then
- # If the user exists, then display a message
- if pw usershow "$RUNASUSER" 2>/dev/null 1>&2; then
- echo "To delete the $RUNASUSER user permanently, use 'pw userdel $RUNASUSER'"
- fi
-fi
-
-exit 0
diff --git a/www/cocoon/files/pkg-install.in b/www/cocoon/files/pkg-install.in
deleted file mode 100644
index afd4a733da2e..000000000000
--- a/www/cocoon/files/pkg-install.in
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-#
-# Checks if the requested user and group exist. If they don't, then
-# an attempt is made to create both.
-#
-# $FreeBSD$
-#
-# Borrowed from the jakarta-tomcat port
-#
-
-set -e
-
-RUNASUSER=%%RUNASUSER%%
-RUNASUID=%%RUNASUID%%
-GROUP=%%GROUP%%
-GID=%%GID%%
-APP_NAME=%%APP_NAME%%
-PID_FILE=%%PID_FILE%%
-LOG_FILE=%%LOG_FILE%%
-
-if [ "$2" = "POST-INSTALL" ]; then
- # We're called after the 'make install' process
- # See if the group already exists
- if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
-
- # If not, try to create it
- if pw groupadd ${GROUP} -g ${GID}; then
- echo "Added group \"${GROUP}\"."
- else
- echo "Adding group \"${GROUP}\" failed..."
- exit 1
- fi
- fi
-
- # See if the user already exists
- if ! pw usershow "${RUNASUSER}" 2>/dev/null 1>&2; then
-
- # If not, try to create it
- if pw useradd ${RUNASUSER} -u ${RUNASUID} -g ${GROUP} -h - \
- -s "/sbin/nologin" -d "/nonexistent" \
- -c "World Wide Web Owner"; \
- then
- echo "Added user \"${RUNASUSER}\"."
- else
- echo "Adding user \"${RUNASUSER}\" failed..."
- exit 1
- fi
- fi
-
- chown -R ${RUNASUSER}:${GROUP} $PKG_PREFIX/${APP_NAME}
-fi
-
-exit 0
diff --git a/www/cocoon/files/upstreams-cocoon.sh.in b/www/cocoon/files/upstreams-cocoon.sh.in
deleted file mode 100644
index b78ca4692afc..000000000000
--- a/www/cocoon/files/upstreams-cocoon.sh.in
+++ /dev/null
@@ -1,209 +0,0 @@
-#!/bin/sh
-# Copyright 1999-2004 The Apache Software Foundation
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# -----------------------------------------------------------------------------
-#
-# The file was modified to run on FreeBSD
-#
-# -----------------------------------------------------------------------------
-# Cocoon Unix Shell Script
-#
-# $Id: cocoon.sh 389028 2006-03-27 06:21:40Z rgoers $
-# $FreeBSD$
-# -----------------------------------------------------------------------------
-
-# Configuration variables
-#
-# COCOON_HOME
-# The root of the Cocoon distribution
-#
-# COCOON_WEBAPP_HOME
-# The root of the Cocoon web application
-#
-# COCOON_LIB
-# Folder containing all the library files needed by the Cocoon CLI
-#
-# JAVA_HOME
-# Home of Java installation.
-#
-# JAVA_OPTIONS
-# Extra options to pass to the JVM
-#
-# JAVA_DEBUG_ARGS
-# The command line arguments for the internal JVM debugger
-#
-# JAVA_PROFILE_ARGS
-# The command line arguments for the internal JVM profiler
-#
-# JETTY_PORT
-# Override the default port for Jetty
-#
-# JETTY_ADMIN_PORT
-# The port where the jetty web administration should bind
-#
-# LOADER_LIB
-# The classpath where to lookup the Loader class, defaults to
-# ${COCOON_HOME}/tools/loader
-#
-# CLI_CLASSPATH
-# The additional classpath for cli and precompile, defaults to
-# lib/core/servlet_2_2.jar:$COCOON_WEBAPP_HOME/WEB-INF/classes
-#
-
-
-usage()
-{
- echo "Usage: $0 (action)"
- echo "actions:"
- echo " cli Run Cocoon from the command line"
- echo " precompile Crawl your webapp to compile all XSP files (requires the xsp block)"
- echo " servlet Run Cocoon in a servlet container (default)"
- echo " servlet-admin Run Cocoon in a servlet container and turn on container web administration"
- echo " servlet-debug Run Cocoon in a servlet container and turn on JVM remote debug"
- echo " servlet-profile Run Cocoon in a servlet container and turn on JVM profiling"
- exit 1
-}
-
-# ----- Handle action parameter ------------------------------------------------
-DEFAULT_ACTION="servlet"
-ACTION="$1"
-if [ -n "$ACTION" ]
-then
- shift
-else
- ACTION=$DEFAULT_ACTION
- echo "$0: executing default action '$ACTION', use -h to see other actions"
-fi
-ARGS="$*"
-
-# ----- Verify and Set Required Environment Variables -------------------------
-
-if [ "$JAVA_HOME" = "" ] ; then
- JAVA_HOME="%%JAVA_HOME%%"
-fi
-
-if [ "$JAVA_OPTIONS" = "" ] ; then
- JAVA_OPTIONS='-Xms32M -Xmx512M -Dorg.apache.cocoon.settings=cocoon.properties'
-fi
-
-if [ "$COCOON_HOME" = "" ] ; then
- COCOON_HOME="%%APP_HOME%%"
-fi
-
-if [ "$COCOON_WEBAPP_HOME" = "" ] ; then
- STANDALONE_WEBAPP=../webapp
- if [ -d $STANDALONE_WEBAPP ] ; then
- # for standalone-webapp setup
- COCOON_WEBAPP_HOME=$STANDALONE_WEBAPP
- else
- # when in the build environment
- COCOON_WEBAPP_HOME="$COCOON_HOME/webapp"
- fi
-fi
-echo "$0: using $COCOON_WEBAPP_HOME as the webapp directory"
-
-if [ "$COCOON_LIB" = "" ] ; then
- COCOON_LIB="$COCOON_WEBAPP_HOME/WEB-INF/lib"
-fi
-
-if [ "$JETTY_PORT" = "" ] ; then
- JETTY_PORT='8888'
-fi
-
-if [ "$JETTY_ADMIN_PORT" = "" ] ; then
- JETTY_ADMIN_PORT='8889'
-fi
-
-if [ "$JAVA_DEBUG_ARGS" = "" ] ; then
- JAVA_DEBUG_ARGS='-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n'
-fi
-
-if [ "$JAVA_PROFILE_ARGS" = "" ] ; then
- JAVA_PROFILE_ARGS='-Xrunhprof:heap=all,cpu=samples,thread=y,depth=3'
-fi
-
-
-# ----- Set platform specific variables
-
-PATHSEP=":";
-case "`uname`" in
- CYGWIN*) PATHSEP=";"
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`;;
-esac
-
-# ----- Set Local Variables ( used to minimize cut/paste) ---------------------
-
-JAVA="exec $JAVA_HOME/bin/java"
-ENDORSED_LIBS="$COCOON_HOME/lib/endorsed"
-ENDORSED="-Djava.endorsed.dirs=$ENDORSED_LIBS"
-PARSER=-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser
-LOADER=Loader
-if [ "$LOADER_LIB" = "" ] ; then
- LOADER_LIB="${COCOON_HOME}/tools/loader"
-fi
-
-CLI="-Dloader.main.class=org.apache.cocoon.Main"
-CLI_LIBRARIES="-Dloader.jar.repositories=$COCOON_LIB"
-if [ "$CLI_CLASSPATH" = "" ] ; then
- CLI_CLASSPATH="lib/core/servlet_2_2.jar:$COCOON_WEBAPP_HOME/WEB-INF/classes"
-fi
-CLI_VERBOSE="-Dloader.verbose=false"
-CLI_PROPERTIES="$CLI_LIBRARIES -Dloader.class.path=$CLI_CLASSPATH $CLI_VERBOSE"
-
-PRECOMPILE=-Dloader.main.class=org.apache.cocoon.bean.XSPPrecompileWrapper
-
-JETTY=-Dloader.main.class=org.mortbay.jetty.Server
-JETTY_CONF="$COCOON_HOME/tools/jetty/conf"
-JETTY_MAIN="$JETTY_CONF/main.xml"
-JETTY_ADMIN="$JETTY_CONF/admin.xml"
-JETTY_WEBAPP="-Dwebapp=$COCOON_WEBAPP_HOME"
-JETTY_HOME="-Dhome=$COCOON_HOME"
-JETTY_PORT_ARGS="-Djetty.port=$JETTY_PORT"
-JETTY_ADMIN_ARGS="-Djetty.admin.port=$JETTY_ADMIN_PORT"
-JETTY_LIBRARIES="-Dloader.jar.repositories=$COCOON_HOME/tools/jetty/lib${PATHSEP}${ENDORSED_LIBS}"
-
-# ----- Do the action ----------------------------------------------------------
-
-case "$ACTION" in
- cli)
- $JAVA $JAVA_OPTIONS -cp $LOADER_LIB $ENDORSED $CLI_PROPERTIES $CLI $LOADER $ARGS
- ;;
-
- precompile)
- $JAVA $JAVA_OPTIONS -cp $LOADER_LIB $ENDORSED $CLI_PROPERTIES $PRECOMPILE $LOADER $ARGS
- ;;
-
- servlet)
- $JAVA $JAVA_OPTIONS -cp $LOADER_LIB $ENDORSED $PARSER $JETTY_PORT_ARGS $JETTY_LIBRARIES $JETTY_WEBAPP $JETTY_HOME $JETTY $LOADER $JETTY_MAIN
- ;;
-
- servlet-admin)
- $JAVA $JAVA_OPTIONS -cp $LOADER_LIB $ENDORSED $PARSER $JETTY_PORT_ARGS $JETTY_ADMIN_ARGS $JETTY_LIBRARIES $JETTY_WEBAPP $JETTY_HOME $JETTY $LOADER $JETTY_MAIN $JETTY_ADMIN
- ;;
-
- servlet-debug)
- $JAVA $JAVA_OPTIONS $JAVA_DEBUG_ARGS -cp $LOADER_LIB $ENDORSED $PARSER $JETTY_PORT_ARGS $JETTY_LIBRARIES $JETTY_WEBAPP $JETTY_HOME $JETTY $LOADER $JETTY_MAIN
- ;;
-
- servlet-profile)
- $JAVA $JAVA_OPTIONS $JAVA_PROFILE_ARGS -cp $LOADER_LIB $ENDORSED $PARSER $JETTY_ARGS $JETTY_LIBRARIES $JETTY_WEBAPP $JETTY_HOME $JETTY $LOADER $JETTY_MAIN
- ;;
-
- *)
- usage
- ;;
-esac
-
-exit 0
diff --git a/www/cocoon/pkg-descr b/www/cocoon/pkg-descr
deleted file mode 100644
index 4e13d3db5fae..000000000000
--- a/www/cocoon/pkg-descr
+++ /dev/null
@@ -1,15 +0,0 @@
-Apache Cocoon is a web development framework built around the
-concepts of separation of concerns and component-based web development.
-
-Cocoon implements these concepts around the notion of 'component
-pipelines', each component on the pipeline specializing on a
-particular operation. This makes it possible to use a Lego(tm)-like
-approach in building web solutions, hooking together components
-into pipelines without any required programming.
-
-Cocoon is "web glue for your web application development needs".
-It is a glue that keeps concerns separate and allows parallel
-evolution of all aspects of a web application, improving development
-pace and reducing the chance of conflicts.
-
-WWW: http://cocoon.apache.org/
diff --git a/www/cocoon/pkg-plist b/www/cocoon/pkg-plist
deleted file mode 100644
index af5383367b7f..000000000000
--- a/www/cocoon/pkg-plist
+++ /dev/null
@@ -1,2 +0,0 @@
-sbin/cocoonctl
-cocoon/cocoon.sh