1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/www/axis2/Makefile
Vladimir Druzenko b98c2f83e6 Mk/bsd.options.desc.mk: sort out TOMCAT options
1. Removed EOLed tomcat 6, 7 and 8.
2. Replaced tomcat10 with tomcat101.
3. Changed TOMCAT*_DESC to more correct.

Approved by:		arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D41054
MFH:			2023Q3
2023-07-18 20:45:19 +03:00

58 lines
2.1 KiB
Makefile

PORTNAME= axis2
PORTVERSION= 1.8.0
CATEGORIES= www java
MASTER_SITES= APACHE/axis/${PORTNAME}/java/core/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
MAINTAINER= ports@FreeBSD.org
COMMENT= Provides a Web Services,SOAP and WSDL engine from Apache
WWW= https://axis.apache.org/axis2/java/core/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= cpe zip
CPE_VENDOR= apache
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
NO_ARCH= yes
OPTIONS_SINGLE= AS
OPTIONS_SINGLE_AS= TOMCAT85 TOMCAT9 TOMCAT101
OPTIONS_DEFAULT= TOMCAT85
OPTIONS_DEFINE= EXAMPLES
TOMCAT85_VARS= APPHOME=${LOCALBASE}/apache-tomcat-8.5
TOMCAT85_RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat85
TOMCAT9_VARS= APPHOME=${LOCALBASE}/apache-tomcat-9.0
TOMCAT9_RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat9
TOMCAT101_VARS= APPHOME=${LOCALBASE}/apache-tomcat-10.1
TOMCAT101_RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat101
USE_JAVA= yes
SHAREOWN= www
SHAREGRP= www
PLIST_SUB+= APPHOME=${APPHOME:S|^${PREFIX}/||} \
PORTVERSION=${PORTVERSION}
do-install:
( ${MKDIR} ${STAGEDIR}${APPHOME}/webapps/${PORTNAME}/WEB-INF && cd ${WRKSRC}/webapp/WEB-INF && ${COPYTREE_SHARE} \* ${STAGEDIR}${APPHOME}/webapps/${PORTNAME}/WEB-INF )
( cd ${WRKSRC}/lib && ${COPYTREE_SHARE} \* ${STAGEDIR}${APPHOME}/webapps/${PORTNAME}/WEB-INF/lib )
( ${MKDIR} ${STAGEDIR}${APPHOME}/webapps/${PORTNAME}/axis2-web && cd ${WRKSRC}/webapp/axis2-web && ${COPYTREE_SHARE} \* ${STAGEDIR}${APPHOME}/webapps/${PORTNAME}/axis2-web )
( cd ${WRKSRC}/repository && ${COPYTREE_SHARE} \* ${STAGEDIR}${APPHOME}/webapps/${PORTNAME}/WEB-INF )
${MKDIR} ${STAGEDIR}${APPHOME}/webapps/${PORTNAME}/WEB-INF/conf
.for f in axis2.policy axis2.xml commons-logging.properties log4j2.xml
${INSTALL_DATA} ${WRKSRC}/conf/${f} ${STAGEDIR}${APPHOME}/webapps/${PORTNAME}/WEB-INF/conf/${f}.sample
.endfor
${MV} ${STAGEDIR}${APPHOME}/webapps/${PORTNAME}/WEB-INF/web.xml ${STAGEDIR}${APPHOME}/webapps/${PORTNAME}/WEB-INF/web.xml.sample
do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/samples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>