- Update to 2.1.10

PR:		ports/108195
Submitted by:	Jean-Baptiste Quenot <jbq@caraldi.com> (maintainer)
This commit is contained in:
Andrew Pantyukhin 2007-01-23 10:21:34 +00:00
parent aaa503f904
commit 4e34f47ce3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183066
9 changed files with 80 additions and 50 deletions

View file

@ -6,13 +6,13 @@
# #
PORTNAME= cocoon PORTNAME= cocoon
PORTVERSION= 2.1.9 PORTVERSION= 2.1.10
CATEGORIES= www java CATEGORIES= www java
MASTER_SITES= ${MASTER_SITE_APACHE} MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PDISTNAME}-src DISTNAME= ${PDISTNAME}-src
MAINTAINER= jb.quenot@caraldi.com MAINTAINER= jbq@caraldi.com
COMMENT= XML Web Development Framework COMMENT= XML Web Development Framework
USE_RC_SUBR= ${PORTNAME}.sh USE_RC_SUBR= ${PORTNAME}.sh
@ -26,6 +26,7 @@ APP_HOME?= ${PREFIX}/${APP_NAME}
LATEST_LINK= ${APP_NAME} LATEST_LINK= ${APP_NAME}
PLIST= ${WRKDIR}/pkg-plist PLIST= ${WRKDIR}/pkg-plist
PDISTNAME= ${PORTNAME}-${PORTVERSION} PDISTNAME= ${PORTNAME}-${PORTVERSION}
PKGMESSAGE= ${WRKDIR}/pkg-message
COCOON_LIB= ${JAVASHAREDIR}/${APP_NAME} COCOON_LIB= ${JAVASHAREDIR}/${APP_NAME}
PLIST_SUB+= "COCOON_LIB=${COCOON_LIB}" PLIST_SUB+= "COCOON_LIB=${COCOON_LIB}"
@ -62,7 +63,8 @@ SUB_FILES= \
${APP_NAME}ctl \ ${APP_NAME}ctl \
${APP_NAME}.sh \ ${APP_NAME}.sh \
upstreams-cocoon.sh \ upstreams-cocoon.sh \
pkg-message message \
message-advanced
# Load options (before including bsd.port.pre.mk) # Load options (before including bsd.port.pre.mk)
.include "${.CURDIR}/Makefile.options" .include "${.CURDIR}/Makefile.options"
@ -114,14 +116,21 @@ post-build:
@${ECHO_MSG} "===> Building packing list" @${ECHO_MSG} "===> Building packing list"
@> ${PLIST} @> ${PLIST}
@cd ${WRKSRC} && ${FIND} -H ${COPYDIRS} -type f \ @cd ${WRKSRC} && ${FIND} -H ${COPYDIRS} -not -type d \
| ${SED} -e "s|^|${APP_NAME}/|" >> ${PLIST} | ${SED} -e "s|^|${APP_NAME}/|" >> ${PLIST}
@cd ${WRKSRC} && ${FIND} -H -d ${COPYDIRS} -type d -empty \
| ${SED} -e "s|^|@exec mkdir -p %D/${APP_NAME}/|" >> ${PLIST}
@cd ${WRKSRC} && ${FIND} -H -d ${COPYDIRS} -type d \ @cd ${WRKSRC} && ${FIND} -H -d ${COPYDIRS} -type d \
| ${SED} -e "s|^|@dirrm ${APP_NAME}/|" >> ${PLIST} | ${SED} -e "s|^|@dirrm ${APP_NAME}/|" >> ${PLIST}
@${CAT} ${MASTERDIR}/pkg-plist >> ${PLIST} @${CAT} ${MASTERDIR}/pkg-plist >> ${PLIST}
pre-install:
@${FMT} -w80 ${WRKDIR}/message > ${PKGMESSAGE}
@${CAT} ${WRKDIR}/message-advanced >> ${PKGMESSAGE}
do-install: do-install:
@${ECHO_MSG} "===> Installing ${COPYDIRS}" @${ECHO_MSG} "===> Installing ${COPYDIRS}"
@${MKDIR} ${APP_HOME} @${MKDIR} ${APP_HOME}
@ -131,14 +140,11 @@ do-install:
@${ECHO_MSG} "===> Installing into ${PREFIX}/sbin" @${ECHO_MSG} "===> Installing into ${PREFIX}/sbin"
@${INSTALL_SCRIPT} ${WRKDIR}/${APP_NAME}ctl ${PREFIX}/sbin @${INSTALL_SCRIPT} ${WRKDIR}/${APP_NAME}ctl ${PREFIX}/sbin
@${ECHO_MSG} "===> Installing ${PREFIX}/etc/rc.d/${APP_NAME}.sh"
@${INSTALL_SCRIPT} ${WRKDIR}/${APP_NAME}.sh ${PREFIX}/etc/rc.d
post-install: post-install:
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${ECHO_CMD} @${ECHO_CMD}
@${ECHO_CMD} "********************************************************************************" @${ECHO_CMD} "********************************************************************************"
@${FMT} -w80 ${PKGMESSAGE} @${CAT} ${PKGMESSAGE}
@${ECHO_CMD} "********************************************************************************" @${ECHO_CMD} "********************************************************************************"
@${ECHO_CMD} @${ECHO_CMD}

View file

@ -23,7 +23,7 @@ OPTIONS+= NAMING 'Enable the naming block' on
OPTIONS+= OJB 'Enable the ojb block' on OPTIONS+= OJB 'Enable the ojb block' on
OPTIONS+= PARANOID 'Enable the paranoid block' on OPTIONS+= PARANOID 'Enable the paranoid block' on
OPTIONS+= POI 'Enable the poi block' on OPTIONS+= POI 'Enable the poi block' on
OPTIONS+= PORTAL 'Enable the portal block' off OPTIONS+= PORTAL 'Enable the portal block' on
OPTIONS+= PROFILER 'Enable the profiler block' on OPTIONS+= PROFILER 'Enable the profiler block' on
OPTIONS+= PYTHON 'Enable the python block' on OPTIONS+= PYTHON 'Enable the python block' on
OPTIONS+= SESSION_FW 'Enable the session-fw block' on OPTIONS+= SESSION_FW 'Enable the session-fw block' on
@ -38,13 +38,14 @@ OPTIONS+= WOODY 'Enable the woody block' off
OPTIONS+= AJAX 'Enable the ajax block' on OPTIONS+= AJAX 'Enable the ajax block' on
OPTIONS+= APPLES 'Enable the apples block' on OPTIONS+= APPLES 'Enable the apples block' on
OPTIONS+= ASCIIART 'Enable the asciiart block' on OPTIONS+= ASCIIART 'Enable the asciiart block' on
OPTIONS+= AUTH 'Enable the auth block' on
OPTIONS+= AXIS 'Enable the axis block' on OPTIONS+= AXIS 'Enable the axis block' on
OPTIONS+= CAPTCHA 'Enable the captcha block' on OPTIONS+= CAPTCHA 'Enable the captcha block' on
OPTIONS+= CRON 'Enable the cron block' on OPTIONS+= CRON 'Enable the cron block' on
OPTIONS+= DELI 'Enable the deli block' on OPTIONS+= DELI 'Enable the deli block' on
OPTIONS+= EVENTCACHE 'Enable the eventcache block' on OPTIONS+= EVENTCACHE 'Enable the eventcache block' on
OPTIONS+= FACES 'Enable the faces block' on OPTIONS+= FACES 'Enable the faces block' on
OPTIONS+= IMAGEOP 'Enable the imageop block' off OPTIONS+= IMAGEOP 'Enable the imageop block' on
OPTIONS+= JAVAFLOW 'Enable the javaflow block' on OPTIONS+= JAVAFLOW 'Enable the javaflow block' on
OPTIONS+= JCR 'Enable the jcr block' off OPTIONS+= JCR 'Enable the jcr block' off
OPTIONS+= JMS 'Enable the jms block' on OPTIONS+= JMS 'Enable the jms block' on
@ -60,7 +61,7 @@ OPTIONS+= SLIDE 'Enable the slide block' on
OPTIONS+= SLOP 'Enable the slop block' on OPTIONS+= SLOP 'Enable the slop block' on
OPTIONS+= STX 'Enable the stx block' on OPTIONS+= STX 'Enable the stx block' on
OPTIONS+= TAGLIB 'Enable the taglib block' on OPTIONS+= TAGLIB 'Enable the taglib block' on
OPTIONS+= TEMPLATE 'Enable the template block' off OPTIONS+= TEMPLATE 'Enable the template block' on
OPTIONS+= TOUR 'Enable the tour block' on OPTIONS+= TOUR 'Enable the tour block' on
OPTIONS+= VALIDATION 'Enable the validation block' on OPTIONS+= VALIDATION 'Enable the validation block' on
OPTIONS+= WEBDAV 'Enable the webdav block' on OPTIONS+= WEBDAV 'Enable the webdav block' on

View file

@ -24,11 +24,13 @@ BLOCKS+= xsp
.if defined(WITH_FOP) .if defined(WITH_FOP)
BLOCKS+= fop BLOCKS+= fop
BLOCKS+= batik BLOCKS+= batik
BLOCKS+= xsp
.endif .endif
.if defined(WITH_FORMS) .if defined(WITH_FORMS)
BLOCKS+= forms BLOCKS+= forms
BLOCKS+= ajax BLOCKS+= ajax
BLOCKS+= template
.endif .endif
.if defined(WITH_HSQLDB) .if defined(WITH_HSQLDB)
@ -77,6 +79,7 @@ BLOCKS+= ajax
BLOCKS+= databases BLOCKS+= databases
BLOCKS+= forms BLOCKS+= forms
BLOCKS+= hsqldb BLOCKS+= hsqldb
BLOCKS+= template
BLOCKS+= xsp BLOCKS+= xsp
.endif .endif
@ -91,6 +94,7 @@ BLOCKS+= poi
.if defined(WITH_PORTAL) .if defined(WITH_PORTAL)
BLOCKS+= portal BLOCKS+= portal
BLOCKS+= ajax BLOCKS+= ajax
BLOCKS+= auth
BLOCKS+= authentication-fw BLOCKS+= authentication-fw
BLOCKS+= cron BLOCKS+= cron
BLOCKS+= databases BLOCKS+= databases
@ -98,11 +102,13 @@ BLOCKS+= forms
BLOCKS+= hsqldb BLOCKS+= hsqldb
BLOCKS+= ojb BLOCKS+= ojb
BLOCKS+= session-fw BLOCKS+= session-fw
BLOCKS+= template
BLOCKS+= xsp BLOCKS+= xsp
.endif .endif
.if defined(WITH_PROFILER) .if defined(WITH_PROFILER)
BLOCKS+= profiler BLOCKS+= profiler
BLOCKS+= auth
.endif .endif
.if defined(WITH_PYTHON) .if defined(WITH_PYTHON)
@ -155,24 +161,32 @@ BLOCKS+= xsp
.if defined(WITH_AJAX) .if defined(WITH_AJAX)
BLOCKS+= ajax BLOCKS+= ajax
BLOCKS+= template
.endif .endif
.if defined(WITH_APPLES) .if defined(WITH_APPLES)
BLOCKS+= apples BLOCKS+= apples
BLOCKS+= ajax BLOCKS+= ajax
BLOCKS+= forms BLOCKS+= forms
BLOCKS+= template
.endif .endif
.if defined(WITH_ASCIIART) .if defined(WITH_ASCIIART)
BLOCKS+= asciiart BLOCKS+= asciiart
.endif .endif
.if defined(WITH_AUTH)
BLOCKS+= auth
.endif
.if defined(WITH_AXIS) .if defined(WITH_AXIS)
BLOCKS+= axis BLOCKS+= axis
BLOCKS+= xsp
.endif .endif
.if defined(WITH_CAPTCHA) .if defined(WITH_CAPTCHA)
BLOCKS+= captcha BLOCKS+= captcha
BLOCKS+= template
.endif .endif
.if defined(WITH_CRON) .if defined(WITH_CRON)
@ -195,6 +209,7 @@ BLOCKS+= xsp
.if defined(WITH_FACES) .if defined(WITH_FACES)
BLOCKS+= faces BLOCKS+= faces
BLOCKS+= ajax BLOCKS+= ajax
BLOCKS+= auth
BLOCKS+= authentication-fw BLOCKS+= authentication-fw
BLOCKS+= cron BLOCKS+= cron
BLOCKS+= databases BLOCKS+= databases
@ -204,6 +219,7 @@ BLOCKS+= ojb
BLOCKS+= portal BLOCKS+= portal
BLOCKS+= session-fw BLOCKS+= session-fw
BLOCKS+= taglib BLOCKS+= taglib
BLOCKS+= template
BLOCKS+= xsp BLOCKS+= xsp
.endif .endif
@ -218,6 +234,7 @@ BLOCKS+= databases
BLOCKS+= forms BLOCKS+= forms
BLOCKS+= hsqldb BLOCKS+= hsqldb
BLOCKS+= ojb BLOCKS+= ojb
BLOCKS+= template
BLOCKS+= xsp BLOCKS+= xsp
.endif .endif
@ -248,6 +265,7 @@ BLOCKS+= ajax
BLOCKS+= databases BLOCKS+= databases
BLOCKS+= forms BLOCKS+= forms
BLOCKS+= hsqldb BLOCKS+= hsqldb
BLOCKS+= template
BLOCKS+= velocity BLOCKS+= velocity
BLOCKS+= xsp BLOCKS+= xsp
.endif .endif
@ -268,6 +286,7 @@ BLOCKS+= forms
BLOCKS+= hsqldb BLOCKS+= hsqldb
BLOCKS+= lucene BLOCKS+= lucene
BLOCKS+= ojb BLOCKS+= ojb
BLOCKS+= template
BLOCKS+= xsp BLOCKS+= xsp
.endif .endif
@ -319,6 +338,8 @@ BLOCKS+= batik
BLOCKS+= fop BLOCKS+= fop
BLOCKS+= forms BLOCKS+= forms
BLOCKS+= slop BLOCKS+= slop
BLOCKS+= template
BLOCKS+= xsp
.endif .endif
.if defined(WITH_VALIDATION) .if defined(WITH_VALIDATION)

View file

@ -1,3 +1,3 @@
MD5 (cocoon-2.1.9-src.tar.gz) = f69fb596d50f7942a22c81d9c6061b29 MD5 (cocoon-2.1.10-src.tar.gz) = d073b36274ab359b59bbb760e083a934
SHA256 (cocoon-2.1.9-src.tar.gz) = 0ff238cd5c1b20dcbd3459c74a5395a0cdc8ee636e204f1eaa0155b7dd48a6f2 SHA256 (cocoon-2.1.10-src.tar.gz) = 326b591cb2b43a70f56eec825e6605c99bf283e0fc3be8fe5085e45bcaca3135
SIZE (cocoon-2.1.9-src.tar.gz) = 46893866 SIZE (cocoon-2.1.10-src.tar.gz) = 49941251

View file

@ -4,6 +4,8 @@
# #
# PROVIDE: %%APP_NAME%% # PROVIDE: %%APP_NAME%%
# REQUIRE: LOGIN
# KEYWORD: shutdown
# #
# Add the following line to /etc/rc.conf to enable %%APP_NAME%%: # Add the following line to /etc/rc.conf to enable %%APP_NAME%%:
@ -16,10 +18,9 @@
name=%%APP_NAME%% name=%%APP_NAME%%
rcvar=`set_rcvar` rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/%%APP_NAME%%ctl command="%%PREFIX%%/sbin/%%APP_NAME%%ctl"
command_args="$1" command_args="start"
pidfile=%%PID_FILE%% pidfile=%%PID_FILE%%
procname=%%JAVA%%
# set defaults # set defaults
@ -28,4 +29,15 @@ procname=%%JAVA%%
%%APP_NAME%%_group=${%%APP_NAME%%_group:-"www"} %%APP_NAME%%_group=${%%APP_NAME%%_group:-"www"}
load_rc_config ${name} 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" run_rc_command "$1"

View file

@ -0,0 +1,23 @@
--------------------------------------------------------------------------------
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.4"

View file

@ -28,18 +28,3 @@ If you wish to skip this setting, please note that the `stop', `restart' and
Enjoy! Enjoy!
--------------------------------------------------------------------------------
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 virtual machine with remote debugging turned on on port 8000
%%APP_NAME%%_flags="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"

View file

@ -1,17 +0,0 @@
Index: src/blocks/forms/samples/welcome.xml
===================================================================
--- src/blocks/forms/samples/welcome.xml (revision 393856)
+++ src/blocks/forms/samples/welcome.xml (working copy)
@@ -21,12 +21,6 @@
<group name="Back">
<sample name="Back" href="../..">to Cocoon Samples main page</sample>
<sample name="Back" href="..">to Cocoon Blocks Samples main page</sample>
- <note>
- Cocoon Forms is the upcoming forms framework for Cocoon.
- Although it is marked as unstable it is the *only* supported solution - all
- other similar approaches will be deprecated soon.
- Of course, your feedback is very much welcome on the Cocoon mailing lists.
- </note>
<sample name="Cocoon Forms Documentation" href="http://cocoon.apache.org/2.1/userdocs/basics/index.html">
Documentation is available on the Cocoon site.
</sample>

View file

@ -1,6 +1,5 @@
@comment $FreeBSD$ @comment $FreeBSD$
sbin/cocoonctl sbin/cocoonctl
etc/rc.d/cocoon.sh
cocoon/cocoon.sh cocoon/cocoon.sh
@dirrm cocoon/tools @dirrm cocoon/tools
@dirrm cocoon @dirrm cocoon