4e3fe60565
- Don't echo automatic actions unlike other manual actions - Don't perform ${RM} -R because the OPTIONS system takes @comment parts in pkg-plist into account, poudriere build does not complain. - Don't provide samples for XML schema files, these are NOT intended to be modified by the user PR: 243648 Submitted by: Michael Osipov <michael.osipov siemens com> Approved by: VVD <vvd unislabs com> Approved by: ports-secteam (blanket: ports compliance, bugfixes)
72 lines
2.1 KiB
Makefile
72 lines
2.1 KiB
Makefile
# Created by: Alex Dupre <ale@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tomcat
|
|
PORTVERSION= 8.5.49
|
|
PORTREVISION= 1
|
|
CATEGORIES= www java
|
|
MASTER_SITES= APACHE/${PORTNAME}/${PORTNAME}-${PORTVERSION:C/([0-9])(.*)/\1/}/v${PORTVERSION}/bin
|
|
PKGNAMESUFFIX= 85
|
|
DISTNAME= apache-${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= vvd@unislabs.com
|
|
COMMENT= Open-source Java web server by Apache, 8.5.x branch
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= jsvc:devel/apache-commons-daemon
|
|
|
|
USES= cpe
|
|
CPE_VENDOR= apache
|
|
USE_JAVA= yes
|
|
USE_RC_SUBR= ${PKGBASE:C/-/_/}
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
PLIST_SUB= T=${TOMCAT_SUBDIR} \
|
|
WWWOWN=${WWWOWN} \
|
|
WWWGRP=${WWWGRP}
|
|
SUB_LIST= TOMCAT_HOME=${TOMCAT_HOME} \
|
|
TOMCAT_USER=${WWWOWN} \
|
|
JAVA_HOME=${JAVA_HOME}
|
|
|
|
OPTIONS_DEFINE= HOST_MANAGER MANAGER DOCS EXAMPLES ROOT
|
|
OPTIONS_DEFAULT= HOST_MANAGER MANAGER ROOT
|
|
OPTIONS_SUB= yes
|
|
|
|
DOCS_DESC= Install Documentation web application
|
|
EXAMPLES_DESC= Install Examples web application
|
|
HOST_MANAGER_DESC= Install Host Manager application
|
|
MANAGER_DESC= Install Manager web application
|
|
ROOT_DESC= Install default ROOT web application
|
|
|
|
TOMCAT_SUBDIR?= ${DISTNAME:R}
|
|
TOMCAT_HOME= ${PREFIX}/${TOMCAT_SUBDIR}
|
|
|
|
post-patch:
|
|
@${RM} ${WRKSRC}/bin/commons-daemon-native.tar.gz ${WRKSRC}/bin/commons-daemon.jar ${WRKSRC}/bin/tomcat-native.tar.gz
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g; s|%%JAVAJARDIR%%|${JAVAJARDIR}|g' ${WRKSRC}/bin/daemon.sh
|
|
@${FIND} ${WRKSRC} -name '*.bak' -delete -o -name '*.orig' -delete
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${TOMCAT_HOME}/logs
|
|
@${MKDIR} ${STAGEDIR}${TOMCAT_HOME}/endorsed
|
|
@${CP} -R ${WRKSRC}/* ${STAGEDIR}${TOMCAT_HOME}
|
|
|
|
post-install:
|
|
@${RM} ${STAGEDIR}${TOMCAT_HOME}/bin/*.bat
|
|
@(cd ${STAGEDIR}${TOMCAT_HOME}/conf &&\
|
|
for f in $$(find . -type f -not -name '*.xsd'); do ${MV} $$f $$f.sample; done)
|
|
|
|
post-install-HOST_MANAGER-on:
|
|
@(cd ${STAGEDIR}${TOMCAT_HOME}/webapps &&\
|
|
for f in host-manager/META-INF/context.xml host-manager/WEB-INF/web.xml; do \
|
|
${MV} $$f $$f.sample; done)
|
|
|
|
post-install-MANAGER-on:
|
|
@(cd ${STAGEDIR}${TOMCAT_HOME}/webapps &&\
|
|
for f in manager/META-INF/context.xml manager/WEB-INF/web.xml; do \
|
|
${MV} $$f $$f.sample; done)
|
|
|
|
.include <bsd.port.mk>
|