pkgsrc/www/apache-tomcat6/Makefile

108 lines
3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.21 2020/04/25 22:23:05 jym Exp $
#
DISTNAME= apache-tomcat-${TOMCAT_VER}
CATEGORIES= www
PKGREVISION= 1
MASTER_SITES= ${MASTER_SITE_APACHE:=tomcat/tomcat-6/v${TOMCAT_VER}/bin/}
2009-07-17 20:00:13 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://tomcat.apache.org/
COMMENT= Implementation of Java Servlet and JavaServer Pages technologies
Upstream changelog: Tomcat 6.0.35 (jfclere) +++++++++++++++++++++++ Catalina -------- fix Fix regression in decoding of parameters that contain spaces. Patch by Willem Fibbe. (kkolinko) Tomcat 6.0.34 (jfclere) not released ++++++++++++++++++++++++++++++++++++ Catalina -------- fix 51550: Display an error page rather than an empty response for an IllegalStateException caused by too many active sessions. (markt) add 51640: Improve the memory leak prevention for leaks triggered by java.sql.DriverManager. (markt/kkolinko) fix 51688: JreMemoryLeakPreventionListener now protects against AWT thread creation. (schultz) fix 51758: The digester (used for processing XML files) used the logger name org.apache.commons.digester.Digester rather than the expected org.apache.tomcat.util.digester.Digester. The digester has been changed to use the expected logger name. (kkolinko) add 51862: Added a classesToInitialize attribute to JreMemoryLeakPreventionListener to allow pre-loading of configurable classes to avoid some classloader leaks. (slaurent) fix 51872: Ensure that the access log always uses the correct value for the remote IP address associated with the request and that requests with multiple errors do not result in multiple entries in the access log. (markt) add Allow to overwrite the check for distributability of session attributes by session implementations. (rjung) add Provide the log format "OneLineFormatter" for JULI that provides the same information as the default plus thread name but on a single line. (markt/rjung) fix Ensure the the memory leak protection for the HttpClient keep-alive always operates even if the thread has already stopped. (markt) fix 51940: Do not limit saving of request bodies during FORM authentication to POST requests since any HTTP method may include a request body. Based on a patch by Nicholas Sushkin. (kkolinko) fix 52091: Address performance issues related to lock contention in StandardWrapper. Based on patch provided by Taiki Sugawara. (kkolinko) update In GenericPrincipal, SerializablePrincipal: Do not sort lists of roles that have only one element. (kkolinko) add Make configuration issue for CsrfPreventionFilter result in the failure of the filter rather than just a warning message. (kkolinko) fix Ensure changes to the configuration of RemoteAddrValve and RemoteHostValve via JMX are thread-safe. (kkolinko) add Make configuration issue for RemoteAddrValve and RemoteHostValve result in the failure of the valve rather than just a warning message. (kkolinko) update In RequestFilterValve (RemoteAddrValve, RemoteHostValve): refactor value matching logic into separate method and expose this new method isAllowed through JMX. (kkolinko) add Improve performance of parameter processing for GET and POST requests. Also add an option to limit the maximum number of parameters processed per request. This defaults to 10000. Excessive parameters are ignored. Note that FailedRequestFilter can be used to reject the request if some parameters were ignored. (markt/kkolinko) add New filter FailedRequestFilter that will reject a request if there were errors during HTTP parameter parsing. (kkolinko) Coyote ------ fix 50394: Return -1 from read operation instead of throwing an exception when encountering an EOF with the HTTP APR connector. (kkolinko) fix 51698: Fix CVE-2011-3190. Prevent AJP message injection. (markt) fix Detect incomplete AJP messages and reject the associated request if one is found. (markt) fix 51794: Fix race condition in NioEndpoint selector. Patch provided by dlord. (fhanik) fix 51905: Fix infinite loop in AprEndpoint shutdown if acceptor unlock fails. Reduce timeout before forcefully closing the socket from 30s to 10s. (kkolinko) fix 52121: Fix possible output corruption when compression is enabled for a connector and the response is flushed. Test case provided by David Marcks. (kkolinko) fix Replace unneeded call that iterated events queue in NioEndpoint.Poller. (kkolinko) fix Improve MimeHeaders.toString(). (kkolinko) fix Allow the BIO HTTP connector to be used with SSL when running under Java 7. (markt) fix Improve multi-byte character handling in all connectors. (rjung) Jasper ------ fix 51220: Correct copy/paste error in original commit for this issue. (markt) fix 52091: Address performance issues related to log creation in TagHandlerPool. Patch provided by Taiki Sugawara. (markt) Cluster ------- add 51736: Make rpcTimeout configurable in BackupManager. (kfujino) add New cluster manager attribute sessionAttributeFilter allows to filter which session attributes are replicated using a regular expression applied to the attribute name. (rjung) fix Avoid an unnecessary session ID change notice. Notice of changed session ID by JvmRouteBinderValve is unnecessary to BackupManager. In BackupManager, change of session ID is replicated by the call of a setId() method. (kfujino) fix Fix unneeded duplicate resetDeltaRequest() call in DeltaSession.setId(String). (kkolinko) add When Context manager does not exist, no context manager message is replied in order to avoid timeout (default 60 sec) of GET_ALL_SESSIONS sync phase. (kfujino) Webapps ------- fix Correct the documentation for the connectionLinger attribute of the HTTP connector. (markt) add Show build date and version in the header on every documentation page. (kkolinko) fix 52049: Improve setup instructions for running as a Windows service: correct information on how a JRE is identified and selected. (markt) update 52172: Clarify Tomcat build instructions. Patch provided by bmargulies. (kkolinko) Other ----- update Update the native component of the APR/native connectors to 1.1.22. (markt) update Update the recommended version of the native component of the APR/native connectors to 1.1.22. (kkolinko) update Update the Eclipse compiler (used for JSPs) to 3.7. (markt) fix Correct two typos in the Windows installer. (kkolinko) fix 52059: In Windows uninstaller: Do not forget to remove Tomcat keys from 32-bit registry on deinstallation. (kkolinko)
2011-12-13 10:44:17 +01:00
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= 1.5
USE_TOOLS+= pax
PKG_DESTDIR_SUPPORT= destdir
.include "../../mk/bsd.prefs.mk"
Update to 6.0.45 Changelog: Tomcat 6.0.45 (jfclere) Catalina fix Back-port various improvements to the AprLifecycleListener including the fix for 57021 that improves logging when the Tomcat-Native DLL fails to load. (markt) add 57154: Add support for web applications (Context elements) that do not have a docBase. This is intended for use when embedding, such as Tomcat unit tests, when a web application is configured programmatically and does not serve any files. Based on a patch provided by Huxing Zhang. (kkolinko) add 57741: Enable the CGI servlet to use the standard error page mechanism. Note that if the CGI servlet's debug init parameter is set to 10 or higher then the standard error page mechanism will be bypassed and a debug response generated by the CGI servlet will be returned instead. (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 or org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property. (kkolinko) fix 58031: Make the (first) reason parameter parsing failed available as a request attribute and then use it to provide a better status code via the FailedRequstFilter (if configured). (markt) fix 58313: Fix concurrent access of encoders map when clearing encoders during Comet processing. (markt) fix 58508: Escape role names when generating associated MBeans in case the role name contains characters not permitted in an MBean name. (markt) fix 58582: Combined realm should perform background processing on its sub-realms. Based upon a patch provided by Aidan. (kkolinko) add Move the functionality that provides redirects for context roots and directories where a trailing / is added from the Mapper to the DefaultServlet. This enables such requests to be processed by any configured Valves and Filters before the redirect is made. This behaviour is configurable via the mapperContextRootRedirectEnabled and mapperDirectoryRedirectEnabled attributes of the Context which may be used to restore the previous behaviour. (markt) fix 58635: Enable break points to be set within agent code when running Tomcat with a Java agent. Based on a patch by Huxing Zhang. (markt) fix Add the StatusManagerServlet to the list of Servlets that can only be loaded by privileged applications. (markt) fix Remove redundant copy of catalina.properties from o.a.c.startup. Generate this copy during the ant "compile" task. (kkolinko) fix 58817: Fix ArrayIndexOutOfBoundsException caused by MapperListener when ROOT context is being undeployed and mapperContextRootRedirectEnabled="false". (kkolinko) fix 58836: Correctly merge query string parameters when processing a forwarded request where the target includes a query string that contains a parameter with no value. (markt/kkolinko) add Allow singleton server instance stored by ServerFactory to be cleared. Allow ResourceLinkFactory to be initialized more than once. This is used by unit tests when running several copies of Tomcat sequentially in the same JVM. When running with a SecurityManager the initialization method of ResourceLinkFactory is protected by requiring a RuntimePermission. (kkolinko) add Extend the feature available in the cluster session manager implementations that enables session attribute replication to be filtered bases on attribute name to all session manager implementations. Note that configuration attribute name has changed from sessionAttributeFilter to sessionAttributeNameFilter. Apply the filter on load as well as unload to ensure that configuration changes made while the web application is stopped are applied to any persisted data. (markt) add Extend the session attribute filtering options to include filtering based on the implementation class of the value and optional WARN level logging if an attribute is filtered. These options are available for all of the Manager implementations that ship with Tomcat. When a SecurityManager is used filtering will be enabled by default. (markt) fix 58946: Ensure that the request parameter map remains immutable when processing via a RequestDispatcher. (markt) Coyote add Align the Java side of the tc-native connector with the Tomcat 7 implementation to ease future maintenance. (markt) fix 51503: Add additional validation that prevents a connector from starting if it does not have a valid port number. (kkolinko) add 52028: Add support for automatic binding to a free port by a connector if the special value of zero is used for the port. This is mainly useful in embedded and testing scenarios. (kkolinko) fix 52926: Avoid NPE when an NIO Comet connection times out on one thread at the same time as it is closed on another thread. (markt/kkolinko) fix 57943: Prevent the same socket being added to the cache twice. Patch based on analysis by Ian Luo / Sun Qi. (markt/kkolinko) fix Improve HTTP header validation. (markt) Web applications fix 57971: Correct the documentation for the cluster configuration setting recoverySleepTime. (markt) fix 58112: Update the documentation for using the Catalina tasks in an Apache Ant build file. (markt) fix Improve the Javadoc for some of the APR socket read functions that have inconsistent behaviour for return values. (markt) add 58255: Document the Semaphore valve. Patch provided by Kyohei Nakamu. (markt) fix 58631: Correct the continuation character use in the Windows Service How-To page of the documenation web application. (markt) fix Correct some typos in the JNDI resources How-To. (markt) fix Add a redirect to the web interface to the root of the Manager web application. (markt) fix Don't create sessions unnecessarily in the Manager application. (markt) fix Add a redirect to the web interface to the root of the Host Manager web application. (markt) fix Don't create sessions unnecessarily in the Host Manager application. (markt) Other fix Ensure JULI adapters JAR in Tomcat extras package does not include the LogFactoryImpl[$*] classes. Based on patch provided by Benjamin Gandon. (kkolinko) code Convert test classes to JUnit 4. (kkolinko) update 58596: Clarify the description in RUNNING.txt of how environment variables are used. (markt) update Update the NSIS Installer used to build the Windows Installers to version 2.50. (markt/kkolinko) add Add framework for client-server unit tests, porting it from Tomcat 7. Add support for running the tests with Apache Ant. (kkolinko) update Update to Tomcat Native Library version 1.1.34. (jfclere) update Remove support for Intel Itanium CPU (i64, IA-64) in the Windows installer, as the current release of Tomcat Native does not have binaries for that processor architecture. (jfclere)
2016-02-28 11:14:53 +01:00
TOMCAT_VER= 6.0.45
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
USERGROUP_PHASE= pre-install
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+= ${PKG_SYSCONFDIR.tomcat}
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:
Update of apache-tomcat to version 6.0.29 (and a little Makefile cosmetics) fixes two of the currently known security issues Upstream changelog: Tomcat 6.0.29 (jfclere) released 2010-07-22 Catalina add 48960: Add a new option to the SSI Servlet and SSI Filter to allow the disabling of the exec command. This is now disabled by default. Based on a patch by Yair Lenga. (markt) fix 49551: Allow default context.xml location to be specified using an absolute path. (markt) fix 49598: When session is changed and the session cookie is replaced, ensure that the new Set-Cookie header overwrites the old Set-Cookie header. (markt) fix Fix order when listing Webapp loader search URLs. (rjung) add Add support for *.jar pattern in VirtualWebappLoader. (kkolinko) Tomcat 6.0.28 (jfclere) released 2010-07-09 Catalina fix Arrange filter logic. (jfclere) fix 49230: Enhance JRE leak prevention listener with protection for the keep-alive thread started by sun.net.www.http.HttpClient. Patch provided by Rob Kooper. (markt) fix 49351: Fix possible NPe when embedding and no name is specified for the Service. (markt) fix 49424: Avoid NPE if client provides no data with a chunked POST request. (markt) fix 49414: Differentiate between request threads and application created threads when warning about still running threads when an application stops. (markt) fix 49443: Use remoteIpHeader rather than remoteIPHeader consistently. (markt) add Add property searchExternalFirst to WebappLoader. If set, the external repositories will be searched before the WEB-INF ones. (rjung) Cluster fix 49445: When session ID is changed after authentication, ensure the DeltaManager replicates the change in ID to the other nodes in the cluster. (kfujino) Webapps fix 49213: Grant permissions required by manager application when running under a security manager. (markt/kkolinko) fix 49436: Correct documented default for readonly attribute of the UserDatabase component. (markt) Tomcat 6.0.27 (jfclere) not released General update Update DBCP to 1.3. (markt) Catalina fix Fix CVE-2010-1157. Prevent possible disclosure of host name or IP address via the HTTP WWW-Authenticate header when using BASIC or DIGEST authentication. (markt) add Include context name when reporting memory leaks to aid root cause identification. (markt) fix Improve exception handling on session de-serialization to assist in identifying the root cause of 48007. (kkolinko) add 48379: Make session cookie name, domain and path configurable per context. (markt) fix 48589: Make JNDIRealm easier to extend. Based on a patch by Candid Dauth. (markt/kkolinko) fix 48629: Allow user names as well as DNs to be used with the nested role search. Add roleNested to the documentation. Patch provided by Felix Schumacher. (markt) fix 48661: Make error page behavior consistent, regardless of how the error page is defined. If a response has been committed, always include the error page. (markt) fix 48729: Return roles defined by both userRoleName and roleName mechanisms. Patch provided by 'eric'. Also make user's role list immutable.(markt) fix 48760: Fix potential multi-threading issue in static resource serving where multiple threads could try to use the the same InputStream. (markt) fix 48790: Fix thread safety issue in the count of the maximum number of active session. (markt/kkolinko) fix 48793: Make catalina.sh more robust to different return values on different platforms. Patch provided by Thomas GL. (markt) fix 48840: Swallow output (if any) from use of cd when determining $CATALINA_HOME in catalina.sh and tool-wrapper.sh scripts. Based on patch provided by mdietze. (markt/kkolinko) fix 48895: Make clearing of ThreadLocals that are causing memory leaks on web application stop, reload or undeploy configurable since the process of clearing them is not thread-safe. (markt) fix 48903: Fix deadlock in webapp class loader. (rjung) fix 48971: Make stopping of leaking Timer threads optional and disabled by default. (markt) fix 48976: Document JAVA_ENDORSED_DIRS in start-up scripts. Patch provided by Laurent Vaills. (markt) fix 48983: Improve debug logging for situations when RemoteIpValve is bypassed. Patch provided by Cyrille Le Clerc. (markt) fix 49018: Fix processing of time argument in the Expire sessions action in the Manager web application. (kkolinko) fix 49116: If session is already invalid, expire session to prevent memory leak. (kfujino) fix 49158: Ensure only one session cookie is returned for a single request. (markt/fhanik) fix 49245: Fix session expiration check in cross-context requests. (markt) fix 49398: ByteChunk.indexOf(String, int, int, int) could not find a string of length 1. (kkolinko) fix Fix possible overflows when calculating session statistics. (kkolinko) add Log unexpected exceptions when providing access to web application resources in ApplicationContext. (kkolinko) fix Improve exception handling in CatalinaShutdownHook. (kkolinko) add Expose properties of VirtualWebappLoader and WebappClassLoader via JMX. (rjung) Coyote fix 48839: Correctly handle HTTP header folding in the NIO connector. Patch suggested by Richa Baronia. (markt) fix 48843: Prevent possible deadlock for worker allocation in connectors. (kkolinko) fix 48843: Fix handling of add queues in AprEndpoint.Poller and AprEndpoint.Sendfile. Do not miss wakeups. (kkolinko) add 48862: Add support for the backlog parameter to the AJP connector. (pero/markt) fix 48917: Correct name of mod_jk module in ApacheConfig. Patch provided by Todd Hicks. (markt) fix 49095: AprEndpoint did not wakeup acceptors during shutdown when deferAccept option was enabled. Based on a patch provided by Ruediger Pluem. (kkolinko) add Use chunked encoding for http 1.1 requests with no content-length (regardless of keep-alive) so client can differentiate between complete and partial responses. (markt) fix Correct the SSL session timeout attribute name so the code agrees with the documentation. (markt) add CoyotePrincipal now implements Serializable. (fhanik) fix Enable the BIO AJP connector to run under a security manager. (markt) Jasper fix 45015: Correct a regression in quote handling caused by the re-factoring of attribute parsing. (markt) fix 48701: Add a system property to allow disabling enforcement of JSP.5.3. The specification recommends, but does not require, this enforcement. (kkolinko) fix 48737: Don't assume paths that start with /META-INF/... are always in JARs. This is not true for some IDEs. Patch provided by Fabrizio Giustina. (markt) fix 49081: Correctly handle EL expressions of the form #${...}. (markt) fix 49196: Avoid NullPointerException in PageContext.getErrorData() if an error-handling JSP page is called directly. (markt) Cluster fix 48717: When a node joins a cluster and it receives all the current sessions, ensure the sessionCreated event is fired if the Manager is configured to replicate session events. (markt) fix 48934: Previous fix to handle dropped connections incorrectly permanently disabled session replication. (fhanik) fix 49051: memberAlive is not called if member has not already existed in membership. (kfujino) fix 49151: Avoid ClassCastException in BackupManager#stop. (kfujino) fix 49170: Do not send duplicated session. (kfujino) fix Add missing messages and ensure cluster listeners log messages to correct logger. (markt) Webapps add Use underscores instead of spaces in anchor names in Tomcat documentation. (kkolinko) add Add support for displaying the Spring Security user name (if present) in the Manager application. (markt) update Improve the ChatServlet Comet example (/examples/jsp/chat/). (kkolinko) Other update Update to Commons Daemon 1.0.2. Use service launcher (procrun) from the Commons Daemon release. Do not keep a copy of it in our source tree. (mturk/kkolinko) update Update to NSIS 2.46. (kkolinko) fix 48990: Fix the skip.installer build property so if set, only the Windows installer is skipped. (markt) fix 49178: Provide in catalina.policy an example of additional permissions that might be needed for code located in $CATALINA_BASE/lib. (markt) fix 49236: Do not use indexing when packing Tomcat JARs. (kkolinko) fix Remove unused code from org.apache.tomcat.util.buf classes. (kkolinko) update Rearrange tomcat-juli.jar permissions and wrap long lines in the conf/catalina.policy file, to make the text more readable when cited in documentation. (kkolinko) fix Do not evaluate the execute.installer property when building a release. The skip.installer property is used instead. (kkolinko) Tomcat 6.0.26 (jfclere) released 2010-03-11 Catalina fix Close security hole in unreleased 6.0.25 by ensuring new find leaks functionality is protected by a security constraint. (kkolinko) fix 48831: Improve logging shutdown behaviour. Use Catalina's shutdown hook to shutdown JULI. This enables them to be shutdown in the correct order. Do not shutdown global handlers several times. (markt/kkolinko) Coyote fix 48584: Prevent the APR connector logging an error if the acceptor fails during shutdown since this is expected. (mturk) fix 48660: Using compression should not overwrite any Vary header set by a web application. (markt) Jasper fix 48371: Ensure generated servlet mappings are inserted at the correct location when using JspC and allow the option that controls this to be configured on the command line. Also allow the encoding of web.xml to be configured when using JspC and deprecate some unused JspC methods. (markt/kkolinko) fix 48498: Avoid ArrayIndexOutOfBoundsException triggered by a Java 6/7 XML parser bug. (markt/kkolinko) fix 48668: Additional fixes to ensure deferred syntax is handled correctly. (kkolinko) fix 48827: Correct a regression in the fix for 47977 that caused an incorrect non-empty body error to be reported for valid JSP documents. (markt) Webapps add Make changelog.xml be directly rendered as HTML by certain browsers. (kkolinko) add Add support for automated generation of TOC tables and for links to svn revisions to tomcat-docs.xsl in documentation. (kkolinko/fhanik) add Move Manager application JSPs that are not intended to be accessed directly under the WEB-INF directory. (kkolinko) fix Improve the messages displayed by the find leaks diagnostic in the Manager application. (kkolinko) Other fix Encode all property files using ascii escaped UTF-8. Also fixes deployment problem when using French locale. (jfclere/rjung) Tomcat 6.0.25 (jfclere) not released Catalina fix 48039: Return immediately if start() is called on an already started StandardService. (markt) fix 48109: Ensure InputStream is closed on error condition in web application class loader. (markt) fix 48179: Clean up dead code that was used to read tldCache file. (kkolinko) fix 48318: Handle case where WebDAV resource is in directory listing but is not accessible. (markt) add 48384: Add a per context xslt option for directory listings. Make the fallback options work as described in the documentation. (markt) fix 48577: Filter URL when displaying missing included page. (markt) fix 48612: Prevent exception on shutdown if the address attribute is specified for a connector. (markt) fix 48613: Further fixes to ensure APRLifecycleListener is only used if defined in server.xml. (fhanik) fix 48614: Correct JULI log file buffering so default behaviour is no buffering. (fhanik) fix 48625: Provide an option to exit if an error occurs during the initialization phase. (fhanik) fix 48645: Use specified encoding rather than null in calls to RequestUtil.URLDecode(byte[] bytes, String enc) (markt) fix 48653: Force request.secure and request.scheme to false and http if the X-Forwarded-Proto header has the value http. Patch provided by Cyrille Le Clerc. (markt) fix 48678: Remove duplicate server field from org.apache.catalina.startup.Catalina. (markt) fix 48694: Remove potential deadlock in web application class loader. (markt) add 48716: Provide additional configuration options for JULI. (markt) fix 48726: Prevent OOME when uploading large WAR files with the deployer. Patch provided by adam. (markt) add Improve memory leak protection by safely stopping threads started via java.util.Timer that an application starts but fails to stop and by clearing references retained due to the use of java.util.ResourceBundle. (markt) update Modify ThreadLocal memory leak detection to not report false positives and to simplify implementation. (markt/kkolinko) add Basic memory leak detection was added to the standard Host implementation and exposed via JMX to detect memory leaks on web application reload. (markt/kkolinko) Coyote update Update the native/APR library version bundled with Tomcat to 1.1.20. (kkolinko) Jasper add Add some debug logging to the compiler where exceptions were previously swallowed. (markt) fix 48170: Remove unnecessary synchronization that is causing issues under load. (markt) fix 48580: Prevent AccessControlException if first access is to a JSP that uses a FunctionMapper. (markt) fix 48582: Avoid NPE on background compilation failure. (markt) fix 48616: Don't declare or synchronize scripting variables for JSP fragments since they are scriptless. This is an alternative fix for 42390 that avoids both the original problem and the regression in the first fix. (kkolinko) fix 48627: Fix regression in re-factored EL parsing. Keep literals as literals and handle deferredSyntaxAllowedAsLiteral. (kkolinko) fix 48668: When parsing JSPs only parse EL as EL if EL is enabled else strings such as ${ will be silently dropped. (markt) fix Various EL TCK failures. (markt) Cluster fix Force a disconnect if an error occurs during replication such as a firewall dropping the connection. (fhanik) Webapps add Add new "Find leaks" command to the Manager application. It allows to detect web applications that have caused memory leaks on stop, reload or undeploy. (markt/kkolinko) Other fix Ensure files in conf directory have CRLF line endings when using the Windows installer. (kkolinko) fix Allow special characters recognized by the Windows command-line shell to be present in the names of CATALINA_HOME/_BASE and the current directory used to call the Tomcat scripts. (kkolinko) fix Don't use @Deprecated annotations in javax.servlet.jsp.JspContext since the specification does not include them in the API definition. (markt) add Improve the information in the JAR manifest files. (markt)
2010-09-19 16:32:04 +02:00
.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}
${CHOWN} -R ${TOMCAT_USER}:${TOMCAT_GROUP} \
${DESTDIR}${TOMCAT_HOME}/webapps
${CHOWN} ${TOMCAT_USER}:${TOMCAT_GROUP} \
${DESTDIR}${TOMCAT_HOME}/conf
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"