mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
- Add cronolog-devel as an optional log processor
PR: ports/153505 Submitted by: Jason Helfman <jhelfman at experts-exchange.com> (maintainer) Approved by: wxs (mentor)
This commit is contained in:
parent
6630e249ee
commit
7efaa3d13b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267528
@ -16,7 +16,8 @@ DISTFILES= apache-tomcat-${PORTVERSION}.tar.gz
|
||||
MAINTAINER= jhelfman@experts-exchange.com
|
||||
COMMENT= Open-source Java web server by Apache, 5.5.x branch
|
||||
|
||||
OPTIONS= CRONOLOG "Use Cronolog for Tomcat Log Processing" Off
|
||||
OPTIONS= CRONOLOG "Use Cronolog for Log Processing" Off \
|
||||
CRONOLOG_DEVEL "Use Cronlog-Devel for Log Processing" Off
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION?= 1.4+
|
||||
@ -82,17 +83,28 @@ PLIST_SUB+= JAVA14="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CRONOLOG)
|
||||
RUN_DEPENDS+= cronolog:${PORTSDIR}/sysutils/cronolog
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CRONOLOG_DEVEL)
|
||||
RUN_DEPENDS+= cronolog:${PORTSDIR}/sysutils/cronolog-devel
|
||||
.endif
|
||||
|
||||
.if ( defined(WITH_CRONOLOG) || (WITH_CRONOLOG_DEVEL) )
|
||||
LOG_PROCESSOR?= ${LOCALBASE}/sbin/cronolog
|
||||
LOG_PROCESSOR_DIRECTIVES?= "\$$CATALINA_OUT \$$CATALINA_BASE/logs/catalina.out.\%Y_\%m_\%d.out"
|
||||
LOG_PROCESSOR_OPTS?= --link
|
||||
REDIRECT?= "2\>\&1"
|
||||
SUB_LIST+= LOG_PROCESSOR=${LOG_PROCESSOR} \
|
||||
LOG_PROCESSOR_DIRECTIVES=${LOG_PROCESSOR_DIRECTIVES} \
|
||||
LOG_PROCESSOR_OPTS=${LOG_PROCESSOR_OPTS} \
|
||||
REDIRECT=${REDIRECT}
|
||||
RUN_DEPENDS+= cronolog:${PORTSDIR}/sysutils/cronolog
|
||||
LOG_PROCESSOR_DIRECTIVES?= "\$$CATALINA_OUT \$$CATALINA_BASE/logs/catalina.out.\%Y_\%m_\%d.out"
|
||||
LOG_PROCESSOR?= ${LOCALBASE}/sbin/cronolog
|
||||
LOG_PROCESSOR_OPTS?= --link
|
||||
.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}"
|
||||
@ -106,7 +118,7 @@ pre-patch:
|
||||
@${ECHO_MSG} " Logfile stderr: ${STDERR_LOG}"
|
||||
|
||||
post-patch:
|
||||
.if defined(WITH_CRONOLOG)
|
||||
.if ( defined(WITH_CRONOLOG) || (WITH_CRONOLOG_DEVEL) )
|
||||
@cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/logprocessor-cronolog
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user