pkgsrc/www/apache-tomcat7/Makefile
ryoon d9fb01b1d5 Update to 7.0.62
Changelog:
Tomcat 7.0.62 (violetagg)

    Catalina

        add	Allow logging of the remote port in the access log using the format pattern %{remote}p. (rjung)
        fix	57765: When checking last modified times as part of the automatic deployment process, account for the fact that File.lastModified() has a resolution of one second to ensure that if a file has been modified within the last second, the latest version of the file is always used. Note that a side-effect of this change is that files with modification times in the future are treated as if they are unmodified. (markt)
        fix	Align redeploy resource modification checking with reload modification checking so that now, in both cases, a change in modification time rather than an increase in modification time is used to determine if the resource has changed. (markt)
        fix	Cleanup o.a.tomcat.util.digester.Digester from debug messages that do not give any valuable information. Patch provided by Polina Genova. (violetagg)
        fix	57772: When reloading a web application and a directory representing an expanded WAR needs to be deleted, delete the directory after the web application has been stopped rather than before to avoid potential ClassNotFoundExceptions. (markt)
        fix	57801: Improve the error message in the start script in case the PID read from the PID file is already owned by a process. (rjung)
        fix	57824: Correct a regression in the fix for 57252 that broke request listeners for non-async requests that triggered an error that was handled by the ErrorReportingValve. (markt/violetagg)
        fix	57841: Improve error logging during web application start. (markt)
        fix	57856: Ensure that any scheme/port changes implemented by the RemoteIpFilter also affect HttpServletResponse.sendRedirect(). (markt)
        fix	57896: Support defensive copying of "cookie" header so that unescaping double quotes in a cookie value does not corrupt original value of "cookie" header. This is an opt-in feature, enabled by org.apache.tomcat.util.http.ServerCookie.PRESERVE_COOKIE_HEADER system property. (kkolinko)

    Coyote

        fix	57779: When an I/O error occurs on a non-container thread only dispatch to a container thread to handle the error if using Servlet 3+ asynchronous processing. This avoids potential deadlocks if an application is performing I/O on a non-container thread without using the Servlet 3+ asynchronous API. (markt)
        fix	57833: When using JKS based keystores for NIO, ensure that the key alias is always converted to lower caes since that is what JKS key stores expect. Based on a patch by Santosh Giri Govind M. (markt)
        fix	57837: Add text/css to the default list of compressable MIME types. (markt)

    Jasper

        fix	57845: Ensure that, if the same JSP is accessed directly and via a <jsp-file> declaration in web.xml, updates to the JSP are visible (subject to the normal rules on re-compilation) regardless of how the JSP is accessed. (markt)
        fix	57855: Explicitly handle the case where a MethodExpression is invoked with null or the wrong number of parameters. Rather than failing with an ArrayIndexOutOfBoundsException or a NullPointerException throw an IllegalArgumentException with a useful error message. (markt)

    Cluster

        add	Add new attribute that send all actions for session across Tomcat cluster nodes. (kfujino)
        fix	Remove unused pathname attribute in mbean definition of BackupManager. (kfujino)
        fix	57338: Improve the ability of the ClusterSingleSignOn valve to handle nodes being added and removed from the Cluster at run time. (markt)
        fix	Avoid unnecessary call of DeltaRequest.addSessionListener() in non-primary nodes. (kfujino)

    WebSocket

        fix	57762: Ensure that the WebSocket client correctly detects when the connection to the server is dropped. (markt)
        fix	57776: Revert the 8.0.21 fix for the permessage-deflate implementation and incorrect op-codes since the fix was unnecessary (the bug only affected trunk) and the fix broke rather than fixed permessage-deflate if an uncompressed message was converted into more than one compressed message. (markt)
        fix	Fix log name typo in WsRemoteEndpointImplServer class, caused by a copy-paste. (markt/kkolinko)
        fix	57788: Avoid NPE when looking up a class hierarchy without finding anything. (remm)

    Web applications

        add	57759: Add information to the keyAlias documentation to make it clear that the order keys are read from the keystore is implementation dependent. (markt)
        fix	57864: Update the documentation web application to make it clearer that hex values are not valid for cluster send options. Based on a patch by Kyohei Nakamura. (markt)

    Tribes

        fix	Fix a concurrency issue when a backup message that has all session data and a backup message that has diff data are processing at the same time. This fix ensures that MapOwner is set to ReplicatedMapEntry. (kfujino)
        fix	Clarify the handling of Copy message and Copy nodes. (kfujino)
        fix	Copy node does not need to send the entry data. It is enough to send only the node information of the entry. (kfujino)
        fix	ReplicatedMap should send the Copy message when replicating. (kfujino)
        fix	Fix behavior of ReplicatedMap when member has disappeared. If map entrprimary, rebuild the backup members. If primary node of map entry has disappeared, backup node is promoted to primary. (kfujino)
        fix	When a map member has been added to ReplicatedMap, make sure to add it to backup nodes list of all other members.
2015-05-27 12:19:30 +00:00

98 lines
2.8 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2015/05/27 12:19:30 ryoon Exp $
#
DISTNAME= apache-tomcat-${TOMCAT_VER}
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_APACHE:=tomcat/tomcat-7/v${TOMCAT_VER}/bin/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://tomcat.apache.org/
COMMENT= Implementation of Java Servlet and JavaServer Pages technologies
LICENSE= apache-2.0
CONFLICTS+= jakarta-tomcat55-[0-9]*
CONFLICTS+= jakarta-tomcat-[0-9]*
NO_BUILD= yes
USE_LANGUAGES= # none
USE_JAVA= run
USE_JAVA2= 6
USE_TOOLS+= pax
.include "../../mk/bsd.prefs.mk"
TOMCAT_VER= 7.0.62
TOMCAT_HOME= ${PREFIX}/share/tomcat
EGDIR= ${PREFIX}/share/examples/tomcat
DOCDIR= ${PREFIX}/share/doc/tomcat
RCD_SCRIPTS= tomcat
SMF_NAME= tomcat
TOMCAT_USER?= tomcat
TOMCAT_GROUP?= tomcat
PKG_GROUPS= ${TOMCAT_GROUP}
PKG_USERS= ${TOMCAT_USER}:${TOMCAT_GROUP}
PKG_GROUPS_VARS+= TOMCAT_GROUP
PKG_USERS_VARS+= TOMCAT_USER
PKG_HOME.tomcat= ${TOMCAT_HOME}
PKG_SHELL.tomcat= ${SH}
PKG_SYSCONFDIR.tomcat= ${TOMCAT_HOME}/conf
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR.tomcat} ${TOMCAT_USER} ${TOMCAT_GROUP} 0755
FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME} TOMCAT_HOME=${TOMCAT_HOME} \
TOMCAT_USER=${TOMCAT_USER} TOMCAT_GROUP=${TOMCAT_GROUP}
PRIVATE_EGFILES= server.xml tomcat-users.xml
PUBLIC_EGFILES= catalina.policy catalina.properties \
context.xml logging.properties web.xml
DOCFILES= LICENSE NOTICE RELEASE-NOTES RUNNING.txt
WORK_DIRS= work temp logs
.for f in ${PRIVATE_EGFILES}
CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR.tomcat}/${f} \
${TOMCAT_USER} ${TOMCAT_GROUP} 0640
.endfor
.for f in ${PUBLIC_EGFILES}
CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR.tomcat}/${f} \
${TOMCAT_USER} ${TOMCAT_GROUP} 0644
.endfor
.for d in ${WORK_DIRS}
OWN_DIRS_PERMS+= ${TOMCAT_HOME}/${d} ${TOMCAT_USER} ${TOMCAT_GROUP} 0755
.endfor
INSTALLATION_DIRS+= ${TOMCAT_HOME} ${EGDIR} ${DOCDIR}
do-install:
.for d in ${WORK_DIRS}
${RM} -rf ${WRKSRC}/${d}
.endfor
.for f in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}/${f}
${RM} -f ${WRKSRC}/${f}
.endfor
.for f in ${PRIVATE_EGFILES}
${INSTALL_DATA} ${WRKSRC}/conf/${f} ${DESTDIR}${EGDIR}/${f}
${RM} -f ${WRKSRC}/conf/${f}
.endfor
.for f in ${PUBLIC_EGFILES}
${INSTALL_DATA} ${WRKSRC}/conf/${f} ${DESTDIR}${EGDIR}/${f}
${RM} -f ${WRKSRC}/conf/${f}
.endfor
${FIND} ${WRKSRC} -name \*.exe -type f -print | ${XARGS} ${RM} -f
${FIND} ${WRKSRC} -name \*.bat -type f -print | ${XARGS} ${RM} -f
cd ${WRKSRC} && ${PAX} -rw -pm . ${DESTDIR}${TOMCAT_HOME}
${FIND} ${DESTDIR}${TOMCAT_HOME} -type d -print | \
${XARGS} ${CHMOD} ${PKGDIRMODE}
${FIND} ${DESTDIR}${TOMCAT_HOME} -type f -print | \
${XARGS} ${CHMOD} ${SHAREMODE}
${FIND} ${DESTDIR}${TOMCAT_HOME} -type f -name \*.sh -print | \
${XARGS} ${CHMOD} ${BINMODE}
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"