Commit graph

21 commits

Author SHA1 Message Date
Sam Lawrance
a0156c5c5b 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
2006-02-07 08:50:09 +00:00
Edwin Groothuis
508b8d82f4 Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtry
Approved by:    krion@
PR:             ports/88711 (related)
2006-01-22 03:01:03 +00:00
Herve Quiroz
ae8618d863 - Update to bsd.java.mk 2.0
- Backup config files during deinstall [1]
- Use MAN1 in Makefile [1]
- Fix pkg_add permission problem [2]
- ECHO_CMD -> ECHO_MSG [1]
- Bump PORTREVISION [1]
- Mark as DEPRECATED [1]
- Fix MASTER_SITE [1]
- Add $FreeBSD$ tags where missing [1]

PR:		75604 [1], 57235 [2]
Submitted by:	maintainer [1] [2]
2004-12-29 13:25:09 +00:00
Ernst de Haan
2d0baff5f5 Upgrade to Tomcat 4.0.6, released on 9 October 2002. From the
News & Status page:

	A security vulnerability has been confirmed to exist in
	Apache Tomcat 4.0.x releases (including Tomcat 4.0.5),
	which allows to use a specially crafted URL to return the
	unprocessed source of a JSP page, or, under special
	circumstances, a static resource which would otherwise have been
	protected by security constraint, without the need for being
	properly authenticated.  This is based on a variant of the
	exploit that was disclosed on
	09/24/2002.

See:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.6/RELEASE-NOTES
2002-10-10 22:51:09 +00:00
Ernst de Haan
84141c9cb3 Security fix: Upgrade to 4.0.5.
PR:	43503
2002-09-30 12:37:20 +00:00
Ernst de Haan
571a6e66a6 Upgrade to Tomcat 4.0.4.
For release notes, see:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/RELEASE-NOTES
2002-06-24 07:17:40 +00:00
Ernst de Haan
77a1003364 Now installs the shell scripts as well. They were previously
not installed because there was the control program tomcat4ctl
already. For some instances, however, tomcat4ctl is not
powerful enough. For instance when setting up multiple
instances of Tomcat, see
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt.

Also added tools.jar to pkg-plist. It should have been added
previously.

Bumped PORTREVISION.

Prompted by:	Gavin Cameron <gavin@itworks.com.au>
2002-04-06 20:16:21 +00:00
Ernst de Haan
2297db65d5 Upgrade to Jakarta Tomcat 4.0.3. The Jakarta Tomcat 3
branch has moved to www/jakarta-tomcat3.

PR:	31096, 32022
2002-04-01 22:01:22 +00:00
Ernst de Haan
00af56ae88 Lot of changes: Using USE_JAVA infrastructure. Upgraded port
to 3.3.1. Using HTTP_PORT i.s.o. LISTEN_PORT. Using
daemonctl.c i.s.o. tomcatctl shell script. Displaying steps
i.s.o. commands being executed. Synced man page.
2002-03-30 14:51:12 +00:00
Ernst de Haan
229c3f67eb Cleaned things up. Made things working :-) Both the startup script
in ${PREFIX}/etc/rc.d and the control script in ${PREFIX}/bin have
been refactored and now actually work very well.

Using the 'www' user and group, creating them if they don't exist.
I've used the same approach as www/apache13.

STDOUT_LOG and STDERR_LOG are now fixed (no ?= anymore) since the
package deinstall does not support a different location.

This fixes the first half of PR 28624.
See: http://www.freebsd.org/cgi/query-pr.cgi?pr=34931

Reported by:	Kees Jan Koster <k.j.koster@kpn.com>
2002-02-21 20:06:55 +00:00
Ernst de Haan
02e7b57e58 Upgraded from Jakarta 3.2.3 to 3.2.4.
Not using DIST_SUBDIR anymore.
2002-02-21 11:03:08 +00:00
Ernst de Haan
715750fbb4 Added bin/tomcatctl. 2002-02-21 09:23:29 +00:00
Ernst de Haan
2eb2f9877a Reverting changes. Accidentally committed *all* changes in my working copy, instead of only removing the second APP_TITLE from the Makefile. 2002-02-19 13:53:41 +00:00
Ernst de Haan
5416e71b19 APP_TITLE was set twice.
Reported by: Kimura Fuyuki <fuyuki@mj.0038.net>
2002-02-19 08:20:39 +00:00
Ernst de Haan
0312f191f2 Fixed control script name. It's 020.jakarta-tomcat.sh.
Reported by: Yoichi NAKAYAMA <yoichi@FreeBSD.org>
2002-02-04 14:11:06 +00:00
Ernst de Haan
f62ea0b0a3 A lot of changes:
* Bumped PORTREVISION
* Now displays installation settings
* Now possible to choose JDK. By default uses FreeBSD JDK 1.3.1 (instead of FreeBSD JDK 1.1.8)
* Does not depend on pinstall anymore
* Now possible to change TOMCAT_HOME. By default uses /jakarta-tomcat-3.2.3 (instead of /tomcat)
* Now possible to change LISTEN_PORT. Default is 8080 (unchanged)
* Added support for running Tomcat as a different user/group. By default a new user 'tomcat' and a new group 'tomcat' are created and used
* A 'tomcatctl' script is installed in /usr/local/bin/, which uses interprocess communication to start/stop/restart Tomcat
* Option is added for automatically starting Tomcat after install (AUTO_START). By default Tomcat is started right away
* Appends stdout and stderr to log files
* Uses a numeric prefix for the script in /etc/rc.d (now by default 020.jakarta-tomcat.sh instead of tomcat.sh)
2002-02-04 13:38:25 +00:00
Dirk Froemberg
8fc93c2651 Upgrade to 3.2.3. 2001-08-05 09:37:23 +00:00
Dirk Froemberg
71e52831aa - provide startup script
- log tomcat messages to a file (logs/tomcat.log)
- fix plist
2001-05-21 08:05:38 +00:00
Dirk Froemberg
4ca853343c Upgrade to 3.2.1.
PR:		ports/26027
Submitted by:	Michael Lyngbøl <michael@lyngbol.dk>
2001-04-08 13:09:03 +00:00
Dag-Erling Smørgrav
c6986263ef Remove some .bat files from packing list 2000-10-21 19:12:12 +00:00
Dag-Erling Smørgrav
cfd3cc7695 The Apache Project's Jakarta Tomcat web server. 2000-10-21 14:44:26 +00:00