1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- adopt optionsNG

This commit is contained in:
Jason Helfman 2012-06-27 16:57:51 +00:00
parent 701f1cd68a
commit a934bb9c34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300102

View File

@ -15,8 +15,12 @@ DISTNAME= apache-tomcat-${PORTVERSION}
MAINTAINER= jgh@FreeBSD.org
COMMENT= Open-source Java web server by Apache, 5.5.x branch
OPTIONS= CRONOLOG "Use Cronolog for Log Processing" Off \
CRONOLOG_DEVEL "Use Cronlog-Devel for Log Processing" Off
OPTIONS_DEFINE= LOG
OPTIONS_SINGLE= LOG
OPTIONS_SINGLE_LOG= CRONOLOG CRONOLOG_DEVEL
LOG_DESC= Use Log Pre-Processor
CRONOLOG_DESC= Use Cronolog for Log Processing
CRONOLOG_DEVEL_DESC= Use Cronlog-Devel for Log Processing
DEPRECATED= EOL approaching, consider www/tomcat{6,7}
EXPIRATION_DATE=2012-12-31
@ -85,24 +89,20 @@ PLIST_SUB+= JAVA14=""
PLIST_SUB+= JAVA14="@comment "
.endif
.if defined(WITH_CRONOLOG)
.if ${PORT_OPTIONS:MCRONOLOG}
RUN_DEPENDS+= cronolog:${PORTSDIR}/sysutils/cronolog
.endif
.if defined(WITH_CRONOLOG_DEVEL)
.if ${PORT_OPTIONS:MCRONOLOG_DEVEL}
RUN_DEPENDS+= cronolog:${PORTSDIR}/sysutils/cronolog-devel
.endif
.if !( defined(WITH_CRONOLOG) || (WITH_CRONOLOG_DEVEL) )
.if empty(PORT_OPTIONS:MLOG)
LOG_ARGS?=">> \$${tomcat\%\%TOMCAT_VERSION\%\%_stdout_log} 2>> \$${tomcat\%\%TOMCAT_VERSION\%\%_stderr_log}"
.else
LOG_ARGS?="2>\&1 | ${LOCALBASE}/sbin/cronolog --link \$${tomcat\%\%TOMCAT_VERSION\%\%_catalina_base}/logs/catalina.out \$${tomcat\%\%TOMCAT_VERSION\%\%_catalina_base}/logs/catalina.\%Y_\%m_\%d.out >/dev/null 2>\&1 \&"
.endif
.if ( defined(WITH_CRONOLOG) && defined(WITH_CRONOLOG_DEVEL) )
BROKEN= You can only define one log pre-processor application.
.endif
pre-patch:
@${ECHO_MSG} "Installation settings:"
@${ECHO_MSG} " Destination directory: ${APP_HOME}"