head	1.89;
access;
symbols
	RELEASE_8_3_0:1.78
	RELEASE_9_0_0:1.74
	RELEASE_7_4_0:1.64
	RELEASE_8_2_0:1.64
	RELEASE_6_EOL:1.61
	old_RELEASE_8_1_0:1.56
	old_RELEASE_7_3_0:1.55
	old_RELEASE_8_0_0:1.52
	old_RELEASE_7_2_0:1.50
	old_RELEASE_7_1_0:1.47
	old_RELEASE_6_4_0:1.47
	old_RELEASE_5_EOL:1.45
	old_RELEASE_7_0_0:1.45
	old_RELEASE_6_3_0:1.45
	old_PRE_XORG_7:1.42
	old_old_RELEASE_4_EOL:1.39
	old_old_RELEASE_6_2_0:1.38
	old_old_RELEASE_6_1_0:1.35
	old_old_RELEASE_5_5_0:1.35
	old_old_old_RELEASE_6_0_0:1.26
	old_old_old_old_RELEASE_5_4_0:1.24
	old_old_old_old_RELEASE_4_11_0:1.22
	old_old_old_old_RELEASE_5_3_0:1.20
	old_old_old_old_RELEASE_4_10_0:1.16
	old_old_old_old_RELEASE_5_2_1:1.6
	old_old_old_old_RELEASE_5_2_0:1.6
	old_old_old_old_RELEASE_4_9_0:1.2;
locks; strict;
comment	@# @;


1.89
date	2013.02.20.10.44.48;	author svnexp;	state Exp;
branches;
next	1.88;

1.88
date	2013.02.19.15.40.57;	author svnexp;	state Exp;
branches;
next	1.87;

1.87
date	2013.01.07.11.48.47;	author svnexp;	state Exp;
branches;
next	1.86;

1.86
date	2012.11.23.16.56.58;	author svnexp;	state Exp;
branches;
next	1.85;

1.85
date	2012.11.17.06.03.07;	author svnexp;	state Exp;
branches;
next	1.84;

1.84
date	2012.10.19.15.01.09;	author ale;	state Exp;
branches;
next	1.83;

1.83
date	2012.09.26.14.01.44;	author ale;	state Exp;
branches;
next	1.82;

1.82
date	2012.06.26.10.49.41;	author ale;	state Exp;
branches;
next	1.81;

1.81
date	2012.06.13.11.22.56;	author ale;	state Exp;
branches;
next	1.80;

1.80
date	2012.05.29.06.12.53;	author ale;	state Exp;
branches;
next	1.79;

1.79
date	2012.03.26.13.40.21;	author ale;	state Exp;
branches;
next	1.78;

1.78
date	2012.02.22.11.32.27;	author ale;	state Exp;
branches;
next	1.77;

1.77
date	2012.02.02.15.04.25;	author ale;	state Exp;
branches;
next	1.76;

1.76
date	2012.01.09.15.41.08;	author tabthorpe;	state Exp;
branches;
next	1.75;

1.75
date	2011.12.12.10.52.58;	author ale;	state Exp;
branches;
next	1.74;

1.74
date	2011.10.07.08.50.58;	author ale;	state Exp;
branches;
next	1.73;

1.73
date	2011.09.06.20.57.53;	author ale;	state Exp;
branches;
next	1.72;

1.72
date	2011.09.05.08.08.22;	author ale;	state Exp;
branches;
next	1.71;

1.71
date	2011.08.12.10.41.58;	author ale;	state Exp;
branches;
next	1.70;

1.70
date	2011.08.10.21.24.42;	author ale;	state Exp;
branches;
next	1.69;

1.69
date	2011.07.06.13.31.56;	author ale;	state Exp;
branches;
next	1.68;

1.68
date	2011.06.21.09.53.15;	author ale;	state Exp;
branches;
next	1.67;

1.67
date	2011.06.12.13.57.25;	author crees;	state Exp;
branches;
next	1.66;

1.66
date	2011.05.26.15.05.04;	author ale;	state Exp;
branches;
next	1.65;

1.65
date	2011.05.04.07.47.56;	author ale;	state Exp;
branches;
next	1.64;

1.64
date	2011.01.25.20.08.09;	author ale;	state Exp;
branches;
next	1.63;

1.63
date	2011.01.10.15.03.09;	author ale;	state Exp;
branches;
next	1.62;

1.62
date	2011.01.10.14.33.38;	author ale;	state Exp;
branches;
next	1.61;

1.61
date	2010.10.26.08.20.14;	author ale;	state Exp;
branches;
next	1.60;

1.60
date	2010.08.24.13.26.49;	author ale;	state Exp;
branches;
next	1.59;

1.59
date	2010.08.24.12.18.16;	author ale;	state Exp;
branches;
next	1.58;

1.58
date	2010.07.26.11.13.32;	author ale;	state Exp;
branches;
next	1.57;

1.57
date	2010.07.16.08.47.44;	author ale;	state Exp;
branches;
next	1.56;

1.56
date	2010.04.25.08.27.24;	author ale;	state Exp;
branches;
next	1.55;

1.55
date	2010.03.01.15.36.47;	author ale;	state Exp;
branches;
next	1.54;

1.54
date	2009.12.16.15.09.28;	author ale;	state Exp;
branches;
next	1.53;

1.53
date	2009.12.16.10.25.21;	author linimon;	state Exp;
branches;
next	1.52;

1.52
date	2009.07.29.17.13.50;	author ale;	state Exp;
branches;
next	1.51;

1.51
date	2009.07.29.13.33.19;	author ale;	state Exp;
branches;
next	1.50;

1.50
date	2008.12.30.03.21.58;	author nemoliu;	state Exp;
branches;
next	1.49;

1.49
date	2008.12.09.07.13.58;	author nemoliu;	state Exp;
branches;
next	1.48;

1.48
date	2008.12.08.06.43.50;	author linimon;	state Exp;
branches;
next	1.47;

1.47
date	2008.06.23.07.26.29;	author nemoliu;	state Exp;
branches;
next	1.46;

1.46
date	2008.06.06.14.07.15;	author edwin;	state Exp;
branches;
next	1.45;

1.45
date	2007.08.21.03.39.05;	author nemoliu;	state Exp;
branches;
next	1.44;

1.44
date	2007.07.25.02.14.49;	author nemoliu;	state Exp;
branches;
next	1.43;

1.43
date	2007.05.19.20.25.34;	author flz;	state Exp;
branches;
next	1.42;

1.42
date	2007.04.30.06.27.41;	author nemoliu;	state Exp;
branches;
next	1.41;

1.41
date	2007.03.24.14.22.33;	author pav;	state Exp;
branches;
next	1.40;

1.40
date	2007.02.18.12.56.15;	author delphij;	state Exp;
branches;
next	1.39;

1.39
date	2006.11.01.12.06.01;	author lawrance;	state Exp;
branches;
next	1.38;

1.38
date	2006.09.08.09.31.07;	author pav;	state Exp;
branches;
next	1.37;

1.37
date	2006.09.06.22.33.49;	author hq;	state Exp;
branches;
next	1.36;

1.36
date	2006.07.03.09.49.56;	author hq;	state Exp;
branches;
next	1.35;

1.35
date	2006.02.08.13.35.17;	author lawrance;	state Exp;
branches;
next	1.34;

1.34
date	2006.02.07.13.41.00;	author lawrance;	state Exp;
branches;
next	1.33;

1.33
date	2006.02.07.08.50.09;	author lawrance;	state Exp;
branches;
next	1.32;

1.32
date	2005.12.27.16.12.35;	author hq;	state Exp;
branches;
next	1.31;

1.31
date	2005.12.24.03.43.37;	author hq;	state Exp;
branches;
next	1.30;

1.30
date	2005.12.24.03.20.30;	author hq;	state Exp;
branches;
next	1.29;

1.29
date	2005.09.29.15.08.23;	author hq;	state Exp;
branches;
next	1.28;

1.28
date	2005.09.06.03.23.45;	author hq;	state Exp;
branches;
next	1.27;

1.27
date	2005.09.02.12.45.34;	author hq;	state Exp;
branches;
next	1.26;

1.26
date	2005.07.25.16.10.34;	author hq;	state Exp;
branches;
next	1.25;

1.25
date	2005.06.13.14.08.34;	author hq;	state Exp;
branches;
next	1.24;

1.24
date	2005.03.21.00.08.05;	author hq;	state Exp;
branches;
next	1.23;

1.23
date	2005.03.19.18.44.28;	author krion;	state Exp;
branches;
next	1.22;

1.22
date	2004.12.17.03.15.06;	author hq;	state Exp;
branches;
next	1.21;

1.21
date	2004.11.03.16.35.35;	author glewis;	state Exp;
branches;
next	1.20;

1.20
date	2004.09.01.19.37.51;	author glewis;	state Exp;
branches;
next	1.19;

1.19
date	2004.07.26.15.28.49;	author vanilla;	state Exp;
branches;
next	1.18;

1.18
date	2004.06.16.21.18.38;	author glewis;	state Exp;
branches;
next	1.17;

1.17
date	2004.05.13.22.36.23;	author linimon;	state Exp;
branches;
next	1.16;

1.16
date	2004.04.04.12.39.24;	author pav;	state Exp;
branches;
next	1.15;

1.15
date	2004.04.03.21.48.46;	author pav;	state Exp;
branches;
next	1.14;

1.14
date	2004.03.12.02.39.29;	author eik;	state Exp;
branches;
next	1.13;

1.13
date	2004.03.08.09.50.08;	author znerd;	state Exp;
branches;
next	1.12;

1.12
date	2004.02.24.01.46.41;	author jeh;	state Exp;
branches;
next	1.11;

1.11
date	2004.02.19.22.14.10;	author glewis;	state Exp;
branches;
next	1.10;

1.10
date	2004.02.04.05.09.29;	author marcus;	state Exp;
branches;
next	1.9;

1.9
date	2004.01.31.09.13.22;	author linimon;	state Exp;
branches;
next	1.8;

1.8
date	2004.01.02.12.31.11;	author znerd;	state Exp;
branches;
next	1.7;

1.7
date	2003.12.27.18.16.35;	author znerd;	state Exp;
branches;
next	1.6;

1.6
date	2003.11.20.19.59.02;	author glewis;	state Exp;
branches;
next	1.5;

1.5
date	2003.11.13.12.54.55;	author trevor;	state Exp;
branches;
next	1.4;

1.4
date	2003.09.26.05.54.44;	author daichi;	state Exp;
branches;
next	1.3;

1.3
date	2003.09.25.08.59.31;	author znerd;	state Exp;
branches;
next	1.2;

1.2
date	2003.09.08.14.12.22;	author znerd;	state Exp;
branches;
next	1.1;

1.1
date	2003.08.13.11.39.38;	author znerd;	state Exp;
branches;
next	;


desc
@@


1.89
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312620
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Alex Dupre <ale@@FreeBSD.org>
# $FreeBSD: head/www/tomcat7/Makefile 312620 2013-02-20 09:50:37Z ale $

PORTNAME=	tomcat
PORTVERSION=	7.0.37
PORTREVISION=	1
CATEGORIES=	www java
MASTER_SITES=	APACHE
MASTER_SITE_SUBDIR=	tomcat/tomcat-7/v${PORTVERSION}/bin
DISTNAME=	apache-${PORTNAME}-${PORTVERSION}

MAINTAINER=	ale@@FreeBSD.org
COMMENT=	Open-source Java web server by Apache, 7.x branch

LICENSE=	AL2

RUN_DEPENDS=	jsvc:${PORTSDIR}/devel/jakarta-commons-daemon

USE_JAVA=	yes
JAVA_VERSION=	1.6+
NO_BUILD=	yes

APP_SHORTNAME=	tomcat7

USE_RC_SUBR=	${APP_SHORTNAME}

TOMCAT_SUBDIR?=	${DISTNAME:R}
TOMCAT_HOME=	${PREFIX}/${TOMCAT_SUBDIR}
TOMCAT_CONF_FILES=	catalina.policy catalina.properties context.xml logging.properties server.xml tomcat-users.xml web.xml
CONF_EXT=	sample
PLIST_SUB=	T=${TOMCAT_SUBDIR} CONF_EXT=${CONF_EXT} \
		WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
LATEST_LINK=	${APP_SHORTNAME}

SUB_LIST=	TOMCAT_HOME=${TOMCAT_HOME} \
		TOMCAT_USER=${WWWOWN} \
		JAVA_HOME=${JAVA_HOME}

.include <bsd.port.pre.mk>

pre-patch:
	@@${ECHO_MSG} "Installation settings:"
	@@${ECHO_MSG} "   Destination directory:    ${TOMCAT_HOME}"
	@@${ECHO_MSG} "   Location of JDK:          ${JAVA_HOME}"
	@@${ECHO_MSG} "   Location of Java port:    ${JAVA_PORT}"

post-patch:
	@@${FIND} ${WRKSRC} -name '*.bat' -delete
.for f in ${TOMCAT_CONF_FILES}
	@@${MV} ${WRKSRC}/conf/${f} ${WRKSRC}/conf/${f}.${CONF_EXT}
.endfor

do-install:
	@@${ECHO_MSG} -n ">> Creating destination directory..."
	@@${MKDIR} ${TOMCAT_HOME}/logs
	@@${MKDIR} ${TOMCAT_HOME}/endorsed
	@@${ECHO_MSG} " [ DONE ]"

	@@${ECHO_MSG} -n ">> Copying files to destination directory..."
	@@${CP} -R ${WRKSRC}/* ${TOMCAT_HOME}
	@@${ECHO_MSG} " [ DONE ]"

.for f in ${TOMCAT_CONF_FILES}
.	if !exists(${TOMCAT_HOME}/conf/${f})
		@@${CP} ${TOMCAT_HOME}/conf/${f}.${CONF_EXT} ${TOMCAT_HOME}/conf/${f}
.	else
		@@${ECHO_MSG} ">> Preserving local configuration file: ${f} [ DONE ]"
.	endif
.endfor

	@@${ECHO_MSG} -n ">> Creating symlink to tools.jar..."
	@@${LN} -sf ${JAVA_HOME}/lib/tools.jar ${TOMCAT_HOME}/lib/tools.jar
	@@${ECHO_MSG} " [ DONE ]"

	@@${ECHO_MSG} -n ">> Fixing ownership settings..."
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${TOMCAT_HOME}/conf ${TOMCAT_HOME}/logs \
		${TOMCAT_HOME}/temp ${TOMCAT_HOME}/webapps ${TOMCAT_HOME}/work
	@@${ECHO_MSG} " [ DONE ]"

	@@${ECHO_MSG} -n ">> Fixing permissions..."
	@@${FIND} ${TOMCAT_HOME} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
	@@${ECHO_MSG} " [ DONE ]"

.include <bsd.port.post.mk>
@


1.88
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312563
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/www/tomcat7/Makefile 312563 2013-02-19 13:56:45Z ale $
d6 1
@


1.87
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310038
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310038 | ale | 2013-01-07 11:25:41 +0000 (Mon, 07 Jan 2013) | 2 lines
## SVN ##
## SVN ## Update to 7.0.34 release.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/www/tomcat7/Makefile 310038 2013-01-07 11:25:41Z ale $
d5 1
a5 1
PORTVERSION=	7.0.34
@


1.86
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 307685
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r307685 | ale | 2012-11-23 16:53:24 +0000 (Fri, 23 Nov 2012) | 4 lines
## SVN ##
## SVN ## Update to 7.0.33 release.
## SVN ##
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/www/tomcat7/Makefile 307685 2012-11-23 16:53:24Z ale $
d5 1
a5 1
PORTVERSION=	7.0.33
@


1.85
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/www/tomcat7/Makefile 306126 2012-10-19 15:01:09Z ale $
d5 1
a5 1
PORTVERSION=	7.0.32
@


1.84
log
@SVN rev 306126 on 2012-10-19 15:01:09Z by ale

Update to 7.0.32 release.

Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.83
log
@SVN rev 304911 on 2012-09-26 14:01:44Z by ale

Update to 7.0.30 release.
@
text
@d5 1
a5 1
PORTVERSION=	7.0.30
@


1.82
log
@Update to 7.0.28 release.
@
text
@d1 1
a1 4
# New ports collection makefile for:	apache-tomcat
# Date created:		14 Feb 2007
# Whom:			Nemo Liu <nemoliu@@FreeBSD.org>
#
a2 1
#
d5 1
a5 1
PORTVERSION=	7.0.28
@


1.81
log
@Add support for custom wait time and increase the default to 30 seconds.

PR:		ports/168442
Submitted by:	Bruno Ribeiro da Silva <contato@@brunoribeiro.org>
@
text
@d9 1
a9 2
PORTVERSION=	7.0.27
PORTREVISION=	1
d11 1
a11 1
MASTER_SITES=	${MASTER_SITE_APACHE}
@


1.80
log
@Update to 7.0.27 release.
@
text
@d10 1
@


1.79
log
@Complete overhaul of RC script:
- allow multiple instances of tomcat to be run with different settings
  [symlink the RC script with a different $(name) and set at least
   $(name)_catalina_base in rc.conf]
- use 'jsvc' to start/stop the process, with the following pros:
  - allow log rotation with newsyslog (signal SIGUSR1)
  - allow to bind to reserved ports (< 1024, like 80 and 443)
  - the process is automatically restarted if java crashes
  - simplification of RC script
- setup (default) logging in the same way as standard tomcat scripts do

Feature safe:	yes
@
text
@d9 1
a9 2
PORTVERSION=	7.0.26
PORTREVISION=	1
@


1.78
log
@Update to 7.0.26 release.
@
text
@d10 1
d20 2
a21 1
LICENSE_FILE=	${WRKSRC}/LICENSE
d40 2
a41 1
		TOMCAT_USER=${WWWOWN}
@


1.77
log
@Update to 7.0.25 release.
@
text
@d9 1
a9 1
PORTVERSION=	7.0.25
@


1.76
log
@- The proper acronym for Apache Software License 2 is really AL2
- Thanks to crees@@ for generating the initial patch

PR:		ports/163521
Submitted by:	Pedro Giffuni <pfg apache.org>
Hat:		portmgr
Exp run by:	pav
@
text
@d9 1
a9 1
PORTVERSION=	7.0.23
@


1.75
log
@Update to 7.0.23 release.
@
text
@d18 1
a18 1
LICENSE=	ASL
@


1.74
log
@Update to 7.0.22 release.
@
text
@d9 1
a9 1
PORTVERSION=	7.0.22
@


1.73
log
@Fix rc.d script.

Submitted by:	dougb
@
text
@d9 1
a9 2
PORTVERSION=	7.0.21
PORTREVISION=	1
@


1.72
log
@Update to 7.0.21 release.
@
text
@d10 1
@


1.71
log
@Update to 7.0.20 release.
@
text
@d9 1
a9 1
PORTVERSION=	7.0.20
@


1.70
log
@Update to 7.0.19 release.
@
text
@d9 1
a9 1
PORTVERSION=	7.0.19
@


1.69
log
@Add the ability to specify a different logger.
The tomcat7_stdout/stderr_log parameters have been
replaced by tomcat7_catalina_log
Use catalina.out as default log file and bump PORTREVISION.

PR:		ports/158350
Submitted by:	Jason Helfman <jhelfman@@experts-exchange.com>
@
text
@d9 1
a9 2
PORTVERSION=	7.0.16
PORTREVISION=	1
@


1.68
log
@Update to 7.0.16 release.
@
text
@d10 1
@


1.67
log
@- Rename CONF_FILES to avoid conflict with incoming feature

PR:		157166
Approved by:	rene (mentor), ale (maintainer timeout, 25 days)
@
text
@d9 1
a9 1
PORTVERSION=	7.0.14
@


1.66
log
@Update to 7.0.14 release.
@
text
@d31 1
a31 1
CONF_FILES=	catalina.policy catalina.properties context.xml logging.properties server.xml tomcat-users.xml web.xml
d50 1
a50 1
.for f in ${CONF_FILES}
d64 1
a64 1
.for f in ${CONF_FILES}
@


1.65
log
@Update to 7.0.12 release.
@
text
@d9 1
a9 1
PORTVERSION=	7.0.12
@


1.64
log
@Update to 7.0.6 stable release.

Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	7.0.6
@


1.63
log
@Fix plist.
@
text
@d9 1
a9 1
PORTVERSION=	7.0.5
d12 1
a12 1
MASTER_SITE_SUBDIR=	tomcat/tomcat-7/v${PORTVERSION}-beta/bin
@


1.62
log
@Update to 7.0.5 release.
Add LICENSE.
@
text
@d33 2
a34 1
PLIST_SUB=	T=${TOMCAT_SUBDIR} CONF_EXT=${CONF_EXT}
@


1.61
log
@Update to 7.0.4 release.
@
text
@d9 1
a9 1
PORTVERSION=	7.0.4
d18 3
@


1.60
log
@Update to 7.0.2 release and simplify the port.
@
text
@d9 1
a9 1
PORTVERSION=	7.0.2
@


1.59
log
@Forced commit to note repocopy from www/tomcat6 to www/tomcat7.

PR:		ports/148954
Submitted by:	ale
Repocopied by:	portmgr (marcus)
@
text
@d9 1
a9 1
PORTVERSION=	6.0.29
d12 1
a12 1
MASTER_SITE_SUBDIR=	tomcat/tomcat-6/v${PORTVERSION}/bin
d16 1
a16 1
COMMENT=	Open-source Java web server by Apache, 6.x branch
d19 2
a20 2
JAVA_VERSION=	1.5+
NO_BUILD=	YES
d22 1
a22 2
USE_RC_SUBR=	tomcat6.sh
SUB_FILES=	pkg-install
d24 4
a27 12
MAJOR_VER=	${PORTVERSION:R}
APP_HOME?=	${PREFIX}/${DISTNAME:R}
LOG_DIR=	${APP_HOME}/logs
APP_SHORTNAME=	${PORTNAME}${MAJOR_VER:S/.//}
TOMCAT_USER?=	www
TOMCAT_GROUP?=	www
HTTP_PORT?=	8180
SHUTDOWN_PORT?=	8005
AJP_1_3_PORT?=	8009
STDOUT_LOG=	${LOG_DIR}/stdout.log
STDERR_LOG=	${LOG_DIR}/stderr.log
JAR_FILE=	bin/bootstrap.jar
d30 1
a30 2
PLIST_SUB=	T=${APP_HOME:S/^${PREFIX}\///} CONF_EXT=${CONF_EXT} \
		WWWOWN=${TOMCAT_USER} WWWGRP=${TOMCAT_GROUP}
d33 2
a34 12
SUB_LIST=	AJP_1_3_PORT=${AJP_1_3_PORT} \
		APP_HOME=${APP_HOME} \
		APP_SHORTNAME=${APP_SHORTNAME} \
		GROUP=${TOMCAT_GROUP} \
		HTTP_PORT=${HTTP_PORT} \
		JAR_FILE=${JAR_FILE} \
		SHUTDOWN_PORT=${SHUTDOWN_PORT} \
		STDERR_LOG=${STDERR_LOG} \
		STDOUT_LOG=${STDOUT_LOG} \
		TOMCAT_HOME=${APP_HOME} \
		TOMCAT_VERSION=${MAJOR_VER:S/.//} \
		USER=${TOMCAT_USER}
d40 1
a40 1
	@@${ECHO_MSG} "   Destination directory:    ${APP_HOME}"
a42 6
	@@${ECHO_MSG} "   Running as (user/group):  ${TOMCAT_USER}/${TOMCAT_GROUP}"
	@@${ECHO_MSG} "   HTTP port:                ${HTTP_PORT}"
	@@${ECHO_MSG} "   Shutdown listener port:   ${SHUTDOWN_PORT}"
	@@${ECHO_MSG} "   AJP 1.3 connector port:   ${AJP_1_3_PORT}"
	@@${ECHO_MSG} "   Logfile stdout:           ${STDOUT_LOG}"
	@@${ECHO_MSG} "   Logfile stderr:           ${STDERR_LOG}"
d45 1
a45 3
	@@${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${WRKSRC}/conf/server.xml
	@@${RM} -f `${FIND} ${WRKSRC} -name '*.bat'` `${FIND} ${WRKSRC} -name '*.exe'` \
		`${FIND} ${WRKSRC} -name '*.orig'` `${FIND} ${WRKSRC} -name '*.bak'`
a49 3
pre-install:
	@@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL

d52 2
a53 3
	@@${MKDIR} ${APP_HOME}
	@@${MKDIR} ${LOG_DIR}
	@@${MKDIR} ${APP_HOME}/endorsed
d57 1
a57 1
	@@${CP} -R ${WRKSRC}/* ${APP_HOME}
d61 2
a62 2
.	if !exists(${APP_HOME}/conf/${f})
		@@${CP} ${APP_HOME}/conf/${f}.${CONF_EXT} ${APP_HOME}/conf/${f}
d69 1
a69 1
	@@${LN} -sf ${JAVA_HOME}/lib/tools.jar ${APP_HOME}/lib/tools.jar
d73 2
a74 2
	@@${CHOWN} -R ${TOMCAT_USER}:${TOMCAT_GROUP} ${APP_HOME}/conf ${APP_HOME}/logs \
		${APP_HOME}/temp ${APP_HOME}/webapps ${APP_HOME}/work
d78 1
a78 1
	@@${FIND} ${APP_HOME} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@


1.58
log
@Update to 6.0.29 release and implement "status" and "poll" rc commands.
@
text
@@


1.57
log
@Update to 6.0.28 release.

PR:		ports/148642
Submitted by:	L Pacey <lpfreebsd@@gmail.com>
@
text
@d9 1
a9 1
PORTVERSION=	6.0.28
@


1.56
log
@Update to 6.0.26 release.
@
text
@d9 1
a9 1
PORTVERSION=	6.0.26
@


1.55
log
@- Update to 6.0.24 release [1]
- Fix rc.d stop script [2]

PR:		ports/144274 [1], ports/140015 [2]
Submitted by:	wen [1], Christer Solskogen <christer.solskogen@@gmail.com> [2]
Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	6.0.24
@


1.54
log
@Take maintainership.
@
text
@d9 1
a9 2
PORTVERSION=	6.0.20
PORTREVISION=	1
@


1.53
log
@Reset nemoliu@@FreeBSD.org due to > 6 months of inactivity and no response
to email.

Hat:		portmgr
@
text
@d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
@


1.52
log
@Really fix shutdown script on all FreeBSD releases.
@
text
@d16 1
a16 1
MAINTAINER=	nemoliu@@FreeBSD.org
@


1.51
log
@Update to 6.0.20 release:
- fix rc.d script on shutdown
- fix package creation
- keep modified config files on deinstall
- other small enhancements and bugfixes

I'll take maintainership on September if nemoliu will not ping.

PR:		ports/129411, ports/136727
Submitted by:	Jonathan Chen <jonc@@chen.org.nz>,
		Mike Jakubik <mikej@@rogers.com>
Approved by:	maintainer timeout (months)
@
text
@d10 1
@


1.50
log
@- Fix for recursive permission correction

PR:	129544
Submitted by:	Martin <nakal@@web.de>
@
text
@d8 2
a9 2
PORTNAME=	apache-tomcat
PORTVERSION=	6.0.18
d13 1
d23 1
a23 1
SUB_FILES=	pkg-install pkg-deinstall
d26 1
a26 1
APP_HOME?=	${PREFIX}/${PKGBASE}${PORTVERSION:R}
d28 1
a28 2
APP_TITLE=	Apache Tomcat
APP_SHORTNAME=	tomcat${MAJOR_VER:S/.//}
a30 1
PW?=		/usr/sbin/pw
a35 5
PID_FILE=	/var/run/${APP_SHORTNAME}.pid
WRKDIR?=	${WRKDIRPREFIX}${.CURDIR}/work
WRKSRC=		${WRKDIR}/apache-tomcat-${PORTVERSION}
REPLACE_FILES=	${WRKSRC}/conf/server.xml
REPLACE_LIST_TEMP=	${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}
d37 4
a40 1
PLIST_SUB+=	T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${TOMCAT_USER} WWWGRP=${TOMCAT_GROUP}
a41 2
CONF_EXT=	sample
PLIST_SUB+=	CONF_EXT=${CONF_EXT}
a45 1
		APP_TITLE="${APP_TITLE}" \
a48 1
		PID_FILE=${PID_FILE} \
d71 5
a75 8
	@@${ECHO_MSG} -n ">> Removing unneeded files..."
	@@${RM} -f `${FIND} ${WRKSRC} -name '*.bat'` `${FIND} ${WRKSRC} -name '*.orig'` `${FIND} ${WRKSRC} -name '*.exe'`
	@@${ECHO_MSG} " [ DONE ]"

.for file in ${REPLACE_FILES}
	@@${ECHO_MSG} -n ">> Customizing `basename ${file}`..."
	@@${SED} ${REPLACE_LIST_TEMP} ${file} > ${WRKDIR}/`basename ${file}`
	@@${ECHO_MSG} " [ DONE ]"
d85 1
d88 1
a88 12
	@@${ECHO_MSG} ">> Copying files to destination directory..."
	@@${CP} ${WRKDIR}/server.xml ${WRKSRC}/conf/
	@@(cd ${WRKSRC};${FIND} conf -type f | ${SED} -e '/${CONF_EXT}/d') \
		| while read a; do \
			${MV} ${WRKSRC}/$$a ${WRKSRC}/$$a.${CONF_EXT}; \
			if [ ! -e "${APP_HOME}/$$a" ]; then \
				${ECHO_MSG} "	Installing local configuration file: ${APP_HOME}/$$a"; \
				${CP} ${WRKSRC}/$$a.${CONF_EXT} ${WRKSRC}/$$a; \
			else \
				${ECHO_MSG} "	Preserving local configuration file: ${APP_HOME}/$$a"; \
			fi; \
		done
d92 7
a98 4
	@@${ECHO_MSG} -n ">> Creating log files..."
	@@${INSTALL} -m 664 -o ${TOMCAT_USER} -g ${TOMCAT_GROUP} /dev/null ${STDOUT_LOG}
	@@${INSTALL} -m 664 -o ${TOMCAT_USER} -g ${TOMCAT_GROUP} /dev/null ${STDERR_LOG}
	@@${ECHO_MSG} " [ DONE ]"
d106 1
a106 1
		${APP_HOME}/temp ${APP_HOME}/work
d110 1
a110 1
	@@@@${FIND} ${APP_HOME} -type d -print0 | xargs -0 ${CHMOD} 755
a112 3
post-install:
	@@${ECHO_MSG} "${APP_TITLE} ${PORTVERSION} has been installed in ${APP_HOME}."

@


1.49
log
@- Update to 6.0.18
- Change maintainer
@
text
@d127 1
a127 1
	@@${CHMOD} 755 `${FIND} ${APP_HOME} -type d`
@


1.48
log
@Reset nemoliu due to maintainer-timeouts and no response to email.

Hat:	portmgr
@
text
@d9 1
a9 1
PORTVERSION=	6.0.16
d14 1
a14 1
MAINTAINER=	ports@@FreeBSD.org
@


1.47
log
@ - update to 6.0.16

PR:		ports/124565
Submitted by:	Nick Barkas <snb@@threerings.net>
@
text
@d14 1
a14 1
MAINTAINER=	nemoliu@@FreeBSD.org
@


1.46
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@d9 1
a9 2
PORTVERSION=	6.0.14
PORTREVISION=	1
@


1.45
log
@ - update to 6.0.14

Approved by:	delphij (mentor)
@
text
@d10 1
@


1.44
log
@ - update to 6.0.13

Approved by:	delphij (mentor)
@
text
@d9 1
a9 2
PORTVERSION=	6.0.13
PORTREVISION=	1
@


1.43
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@d9 1
a9 1
PORTVERSION=	6.0.10
@


1.42
log
@Use my @@FreeBSD.org address.

Approved by:	delphij (mentor)
@
text
@d10 1
@


1.41
log
@- Update to 6.0.10

PR:		ports/110762
Submitted by:	Nemo Liu <nemoliu@@gmail.com> (maintainer)
@
text
@d3 1
a3 1
# Whom:			Nemo Liu <nemoliu@@gmail.com>
d14 1
a14 1
MAINTAINER=	nemoliu@@gmail.com
@


1.40
log
@Add tomcat 6.0.9, Apache Tomcat is a web server written in 100% Pure Java.

Apache Tomcat version 6.0 implements the Servlet 2.5 and JavaServer Pages 2.1
specifications from the Java Community Process, and includes many additional
features that make it a useful platform for developing and deploying web app
-lications and web services.

Homepage:	http://tomcat.apache.org
Submitted by:	Nemo Liu <nemoliu at gmail dot com>
	(with some good bits from Michael Pope <ws10@@dtcorp.com.au> [1])
PR:		ports/109166, ports/109187
Repocopy by:	marcus (from www/tomcat55)
@
text
@d9 1
a9 1
PORTVERSION=	6.0.9
@


1.39
log
@Update to 5.5.20.

PR:		ports/104459
Submitted by:	Tomas Verbaitis <tomasv@@megalogika.lt>
@
text
@d1 3
a3 3
# New ports collection makefile for:	jakarta-tomcat-devel
# Date created:		Tue Aug 12 23:26:32 CST 2003
# Whom:			Kang Liu <liukang@@bjpu.edu.cn>
d8 2
a9 2
PORTNAME=	tomcat
PORTVERSION=	5.5.20
d12 1
a12 2
MASTER_SITE_SUBDIR=	tomcat/tomcat-5/v${PORTVERSION}/bin
DISTFILES=	apache-tomcat-${PORTVERSION}.tar.gz
d14 2
a15 2
MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Open-source Java web server by Apache, 5.5.x branch
d18 1
a18 1
JAVA_VERSION=	1.4+
d21 1
a21 1
USE_RC_SUBR=	tomcat55.sh
d38 2
a42 2
WRKDIR?=	${WRKDIRPREFIX}${.CURDIR}/work
WRKSRC=		${WRKDIR}/apache-tomcat-${PORTVERSION}
a64 7
.if ${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1.\2/} == "1.4"
DISTFILES+=	apache-tomcat-${PORTVERSION}-compat.tar.gz
PLIST_SUB+=	JAVA14=""
.else
PLIST_SUB+=	JAVA14="@@comment "
.endif

d118 1
a118 1
	@@${LN} -sf ${JAVA_HOME}/lib/tools.jar ${APP_HOME}/common/lib/tools.jar
d132 1
@


1.38
log
@- Work around an inability of rc.subr's _find_processes() to work with
  processes that show as [java] on ps output.  This should fix the rc script
  stop action for all folks.
@
text
@d9 1
a9 2
PORTVERSION=	5.5.17
PORTREVISION=	1
@


1.37
log
@Reset maintainer

Approved by:	maintainer
@
text
@d10 1
@


1.36
log
@Update to 5.5.17

PR:		98581
Submitted by:	Tomas Verbaitis <tomasv@@megalogika.lt>
Approved by:	maintainer timeout
@
text
@d15 1
a15 1
MAINTAINER=	liukang@@cn.freebsd.org
@


1.35
log
@- Make sure the rc script creates and chowns the PID file before running
  'daemon'.  No need for the port to create a PID file at install time
  (it would just be eaten by rc.d/cleanvar anyway).
- Use 'ps -o comm' to grab a suitable procname.  'ps -o command' is not
  reliable enough.
- Bump PORTREVISION since these changes fix broken rc script operation.

Approved by:	maintainer timeout (as part of previous update)
@
text
@d9 1
a9 2
PORTVERSION=	5.5.12
PORTREVISION=	3
d11 2
a12 2
MASTER_SITES=	${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR=	tomcat-5/v${PORTVERSION}/bin
@


1.34
log
@Since the procname of tomcat processes may vary due to javavmwrapper,
subvert the 'check_pid_file' procname check by setting it from the output
of 'ps'.

Remove the previous attempt at handling this problem, which was to put
a wildcard in procname.  I'll wear my pointy hat for that bogus hack.

Reported by:	Fritz Heinrichmeyer <Fritz.Heinrichmeyer@@FernUni-Hagen.de>
@
text
@d10 1
a10 1
PORTREVISION=	2
a138 6
	@@${ECHO_MSG} -n ">> Creating PID file..."
	@@${TOUCH} ${PID_FILE}
	@@${CHOWN} ${TOMCAT_USER}:${TOMCAT_GROUP} ${PID_FILE}
	@@${CHMOD} 0600 ${PID_FILE}
	@@${ECHO_MSG} " [ DONE ]"

@


1.33
log
@Clean up Tomcat 4, 4.1, 5, and 5.5 ports.

These changes apply to all ports, unless mentioned otherwise:

- Move jakarta-tomcat55 to tomcat55 (it is no longer a Jakarta project). [6]
- Improve the tomcat55 rc script.  Fix PID handling.  Improve the
  shutdown process.  Use USE_RC_SUBR to its full potential. [2]
- Backport tomcat55 rc script to the other tomcat ports.  This allows
  us to pass command line arguments to the JVM.  Noted in UPDATING.
  [1], [3], [4]
- Change ownership of installed files.  All files are now installed
  with default uid/gid (root:wheel) except for those in the conf/, logs/,
  temp/ and work/ directories. [5]
- No longer install tomcatXXctl binary.  rc scripts are more flexible
  and can be reconfigured without recompiling.
- Remove AUTO_START and STOP_TIMEOUT (replaced with rc tomcatXX_stop_timeout).
- Remove a long list of sed expressions in favour of SUB_LIST.
- Move pkg_{,de}install to files/pkg_{,de}install.in.  Add them to
  SUB_FILES.  Tidy up substitutions and remove hardcoded values.
- Some nonfunctional tidying and removal of Makefile cruft.

PR:		ports/38018 [1], ports/38020 [2], ports/74344 [3],
		ports/75143 [4], ports/83434 [5], ports/92692 [6]
Submitted by:	Ari Suutari <ari.suutari@@syncrontech.com> [1] [2],
		SimpleRezo Team <freebsd@@simplerezo.com> [3],
		Anton Yudin <toha@@toha.org.ua> [4],
		Jan Grant <jan.grant@@bristol.ac.uk> [5],
		lawrance [6]
Approved by:	Kang Liu <liukang@@cn.freebsd.org> (maintainer) [6]
		Maintainer timeouts on [1], [2], [3], [4], [5]
Big thanks to:	hq for the initial tomcat55 script
		jasonb on FreeNode #tomcat for packaging advice
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.32
log
@Fix build when using Java 1.4: the compatibility distfile was wrong

PR:		90913
Submitted by:	maintainer, lesi
Reported by:	Yamamoto Takao <takao@@oakat.org>,
		Ion-Mihai Tetcu <itetcu@@people.tecnik93.com>
@
text
@d8 1
a8 1
PORTNAME=	jakarta-tomcat
d10 1
d23 2
a24 5
USE_RC_SUBR=	yes

.if !defined(NOPORTDOCS)
MAN1=	${CONTROL_SCRIPT_NAME}.1
.endif
a26 1
WRKSRC=		${WRKDIR}/apache-tomcat-${PORTVERSION}
d29 1
a29 1
APP_TITLE=	Jakarta Tomcat
a30 6
CONTROL_SCRIPT_NAME=	${APP_SHORTNAME}ctl
CONTROL_SCRIPT=	${PREFIX}/bin/${CONTROL_SCRIPT_NAME}
CONTROL_SCRIPT_MANPAGE_TITLE=	${CONTROL_SCRIPT_NAME:U}
STARTUP_ORDER?=	020
STARTUP_SCRIPT_NAME=	${PORTNAME}${MAJOR_VER:S/.//}.sh
STARTUP_SCRIPT=	${PREFIX}/etc/rc.d/${STARTUP_ORDER}.${STARTUP_SCRIPT_NAME}
a35 1
WARP_PORT?=	8008
a38 2
AUTO_START?=	NO
STOP_TIMEOUT?=	5
d40 2
a41 3
REPLACE_FILES=	${PORTSDIR}/www/jakarta-tomcat4/files/daemonctl.c \
		${PORTSDIR}/www/jakarta-tomcat4/files/daemonctl.1 \
		${WRKSRC}/conf/server.xml
d44 1
d50 11
a60 2
SUB_FILES=	tomcat.sh
SUB_LIST=	TOMCAT_VERSION=${MAJOR_VER:S/.//} \
d62 2
a63 8
		USER=${TOMCAT_USER} \
		STDOUT_LOG=${STDOUT_LOG} \
		STDERR_LOG=${STDERR_LOG}

REPLACE_FILES+=	${PKGDIR}/pkg-install \
		${PKGDIR}/pkg-deinstall
PKGINSTALL=	${WRKDIR}/pkg-install
PKGDEINSTALL=	${WRKDIR}/pkg-deinstall
a76 2
	@@${ECHO_MSG} "   Control program location: ${CONTROL_SCRIPT}"
	@@${ECHO_MSG} "   Startup script location:  ${STARTUP_SCRIPT}"
a81 1
	@@${ECHO_MSG} "   WARP port:                ${WARP_PORT}"
a84 2
	@@${ECHO_MSG} "   Starting after install:   ${AUTO_START}"
	@@${ECHO_MSG} "   Stop time-out:            ${STOP_TIMEOUT} sec."
d91 3
a93 29
.for f in ${REPLACE_FILES}
	@@${ECHO_MSG} -n ">> Customizing `basename $f`..."
	@@${SED} \
	-e "/%%AJP_1_3_PORT%%/s//${AJP_1_3_PORT}/g" \
	-e "/%%APP_HOME%%/s//${APP_HOME:S/\//\\\//g}/g" \
	-e "/%%APP_SHORTNAME%%/s//${APP_SHORTNAME}/g" \
	-e "/%%APP_TITLE%%/s//${APP_TITLE}/g" \
	-e "/%%CONTROL_SCRIPT%%/s//${CONTROL_SCRIPT:S/\//\\\//g}/g" \
	-e "/%%CONTROL_SCRIPT_MANPAGE_TITLE%%/s//${CONTROL_SCRIPT_MANPAGE_TITLE}/g" \
	-e "/%%CONTROL_SCRIPT_NAME%%/s//${CONTROL_SCRIPT_NAME}/g" \
	-e "/%%GROUP%%/s//${TOMCAT_GROUP}/g" \
	-e "/%%HTTP_PORT%%/s//${HTTP_PORT}/g" \
	-e "/%%JAVA_CMD%%/s//bin\/java/g" \
	-e "/%%JAVA_HOME%%/s//${JAVA_HOME:S/\//\\\//g}/g" \
	-e "/%%JAR_FILE%%/s//${JAR_FILE:S/\//\\\//g}/g" \
	-e "/%%LOG_DIR%%/s//${LOG_DIR:S/\//\\\//g}/g" \
	-e "/%%PID_FILE%%/s//${PID_FILE:S/\//\\\//g}/g" \
	-e "/%%PORTNAME%%/s//${PORTNAME}/g" \
	-e "/%%PORTVERSION%%/s//${PORTVERSION}/g" \
	-e "/%%PREFIX%%/s//${PREFIX:S/\//\\\//g}/g" \
	-e "/%%SHUTDOWN_PORT%%/s//${SHUTDOWN_PORT}/g" \
	-e "/%%STARTUP_SCRIPT_NAME%%/s//${STARTUP_SCRIPT_NAME}/g" \
	-e "/%%STARTUP_SCRIPT%%/s//${STARTUP_SCRIPT:S/\//\\\//g}/g" \
	-e "/%%STDERR_LOG%%/s//${STDERR_LOG:S/\//\\\//g}/g" \
	-e "/%%STDOUT_LOG%%/s//${STDOUT_LOG:S/\//\\\//g}/g" \
	-e "/%%STOP_TIMEOUT%%/s//${STOP_TIMEOUT}/g" \
	-e "/%%USER%%/s//${TOMCAT_USER}/g" \
	-e "/%%WARP_PORT%%/s//${WARP_PORT}/g" \
	$f > ${WRKDIR}/`basename $f`
a120 21
	@@${ECHO_MSG} -n ">> Compiling and installing control program..."
	@@${SED} \
	-e "/%%JAVA_ARGS%%/s//\"-Dcatalina.home=${APP_HOME:S/\//\\\//g}\",/g" \
	-e "/%%JAR_ARGS%%/s//\"start\",/g" \
	${WRKDIR}/daemonctl.c > ${WRKDIR}/daemonctl_.c
	@@cd ${WRKDIR} && ${CC} -ansi -o ${CONTROL_SCRIPT_NAME} daemonctl_.c
	@@${CP} ${WRKDIR}/${CONTROL_SCRIPT_NAME} ${CONTROL_SCRIPT}
	@@${CHOWN} ${TOMCAT_USER}:${TOMCAT_GROUP} ${CONTROL_SCRIPT}
	@@${CHMOD} 6754 ${CONTROL_SCRIPT}
	@@${ECHO_MSG} " [ DONE ]"

	@@${ECHO_MSG} -n ">> Installing startup script..."
	@@${INSTALL_SCRIPT} ${WRKDIR}/tomcat.sh ${PREFIX}/etc/rc.d/jakarta-tomcat${MAJOR_VER:S/.//}.sh
	@@${ECHO_MSG} " [ DONE ]"

.if !defined(NOPORTDOCS)
	@@${ECHO_MSG} -n ">> Installing man pages..."
	@@${INSTALL_MAN} ${WRKDIR}/daemonctl.1 ${MANPREFIX}/man/man1/${CONTROL_SCRIPT_NAME}.1
	@@${ECHO_MSG} " [ DONE ]"
.endif

d131 2
a132 1
	@@${CHOWN} -R ${TOMCAT_USER}:${TOMCAT_GROUP} ${APP_HOME}
a146 7
	@@${ECHO_MSG} "If a user should be able to use ${CONTROL_SCRIPT_NAME}, then put this user in the group ${TOMCAT_GROUP}."
.if !defined(NOPORTDOCS)
	@@${ECHO_MSG} "Use 'man ${CONTROL_SCRIPT_NAME}' for information about starting and stopping ${APP_TITLE}."
.endif
.if ${AUTO_START} == "YES"
	@@${CONTROL_SCRIPT} start || true
.endif
@


1.31
log
@Update maintainer address

Requested by:	maintainer
@
text
@d13 1
a13 1
DISTNAME=	apache-tomcat-${PORTVERSION}
d77 1
a77 1
DISTFILES+=	${PORTNAME}-${PORTVERSION}-compat.tar.gz
@


1.30
log
@- Update to 5.5.12
- Add SHA256 info
- Update WWW

PR:		90380
Submitted by:	maintainer
@
text
@d15 1
a15 1
MAINTAINER=	liukang@@bjut.edu.cn
@


1.29
log
@- Allow user to specify a Tomcat deamon user/group through TOMCAT_USER and
  TOMCAT_GROUP (www/www by default)
- Make it possible to add user/group even if UID/GID number is reserved

PR:		85761
Submitted by:	Pawel Wieleba <P.Wieleba@@iem.pw.edu.pl>
Approved by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	5.5.9
d13 1
a13 1
DISTFILES=	${PORTNAME}-${PORTVERSION}.tar.gz
d29 1
a29 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
@


1.28
log
@Install ${PREFIX}/bin/tomcat55ctl even if rcNG script does not make use of it.
This should help users that are used to it.

As a side effect, this change will also fix the packing list.

Reported by:	pointyhat via kris
@
text
@d40 2
a41 2
USER=		www
GROUP=		www
d57 1
a57 1
PLIST_SUB+=	T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${USER} WWWGRP=${GROUP}
d65 1
a65 1
		USER=${USER} \
d69 5
d90 1
a90 1
	@@${ECHO_MSG} "   Running as (user/group):  ${USER}/${GROUP}"
a98 1
	@@PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
d115 1
a115 1
	-e "/%%GROUP%%/s//${GROUP}/g" \
d131 1
a131 1
	-e "/%%USER%%/s//${USER}/g" \
d137 3
d168 1
a168 1
	@@${CHOWN} ${USER}:${GROUP} ${CONTROL_SCRIPT}
d183 2
a184 2
	@@${INSTALL} -m 664 -o ${USER} -g ${GROUP} /dev/null ${STDOUT_LOG}
	@@${INSTALL} -m 664 -o ${USER} -g ${GROUP} /dev/null ${STDERR_LOG}
d192 1
a192 1
	@@${CHOWN} -R ${USER}:${GROUP} ${APP_HOME}
d201 1
a201 1
	@@${CHOWN} ${USER}:${GROUP} ${PID_FILE}
d207 1
a207 1
	@@${ECHO_MSG} "If a user should be able to use ${CONTROL_SCRIPT_NAME}, then put this user in the group ${GROUP}."
@


1.27
log
@- New RCng stratup script with no use of tomcat55ctl. Several extra flags are
  provided to customize the behavior of the Tomcat process. See the header of
  the script for further information.
- Fix permission issue with ${STDOUT_LOG} and ${STDERR_LOG}

PR:		38018 [1], 38020 [2], 59571 [3], 74344 [4], 75143 [5]
Submitted by:	Ari Suutari <ari.suutari@@syncrontech.com> [1] [2],
		ve <ve@@hardcore.lt> [3],
		SimpleRezo Team <freebsd@@simplerezo.com> [4],
		Anton Yudin <toha@@toha.org.ua> [5]
Discussed on:	freebsd-java@@
Reviewed by:	Jan Grant <Jan.Grant@@bristol.ac.uk>
Approved by:	maintainer timeout
@
text
@d160 3
@


1.26
log
@Allow the port to build/install/run with Java 1.4

PR:		81458
Submitted by:	Scott Balmos <scott.balmos@@utoledo.edu>
Approved by:	maintainer timeout
@
text
@d22 2
a53 1
		${PORTSDIR}/www/jakarta-tomcat4/files/startup.sh \
d62 7
a159 3
	@@${CP} ${WRKDIR}/${CONTROL_SCRIPT_NAME} ${CONTROL_SCRIPT}
	@@${CHOWN} ${USER}:${GROUP} ${CONTROL_SCRIPT}
	@@${CHMOD} 6754 ${CONTROL_SCRIPT}
d163 1
a163 2
	@@${CP} ${WRKDIR}/startup.sh ${STARTUP_SCRIPT}
	@@${CHMOD} 0544 ${STARTUP_SCRIPT}
d173 2
a174 2
	@@${INSTALL} /dev/null ${STDOUT_LOG}
	@@${INSTALL} /dev/null ${STDERR_LOG}
@


1.25
log
@Update to version 5.5.9: this port is a repocopy of www/jakarta-tomcat5 and it
now tracks the Tomcat 5.5.x branch

PR:		81458
Reported by:	Scott Balmos <scott.balmos@@utoledo.edu>
Submitted by:	Kang Liu <liukang@@bjut.edu.cn> (maintainer)
@
text
@d13 1
d19 1
a19 1
JAVA_VERSION=	1.5+
d60 1
d63 7
@


1.24
log
@- Fix a patching problem in Tomcat ports
- Add a patch-dependency on jakarta-tomcat4

PR:		79052
Submitted by:	maintainer
Obtained from:	des (for jakarta-tomcat41)
@
text
@d9 1
a9 1
PORTVERSION=	5.0.30
d15 1
a15 2
COMMENT=	Open-source Java web server by Apache, 5.0.x branch
PATCH_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/www/jakarta-tomcat4:pre-everything
d18 1
a18 1
JAVA_VERSION=	1.3+
d26 1
d52 1
a52 1
		conf/server.xml
d54 1
d86 1
a86 1
	@@(cd ${WRKSRC} && ${SED} \
d112 1
a112 1
	$f > ${WRKDIR}/`basename $f`)
@


1.23
log
@Remove hardcoded WRKDIRPREFIX.

Proposed by:	des
@
text
@d16 1
a26 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
d52 1
a52 1
		${WRKSRC}/conf/server.xml
d85 1
a85 1
	@@${SED} \
d111 1
a111 1
	$f > ${WRKDIR}/`basename $f`
@


1.22
log
@- Update to 5.0.30 [1]
- Use MAN1 in Makefile [1]
- Back up config files during deinstall [2]
- Fix pkg_add warnings [1]
- Add $FreeBSD$ tags where missing
- Use ECHO_MSG rather than ECHO_CMD

PR:		75152 [1], 43565 [2]
Submitted by:	maintainer [1], Brent Verner <brent@@rcfile.org> [2]
@
text
@a53 1
WRKDIR?=	${WRKDIRPREFIX}${.CURDIR}/work
@


1.21
log
@. Update to 5.0.29.

PR:		73275
Submitted by:	Kang Liu <liukang@@bjut.edu.cn> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	5.0.29
d21 4
d57 2
d62 15
a76 15
	@@${ECHO_CMD} "Installation settings:"
	@@${ECHO_CMD} "   Destination directory:    ${APP_HOME}"
	@@${ECHO_CMD} "   Control program location: ${CONTROL_SCRIPT}"
	@@${ECHO_CMD} "   Startup script location:  ${STARTUP_SCRIPT}"
	@@${ECHO_CMD} "   Location of JDK:          ${JAVA_HOME}"
	@@${ECHO_CMD} "   Location of Java port:    ${JAVA_PORT}"
	@@${ECHO_CMD} "   Running as (user/group):  ${USER}/${GROUP}"
	@@${ECHO_CMD} "   HTTP port:                ${HTTP_PORT}"
	@@${ECHO_CMD} "   Shutdown listener port:   ${SHUTDOWN_PORT}"
	@@${ECHO_CMD} "   WARP port:                ${WARP_PORT}"
	@@${ECHO_CMD} "   AJP 1.3 connector port:   ${AJP_1_3_PORT}"
	@@${ECHO_CMD} "   Logfile stdout:           ${STDOUT_LOG}"
	@@${ECHO_CMD} "   Logfile stderr:           ${STDERR_LOG}"
	@@${ECHO_CMD} "   Starting after install:   ${AUTO_START}"
	@@${ECHO_CMD} "   Stop time-out:            ${STOP_TIMEOUT} sec."
d80 1
a80 1
	@@${ECHO_CMD} -n ">> Removing unneeded files..."
d82 1
a82 1
	@@${ECHO_CMD} " [ DONE ]"
d85 1
a85 1
	@@${ECHO_CMD} -n ">> Customizing `basename $f`..."
d113 1
a113 1
	@@${ECHO_CMD} " [ DONE ]"
d117 1
a117 1
	@@${ECHO_CMD} -n ">> Creating destination directory..."
d120 1
a120 5
	@@${ECHO_CMD} " [ DONE ]"

	@@${ECHO_CMD} -n ">> Backing up configuration files..."
	@@${MV} ${APP_HOME}/conf ${APP_HOME}/conf.orig 2>/dev/null || true
	@@${ECHO_CMD} " [ DONE ]"
d122 12
a133 1
	@@${ECHO_CMD} -n ">> Copying files to destination directory..."
d135 1
a135 2
	@@${CP} ${WRKDIR}/server.xml ${APP_HOME}/conf/
	@@${ECHO_CMD} " [ DONE ]"
d137 1
a137 1
	@@${ECHO_CMD} -n ">> Compiling and installing control program..."
d146 1
a146 1
	@@${ECHO_CMD} " [ DONE ]"
d148 1
a148 1
	@@${ECHO_CMD} -n ">> Installing startup script..."
d151 1
a151 1
	@@${ECHO_CMD} " [ DONE ]"
d154 1
a154 1
	@@${ECHO_CMD} -n ">> Installing man pages..."
d156 1
a156 1
	@@${ECHO_CMD} " [ DONE ]"
d159 1
a159 1
	@@${ECHO_CMD} -n ">> Creating log files..."
d162 1
a162 1
	@@${ECHO_CMD} " [ DONE ]"
d164 1
a164 1
	@@${ECHO_CMD} -n ">> Creating symlink to tools.jar..."
d166 1
a166 1
	@@${ECHO_CMD} " [ DONE ]"
d168 1
a168 1
	@@${ECHO_CMD} -n ">> Fixing ownership settings..."
d170 1
a170 1
	@@${ECHO_CMD} " [ DONE ]"
d172 1
a172 1
	@@${ECHO_CMD} -n ">> Fixing permissions..."
d174 1
a174 1
	@@${ECHO_CMD} " [ DONE ]"
d176 1
a176 1
	@@${ECHO_CMD} -n ">> Creating PID file..."
d180 1
a180 1
	@@${ECHO_CMD} " [ DONE ]"
d183 2
a184 2
	@@${ECHO_CMD} "${APP_TITLE} ${PORTVERSION} has been installed in ${APP_HOME}."
	@@${ECHO_CMD} "If a user should be able to use ${CONTROL_SCRIPT_NAME}, then put this user in the group ${GROUP}."
d186 1
a186 1
	@@${ECHO_CMD} "Use 'man ${CONTROL_SCRIPT_NAME}' for information about starting and stopping ${APP_TITLE}."
@


1.20
log
@. Update to 5.0.28.

PR:		71240
Submitted by:	Kang Liu <liukang@@bjut.edu.cn> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	5.0.28
@


1.19
log
@1. update www/jakarta-tomcat5 to 5.0.27
2. move the orignal config file to ${APP_HOME}/conf.orig, I think it would be helpful if the config files have been changed.

PR:		ports/69617
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	5.0.27
@


1.18
log
@. Update to 5.0.25.
. Update maintainer's email address.

PR:		67623
Submitted by:	Kang Liu <liukang@@bjpu.edu.cn> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	5.0.25
d114 4
@


1.17
log
@Update to 5.0.24.

PR:		ports/66614
Submitted by:	Kang Liu <liukang@@bjpu.edu.cn> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	5.0.24
d14 1
a14 1
MAINTAINER=	liukang@@bjpu.edu.cn
@


1.16
log
@- Use MASTER_SITES_APACHE_JAKARTA

PR:		ports/65158
Submitted by:	Kang Liu <liukang@@bjpu.edu.cn> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	5.0.19
d12 1
a12 1
MASTER_SITE_SUBDIR=	tomcat-5/v${PORTVERSION}/bin 
@


1.15
log
@- Convert to bsd.java.mk 2.0 macros

PR:		ports/65118
Submitted by:	Kang Liu <liukang@@bjpu.edu.cn> (maintainer)
@
text
@d11 2
a12 3
MASTER_SITES=	http://www.apache.org/dist/jakarta/tomcat-5/v${PORTVERSION}/bin/ \
		http://apache.lemon4ssc.org/dist/jakarta/tomcat-5/v${PORTVERSION}/bin/ \
		http://distfiles.coredump.cn/
@


1.14
log
@remove duplicate LATEST_LINK

PR:		64134
Submitted by:	Kang Liu <liukang@@bjpu.edu.cn>
@
text
@d18 2
a19 1
USE_JAVA=	1.3+
@


1.13
log
@Set LATEST_LINK.

Reported by:	kris
@
text
@a19 1
LATEST_LINK=	jakarta-tomcat5
@


1.12
log
@1. jakarta-tomcat3,4,41,5 has the same PORTNAME and didn't set LATEST_LINK in
their Makefile.It may cause tomcat5 to conflict with other tomcat(s).
2. Replace spaces by tab

PR:		63209
Submitted by:	MAINTAINER
@
text
@d20 1
@


1.11
log
@. Update jakarta-tomcat5 to 5.0.19
. Add SIZE in distinfo

PR:		63062
Submitted by:	Kang Liu <liukang@@bjpu.edu.cn> (maintainer)
@
text
@d51 2
a52 1
PLIST_SUB+=     T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${USER} WWWGRP=${GROUP}
@


1.10
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 1)
@
text
@d9 1
a9 2
PORTVERSION=	5.0.18
PORTREVISION=	1
@


1.9
log
@1.Update www/jakarta-tomcat to 5.0.18.
Changelog: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html
2.Fix wrong url in the 2nd master site

PR:		ports/61767
Submitted by:	Kang Liu <liukang@@bjpu.edu.cn> (maintainer)
@
text
@d10 1
@


1.8
log
@Fixed name of PID file in pkg-deinstall.
Bumped PORTREVISION.

PR:		60781
Submitted by:	Kang Liu <liukang@@bjpu.edu.cn>
@
text
@d9 1
a9 2
PORTVERSION=	5.0.16
PORTREVISION=	1
d12 1
a12 1
		http://apache.lemon4ssc.org/dist/jakarta/tomcat-5/v{PORTVERSION}/bin/ \
@


1.7
log
@Update to 5.0.16.

Submitted by:	maintainer
PR:		60036
@
text
@d10 1
@


1.6
log
@. Update to 5.0.14

PR:		59480
Submitted by:	Angelo Turetta <aturetta@@commit.it>
Approved by:	"Kang Liu" <liukang@@bjpu.edu.cn> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	5.0.14
d11 2
a12 2
MASTER_SITES=	http://www.apache.org/dist/jakarta/tomcat-5/v${PORTVERSION}-beta/bin/ \
		http://apache.lemon4ssc.org/dist/jakarta/tomcat-5/v{PORTVERSION}-beta/bin/ \
d18 1
a18 1
USE_JAVA=	1.4+
a173 1
	@@${ECHO_CMD} "Using Tomcat 5.x in a production environment is NOT recommended!"
@


1.5
log
@Use the FIND and XARGS macros introduced in bsd.port.mk 1.391.
@
text
@d9 1
a9 2
PORTVERSION=	5.0.12
PORTREVISION=	1
@


1.4
log
@fix: www/jakarta-tomcat5
  - fix pkg permission and master_sites problem

PR:		57234
Submitted by:	Kang Liu <liukang@@bjpu.edu.cn> (maintainer)
Pointed out by:	Angelo Turetta
@
text
@d157 1
a157 1
	@@${CHMOD} 755 `find ${APP_HOME} -type d`
@


1.3
log
@Update to 5.0.12.

PR:		56764
Submitted by:	SADA Kenji <sada@@BSDclub.org>
Approved by:	maintainer
@
text
@d10 1
d13 1
a13 1
		http://apache.lemon4ssc.org/dist/jakarta/tomcat-5/v{PORTVERSION}-beta/bin \
a25 1
PLIST_SUB+=	T=${APP_HOME:S/^${PREFIX}\///}
d52 1
a52 1

@


1.2
log
@Update to 5.0.10.

PR:		56581
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	5.0.10
d11 3
a13 1
MASTER_SITES=	http://www.apache.org/dist/jakarta/tomcat-5/v${PORTVERSION}-alpha/bin/
@


1.1
log
@New port: Jakarta Tomcat 5.x.
See:
http://jakarta.apache.org/site/news.html#20030804.1
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html

PR:		55502
Submitted by:	Kang Liu <lazykang@@hotmail.com>
@
text
@d9 1
a9 1
PORTVERSION=	5.0.6
@

