Date: Tue, 4 May 2004 15:02:07 +0200 (CEST) From: Jean-Baptiste Quenot <jb.quenot@caraldi.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/66253: New port: cocoon2: XML Web Development Framework Message-ID: <20040504130207.D00D463B4@anyware12.anyware> Resent-Message-ID: <200405041310.i44DAG9F003866@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 66253 >Category: ports >Synopsis: New port: cocoon2: XML Web Development Framework >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue May 04 06:10:16 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Jean-Baptiste Quenot <jb.quenot@caraldi.com> >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD anyware12.anyware 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Fri Mar 26 17:43:44 CET 2004 jbq@anyware12.anyware:/usr/obj/usr/src/sys/ANYWARE12 i386 >Description: 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. Cocoon has been designed to coexist and interoperate side-by-side with your existing J2EE solutions or to give them new functionality without requiring any change in the existing infrastructure. Cocoon interacts with many data sources, including filesystems, RDBMS, LDAP, native XML databases, SAP^TM systems and network-based data sources. It adapts content delivery to the capabilities of different devices like HTML, WML, PDF, SVG, and RTF, to name just a few. You can run Cocoon as a Servlet as well as through a powerful, commandline interface. WWW: http://cocoon.apache.org/ >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # cocoon2 # cocoon2/files # cocoon2/files/patch-cocoon.sh # cocoon2/files/cocoon2ctl # cocoon2/files/pkg-install # cocoon2/files/pkg-deinstall # cocoon2/files/cocoon2.sh # cocoon2/distinfo # cocoon2/pkg-descr # cocoon2/pkg-message # cocoon2/Makefile.test-options # cocoon2/Makefile.options # cocoon2/pkg-plist # cocoon2/Makefile # echo c - cocoon2 mkdir -p cocoon2 > /dev/null 2>&1 echo c - cocoon2/files mkdir -p cocoon2/files > /dev/null 2>&1 echo x - cocoon2/files/patch-cocoon.sh sed 's/^X//' >cocoon2/files/patch-cocoon.sh << 'END-of-cocoon2/files/patch-cocoon.sh' X--- cocoon.sh.orig Thu Feb 12 09:48:55 2004 X+++ cocoon.sh Tue May 4 14:44:24 2004 X@@ -57,8 +57,7 @@ X # ----- Verify and Set Required Environment Variables ------------------------- X X if [ "$JAVA_HOME" = "" ] ; then X- echo You must set JAVA_HOME to point at your Java Development Kit installation X- exit 1 X+ JAVA_HOME="%%JAVA_HOME%%" X fi X X if [ "$JAVA_OPTIONS" = "" ] ; then X@@ -66,7 +65,7 @@ X fi X X if [ "$COCOON_HOME" = "" ] ; then X- COCOON_HOME='.' X+ COCOON_HOME="%%APP_HOME%%" X fi X X if [ "$COCOON_WEBAPP_HOME" = "" ] ; then X@@ -76,7 +75,7 @@ X COCOON_WEBAPP_HOME=$STANDALONE_WEBAPP X else X # when in the build environment X- COCOON_WEBAPP_HOME="$COCOON_HOME/build/webapp" X+ COCOON_WEBAPP_HOME="$COCOON_HOME/webapp" X fi X fi X echo "$0: using $COCOON_WEBAPP_HOME as the webapp directory" X@@ -111,7 +110,7 @@ X X # ----- Set Local Variables ( used to minimize cut/paste) --------------------- X X-JAVA="$JAVA_HOME/bin/java" X+JAVA="exec $JAVA_HOME/bin/java" X ENDORSED_LIBS="$COCOON_HOME/lib/endorsed" X ENDORSED="-Djava.endorsed.dirs=$ENDORSED_LIBS" X PARSER=-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser END-of-cocoon2/files/patch-cocoon.sh echo x - cocoon2/files/cocoon2ctl sed 's/^X//' >cocoon2/files/cocoon2ctl << 'END-of-cocoon2/files/cocoon2ctl' X#! /usr/bin/env python X X################################################################################ X# Author: Jean-Baptiste Quenot <jb.quenot@caraldi.com> X# Purpose: Control cocoon process X# Date Created: 2004-05-04 11:14:05 X# Revision: $FreeBSD$ X################################################################################ X Ximport sys, os, signal, time X XLOGFILE = "%%LOGFILE%%" XPREFIX = "%%PREFIX%%" XAPP_NAME = "%%APP_NAME%%" XPID_FILE = "%%PID_FILE%%" X Xif __name__ == '__main__': X if sys.argv[1] == "start": X # Append cocoon output to a log file X l = open(LOGFILE, 'a') X os.dup2(l.fileno(), sys.stdout.fileno()) X os.dup2(l.fileno(), sys.stderr.fileno()) X X # Start cocoon in the background X command = PREFIX + "/sbin/" + APP_NAME + ".sh" X pid = os.spawnl(os.P_NOWAIT, command, command, "servlet") X X # Wait a little X time.sleep(0.4) X X # Send a dummy signal to the process. If it died, an exception is X # thrown X os.kill(pid, signal.SIGCONT) X X # It's alive, so write down the process id X f = open(PID_FILE, 'w') X print >> f, pid X f.close() X elif sys.argv[1] == "stop": X # Read the process id X f = open(PID_FILE, 'r') X pid = int(f.readline()) X f.close() X X # Terminate cocoon X os.kill(pid, signal.SIGTERM) X else: X print "Usage: %s start|stop" % sys.argv[0] END-of-cocoon2/files/cocoon2ctl echo x - cocoon2/files/pkg-install sed 's/^X//' >cocoon2/files/pkg-install << 'END-of-cocoon2/files/pkg-install' X#!/bin/sh X# X# Checks if the requested user and group exist. If they don't, then X# an attempt is made to create both. X# X# $FreeBSD: ports/www/resin3/files/pkg-install,v 1.1 2003/11/20 21:44:14 glewis Exp $ X# X# Borrowed from the jakarta-tomcat port X# X Xset -e X XRUNASUSER=%%RUNASUSER%% XRUNASUID=%%RUNASUID%% XGROUP=%%GROUP%% XGID=%%GID%% XAPP_NAME=%%APP_NAME%% XPID_FILE=%%PID_FILE%% XLOGFILE=%%LOGFILE%% X Xif [ "$2" = "POST-INSTALL" ]; then X # We're called after the 'make install' process X # See if the group already exists X if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then X X # If not, try to create it X if pw groupadd ${GROUP} -g ${GID}; then X echo "Added group \"${GROUP}\"." X else X echo "Adding group \"${GROUP}\" failed..." X exit 1 X fi X fi X X # See if the user already exists X if ! pw usershow "${RUNASUSER}" 2>/dev/null 1>&2; then X X # If not, try to create it X if pw useradd ${RUNASUSER} -u ${RUNASUID} -g ${GROUP} -h - \ X -s "/sbin/nologin" -d "/nonexistent" \ X -c "World Wide Web Owner"; \ X then X echo "Added user \"${RUNASUSER}\"." X else X echo "Adding user \"${RUNASUSER}\" failed..." X exit 1 X fi X fi X X chown -R ${RUNASUSER}:${GROUP} $PKG_PREFIX/${APP_NAME} X touch ${LOGFILE} ${PID_FILE} X chown ${RUNASUSER}:${GROUP} ${LOGFILE} ${PID_FILE} Xfi X Xexit 0 END-of-cocoon2/files/pkg-install echo x - cocoon2/files/pkg-deinstall sed 's/^X//' >cocoon2/files/pkg-deinstall << 'END-of-cocoon2/files/pkg-deinstall' X#!/bin/sh X# X# This script does the following. X# X# * Checks if the PID file exists. If it does, it kills the X# process and removes the PID file. X# X# * Checks if the 'www' user exists. If it does, then it displays X# a message. X# X# $FreeBSD: ports/www/resin3/files/pkg-deinstall,v 1.1 2003/11/20 21:44:14 glewis Exp $ X# X# Borrowed from the jakarta-tomcat port X# X Xset -e X XPID_FILE=%%PID_FILE%% XRUNASUSER=%%RUNASUSER%% XAPP_NAME=%%APP_NAME%% XLOGFILE=%%LOGFILE%% X X# Make sure we're in the right stage of the process Xif [ "$2" = "DEINSTALL" ]; then X X # Kill the process if it is still running X if [ -s ${PID_FILE} ]; then X PID=`cat ${PID_FILE}` X echo -n ">> Killing ${APP_NAME} process (${PID})..." X X if /bin/kill ${PID} > /dev/null 2> /dev/null ; then X echo " [ DONE ]" X else X echo " [ FAILED ]" X fi X X echo -n ">> Removing PID file (${PID_FILE})..." X X if rm ${PID_FILE} > /dev/null 2> /dev/null ; then X echo " [ DONE ]" X else X echo " [ FAILED ]" X fi X fi X X echo -n ">> Removing log file (${LOGFILE})..." X if rm ${LOGFILE} > /dev/null 2> /dev/null ; then X echo " [ DONE ]" X else X echo " [ FAILED ]" X fi Xfi X Xif [ "$2" = "POST-DEINSTALL" ]; then X # If the user exists, then display a message X if pw usershow "$RUNASUSER" 2>/dev/null 1>&2; then X echo "To delete the $RUNASUSER user permanently, use 'pw userdel $RUNASUSER'" X fi Xfi X Xexit 0 END-of-cocoon2/files/pkg-deinstall echo x - cocoon2/files/cocoon2.sh sed 's/^X//' >cocoon2/files/cocoon2.sh << 'END-of-cocoon2/files/cocoon2.sh' X#! /bin/sh X# X# $FreeBSD$ X# X X# PROVIDE: %%APP_NAME%% X X# X# Add the following line to /etc/rc.conf to enable %%APP_NAME%%: X# X# %%APP_NAME%%_enable="YES" X# X X. /etc/rc.subr X Xname=%%APP_NAME%% Xrcvar=`set_rcvar` X Xcommand=%%PREFIX%%/sbin/%%APP_NAME%%ctl Xcommand_args="$1" Xpidfile=%%PID_FILE%% Xprocname=java X X# set defaults X X%%APP_NAME%%_enable=${%%APP_NAME%%_enable:-"NO"} X%%APP_NAME%%_user=${%%APP_NAME%%_user:-"www"} X%%APP_NAME%%_group=${%%APP_NAME%%_group:-"www"} X Xload_rc_config ${name} Xrun_rc_command "$1" END-of-cocoon2/files/cocoon2.sh echo x - cocoon2/distinfo sed 's/^X//' >cocoon2/distinfo << 'END-of-cocoon2/distinfo' XMD5 (cocoon-2.1.4-src.tar.gz) = 65a099094217ef0621e832ad5aa1cfc9 XSIZE (cocoon-2.1.4-src.tar.gz) = 38577140 END-of-cocoon2/distinfo echo x - cocoon2/pkg-descr sed 's/^X//' >cocoon2/pkg-descr << 'END-of-cocoon2/pkg-descr' XApache Cocoon is a web development framework built around the concepts Xof separation of concerns and component-based web development. X XCocoon implements these concepts around the notion of 'component Xpipelines', each component on the pipeline specializing on a particular Xoperation. This makes it possible to use a Lego(tm)-like approach in Xbuilding web solutions, hooking together components into pipelines Xwithout any required programming. X XCocoon is "web glue for your web application development needs". It is a Xglue that keeps concerns separate and allows parallel evolution of all Xaspects of a web application, improving development pace and reducing Xthe chance of conflicts. X XCocoon has been designed to coexist and interoperate side-by-side with Xyour existing J2EE solutions or to give them new functionality without Xrequiring any change in the existing infrastructure. X XCocoon interacts with many data sources, including filesystems, RDBMS, XLDAP, native XML databases, SAP^TM systems and network-based data Xsources. It adapts content delivery to the capabilities of different Xdevices like HTML, WML, PDF, SVG, and RTF, to name just a few. You can Xrun Cocoon as a Servlet as well as through a powerful, commandline Xinterface. X XWWW: http://cocoon.apache.org/ END-of-cocoon2/pkg-descr echo x - cocoon2/pkg-message sed 's/^X//' >cocoon2/pkg-message << 'END-of-cocoon2/pkg-message' XCocoon is now installed in %%APP_HOME%% X XYou may want to start it by issuing `%%PREFIX%%/etc/rc.d/%%APP_NAME%%.sh start' Xand then point your web browser to the default home page at http://localhost:%%PORT%%/ to read Xthe documentation and test the samples. X XIf you wish to start Cocoon automatically at boot time, add the following line Xto /etc/rc.conf: X Xcocoon2_enable="YES" END-of-cocoon2/pkg-message echo x - cocoon2/Makefile.test-options sed 's/^X//' >cocoon2/Makefile.test-options << 'END-of-cocoon2/Makefile.test-options' X.if defined(WITH_AUTHENTICATION_FW) XBLOCKS+= authentication-fw X.endif X X.if defined(WITH_BATIK) XBLOCKS+= batik X.endif X X.if defined(WITH_BSF) XBLOCKS+= bsf X.endif X X.if defined(WITH_CHAPERON) XBLOCKS+= chaperon X.endif X X.if defined(WITH_DATABASES) XBLOCKS+= databases X.endif X X.if defined(WITH_FOP) XBLOCKS+= fop XBLOCKS+= batik X.endif X X.if defined(WITH_HSQLDB) XBLOCKS+= hsqldb X.endif X X.if defined(WITH_HTML) XBLOCKS+= html X.endif X X.if defined(WITH_ITEXT) XBLOCKS+= itext X.endif X X.if defined(WITH_JFOR) XBLOCKS+= jfor X.endif X X.if defined(WITH_JSP) XBLOCKS+= jsp X.endif X X.if defined(WITH_JXFORMS) XBLOCKS+= jxforms X.endif X X.if defined(WITH_LINKREWRITER) XBLOCKS+= linkrewriter X.endif X X.if defined(WITH_LUCENE) XBLOCKS+= lucene X.endif X X.if defined(WITH_NAMING) XBLOCKS+= naming X.endif X X.if defined(WITH_PARANOID) XBLOCKS+= paranoid X.endif X X.if defined(WITH_PHP) XBLOCKS+= php X.endif X X.if defined(WITH_POI) XBLOCKS+= poi X.endif X X.if defined(WITH_PORTAL_FW) XBLOCKS+= portal-fw X.endif X X.if defined(WITH_PROFILER) XBLOCKS+= profiler X.endif X X.if defined(WITH_PYTHON) XBLOCKS+= python X.endif X X.if defined(WITH_SESSION_FW) XBLOCKS+= session-fw X.endif X X.if defined(WITH_SWF) XBLOCKS+= swf X.endif X X.if defined(WITH_VELOCITY) XBLOCKS+= velocity X.endif X X.if defined(WITH_WEB3) XBLOCKS+= web3 X.endif X X.if defined(WITH_XMLDB) XBLOCKS+= xmldb X.endif X X.if defined(WITH_APPLES) XBLOCKS+= apples X.endif X X.if defined(WITH_ASCIIART) XBLOCKS+= asciiart X.endif X X.if defined(WITH_AXIS) XBLOCKS+= axis X.endif X X.if defined(WITH_CRON) XBLOCKS+= cron X.endif X X.if defined(WITH_DELI) XBLOCKS+= deli X.endif X X.if defined(WITH_EVENTCACHE) XBLOCKS+= eventcache X.endif X X.if defined(WITH_JMS) XBLOCKS+= jms X.endif X X.if defined(WITH_LINOTYPE) XBLOCKS+= linotype X.endif X X.if defined(WITH_MAIL) XBLOCKS+= mail X.endif X X.if defined(WITH_MIDI) XBLOCKS+= midi X.endif X X.if defined(WITH_OJB) XBLOCKS+= ojb X.endif X X.if defined(WITH_PETSTORE) XBLOCKS+= petstore X.endif X X.if defined(WITH_PORTAL) XBLOCKS+= portal X.endif X X.if defined(WITH_PRECEPT) XBLOCKS+= precept X.endif X X.if defined(WITH_PROXY) XBLOCKS+= proxy X.endif X X.if defined(WITH_QDOX) XBLOCKS+= qdox X.endif X X.if defined(WITH_REPOSITORY) XBLOCKS+= repository X.endif X X.if defined(WITH_SCRATCHPAD) XBLOCKS+= scratchpad X.endif X X.if defined(WITH_SLIDE) XBLOCKS+= slide X.endif X X.if defined(WITH_SLOP) XBLOCKS+= slop X.endif X X.if defined(WITH_STX) XBLOCKS+= stx X.endif X X.if defined(WITH_TAGLIB) XBLOCKS+= taglib X.endif X X.if defined(WITH_WEBDAV) XBLOCKS+= webdav X.endif X X.if defined(WITH_WOODY) XBLOCKS+= woody X.endif X END-of-cocoon2/Makefile.test-options echo x - cocoon2/Makefile.options sed 's/^X//' >cocoon2/Makefile.options << 'END-of-cocoon2/Makefile.options' X# ex:ts=22 X# XOPTIONS+= DOCS 'Include the documentation and samples' off X XOPTIONS+= AUTHENTICATION_FW 'Enable the authentication-fw block' off XOPTIONS+= BATIK 'Enable the Batik block' off XOPTIONS+= BSF 'Enable the bsf block' off XOPTIONS+= CHAPERON 'Enable the chaperon block' off XOPTIONS+= DATABASES 'Enable the databases block' off XOPTIONS+= FOP 'Enable the FOP Block (implies BATIK)' off XOPTIONS+= HSQLDB 'Enable the hsqldb block' off XOPTIONS+= HTML 'Enable the html block' off XOPTIONS+= ITEXT 'Enable the itext block' off XOPTIONS+= JFOR 'Enable the JFOR Block' off XOPTIONS+= JSP 'Enable the jsp block' off XOPTIONS+= JXFORMS 'Enable the jxforms block' off XOPTIONS+= LINKREWRITER 'Enable the linkrewriter block' off XOPTIONS+= LUCENE 'Enable the lucene block' off XOPTIONS+= NAMING 'Enable the naming block' off XOPTIONS+= PARANOID 'Enable the Paranoid Cocoon Servlet' off XOPTIONS+= PHP 'Enable the php block' off XOPTIONS+= POI 'Enable the poi block' off XOPTIONS+= PORTAL_FW 'Enable the portal-fw block' off XOPTIONS+= PROFILER 'Enable the profiler block' off XOPTIONS+= PYTHON 'Enable the python block' off XOPTIONS+= SESSION_FW 'Enable the session-fw block' off XOPTIONS+= SWF 'Enable the swf block' off XOPTIONS+= VELOCITY 'Enable the velocity block' off XOPTIONS+= WEB3 'Enable the web3 block' off XOPTIONS+= XMLDB 'Enable the xmldb block' off XOPTIONS+= APPLES 'Enable the apples block' off XOPTIONS+= ASCIIART 'Enable the asciiart block' off XOPTIONS+= AXIS 'Enable the axis block' off XOPTIONS+= CRON 'Enable the cron block' off XOPTIONS+= DELI 'Enable the deli block' off XOPTIONS+= EVENTCACHE 'Enable the eventcache block' off XOPTIONS+= JMS 'Enable the jms block' off XOPTIONS+= LINOTYPE 'Enable the linotype block' off XOPTIONS+= MAIL 'Enable the mail block' off XOPTIONS+= MIDI 'Enable the midi block' off XOPTIONS+= OJB 'Enable the ojb block' off XOPTIONS+= PETSTORE 'Enable the petstore block' off XOPTIONS+= PORTAL 'Enable the portal block' off XOPTIONS+= PRECEPT 'Enable the precept block' off XOPTIONS+= PROXY 'Enable the proxy block' off XOPTIONS+= QDOX 'Enable the qdox block' off XOPTIONS+= REPOSITORY 'Enable the repository block' off XOPTIONS+= SCRATCHPAD 'Enable the scratchpad block' off XOPTIONS+= SLIDE 'Enable the slide block' off XOPTIONS+= SLOP 'Enable the slop block' off XOPTIONS+= STX 'Enable the stx block' off XOPTIONS+= TAGLIB 'Enable the taglib block' off XOPTIONS+= WEBDAV 'Enable the webdav block' off XOPTIONS+= WOODY 'Enable the Woody Block (aka Cocoon Forms)' off END-of-cocoon2/Makefile.options echo x - cocoon2/pkg-plist sed 's/^X//' >cocoon2/pkg-plist << 'END-of-cocoon2/pkg-plist' Xcocoon2/tools/jetty/conf/admin.xml Xcocoon2/tools/jetty/conf/main.xml Xcocoon2/tools/jetty/conf/webdefaults.xml Xcocoon2/tools/jetty/lib/jetty-4.2.14.jar Xcocoon2/tools/jetty/lib/servlet-2.3.jar Xcocoon2/tools/loader/Loader$RepositoryClassLoader.class Xcocoon2/tools/loader/Loader.class Xcocoon2/legal/LICENSE Xcocoon2/legal/LICENSE.ant Xcocoon2/legal/LICENSE.antlr Xcocoon2/legal/LICENSE.avalon Xcocoon2/legal/LICENSE.axis Xcocoon2/legal/LICENSE.batik Xcocoon2/legal/LICENSE.bsf Xcocoon2/legal/LICENSE.castor Xcocoon2/legal/LICENSE.chaperon Xcocoon2/legal/LICENSE.commons-discovery Xcocoon2/legal/LICENSE.db-ojb Xcocoon2/legal/LICENSE.deli Xcocoon2/legal/LICENSE.fop Xcocoon2/legal/LICENSE.geronimo-spec-jms Xcocoon2/legal/LICENSE.geronimo-spec-jta Xcocoon2/legal/LICENSE.hsqldb Xcocoon2/legal/LICENSE.htmlarea Xcocoon2/legal/LICENSE.idldoc Xcocoon2/legal/LICENSE.itext Xcocoon2/legal/LICENSE.jakarta-commons Xcocoon2/legal/LICENSE.jakarta-commons-dbcp Xcocoon2/legal/LICENSE.jakarta-commons-lang Xcocoon2/legal/LICENSE.jakarta-commons-logging Xcocoon2/legal/LICENSE.jakarta-commons-pool Xcocoon2/legal/LICENSE.jakarta-poi Xcocoon2/legal/LICENSE.jakarta-regexp Xcocoon2/legal/LICENSE.jakarta-slide Xcocoon2/legal/LICENSE.jdom Xcocoon2/legal/LICENSE.jdtcore Xcocoon2/legal/LICENSE.jena Xcocoon2/legal/LICENSE.jetty Xcocoon2/legal/LICENSE.jfor Xcocoon2/legal/LICENSE.jing Xcocoon2/legal/LICENSE.jisp Xcocoon2/legal/LICENSE.joost Xcocoon2/legal/LICENSE.jstyle Xcocoon2/legal/LICENSE.jtidy Xcocoon2/legal/LICENSE.junit Xcocoon2/legal/LICENSE.logkit Xcocoon2/legal/LICENSE.lucene Xcocoon2/legal/LICENSE.pizza Xcocoon2/legal/LICENSE.pluto Xcocoon2/legal/LICENSE.qdox Xcocoon2/legal/LICENSE.quartz Xcocoon2/legal/LICENSE.rdffilter Xcocoon2/legal/LICENSE.resolver Xcocoon2/legal/LICENSE.rhino Xcocoon2/legal/LICENSE.servlet Xcocoon2/legal/LICENSE.spark.fpl Xcocoon2/legal/LICENSE.spark.opl Xcocoon2/legal/LICENSE.util.concurrent Xcocoon2/legal/LICENSE.velocity Xcocoon2/legal/LICENSE.wsdl4j Xcocoon2/legal/LICENSE.xalan Xcocoon2/legal/LICENSE.xerces Xcocoon2/legal/LICENSE.xindice Xcocoon2/legal/LICENSE.xml-apis Xcocoon2/legal/LICENSE.xmldb-api X@dirrm cocoon2/tools/jetty/conf X@dirrm cocoon2/tools/jetty/lib X@dirrm cocoon2/tools/jetty X@dirrm cocoon2/tools/loader X@dirrm cocoon2/legal X@dirrm cocoon2/tools Xsbin/cocoon2.sh Xsbin/cocoon2ctl Xetc/rc.d/cocoon2.sh X@dirrm cocoon2 END-of-cocoon2/pkg-plist echo x - cocoon2/Makefile sed 's/^X//' >cocoon2/Makefile << 'END-of-cocoon2/Makefile' X# New ports collection makefile for: www/cocoon2 X# Date created: 2004-03-31 11:31:13 X# Whom: Jean-Baptiste Quenot <jb.quenot@caraldi.com> X# X# ex:ts=16 X# X# $FreeBSD$ X# X XPORTNAME= cocoon XPORTVERSION= 2.1.4 XCATEGORIES= www java XMASTER_SITES= ${MASTER_SITE_APACHE:S,%SUBDIR%,${PORTNAME},} XDISTNAME= ${PDISTNAME}-src X XMAINTAINER= jb.quenot@caraldi.com XCOMMENT= XML Web Development Framework X XUSE_JAVA= 1.1+ XUSE_PYTHON= 1.6+ XMAKE_ENV= JAVA_HOME=${JAVA_HOME} XWRKSRC= ${WRKDIR}/${PDISTNAME} XAPP_VERSION= ${PORTVERSION:C/\..*$//} XAPP_NAME?= ${PORTNAME}${APP_VERSION} XAPP_HOME?= ${LOCALBASE}/${APP_NAME} XLATEST_LINK= ${APP_NAME} XPLIST= ${WRKDIR}/pkg-plist XPKGMESSAGE= ${WRKDIR}/pkg-message XPDISTNAME= ${PORTNAME}-${PORTVERSION} XPKGINSTALL= ${WRKDIR}/pkg-install XPKGDEINSTALL= ${WRKDIR}/pkg-deinstall X XCOCOON_LIB= ${JAVASHAREDIR}/${APP_NAME} XPLIST_SUB+= "COCOON_LIB=${COCOON_LIB}" X XCOPYDIRS= tools/jetty tools/loader legal X XPORT?= 8888 XPID_FILE?= /var/run/cocoon2.pid XRUNASUSER?= www XRUNASUID?= 80 XGROUP?= www XGID?= 80 XLOGFILE?= /var/log/cocoon2.log X XSUBSTITUTIONS= \ X -e "s|%%APP_HOME%%|${APP_HOME}|g" \ X -e "s|%%APP_NAME%%|${APP_NAME}|g" \ X -e "s|%%PREFIX%%|${PREFIX}|g" \ X -e "s|%%PORT%%|${PORT}|g" \ X -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ X -e "s|%%COCOON_LIB%%|${COCOON_LIB}|g" \ X -e "s|%%JAVA_HOME%%|${JAVA_HOME}|g" \ X -e "s|%%PID_FILE%%|${PID_FILE}|g" \ X -e "s|%%RUNASUSER%%|${RUNASUSER}|g" \ X -e "s|%%RUNASUID%%|${RUNASUID}|g" \ X -e "s|%%GROUP%%|${GROUP}|g" \ X -e "s|%%GID%%|${GID}|g" \ X -e "s|%%LOGFILE%%|${LOGFILE}|g" X X# Load options (before including bsd.port.pre.mk) X.include "${.CURDIR}/Makefile.options" X X.include <bsd.port.pre.mk> X X# Test for options X.include "${MASTERDIR}/Makefile.test-options" X X.for BLOCK in ${BLOCKS} XBLOCKSEXP+= -e 's/^exclude.block.${BLOCK}/\#exclude.block.${BLOCK}/' X.endfor X Xpost-patch: X @${ECHO_MSG} "===> Configuring blocks: ${BLOCKS}" X @${SED} -e 's/^#exclude.block/exclude.block/' < ${WRKSRC}/blocks.properties | \ X ${SED} ${BLOCKSEXP} > ${WRKSRC}/local.blocks.properties X.if (! defined(WITH_DOCS)) X ${SED} -e 's/^#exclude/exclude/' < ${WRKSRC}/build.properties \ X > ${WRKSRC}/local.build.properties X.endif X Xpre-build: X ${CHMOD} a+rx ${WRKSRC}/build.sh X Xdo-build: X cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build.sh X Xpost-build: X @${ECHO_MSG} "===> Building packing list" X @> ${PLIST} X X @cd ${WRKSRC}/build && ${FIND} webapp -type f \ X | ${SED} -e "s|^|${APP_NAME}/|" >> ${PLIST} X X @cd ${WRKSRC}/build && ${FIND} -d webapp -type d \ X | ${SED} -e "s|^|@dirrm ${APP_NAME}/|" >> ${PLIST} X X @${CAT} ${MASTERDIR}/pkg-plist >> ${PLIST} X X @${SED} ${SUBSTITUTIONS} ${FILESDIR}/pkg-install > ${PKGINSTALL} X @${SED} ${SUBSTITUTIONS} ${FILESDIR}/pkg-deinstall > ${PKGDEINSTALL} X Xdo-install: X @${ECHO_MSG} "===> Installing ${COPYDIRS}" X @${MKDIR} ${APP_HOME} X @cd ${WRKSRC} && ${FIND} ${COPYDIRS} \ X | ${XARGS} ${TAR} -C ${WRKSRC} -cf- | ${TAR} -C ${APP_HOME} -xpf- X X @${ECHO_MSG} "===> Installing webapp" X @cd ${WRKSRC}/build && ${FIND} webapp \ X | ${XARGS} ${TAR} -C ${WRKSRC}/build -cf- | ${TAR} -C ${APP_HOME} -xpf- X X @${ECHO_MSG} "===> Installing into ${LOCALBASE}/sbin" X @${SED} ${SUBSTITUTIONS} ${WRKSRC}/cocoon.sh > ${WRKDIR}/${APP_NAME}.sh X @${INSTALL} ${WRKDIR}/${APP_NAME}.sh ${LOCALBASE}/sbin X @${SED} ${SUBSTITUTIONS} ${FILESDIR}/${APP_NAME}ctl > ${WRKDIR}/${APP_NAME}ctl X @${INSTALL} ${WRKDIR}/${APP_NAME}ctl ${LOCALBASE}/sbin X X @${ECHO_MSG} "===> Installing ${LOCALBASE}/etc/rc.d/cocoon2.sh" X @${SED} ${SUBSTITUTIONS} ${FILESDIR}/${APP_NAME}.sh > ${WRKDIR}/${APP_NAME}.sh X @${INSTALL} ${WRKDIR}/${APP_NAME}.sh ${LOCALBASE}/etc/rc.d X Xpost-install: X @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL X @${SED} ${SUBSTITUTIONS} ${MASTERDIR}/pkg-message > ${PKGMESSAGE} X @${ECHO_CMD} X @${ECHO_CMD} "********************************************************************************" X @${CAT} ${PKGMESSAGE} | fmt -w 80 X @${ECHO_CMD} "********************************************************************************" X @${ECHO_CMD} X X.include <bsd.port.post.mk> END-of-cocoon2/Makefile exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040504130207.D00D463B4>