pkgsrc/www/apache-tomcat85/Makefile
otis fed47159a2 www/apache-tomcat85: Update to 8.5.58
Changes for 8.5.58:
  - For requests containing the Expect: 100-continue header, optional
    support has been added to delay sending an intermediate 100 status
    response until the servlet reads the request body, allowing the
    servlet the opportunity to respond without asking for the request
    body. Based on a pull request by malaysf.
  - Add support for a read idle timeout and a write idle timeout to the
    WebSocket session via custom properties in the user properties
    instance associated with the session. Based on a pull request by
    sakshamverma.
  - Update the packaged version of the Tomcat Native Library to 1.2.25

Changes for 8.5.57:
  - Improvements to the creation of OSGi manifests.
  - Reduce the memory footprint of closed HTTP/2 streams

Changes for 8.5.56:
  - Add support for ALPN on recent OpenJDK 8 releases.
  - Add support for the CATALINA_OUT_CMD environment variable that
    defines a command to which captured stdout and stderr will be
    redirected. For use with, for example, rotatelogs. Patch provided by
    Harald Dunkel.
  - Be more flexible with respect to the ordering of groups, roles and
    users in the tomcat-users.xml file.

Changes for 8.5.55:
  - Improve the handling of requests that use an expectation. Do not
    disable keep-alive where the response has a non-2xx status code but
    the request body has been fully read.
  - Change default value separator for property replacement to ":-" due
    to possible conflicts. The syntax is now "${name:-default}".
  - Update the packaged version of the Tomcat Native Library to 1.2.24.

For full list of changes see
https://tomcat.apache.org/tomcat-8.5-doc/changelog.html
2020-10-05 12:19:13 +00:00

98 lines
2.8 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2020/10/05 12:19:13 otis Exp $
#
DISTNAME= apache-tomcat-${TOMCAT_VER}
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_APACHE:=tomcat/tomcat-8/v${TOMCAT_VER}/bin/}
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://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= 7
USE_TOOLS+= pax
.include "../../mk/bsd.prefs.mk"
TOMCAT_VER= 8.5.58
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"