head	1.37;
access;
symbols
	RELEASE_8_0_0:1.36
	RELEASE_7_2_0:1.36
	RELEASE_7_1_0:1.34
	RELEASE_6_4_0:1.34
	RELEASE_5_EOL:1.33
	RELEASE_7_0_0:1.33
	RELEASE_6_3_0:1.33
	PRE_XORG_7:1.32
	RELEASE_4_EOL:1.30
	RELEASE_6_2_0:1.30
	RELEASE_6_1_0:1.27
	RELEASE_5_5_0:1.27
	RELEASE_6_0_0:1.24
	RELEASE_5_4_0:1.24
	RELEASE_4_11_0:1.22
	RELEASE_5_3_0:1.20
	RELEASE_4_10_0:1.16
	RELEASE_5_2_1:1.6
	RELEASE_5_2_0:1.6
	RELEASE_4_9_0:1.2;
locks; strict;
comment	@# @;


1.37
date	2009.12.10.13.22.20;	author pav;	state dead;
branches;
next	1.36;

1.36
date	2008.12.12.13.20.46;	author pav;	state Exp;
branches;
next	1.35;

1.35
date	2008.12.08.06.43.49;	author linimon;	state Exp;
branches;
next	1.34;

1.34
date	2008.06.06.14.06.58;	author edwin;	state Exp;
branches;
next	1.33;

1.33
date	2007.05.19.20.25.04;	author flz;	state Exp;
branches;
next	1.32;

1.32
date	2007.04.30.06.27.41;	author nemoliu;	state Exp;
branches;
next	1.31;

1.31
date	2007.04.03.17.39.18;	author jmelo;	state Exp;
branches;
next	1.30;

1.30
date	2006.09.11.12.56.36;	author lawrance;	state Exp;
branches;
next	1.29;

1.29
date	2006.09.08.09.31.07;	author pav;	state Exp;
branches;
next	1.28;

1.28
date	2006.09.05.07.06.16;	author linimon;	state Exp;
branches;
next	1.27;

1.27
date	2006.02.08.13.35.17;	author lawrance;	state Exp;
branches;
next	1.26;

1.26
date	2006.02.07.13.41.00;	author lawrance;	state Exp;
branches;
next	1.25;

1.25
date	2006.02.07.08.50.08;	author lawrance;	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.37
log
@- Remove expired port jakarta-tomcat5
@
text
@# 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>
#
# $FreeBSD: ports/www/jakarta-tomcat5/Makefile,v 1.36 2008/12/12 13:20:46 pav Exp $
#

PORTNAME=	jakarta-tomcat
PORTVERSION=	5.0.30
PORTREVISION=	7
CATEGORIES=	www java
MASTER_SITES=	${MASTER_SITE_APACHE_TOMCAT}
MASTER_SITE_SUBDIR=	tomcat-5/v${PORTVERSION}/bin

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

USE_JAVA=	yes
JAVA_VERSION=	1.3+
NO_BUILD=	YES

DEPRECATED=	Old version, consider using www/tomcat55 or www/tomcat6 instead
EXPIRATION_DATE=2009-01-12

USE_RC_SUBR=	tomcat50.sh
SUB_FILES=	pkg-install pkg-deinstall

MAJOR_VER=	${PORTVERSION:R}
APP_HOME?=	${PREFIX}/${PKGBASE}${PORTVERSION:R}
LOG_DIR=	${APP_HOME}/logs
APP_TITLE=	Jakarta Tomcat
APP_SHORTNAME=	tomcat${MAJOR_VER:S/.//}
TOMCAT_USER?=	www
TOMCAT_GROUP?=	www
PW?=		/usr/sbin/pw
HTTP_PORT?=	8180
SHUTDOWN_PORT?=	8005
AJP_1_3_PORT?=	8009
STDOUT_LOG=	${LOG_DIR}/stdout.log
STDERR_LOG=	${LOG_DIR}/stderr.log
PID_FILE=	/var/run/${APP_SHORTNAME}.pid
REPLACE_FILES=	${WRKSRC}/conf/server.xml
REPLACE_LIST_TEMP=	${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}
JAR_FILE=	bin/bootstrap.jar
WRKDIR?=	${WRKDIRPREFIX}${.CURDIR}/work
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_SUB+=	T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${TOMCAT_USER} WWWGRP=${TOMCAT_GROUP}
LATEST_LINK=	${APP_SHORTNAME}
CONF_EXT=	sample
PLIST_SUB+=	CONF_EXT=${CONF_EXT}

SUB_LIST=	AJP_1_3_PORT=${AJP_1_3_PORT} \
		APP_HOME=${APP_HOME} \
		APP_SHORTNAME=${APP_SHORTNAME} \
		APP_TITLE="${APP_TITLE}" \
		GROUP=${TOMCAT_GROUP} \
		HTTP_PORT=${HTTP_PORT} \
		JAR_FILE=${JAR_FILE} \
		JAVA_HOME=${JAVA_HOME} \
		PID_FILE=${PID_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}

USE_DOS2UNIX=	webapps/jsp-examples/jsp2/jspx/textRotate.jspx \
		webapps/jsp-examples/jsp2/el/functions.jsp \
		webapps/jsp-examples/jsp2/el/implicit-objects.jsp

.include <bsd.port.pre.mk>

pre-patch:
	@@${ECHO_MSG} "Installation settings:"
	@@${ECHO_MSG} "   Destination directory:    ${APP_HOME}"
	@@${ECHO_MSG} "   Location of JDK:          ${JAVA_HOME}"
	@@${ECHO_MSG} "   Location of Java port:    ${JAVA_PORT}"
	@@${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}"

post-patch:
	@@${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 ]"
.endfor

pre-install:
	@@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL

do-install:
	@@${ECHO_MSG} -n ">> Creating destination directory..."
	@@${MKDIR} ${APP_HOME}
	@@${MKDIR} ${LOG_DIR}
	@@${ECHO_MSG} " [ DONE ]"

	@@${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
	@@${CP} -R ${WRKSRC}/* ${APP_HOME}
	@@${ECHO_MSG} " [ DONE ]"

	@@${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 ]"

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

	@@${ECHO_MSG} -n ">> Fixing ownership settings..."
	@@${CHOWN} -R ${TOMCAT_USER}:${TOMCAT_GROUP} ${APP_HOME}/conf ${APP_HOME}/logs \
		${APP_HOME}/temp ${APP_HOME}/work
	@@${ECHO_MSG} " [ DONE ]"

	@@${ECHO_MSG} -n ">> Fixing permissions..."
	@@${CHMOD} 755 `${FIND} ${APP_HOME} -type d`
	@@${ECHO_MSG} " [ DONE ]"

post-install:
	@@${ECHO_MSG} "${APP_TITLE} ${PORTVERSION} has been installed in ${APP_HOME}."

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


1.36
log
@- Point users to www/tomcat* ports and set expiration counter to one month

PR:		ports/129271
Submitted by:	Yoshihiro Ota <ota@@j.email.ne.jp>
@
text
@d5 1
a5 1
# $FreeBSD$
@


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

Hat:	portmgr
@
text
@d22 3
@


1.34
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
@d15 1
a15 1
MAINTAINER=	nemoliu@@FreeBSD.org
@


1.33
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@d10 1
a10 1
PORTREVISION=	6
@


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

Approved by:	delphij (mentor)
@
text
@d10 1
a10 1
PORTREVISION=	5
@


1.31
log
@- Fix mastersite.
- Fix WWW.
- Pass maintainership to submitter.

PR:		ports/110763
Submitted by:	Nemo Liu <nemoliu@@gmail.com>
@
text
@d15 1
a15 1
MAINTAINER=	nemoliu@@gmail.com
@


1.30
log
@Patch for a minor cross site scripting vulnerability, and bump PORTREVISION.

PR:		ports/96468
Submitted by:	Yann Golanski <yg2@@york.ac.uk>
Security:	VuXML: 26a08c77-32da-4dd7-a884-a76fc49aa824
@
text
@d12 1
a12 1
MASTER_SITES=	${MASTER_SITE_APACHE_JAKARTA}
d15 1
a15 1
MAINTAINER=	ports@@FreeBSD.org
@


1.29
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
@d10 1
a10 1
PORTREVISION=	4
d65 4
@


1.28
log
@Reset inactive maintainer who has not responded to email.

Hat:		portmgr
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.27
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
@d15 1
a15 1
MAINTAINER=	liukang@@bjut.edu.cn
@


1.26
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
a131 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.25
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.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
@d10 1
a16 1
PATCH_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/www/jakarta-tomcat4:pre-everything
d22 2
a23 3
.if !defined(NOPORTDOCS)
MAN1=	${CONTROL_SCRIPT_NAME}.1
.endif
d30 2
a31 8
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}
USER=		www
GROUP=		www
a34 1
WARP_PORT?=	8008
a37 2
AUTO_START?=	NO
STOP_TIMEOUT?=	5
d39 2
a40 4
REPLACE_FILES=	${PORTSDIR}/www/jakarta-tomcat4/files/daemonctl.c \
		${PORTSDIR}/www/jakarta-tomcat4/files/daemonctl.1 \
		${PORTSDIR}/www/jakarta-tomcat4/files/startup.sh \
		conf/server.xml
d42 3
a44 1
PLIST_SUB+=	T=${APP_HOME:S/^${PREFIX}\///} WWWOWN=${USER} WWWGRP=${GROUP}
d48 17
a69 2
	@@${ECHO_MSG} "   Control program location: ${CONTROL_SCRIPT}"
	@@${ECHO_MSG} "   Startup script location:  ${STARTUP_SCRIPT}"
d72 1
a72 1
	@@${ECHO_MSG} "   Running as (user/group):  ${USER}/${GROUP}"
a74 1
	@@${ECHO_MSG} "   WARP port:                ${WARP_PORT}"
a77 3
	@@${ECHO_MSG} "   Starting after install:   ${AUTO_START}"
	@@${ECHO_MSG} "   Stop time-out:            ${STOP_TIMEOUT} sec."
	@@PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
d84 3
a86 29
.for f in ${REPLACE_FILES}
	@@${ECHO_MSG} -n ">> Customizing `basename $f`..."
	@@(cd ${WRKSRC} && ${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//${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//${USER}/g" \
	-e "/%%WARP_PORT%%/s//${WARP_PORT}/g" \
	$f > ${WRKDIR}/`basename $f`)
d90 3
a113 22
	@@${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} ${USER}:${GROUP} ${CONTROL_SCRIPT}
	@@${CHMOD} 6754 ${CONTROL_SCRIPT}
	@@${ECHO_MSG} " [ DONE ]"

	@@${ECHO_MSG} -n ">> Installing startup script..."
	@@${CP} ${WRKDIR}/startup.sh ${STARTUP_SCRIPT}
	@@${CHMOD} 0544 ${STARTUP_SCRIPT}
	@@${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

d115 2
a116 2
	@@${INSTALL} /dev/null ${STDOUT_LOG}
	@@${INSTALL} /dev/null ${STDERR_LOG}
d124 2
a125 1
	@@${CHOWN} -R ${USER}:${GROUP} ${APP_HOME}
d134 1
a134 1
	@@${CHOWN} ${USER}:${GROUP} ${PID_FILE}
d140 1
a140 7
	@@${ECHO_MSG} "If a user should be able to use ${CONTROL_SCRIPT_NAME}, then put this user in the group ${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.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
@

