summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-08-08 18:39:49 +0000
committerStuart Herbert <stuart@gentoo.org>2004-08-08 18:39:49 +0000
commit1c1dd39228c78a0f98891e7ba6475e0f879eca42 (patch)
tree598e38fa6893eb07c42a6408f3dec9378c4515cd /www-servers
parentInitial version (Manifest recommit) (diff)
downloadgentoo-2-1c1dd39228c78a0f98891e7ba6475e0f879eca42.tar.gz
gentoo-2-1c1dd39228c78a0f98891e7ba6475e0f879eca42.tar.bz2
gentoo-2-1c1dd39228c78a0f98891e7ba6475e0f879eca42.zip
Moved from net-www/tomcat to www-servers/tomcat.
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/tomcat/ChangeLog289
-rw-r--r--www-servers/tomcat/Manifest29
-rw-r--r--www-servers/tomcat/files/3.3.2/gentoo.diff13
-rw-r--r--www-servers/tomcat/files/3.3.2/tomcat.conf32
-rw-r--r--www-servers/tomcat/files/3.3.2/tomcat.init24
-rw-r--r--www-servers/tomcat/files/4.1.30/gentoo.diff13
-rw-r--r--www-servers/tomcat/files/4.1.30/jikes.diff13
-rw-r--r--www-servers/tomcat/files/4.1.30/tomcat.conf76
-rw-r--r--www-servers/tomcat/files/4.1.30/tomcat.init23
-rw-r--r--www-servers/tomcat/files/5.0.27/gentoo.diff13
-rw-r--r--www-servers/tomcat/files/5.0.27/jikes.diff13
-rw-r--r--www-servers/tomcat/files/5.0.27/tomcat.conf76
-rw-r--r--www-servers/tomcat/files/5.0.27/tomcat.init23
-rw-r--r--www-servers/tomcat/files/digest-tomcat-3.3.2-r21
-rw-r--r--www-servers/tomcat/files/digest-tomcat-4.1.30-r41
-rw-r--r--www-servers/tomcat/files/digest-tomcat-5.0.27-r31
-rw-r--r--www-servers/tomcat/metadata.xml8
-rw-r--r--www-servers/tomcat/tomcat-3.3.2-r2.ebuild109
-rw-r--r--www-servers/tomcat/tomcat-4.1.30-r4.ebuild117
-rw-r--r--www-servers/tomcat/tomcat-5.0.27-r3.ebuild118
20 files changed, 992 insertions, 0 deletions
diff --git a/www-servers/tomcat/ChangeLog b/www-servers/tomcat/ChangeLog
new file mode 100644
index 000000000000..60d2ee1b9637
--- /dev/null
+++ b/www-servers/tomcat/ChangeLog
@@ -0,0 +1,289 @@
+# ChangeLog for net-www/tomcat
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/ChangeLog,v 1.1 2004/08/08 18:39:49 stuart Exp $
+
+*tomcat-4.1.30-r4 (08 Aug 2004)
+
+ 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+ +files/3.3.2/gentoo.diff, +files/3.3.2/tomcat.conf,
+ +files/3.3.2/tomcat.init, +files/4.1.30/gentoo.diff,
+ +files/4.1.30/jikes.diff, +files/4.1.30/tomcat.conf,
+ +files/4.1.30/tomcat.init, +files/5.0.27/gentoo.diff,
+ +files/5.0.27/jikes.diff, +files/5.0.27/tomcat.conf,
+ +files/5.0.27/tomcat.init, +tomcat-3.3.2-r2.ebuild,
+ +tomcat-4.1.30-r4.ebuild, +tomcat-5.0.27-r3.ebuild:
+ Moved from net-www/tomcat to www-servers/tomcat.
+
+*tomcat-4.1.30-r4 (06 Aug 2004)
+
+ 06 Aug 2004; Thomas Matthijs <axxo@gentoo.org> tomcat-3.3.2-r2.ebuild,
+ tomcat-4.1.30-r4.ebuild, tomcat-5.0.27-r3.ebuild:
+ fix doc chown
+
+*tomcat-5.0.27-r3 (06 Aug 2004)
+
+ 06 Aug 2004; Thomas Matthijs <axxo@gentoo.org> tomcat-5.0.27-r3.ebuild:
+ ~amd64
+
+ 06 Aug 2004; Thomas Matthijs <axxo@gentoo.org> -files/3.3.2/21tomcat,
+ -files/4.1.30/21tomcat, -files/5.0.27/21tomcat, -tomcat-3.3.2-r1.ebuild,
+ -tomcat-3.3.2.ebuild, -tomcat-4.1.30-r2.ebuild, -tomcat-4.1.30-r3.ebuild,
+ -tomcat-5.0.27-r1.ebuild, -tomcat-5.0.27-r2.ebuild:
+ fix premissions (again sorry), should fix 59232 && 58616
+
+*tomcat-3.3.2-r1 (03 Aug 2004)
+
+ 03 Aug 2004; Thomas Matthijs <axxo@gentoo.org> +tomcat-3.3.2-r1.ebuild,
+ +tomcat-4.1.30-r3.ebuild, +tomcat-5.0.27-r2.ebuild:
+ fix premissions
+
+ 30 Jul 2004; Thomas Matthijs <axxo@gentoo.org> -tomcat-4.1.30-r1.ebuild,
+ -tomcat-4.1.30.ebuild, -tomcat-5.0.27.ebuild:
+ cleanup
+
+*tomcat-4.1.30-r2 (30 Jul 2004)
+
+ 30 Jul 2004; Thomas Matthijs <axxo@gentoo.org> files/4.1.30/gentoo.diff,
+ +tomcat-4.1.30-r2.ebuild:
+ fix patch to source the correct file, 58835
+
+*tomcat-5.0.27-r1 (29 Jul 2004)
+
+ 29 Jul 2004; Thomas Matthijs <axxo@gentoo.org> +tomcat-4.1.30-r1.ebuild,
+ +tomcat-5.0.27-r1.ebuild:
+ revision bump to force updating, peaple that upgraded from 5.0.18 will
+ otherwise have problems
+
+ 29 Jul 2004; Thomas Matthijs <axxo@gentoo.org> files/4.1.30/gentoo.diff,
+ +files/4.1.30/jikes.diff, files/4.1.30/tomcat.conf,
+ files/5.0.27/gentoo.diff, +files/5.0.27/jikes.diff,
+ files/5.0.27/tomcat.conf, tomcat-4.1.30.ebuild, tomcat-5.0.27.ebuild:
+ added jikes use flag, enabling it will configure tomcat to use jikes
+
+ 28 Jul 2004; Thomas Matthijs <axxo@gentoo.org> files/4.1.30/gentoo.diff,
+ files/4.1.30/tomcat.conf, files/5.0.27/gentoo.diff,
+ files/5.0.27/tomcat.conf, tomcat-4.1.30.ebuild, tomcat-5.0.27.ebuild:
+ added commented config defaults to use jikes compile,added doc use flag,
+ closes 58670
+
+ 28 Jul 2004; Thomas Matthijs <axxo@gentoo.org> files/3.3.2/tomcat.init,
+ files/4.1.30/tomcat.init, files/5.0.27/tomcat.init, tomcat-3.3.2.ebuild,
+ tomcat-4.1.30.ebuild, tomcat-5.0.27.ebuild:
+ changed init scripts, changed default shell/homedir for tomcat user, added
+ warning about the new init scripts
+
+*tomcat-5.0.27 (27 Jul 2004)
+
+ 27 Jul 2004; Thomas Matthijs <axxo@gentoo.org> metadata.xml,
+ +files/3.3.2/21tomcat, +files/3.3.2/gentoo.diff, +files/3.3.2/tomcat.conf,
+ +files/3.3.2/tomcat.init, -files/4.1.29/21tomcat, -files/4.1.29/gentoo.diff,
+ -files/4.1.29/tomcat.conf, -files/4.1.29/tomcat.init,
+ +files/4.1.30/21tomcat, +files/4.1.30/gentoo.diff,
+ +files/4.1.30/tomcat.conf, +files/4.1.30/tomcat.init,
+ -files/5.0.18/21tomcat, -files/5.0.18/gentoo.diff, -files/5.0.18/jikes.diff,
+ -files/5.0.18/tomcat.conf, -files/5.0.18/tomcat.init,
+ -files/5.0.25/21tomcat, -files/5.0.25/gentoo.diff,
+ -files/5.0.25/tomcat.conf, -files/5.0.25/tomcat.init,
+ +files/5.0.27/21tomcat, +files/5.0.27/gentoo.diff,
+ +files/5.0.27/tomcat.conf, +files/5.0.27/tomcat.init, +tomcat-3.3.2.ebuild,
+ -tomcat-4.1.29.ebuild, +tomcat-4.1.30.ebuild, -tomcat-5.0.18.ebuild,
+ -tomcat-5.0.25.ebuild, +tomcat-5.0.27.ebuild:
+ a whole bunch of new ebuilds, slot'ed, they should all work next to eatch
+ other (don't forget to change the ports)
+
+ 25 Jun 2004; Aron Griffis <agriffis@gentoo.org> tomcat-5.0.18.ebuild:
+ QA - fix use invocation
+
+ 08 Jun 2004; Bryan Østergaard <kloeri@gentoo.org> tomcat-5.0.18.ebuild:
+ Stable on alpha.
+
+*tomcat-5.0.25 (19 May 2004)
+
+ 19 May 2004; Chris Aniszczyk <zx@gentoo.org> +files/5.0.25/21tomcat,
+ +files/5.0.25/gentoo.diff, +files/5.0.25/tomcat.conf,
+ +files/5.0.25/tomcat.init, +tomcat-5.0.25.ebuild:
+ New tomcat and new layout scheme.
+ Thanks to Tim Chen for the initial ebuild.
+
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> tomcat-4.1.29.ebuild:
+ Add inherit eutils
+
+ 10 Apr 2004; Travis Tilley <lv@gentoo.org> tomcat-5.0.18.ebuild:
+ added ~amd64 keyword
+
+ 21 Mar 2004; Martin Holzer <mholzer@gentoo.org> tomcat-5.0.18.ebuild:
+ adding categorie. see 45110 for details
+
+ 24 Feb 2004; Chris Aniszczyk <zx@gentoo.org> tomcat-4.1.29.ebuild:
+ Heh, variable order fix ;) Bug #42071
+
+ 24 Feb 2004; Chris Aniszczyk <zx@gentoo.org> tomcat-5.0.18.ebuild,
+ files/5.0.18/jikes.diff, files/5.0.18/tomcat.conf:
+ Added jikes and doc support. Thanks to Luca Santarelli
+ <hrk@users.sourceforge.net> for some patches. Bug #42175
+
+*tomcat-5.0.18 (15 Feb 2004)
+*tomcat-4.1.29 (15 Feb 2004)
+
+ 15 Feb 2004; <zx@gentoo.org> tomcat-4.1.29.ebuild, tomcat-5.0.18.ebuild:
+ Massive bugfixes + version bumps. Huge thanks to Chetan Sarva
+ <gentoo-bugs@fw2.net> for the ebuilds + various fixes. This update adds 5.0.18
+ and 4.1.29 tomcat versions. It also fixes the following bugs:
+
+ Bug #38949
+
+ Bug #38952
+
+ Bug #21772
+
+ Bug #38358
+
+ Bug #21744
+
+ Bug #22040
+
+ Bug #19723
+
+ Bug #39819
+
+ Bug #26994
+
+ Bug #32408
+
+ Bug #35094
+
+ 15 Dec 2003; <spider@gentoo.org> tomcat-4.1.24-r1.ebuild:
+ QA: fixing chown user.group to user:group, bug #35127
+
+ 16 Oct 2003; Sergey Kuleshov <svyatogor@gentoo.org> tomcat-4.1.24-r1.ebuild:
+ Fixed permissions for /etc/conf.d/tomcat
+
+*tomcat-4.1.24-r1 (27 May 2003)
+
+ 27 May 2003; Dylan Carlson <absinthe@gentoo.org> tomcat-4.1.24-r1.ebuild:
+ /opt/tomcat/conf was vulnerable to local users who are snooping the
+ tomcat-users.xml file for passwords. The new ebuild fixes this problem for new
+ installations.
+
+ If you have an existing installation of Tomcat you can do the following:
+
+ 1. # /etc/init.d/tomcat stop
+ 2. # chmod -R 750 /opt/tomcat/
+ 3. # /etc/init.d/tomcat start
+
+ Thanks to "D.Tuinstra" <tuinstra@inteo.com> for pointing out the
+ vulnerability.
+
+*tomcat-4.1.24 (25 Mar 2003)
+
+ 10 Apr 2003; Dylan Carlson <absinthe@gentoo.org> tomcat-4.1.24.ebuild:
+ Minor fix to pkg_postinst() comments; fix to env.d/21tomcat install;
+ added RDEPEND for sed.
+
+ 06 Apr 2003; Dylan Carlson <absinthe@gentoo.org> tomcat-4.1.24.ebuild:
+ x86 ppc sparc moved to stable.
+
+ 28 Mar 2003; Dylan Carlson <absinthe@gentoo.org> files/4.1.24/tomcat.conf:
+ Fixed sed path in conf.d/tomcat.
+
+ 25 Mar 2003; Dylan Carlson <absinthe@gentoo.org> omcat-4.1.24.ebuild,
+ files/4.1.24/21tomcat, tomcat-4.1.24.ebuild, files/4.1.24/21tomcat,
+ files/4.1.24/gentoo.diff, files/4.1.24/tomcat.conf, files/4.1.24/tomcat.init:
+ Version bump.
+
+ Also a few changes thanks to user feedback from Anthony Murray:
+ Fixes to init script, and changed conf.d/JAVA_HOME back to automatically
+ set itself. Closes bug #17907.
+
+*tomcat-4.1.18-r1 (22 Mar 2003)
+
+ 22 Mar 2003; Dylan Carlson <absinthe@gentoo.org> tomcat-4.1.18-r1.ebuild,
+ files/4.1.18/gentoo.diff, files/4.1.18/tomcat.conf,
+ files/4.1.18/tomcat.init:
+ Significant changes. This ebuild now bears close resemblance to
+ net-www/orion.
+
+ 1. Tomcat now runs as user 'tomcat' by default.
+ 2. All classes and JARs get installed into /usr/share/tomcat.
+ 3. All logs go to /var/log/tomcat.
+ 4. Init script was modified to use JAVA_HOME as set in /etc/conf.d/tomcat.
+ This is because we don't want the init script making any assumptions as
+ to what JVM the user wants to run for Tomcat.
+ 5. JSSE and JPDA are supported as startup modes in /etc/conf.d/tomcat.
+ ( If you have a Sun Java 1.4 SDK or later, you have JSSE and JPDA
+ included. )
+
+ Feedback on these changes would be appreciated, so we can get this
+ ebuild moved to stable.
+ http://bugs.gentoo.org/
+ http://stable.gentoo.org/
+
+*tomcat-4.1.18 (16 Mar 2003)
+
+ 16 Mar 2003; Dylan Carlson <absinthe@gentoo.org> tomcat-4.1.18.ebuild:
+ New ebuild started from submission in bug # 11796. minor fixes; added
+ servlet.jar as a shared library for packages that might require it at build
+ time. Thanks to Mark Mealman <mmealman@tarsis.org> and gtonic <tom@wahuu.at>
+ for their contributions.
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*tomcat-4.0.6 (15 Oct 2002)
+
+ 15 Oct 2002; Maik Schreiber <blizzy@gentoo.org> : New version -
+ security update. Closes bug #8931.
+
+ 26 Sep 2002; Maik Schreiber <blizzy@gentoo.org> files/21tomcat:
+ Added CONFIG_PROTECT=/opt/jakarta/tomcat/conf so that configuration
+ files don't get lost when installing a new version.
+
+*tomcat-4.0.5 (25 Sep 2002)
+
+ 25 Sep 2002; Daniel Ahlberg <aliz@gentoo.org> :
+ Security update. Ebuild provided by Adrian Almenar <aalmenar@conectium.com>.
+
+*tomcat-4.0.4 (23 Jun 2002)
+
+ 14 Sep 2002; Owen Stampflee <owen@gentoo.org> :
+ Added PPC to KEYWORDS.
+
+ 14 Jul 2002; Daniel Ahlberg <aliz@gentoo.org> tomcat-4.0.4.ebuild :
+ Added KEYWORDS.
+
+ 23 Jun 2002; William McArthur <sandymac@gentoo.org> tomcat-4.0.4.ebuild files/digest-tomcat-4.0.4 :
+
+ New upstream version. Added a .keep file to the logs dir to prevent the logs
+ from being removed during an upgrade if there were no log files.
+
+*tomcat-4.0.3 (03 Jun 2002)
+
+ 14 Jul 2002; Daniel Ahlberg <aliz@gentoo.org> tomcat-4.0.3.ebuild :
+ Added KEYWORDS, SLOT.
+
+ 03 Jun 2002; Karl Trygve Kalleberg <karltk@gentoo.org> tomcat-4.0.3.ebuild files/digest-tomcat-4.0.3 :
+
+ New upstream version.
+
+*tomcat-4.0.1 (1 Feb 2002)
+
+ 14 Jul 2002; Daniel Ahlberg <aliz@gentoo.org> tomcat-4.0.1.ebuild :
+ Added KEYWORDS, SLOT.
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
+
+*tomcat-3.2.2.ebuild (14 Jul 2002)
+
+ 01 Jul 2002; Karl Trygve Kalleberg <karltk@gentoo.org> tomcat-3.2.2.ebuild files/digest-tomcat-3.2.2 :
+
+ This package has been masked for a while. Finally removed to get rid of
+ dev-java/jaxp entirely.
+
+ 14 Jul 2002; Daniel Ahlberg <aliz@gentoo.org> tomcat-3.2.2.ebuild :
+ Added KEYWORDS, SLOT.
+
diff --git a/www-servers/tomcat/Manifest b/www-servers/tomcat/Manifest
new file mode 100644
index 000000000000..d2c49920d1de
--- /dev/null
+++ b/www-servers/tomcat/Manifest
@@ -0,0 +1,29 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 fcb9dd9687819ad1761e515a28df457b tomcat-5.0.27-r3.ebuild 3598
+MD5 969697b7011351f578e6eead3924d856 tomcat-3.3.2-r2.ebuild 3210
+MD5 2efa74ea11d8ef287c71ad92f274083a ChangeLog 10276
+MD5 56292f22dced45d993974e198033461d metadata.xml 221
+MD5 3877441b50492281142448a242b4f525 tomcat-4.1.30-r4.ebuild 3570
+MD5 71d59fd713a960e63c1b894ca5893a1b files/digest-tomcat-4.1.30-r4 74
+MD5 d5a48abc8db5543a73abbbf151d0630e files/digest-tomcat-5.0.27-r3 75
+MD5 6940eb780efc66ecb6ecf11b6b7adb05 files/digest-tomcat-3.3.2-r2 73
+MD5 eb7830519ae94bb563d39f1f51ab590a files/3.3.2/gentoo.diff 368
+MD5 d33339579d0be490e2426622bdc02478 files/3.3.2/tomcat.conf 898
+MD5 fc61d48a4df09dc7b355fb37cda3a8f4 files/3.3.2/tomcat.init 629
+MD5 5689c5d7853b66c5df8ecfabe34f4eab files/4.1.30/gentoo.diff 461
+MD5 4194c313f01fdfad3685ca575193cbcd files/4.1.30/tomcat.conf 2654
+MD5 3413acebfae38d1968b1c1a09f4dcbff files/4.1.30/tomcat.init 632
+MD5 c19b85e130d0e0a565eebc406d699965 files/4.1.30/jikes.diff 510
+MD5 8762369123b94c9a0b2c1cc78c301600 files/5.0.27/gentoo.diff 461
+MD5 ee1a8962ae8850ad8a9315ed5d87a295 files/5.0.27/tomcat.conf 2654
+MD5 d35e0401143488349e4399a3f25530b7 files/5.0.27/tomcat.init 632
+MD5 c19b85e130d0e0a565eebc406d699965 files/5.0.27/jikes.diff 510
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.5 (GNU/Linux)
+
+iD8DBQFBE7/D/rLF9B432nYRAiwRAKC4SmJtVvUKZl3umewl4cniS/vsxQCfYjJ0
+SirAeydb7r5DQr2gvJhgSTI=
+=dAxp
+-----END PGP SIGNATURE-----
diff --git a/www-servers/tomcat/files/3.3.2/gentoo.diff b/www-servers/tomcat/files/3.3.2/gentoo.diff
new file mode 100644
index 000000000000..f30a6017c879
--- /dev/null
+++ b/www-servers/tomcat/files/3.3.2/gentoo.diff
@@ -0,0 +1,13 @@
+--- bin/tomcat 2004-03-07 19:49:41.000000000 +0100
++++ bin/tomcat 2004-07-27 14:10:18.560850792 +0200
+@@ -49,6 +49,9 @@
+ #java -cp lib/tomcat.jar org.apache.tomcat.startup.Main $*
+ #java -jar lib/tomcat.jar
+
++source /etc/profile
++source /etc/conf.d/tomcat3
++
+ # OS specific support. $var _must_ be set to either true or false.
+ cygwin=false
+ case "`uname`" in
+
diff --git a/www-servers/tomcat/files/3.3.2/tomcat.conf b/www-servers/tomcat/files/3.3.2/tomcat.conf
new file mode 100644
index 000000000000..303f1ce71fa5
--- /dev/null
+++ b/www-servers/tomcat/files/3.3.2/tomcat.conf
@@ -0,0 +1,32 @@
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/3.3.2/tomcat.conf,v 1.1 2004/08/08 18:39:49 stuart Exp $
+
+# JVM Runtime
+# Using the default setting, it will determine your JVM from the system-vm
+# set using java-config.
+# See java-config(1) manual page for assistance in determining this value.
+#
+# You can override this value with whatever path you wish.
+# Example: JAVA_HOME=/opt/sun-jdk-1.4.1.01
+
+#JAVA_HOME=`java-config -O`
+
+# (Optional) Java runtime options used when the "start", "stop", or "run"
+# commands are executed.
+# JAVA_OPTS=""
+
+# Where your web applications are located
+TOMCAT_HOME=/opt/tomcat3
+
+# Extra options to pass to Tomcat (see docs)
+#TOMCAT_OPTS=
+
+# Tomcat's User
+TOMCAT_USER=tomcat
+
+# Tomcat Console Log Location
+CONSOLE_LOG=/var/log/tomcat3/console.log
+
+# Location of the Tomcat JARs and classes
+TOMCAT_LIBDIR=/usr/share/tomcat3/lib
+
+TOMCAT_INSTALL=${TOMCAT_HOME}
diff --git a/www-servers/tomcat/files/3.3.2/tomcat.init b/www-servers/tomcat/files/3.3.2/tomcat.init
new file mode 100644
index 000000000000..8f08d5b3a961
--- /dev/null
+++ b/www-servers/tomcat/files/3.3.2/tomcat.init
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/3.3.2/tomcat.init,v 1.1 2004/08/08 18:39:49 stuart Exp $
+
+depend() {
+ need net
+ use dns
+}
+
+start() {
+ ebegin "Starting Tomcat"
+ cd ${TOMCAT_HOME}
+ start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${TOMCAT_HOME}/bin/startup >${CONSOLE_LOG} 2>&1
+ sleep 5
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Tomcat"
+ start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${TOMCAT_HOME}/bin/shutdown >${CONSOLE_LOG} 2>&1 
+ sleep 5
+ eend $?
+}
diff --git a/www-servers/tomcat/files/4.1.30/gentoo.diff b/www-servers/tomcat/files/4.1.30/gentoo.diff
new file mode 100644
index 000000000000..a3a281499128
--- /dev/null
+++ b/www-servers/tomcat/files/4.1.30/gentoo.diff
@@ -0,0 +1,13 @@
+--- bin/catalina.sh 2004-05-19 02:25:07.000000000 -0400
++++ bin/catalina.sh 2004-05-19 02:23:20.128089696 -0400
+@@ -38,6 +38,10 @@
+ # $Id: gentoo.diff,v 1.1 2004/08/08 18:39:49 stuart Exp $
+ # -----------------------------------------------------------------------------
+
++# source the appropriate files right away
++source /etc/profile
++source /etc/conf.d/tomcat4
++
+ # OS specific support. $var _must_ be set to either true or false.
+ cygwin=false
+ os400=false
diff --git a/www-servers/tomcat/files/4.1.30/jikes.diff b/www-servers/tomcat/files/4.1.30/jikes.diff
new file mode 100644
index 000000000000..a91210d56c99
--- /dev/null
+++ b/www-servers/tomcat/files/4.1.30/jikes.diff
@@ -0,0 +1,13 @@
+--- conf/web.xml 2004-06-18 03:10:14.000000000 +0200
++++ conf/web.xml 2004-07-28 18:51:39.192165664 +0200
+@@ -186,6 +186,10 @@
+ <servlet>
+ <servlet-name>jsp</servlet-name>
+ <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
++ <init-param>
++ <param-name>compiler</param-name>
++ <param-value>jikes</param-value>
++ </init-param>
+ <init-param>
+ <param-name>fork</param-name>
+ <param-value>false</param-value>
diff --git a/www-servers/tomcat/files/4.1.30/tomcat.conf b/www-servers/tomcat/files/4.1.30/tomcat.conf
new file mode 100644
index 000000000000..1adc708f2e5c
--- /dev/null
+++ b/www-servers/tomcat/files/4.1.30/tomcat.conf
@@ -0,0 +1,76 @@
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/4.1.30/tomcat.conf,v 1.1 2004/08/08 18:39:49 stuart Exp $
+
+# JVM Runtime
+# Using the default setting, it will determine your JVM from the system-vm
+# set using java-config.
+# See java-config(1) manual page for assistance in determining this value.
+#
+# You can override this value with whatever path you wish.
+# Example: JAVA_HOME=/opt/sun-jdk-1.4.2.05
+
+#JAVA_HOME=`java-config -O`
+
+# (Optional) Java runtime options used when the "start", "stop", or "run"
+# commands are executed.
+# JAVA_OPTS=""
+
+# Where your web applications are located
+CATALINA_HOME=/opt/tomcat4
+#CATALINA_BASE=${CATALINA_HOME}
+
+# Tomcat's User
+CATALINA_USER=tomcat
+
+# Tomcat Console Log Location
+CATALINA_OUT=/var/log/tomcat4/catalina.log
+
+# Location of the Tomcat JARs and classes
+#CATALINA_LIBDIR=/usr/share/tomcat4/lib
+
+# The CLASSPATH for Tomcat to use, plus any others you need.
+#CLASSPATH=${CLASSPATH}:${CATALINA_LIBDIR}
+
+# (Optional) Directory path location of temporary directory the JVM should
+# use (java.io.tmpdir). Defaults to $CATALINA_BASE/temp.
+# CATALINA_TMPDIR="/your/path/here"
+
+# TOMCAT STARTUP/SHUTDOWN
+# debug Start Catalina in a debugger
+# debug -security Debug Catalina with a security manager
+# embedded Start Catalina in embedded mode
+# jpda start Start Catalina under JPDA debugger
+# start Start Catalina in a separate window
+# start -security Start in a separate window with security manager
+# stop Stop Catalina"
+#
+# NOTE: -security requires JSSE (see below)
+# NOTE: jpda requires JPDA (see below)
+TOMCAT_START="start"
+TOMCAT_STOP="stop"
+
+# (Optional) Java runtime options used when the "start", "stop", or "run"
+# commands are executed.
+# CATALINA_OPTS=""
+
+# Java Platform Debugger Architecture (JPDA)
+# http://java.sun.com/products/jpda/
+# Included with Java SDK 1.3 and later. No need to specify location.
+#
+# JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
+# command is executed. The default is "dt_socket".
+#
+# JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
+# command is executed. The default is 8000.
+#
+# JPDA_TRANSPORT="dt_socket"
+# JPDA_ADDRESS="8000"
+
+# Java Secure Socket Extension (JSSE)
+# http://java.sun.com/products/jsse/
+# Included with Java SDK 1.4 and later.
+#
+# JSSE_HOME (Optional) May point at your Java Secure Sockets Extension
+# (JSSE) installation, whose JAR files will be added to the
+# system class path used to start Tomcat.
+#
+# JSSE_HOME="/opt/sun-jdk-1.4.1.02/jre/lib/"
diff --git a/www-servers/tomcat/files/4.1.30/tomcat.init b/www-servers/tomcat/files/4.1.30/tomcat.init
new file mode 100644
index 000000000000..98ccfac33043
--- /dev/null
+++ b/www-servers/tomcat/files/4.1.30/tomcat.init
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1998-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/4.1.30/tomcat.init,v 1.1 2004/08/08 18:39:49 stuart Exp $
+
+depend() {
+ need net
+ use dns logger mysql postgresql
+}
+
+start() {
+ ebegin "Starting Tomcat"
+ start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${CATALINA_HOME}/bin/catalina.sh ${TOMCAT_START}
+ sleep 5
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Tomcat"
+ start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${CATALINA_HOME}/bin/catalina.sh ${TOMCAT_STOP}
+ sleep 5
+ eend $?
+}
diff --git a/www-servers/tomcat/files/5.0.27/gentoo.diff b/www-servers/tomcat/files/5.0.27/gentoo.diff
new file mode 100644
index 000000000000..0bfcb4523fec
--- /dev/null
+++ b/www-servers/tomcat/files/5.0.27/gentoo.diff
@@ -0,0 +1,13 @@
+--- bin/catalina.sh 2004-05-19 02:25:07.000000000 -0400
++++ bin/catalina.sh 2004-05-19 02:23:20.128089696 -0400
+@@ -38,6 +38,10 @@
+ # $Id: gentoo.diff,v 1.1 2004/08/08 18:39:49 stuart Exp $
+ # -----------------------------------------------------------------------------
+
++# source the appropriate files right away
++source /etc/profile
++source /etc/conf.d/tomcat5
++
+ # OS specific support. $var _must_ be set to either true or false.
+ cygwin=false
+ os400=false
diff --git a/www-servers/tomcat/files/5.0.27/jikes.diff b/www-servers/tomcat/files/5.0.27/jikes.diff
new file mode 100644
index 000000000000..a91210d56c99
--- /dev/null
+++ b/www-servers/tomcat/files/5.0.27/jikes.diff
@@ -0,0 +1,13 @@
+--- conf/web.xml 2004-06-18 03:10:14.000000000 +0200
++++ conf/web.xml 2004-07-28 18:51:39.192165664 +0200
+@@ -186,6 +186,10 @@
+ <servlet>
+ <servlet-name>jsp</servlet-name>
+ <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
++ <init-param>
++ <param-name>compiler</param-name>
++ <param-value>jikes</param-value>
++ </init-param>
+ <init-param>
+ <param-name>fork</param-name>
+ <param-value>false</param-value>
diff --git a/www-servers/tomcat/files/5.0.27/tomcat.conf b/www-servers/tomcat/files/5.0.27/tomcat.conf
new file mode 100644
index 000000000000..2da3a6924d1e
--- /dev/null
+++ b/www-servers/tomcat/files/5.0.27/tomcat.conf
@@ -0,0 +1,76 @@
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.0.27/tomcat.conf,v 1.1 2004/08/08 18:39:49 stuart Exp $
+
+# JVM Runtime
+# Using the default setting, it will determine your JVM from the system-vm
+# set using java-config.
+# See java-config(1) manual page for assistance in determining this value.
+#
+# You can override this value with whatever path you wish.
+# Example: JAVA_HOME=/opt/sun-jdk-1.4.2.05
+
+#JAVA_HOME=`java-config -O`
+
+# (Optional) Java runtime options used when the "start", "stop", or "run"
+# commands are executed.
+# JAVA_OPTS=""
+
+# Where your web applications are located
+CATALINA_HOME=/opt/tomcat5
+#CATALINA_BASE=${CATALINA_HOME}
+
+# Tomcat's User
+CATALINA_USER=tomcat
+
+# Tomcat Console Log Location
+CATALINA_OUT=/var/log/tomcat5/catalina.log
+
+# Location of the Tomcat JARs and classes
+#CATALINA_LIBDIR=/usr/share/tomcat5/lib
+
+# The CLASSPATH for Tomcat to use, plus any others you need.
+#CLASSPATH=${CLASSPATH}:${CATALINA_LIBDIR}
+
+# (Optional) Directory path location of temporary directory the JVM should
+# use (java.io.tmpdir). Defaults to $CATALINA_BASE/temp.
+# CATALINA_TMPDIR="/your/path/here"
+
+# TOMCAT STARTUP/SHUTDOWN
+# debug Start Catalina in a debugger
+# debug -security Debug Catalina with a security manager
+# embedded Start Catalina in embedded mode
+# jpda start Start Catalina under JPDA debugger
+# start Start Catalina in a separate window
+# start -security Start in a separate window with security manager
+# stop Stop Catalina"
+#
+# NOTE: -security requires JSSE (see below)
+# NOTE: jpda requires JPDA (see below)
+TOMCAT_START="start"
+TOMCAT_STOP="stop"
+
+# (Optional) Java runtime options used when the "start", "stop", or "run"
+# commands are executed.
+# CATALINA_OPTS=""
+
+# Java Platform Debugger Architecture (JPDA)
+# http://java.sun.com/products/jpda/
+# Included with Java SDK 1.3 and later. No need to specify location.
+#
+# JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
+# command is executed. The default is "dt_socket".
+#
+# JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
+# command is executed. The default is 8000.
+#
+# JPDA_TRANSPORT="dt_socket"
+# JPDA_ADDRESS="8000"
+
+# Java Secure Socket Extension (JSSE)
+# http://java.sun.com/products/jsse/
+# Included with Java SDK 1.4 and later.
+#
+# JSSE_HOME (Optional) May point at your Java Secure Sockets Extension
+# (JSSE) installation, whose JAR files will be added to the
+# system class path used to start Tomcat.
+#
+# JSSE_HOME="/opt/sun-jdk-1.4.1.02/jre/lib/"
diff --git a/www-servers/tomcat/files/5.0.27/tomcat.init b/www-servers/tomcat/files/5.0.27/tomcat.init
new file mode 100644
index 000000000000..8f739b9e3669
--- /dev/null
+++ b/www-servers/tomcat/files/5.0.27/tomcat.init
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.0.27/tomcat.init,v 1.1 2004/08/08 18:39:49 stuart Exp $
+
+depend() {
+ need net
+ use dns logger mysql postgresql
+}
+
+start() {
+ ebegin "Starting Tomcat"
+ start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${CATALINA_HOME}/bin/catalina.sh ${TOMCAT_START}
+ sleep 5
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Tomcat"
+ start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${CATALINA_HOME}/bin/catalina.sh ${TOMCAT_STOP}
+ sleep 5
+ eend $?
+}
diff --git a/www-servers/tomcat/files/digest-tomcat-3.3.2-r2 b/www-servers/tomcat/files/digest-tomcat-3.3.2-r2
new file mode 100644
index 000000000000..44bcb5d64a95
--- /dev/null
+++ b/www-servers/tomcat/files/digest-tomcat-3.3.2-r2
@@ -0,0 +1 @@
+MD5 edaa93b5867df0e007be7a9b44f48e0c jakarta-tomcat-3.3.2.tar.gz 6527346
diff --git a/www-servers/tomcat/files/digest-tomcat-4.1.30-r4 b/www-servers/tomcat/files/digest-tomcat-4.1.30-r4
new file mode 100644
index 000000000000..a1651a599a01
--- /dev/null
+++ b/www-servers/tomcat/files/digest-tomcat-4.1.30-r4
@@ -0,0 +1 @@
+MD5 ff27f6a5900768c1aafab4a68675b2ed jakarta-tomcat-4.1.30.tar.gz 7894019
diff --git a/www-servers/tomcat/files/digest-tomcat-5.0.27-r3 b/www-servers/tomcat/files/digest-tomcat-5.0.27-r3
new file mode 100644
index 000000000000..f96d1cd9d33a
--- /dev/null
+++ b/www-servers/tomcat/files/digest-tomcat-5.0.27-r3
@@ -0,0 +1 @@
+MD5 b802ee042677e284bcf65738c7bdc3b6 jakarta-tomcat-5.0.27.tar.gz 10298374
diff --git a/www-servers/tomcat/metadata.xml b/www-servers/tomcat/metadata.xml
new file mode 100644
index 000000000000..a215eb3fea96
--- /dev/null
+++ b/www-servers/tomcat/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <maintainer>
+ <email>axxo@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-servers/tomcat/tomcat-3.3.2-r2.ebuild b/www-servers/tomcat/tomcat-3.3.2-r2.ebuild
new file mode 100644
index 000000000000..0834823ed367
--- /dev/null
+++ b/www-servers/tomcat/tomcat-3.3.2-r2.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/tomcat-3.3.2-r2.ebuild,v 1.1 2004/08/08 18:39:49 stuart Exp $
+
+inherit eutils
+
+DESCRIPTION="Apache Servlet-2.2/JSP-1.1 Container"
+
+JT_P="jakarta-${P}.tar.gz"
+S=${WORKDIR}/jakarta-${P}
+SLOT="${PV/.*}"
+SRC_URI="mirror://apache/jakarta/tomcat-${SLOT}/v${PV}/bin/${JT_P}"
+HOMEPAGE="http://jakarta.apache.org/tomcat"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha"
+LICENSE="Apache-2.0"
+DEPEND="sys-apps/sed"
+RDEPEND=">=virtual/jdk-1.3
+ sys-apps/sed"
+IUSE=""
+
+TOMCAT_HOME="/opt/${PN}${SLOT}"
+TOMCAT_NAME="${PN}${SLOT}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}/gentoo.diff
+}
+
+src_install() {
+ dodoc LICENSE
+
+ # INIT SCRIPTS AND ENV
+ insinto /etc/init.d
+ insopts -m0750
+ newins ${FILESDIR}/${PV}/tomcat.init ${TOMCAT_NAME}
+
+ insinto /etc/conf.d
+ insopts -m0644
+ newins ${FILESDIR}/${PV}/tomcat.conf ${TOMCAT_NAME}
+
+ diropts -m750
+ dodir ${TOMCAT_HOME} /var/log/${TOMCAT_NAME} /etc/${TOMCAT_NAME}
+ keepdir /var/log/${TOMCAT_NAME}
+
+ mv conf/* ${D}/etc/${TOMCAT_NAME}
+ mv bin doc lib modules native webapps ${D}${TOMCAT_HOME}
+
+ dosym /etc/${TOMCAT_NAME} ${TOMCAT_HOME}/conf
+ dosym /var/log/${TOMCAT_NAME} ${TOMCAT_HOME}/logs
+}
+
+pkg_preinst() {
+ enewgroup tomcat
+ enewuser tomcat -1 -1 /dev/null tomcat
+
+ chown -R tomcat:tomcat ${D}/opt/${TOMCAT_NAME}
+ chown -R tomcat:tomcat ${D}/etc/${TOMCAT_NAME}
+ chown -R tomcat:tomcat ${D}/var/log/${TOMCAT_NAME}
+}
+
+pkg_postinst() {
+ #due to previous ebuild bloopers, make sure everything is correct
+ chown -R root:root /usr/share/doc/${PF}
+ chown root:root /etc/init.d/${TOMCAT_NAME}
+ chown root:root /etc/conf.d/${TOMCAT_NAME}
+
+ chown -R tomcat:tomcat /opt/${TOMCAT_NAME}
+ chown -R tomcat:tomcat /etc/${TOMCAT_NAME}
+ chown -R tomcat:tomcat /var/log/${TOMCAT_NAME}
+
+ chmod 750 /etc/${TOMCAT_NAME}
+
+ einfo " "
+ einfo " NOTICE!"
+ einfo " FILE LOCATIONS:"
+ einfo " 1. Tomcat home directory: ${TOMCAT_HOME}"
+ einfo " Contains application data, configuration files."
+ einfo " 2. Runtime settings: /etc/conf.d/${TOMCAT_NAME}"
+ einfo " Contains CLASSPATH and JAVA_HOME settings."
+ einfo " 3. Configuration: /etc/${TOMCAT_NAME}"
+ einfo " 4. Logs: /var/log/${TOMCAT_NAME}/"
+ einfo " "
+ einfo " "
+ einfo " STARTING AND STOPPING TOMCAT:"
+ einfo " /etc/init.d/${TOMCAT_NAME} start"
+ einfo " /etc/init.d/${TOMCAT_NAME} stop"
+ einfo " /etc/init.d/${TOMCAT_NAME} restart"
+ einfo " "
+ einfo " "
+ ewarn " If you are upgrading from older ebuild do NOT use"
+ ewarn " /etc/init.d/tomcat and /etc/conf.d/tomcat you probably"
+ ewarn " want to remove these. "
+ ewarn " A version number has been appended so that tomcat 3, 4 and 5"
+ ewarn " can be installed side by side"
+ einfo " "
+ einfo " NETWORK CONFIGURATION:"
+ einfo " By default, Tomcat runs on port 8080. You can change this"
+ einfo " value by editing /etc/${TOMCAT_NAME}/server.xml."
+ einfo " "
+ einfo " To test Tomcat while it's running, point your web browser to:"
+ einfo " http://localhost:8080/"
+ einfo " "
+ einfo " "
+ einfo " BUGS:"
+ einfo " Please file any bugs at http://bugs.gentoo.org/ or else it"
+ einfo " may not get seen. Thank you."
+ einfo " "
+}
diff --git a/www-servers/tomcat/tomcat-4.1.30-r4.ebuild b/www-servers/tomcat/tomcat-4.1.30-r4.ebuild
new file mode 100644
index 000000000000..3f293dda43f3
--- /dev/null
+++ b/www-servers/tomcat/tomcat-4.1.30-r4.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/tomcat-4.1.30-r4.ebuild,v 1.1 2004/08/08 18:39:49 stuart Exp $
+
+inherit eutils
+
+DESCRIPTION="Apache Servlet-2.3/JSP-1.2 Container"
+
+JT_P="jakarta-${P}.tar.gz"
+S=${WORKDIR}/jakarta-${P}
+SLOT="${PV/.*}"
+SRC_URI="mirror://apache/jakarta/tomcat-${SLOT}/v${PV}/bin/${JT_P}"
+HOMEPAGE="http://jakarta.apache.org/tomcat"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha"
+LICENSE="Apache-2.0"
+DEPEND="sys-apps/sed"
+RDEPEND=">=virtual/jdk-1.3
+ jikes? ( dev-java/jikes )"
+IUSE="doc jikes"
+
+TOMCAT_HOME="/opt/${PN}${SLOT}"
+TOMCAT_NAME="${PN}${SLOT}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}/gentoo.diff
+ use jikes && epatch ${FILESDIR}/${PV}/jikes.diff
+}
+
+src_install() {
+ dodoc RELEASE* RUNNING.txt LICENSE
+
+ # INIT SCRIPTS AND ENV
+ insinto /etc/init.d
+ insopts -m0750
+ newins ${FILESDIR}/${PV}/tomcat.init ${TOMCAT_NAME}
+
+ insinto /etc/conf.d
+ insopts -m0644
+ newins ${FILESDIR}/${PV}/tomcat.conf ${TOMCAT_NAME}
+ use jikes && sed -e "\cCATALINA_OPTScaCATALINA_OPTS=\"-Dbuild.compiler.emacs=true\"" -i ${D}/etc/conf.d/${TOMCAT_NAME}
+
+ diropts -m750
+ dodir ${TOMCAT_HOME} /var/log/${TOMCAT_NAME} /etc/${TOMCAT_NAME}
+ keepdir /var/log/${TOMCAT_NAME}
+
+ mv conf/* ${D}/etc/${TOMCAT_NAME}
+ mv bin common server shared temp work ${D}${TOMCAT_HOME}
+ if ! use doc ; then
+ rm -rf webapps/{examples,tomcat-docs}
+ fi
+ mv webapps ${D}${TOMCAT_HOME}
+
+ dosym /etc/${TOMCAT_NAME} ${TOMCAT_HOME}/conf
+ dosym /var/log/${TOMCAT_NAME} ${TOMCAT_HOME}/logs
+
+ fperms 640 /etc/${TOMCAT_NAME}/tomcat-users.xml
+}
+
+pkg_preinst() {
+ enewgroup tomcat
+ enewuser tomcat -1 -1 /dev/null tomcat
+
+ chown -R tomcat:tomcat ${D}/opt/${TOMCAT_NAME}
+ chown -R tomcat:tomcat ${D}/etc/${TOMCAT_NAME}
+ chown -R tomcat:tomcat ${D}/var/log/${TOMCAT_NAME}
+}
+
+pkg_postinst() {
+ #due to previous ebuild bloopers, make sure everything is correct
+ chown -R root:root /usr/share/doc/${PF}
+ chown root:root /etc/init.d/${TOMCAT_NAME}
+ chown root:root /etc/conf.d/${TOMCAT_NAME}
+
+ chown -R tomcat:tomcat /opt/${TOMCAT_NAME}
+ chown -R tomcat:tomcat /etc/${TOMCAT_NAME}
+ chown -R tomcat:tomcat /var/log/${TOMCAT_NAME}
+
+ chmod 750 /etc/${TOMCAT_NAME}
+
+ einfo " "
+ einfo " NOTICE!"
+ einfo " FILE LOCATIONS:"
+ einfo " 1. Tomcat home directory: ${TOMCAT_HOME}"
+ einfo " Contains application data, configuration files."
+ einfo " 2. Runtime settings: /etc/conf.d/${TOMCAT_NAME}"
+ einfo " Contains CLASSPATH and JAVA_HOME settings."
+ einfo " 3. Configuration: /etc/${TOMCAT_NAME}"
+ einfo " 4. Logs: /var/log/${TOMCAT_NAME}/"
+ einfo " "
+ einfo " "
+ einfo " STARTING AND STOPPING TOMCAT:"
+ einfo " /etc/init.d/${TOMCAT_NAME} start"
+ einfo " /etc/init.d/${TOMCAT_NAME} stop"
+ einfo " /etc/init.d/${TOMCAT_NAME} restart"
+ einfo " "
+ einfo " "
+ ewarn " If you are upgrading from older ebuild do NOT use"
+ ewarn " /etc/init.d/tomcat and /etc/conf.d/tomcat you probably"
+ ewarn " want to remove these. "
+ ewarn " A version number has been appended so that tomcat 3, 4 and 5"
+ ewarn " can be installed side by side"
+ einfo " "
+ einfo " NETWORK CONFIGURATION:"
+ einfo " By default, Tomcat runs on port 8080. You can change this"
+ einfo " value by editing /etc/${TOMCAT_NAME}/server.xml."
+ einfo " "
+ einfo " To test Tomcat while it's running, point your web browser to:"
+ einfo " http://localhost:8080/"
+ einfo " "
+ einfo " "
+ einfo " BUGS:"
+ einfo " Please file any bugs at http://bugs.gentoo.org/ or else it"
+ einfo " may not get seen. Thank you."
+ einfo " "
+}
diff --git a/www-servers/tomcat/tomcat-5.0.27-r3.ebuild b/www-servers/tomcat/tomcat-5.0.27-r3.ebuild
new file mode 100644
index 000000000000..591e44c4f9eb
--- /dev/null
+++ b/www-servers/tomcat/tomcat-5.0.27-r3.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/tomcat-5.0.27-r3.ebuild,v 1.1 2004/08/08 18:39:49 stuart Exp $
+
+inherit eutils
+
+DESCRIPTION="Apache Servlet-2.4/JSP-2.0 Container"
+
+JT_P="jakarta-${P}.tar.gz"
+S=${WORKDIR}/jakarta-${P}
+SLOT="${PV/.*}"
+SRC_URI="mirror://apache/jakarta/tomcat-${SLOT}/v${PV}/bin/${JT_P}"
+HOMEPAGE="http://jakarta.apache.org/tomcat"
+KEYWORDS="x86 ~ppc ~sparc ~alpha ~amd64"
+LICENSE="Apache-2.0"
+DEPEND="sys-apps/sed"
+RDEPEND=">=virtual/jdk-1.3
+ jikes? ( dev-java/jikes )"
+IUSE="doc jikes"
+
+TOMCAT_HOME="/opt/${PN}${SLOT}"
+TOMCAT_NAME="${PN}${SLOT}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}/gentoo.diff
+ use jikes && epatch ${FILESDIR}/${PV}/jikes.diff
+}
+
+src_install() {
+ dodoc RELEASE* RUNNING.txt LICENSE
+
+ # INIT SCRIPTS AND ENV
+ insinto /etc/init.d
+ insopts -m0750
+ newins ${FILESDIR}/${PV}/tomcat.init ${TOMCAT_NAME}
+
+ insinto /etc/conf.d
+ insopts -m0644
+ newins ${FILESDIR}/${PV}/tomcat.conf ${TOMCAT_NAME}
+ use jikes && sed -e "\cCATALINA_OPTScaCATALINA_OPTS=\"-Dbuild.compiler.emacs=true\"" -i ${D}/etc/conf.d/${TOMCAT_NAME}
+
+ diropts -m750
+ dodir ${TOMCAT_HOME} /var/log/${TOMCAT_NAME} /etc/${TOMCAT_NAME}
+ keepdir /var/log/${TOMCAT_NAME}
+
+ mv conf/* ${D}/etc/${TOMCAT_NAME}
+ mv bin common server shared temp work ${D}${TOMCAT_HOME}
+ if ! use doc; then
+ rm -rf webapps/{tomcat-docs,jsp-examples,servlets-examples}
+ fi
+ mv webapps ${D}${TOMCAT_HOME}
+
+ dosym /etc/${TOMCAT_NAME} ${TOMCAT_HOME}/conf
+ dosym /var/log/${TOMCAT_NAME} ${TOMCAT_HOME}/logs
+
+ fperms 640 /etc/${TOMCAT_NAME}/tomcat-users.xml
+}
+
+
+pkg_preinst() {
+ enewgroup tomcat
+ enewuser tomcat -1 -1 /dev/null tomcat
+
+ chown -R tomcat:tomcat ${D}/opt/${TOMCAT_NAME}
+ chown -R tomcat:tomcat ${D}/etc/${TOMCAT_NAME}
+ chown -R tomcat:tomcat ${D}/var/log/${TOMCAT_NAME}
+}
+
+pkg_postinst() {
+ #due to previous ebuild bloopers, make sure everything is correct
+ chown -R root:root /usr/share/doc/${PF}
+ chown root:root /etc/init.d/${TOMCAT_NAME}
+ chown root:root /etc/conf.d/${TOMCAT_NAME}
+
+ chown -R tomcat:tomcat /opt/${TOMCAT_NAME}
+ chown -R tomcat:tomcat /etc/${TOMCAT_NAME}
+ chown -R tomcat:tomcat /var/log/${TOMCAT_NAME}
+
+ chmod 750 /etc/${TOMCAT_NAME}
+
+ einfo " "
+ einfo " NOTICE!"
+ einfo " FILE LOCATIONS:"
+ einfo " 1. Tomcat home directory: ${TOMCAT_HOME}"
+ einfo " Contains application data, configuration files."
+ einfo " 2. Runtime settings: /etc/conf.d/${TOMCAT_NAME}"
+ einfo " Contains CLASSPATH and JAVA_HOME settings."
+ einfo " 3. Configuration: /etc/${TOMCAT_NAME}"
+ einfo " 4. Logs: /var/log/${TOMCAT_NAME}/"
+ einfo " "
+ einfo " "
+ einfo " STARTING AND STOPPING TOMCAT:"
+ einfo " /etc/init.d/${TOMCAT_NAME} start"
+ einfo " /etc/init.d/${TOMCAT_NAME} stop"
+ einfo " /etc/init.d/${TOMCAT_NAME} restart"
+ einfo " "
+ einfo " "
+ ewarn " If you are upgrading from older ebuild do NOT use"
+ ewarn " /etc/init.d/tomcat and /etc/conf.d/tomcat you probably"
+ ewarn " want to remove these. "
+ ewarn " A version number has been appended so that tomcat 3, 4 and 5"
+ ewarn " can be installed side by side"
+ einfo " "
+ einfo " NETWORK CONFIGURATION:"
+ einfo " By default, Tomcat runs on port 8080. You can change this"
+ einfo " value by editing /etc/${TOMCAT_NAME}/server.xml."
+ einfo " "
+ einfo " To test Tomcat while it's running, point your web browser to:"
+ einfo " http://localhost:8080/"
+ einfo " "
+ einfo " "
+ einfo " BUGS:"
+ einfo " Please file any bugs at http://bugs.gentoo.org/ or else it"
+ einfo " may not get seen. Thank you."
+ einfo " "
+}