diff options
author | Chris Aniszczyk <zx@gentoo.org> | 2004-02-16 01:06:43 +0000 |
---|---|---|
committer | Chris Aniszczyk <zx@gentoo.org> | 2004-02-16 01:06:43 +0000 |
commit | b9b59367cf6c06585d0a8df2aebccfd22cb1e11f (patch) | |
tree | 527eb699ef7193a29d20db75f2d369e8d4091ae5 /net-www/tomcat | |
parent | Massive bug fixes + new versions of tomcat. Added metadata.xml. (Manifest rec... (diff) | |
download | gentoo-2-b9b59367cf6c06585d0a8df2aebccfd22cb1e11f.tar.gz gentoo-2-b9b59367cf6c06585d0a8df2aebccfd22cb1e11f.tar.bz2 gentoo-2-b9b59367cf6c06585d0a8df2aebccfd22cb1e11f.zip |
adding patch files
Diffstat (limited to 'net-www/tomcat')
-rw-r--r-- | net-www/tomcat/files/4.1.29/21tomcat | 5 | ||||
-rw-r--r-- | net-www/tomcat/files/4.1.29/gentoo.diff | 164 | ||||
-rw-r--r-- | net-www/tomcat/files/4.1.29/tomcat.conf | 76 | ||||
-rw-r--r-- | net-www/tomcat/files/4.1.29/tomcat.init | 32 | ||||
-rw-r--r-- | net-www/tomcat/files/5.0.18/21tomcat | 5 | ||||
-rw-r--r-- | net-www/tomcat/files/5.0.18/gentoo.diff | 173 | ||||
-rw-r--r-- | net-www/tomcat/files/5.0.18/tomcat.conf | 76 | ||||
-rw-r--r-- | net-www/tomcat/files/5.0.18/tomcat.init | 32 |
8 files changed, 563 insertions, 0 deletions
diff --git a/net-www/tomcat/files/4.1.29/21tomcat b/net-www/tomcat/files/4.1.29/21tomcat new file mode 100644 index 000000000000..5deefea5bd61 --- /dev/null +++ b/net-www/tomcat/files/4.1.29/21tomcat @@ -0,0 +1,5 @@ +CATALINA_HOME=/opt/tomcat +CONFIG_PROTECT=/etc/tomcat +#CATALINA_LIBDIR=/usr/share/tomcat/lib +#CLASSPATH=${CATALINA_LIBDIR} +#ENV_VARS="CATALINA_LIBDIR" diff --git a/net-www/tomcat/files/4.1.29/gentoo.diff b/net-www/tomcat/files/4.1.29/gentoo.diff new file mode 100644 index 000000000000..03b539b2f8b7 --- /dev/null +++ b/net-www/tomcat/files/4.1.29/gentoo.diff @@ -0,0 +1,164 @@ +--- bin/setclasspath.sh.orig 2003-10-27 10:26:34.000000000 -0500 ++++ bin/setclasspath.sh 2004-02-11 18:11:06.629521241 -0500 +@@ -6,31 +6,25 @@ + + # Make sure prerequisite environment variables are set + if [ -z "$JAVA_HOME" ]; then +- echo "The JAVA_HOME environment variable is not defined" +- echo "This environment variable is needed to run this program" ++ echo "The JAVA_HOME environment variable is not defined!" ++ echo "This environment variable is needed to run this program." ++ echo "See the /etc/conf.d/tomcat file for details." + exit 1 + fi +-if $os400; then +- if [ ! -r "$JAVA_HOME"/bin/java -o ! -r "$JAVA_HOME"/bin/javac ]; then +- echo "The JAVA_HOME environment variable is not defined correctly" +- echo "This environment variable is needed to run this program" +- exit 1 +- fi +-else +- if [ ! -r "$JAVA_HOME"/bin/java -o ! -r "$JAVA_HOME"/bin/jdb -o ! -r "$JAVA_HOME"/bin/javac ]; then +- echo "The JAVA_HOME environment variable is not defined correctly" +- echo "This environment variable is needed to run this program" +- exit 1 +- fi ++if [ ! -r "$JAVA_HOME"/bin/java -o ! -r "$JAVA_HOME"/bin/jdb -o ! -r "$JAVA_HOME"/bin/javac ]; then ++ echo "The JAVA_HOME environment variable is not defined correctly!" ++ echo "This environment variable is needed to run this program." ++ echo "See the /etc/conf.d/tomcat file for details." ++ exit 1 + fi + if [ -z "$BASEDIR" ]; then +- echo "The BASEDIR environment variable is not defined" +- echo "This environment variable is needed to run this program" ++ echo "The BASEDIR environment variable is not defined!" ++ echo "This environment variable is needed to run this program." + exit 1 + fi + if [ ! -r "$BASEDIR"/bin/setclasspath.sh ]; then +- echo "The BASEDIR environment variable is not defined correctly" +- echo "This environment variable is needed to run this program" ++ echo "The BASEDIR environment variable is not defined correctly!" ++ echo "This environment variable is needed to run this program." + exit 1 + fi + +@@ -38,22 +32,9 @@ + JAVA_ENDORSED_DIRS="$BASEDIR"/common/endorsed + + # Set standard CLASSPATH +-CLASSPATH="$JAVA_HOME"/lib/tools.jar +- +-# OSX hack to CLASSPATH +-JIKESPATH= +-if [ `uname -s` = "Darwin" ]; then +- OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes" +- if [ -d "$OSXHACK" ]; then +- for i in "$OSXHACK"/*.jar; do +- JIKESPATH="$JIKESPATH":"$i" +- done +- fi +-fi ++CLASSPATH="$CLASSPATH":"$JAVA_HOME"/lib/tools.jar + + # Set standard commands for invoking Java. + _RUNJAVA="$JAVA_HOME"/bin/java +-if [ ! "$os400" ]; then +- _RUNJDB="$JAVA_HOME"/bin/jdb +-fi ++_RUNJDB="$JAVA_HOME"/bin/jdb + _RUNJAVAC="$JAVA_HOME"/bin/javac +--- bin/catalina.sh.orig 2003-10-27 10:26:22.000000000 -0500 ++++ bin/catalina.sh 2004-02-11 15:39:41.000000000 -0500 +@@ -41,10 +41,6 @@ + # OS specific support. $var _must_ be set to either true or false. + cygwin=false + os400=false +-case "`uname`" in +-CYGWIN*) cygwin=true;; +-OS400*) os400=true;; +-esac + + # resolve links - $0 may be a softlink + PRG="$0" +@@ -66,26 +62,8 @@ + . "$CATALINA_HOME"/bin/setenv.sh + fi + +-# For Cygwin, ensure paths are in UNIX format before anything is touched +-if $cygwin; then +- [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +- [ -n "$CATALINA_HOME" ] && CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"` +- [ -n "$CATALINA_BASE" ] && CATALINA_BASE=`cygpath --unix "$CATALINA_BASE"` +- [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +- [ -n "$JSSE_HOME" ] && JSSE_HOME=`cygpath --path --unix "$JSSE_HOME"` +-fi +- +-# For OS400 +-if $os400; then +- # Set job priority to standard for interactive (interactive - 6) by using +- # the interactive priority - 6, the helper threads that respond to requests +- # will be running at the same priority as interactive jobs. +- COMMAND='chgjob job('$JOBNAME') runpty(6)' +- system $COMMAND +- +- # Enable multi threading +- export QIBM_MULTI_THREADED=Y +-fi ++source /etc/profile ++source /etc/conf.d/tomcat + + # Get standard Java environment variables + if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then +@@ -112,23 +90,8 @@ + CATALINA_TMPDIR="$CATALINA_BASE"/temp + fi + +-# For Cygwin, switch paths to Windows format before running java +-if $cygwin; then +- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` +- CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"` +- CATALINA_BASE=`cygpath --path --windows "$CATALINA_BASE"` +- CATALINA_TMPDIR=`cygpath --path --windows "$CATALINA_TMPDIR"` +- CLASSPATH=`cygpath --path --windows "$CLASSPATH"` +- JSSE_HOME=`cygpath --path --windows "$JSSE_HOME"` +-fi +- + # ----- Execute The Requested Command ----------------------------------------- + +-echo "Using CATALINA_BASE: $CATALINA_BASE" +-echo "Using CATALINA_HOME: $CATALINA_HOME" +-echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR" +-echo "Using JAVA_HOME: $JAVA_HOME" +- + if [ "$1" = "jpda" ] ; then + if [ -z "$JPDA_TRANSPORT" ]; then + JPDA_TRANSPORT="dt_socket" +@@ -210,7 +173,7 @@ + elif [ "$1" = "start" ] ; then + + shift +- touch "$CATALINA_BASE"/logs/catalina.out ++ touch "$CATALINA_OUT" + if [ "$1" = "-security" ] ; then + echo "Using Security Manager" + shift +@@ -222,7 +185,7 @@ + -Dcatalina.home="$CATALINA_HOME" \ + -Djava.io.tmpdir="$CATALINA_TMPDIR" \ + org.apache.catalina.startup.Bootstrap "$@" start \ +- >> "$CATALINA_BASE"/logs/catalina.out 2>&1 & ++ >> "$CATALINA_OUT" 2>&1 & + + if [ ! -z "$CATALINA_PID" ]; then + echo $! > $CATALINA_PID +@@ -234,7 +197,7 @@ + -Dcatalina.home="$CATALINA_HOME" \ + -Djava.io.tmpdir="$CATALINA_TMPDIR" \ + org.apache.catalina.startup.Bootstrap "$@" start \ +- >> "$CATALINA_BASE"/logs/catalina.out 2>&1 & ++ >> "$CATALINA_OUT" 2>&1 & + + if [ ! -z "$CATALINA_PID" ]; then + echo $! > $CATALINA_PID diff --git a/net-www/tomcat/files/4.1.29/tomcat.conf b/net-www/tomcat/files/4.1.29/tomcat.conf new file mode 100644 index 000000000000..a3d143423050 --- /dev/null +++ b/net-www/tomcat/files/4.1.29/tomcat.conf @@ -0,0 +1,76 @@ +# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/files/4.1.29/tomcat.conf,v 1.1 2004/02/16 01:06:43 zx 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=`/bin/grep -e "JAVA_HOME" /etc/profile.env | /bin/sed -e "s/^.*'\(.*\)'$/\1/"` + +# (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/tomcat +CATALINA_BASE=${CATALINA_HOME} + +# Tomcat's User +CATALINA_USER=tomcat + +# Tomcat Console Log Location +CATALINA_OUT=/var/log/tomcat/catalina.log + +# Location of the Tomcat JARs and classes +CATALINA_LIBDIR=/usr/share/tomcat/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/net-www/tomcat/files/4.1.29/tomcat.init b/net-www/tomcat/files/4.1.29/tomcat.init new file mode 100644 index 000000000000..960faa66a1b5 --- /dev/null +++ b/net-www/tomcat/files/4.1.29/tomcat.init @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/files/4.1.29/tomcat.init,v 1.1 2004/02/16 01:06:43 zx Exp $ + +depend() { + need net + use dns logger mysql postgresql +} + +start() { + ebegin "Starting Tomcat" + cd ${CATALINA_HOME} + su - ${CATALINA_USER} -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_START}" + eend $? +} + +stop () { + ebegin "Stopping Tomcat" + su - ${CATALINA_USER} -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_STOP}" + sleep 2 + eend $? +} + +svc_restart () { + ebegin "Restarting Tomcat" + su - ${CATALINA_USER} -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_STOP}" + sleep 5 + cd ${CATALINA_HOME} + su - ${CATALINA_USER} -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_START}" + eend $? +} diff --git a/net-www/tomcat/files/5.0.18/21tomcat b/net-www/tomcat/files/5.0.18/21tomcat new file mode 100644 index 000000000000..5deefea5bd61 --- /dev/null +++ b/net-www/tomcat/files/5.0.18/21tomcat @@ -0,0 +1,5 @@ +CATALINA_HOME=/opt/tomcat +CONFIG_PROTECT=/etc/tomcat +#CATALINA_LIBDIR=/usr/share/tomcat/lib +#CLASSPATH=${CATALINA_LIBDIR} +#ENV_VARS="CATALINA_LIBDIR" diff --git a/net-www/tomcat/files/5.0.18/gentoo.diff b/net-www/tomcat/files/5.0.18/gentoo.diff new file mode 100644 index 000000000000..b318aaa1a21a --- /dev/null +++ b/net-www/tomcat/files/5.0.18/gentoo.diff @@ -0,0 +1,173 @@ +--- bin/setclasspath.sh.orig 2004-01-15 12:24:32.000000000 -0500 ++++ bin/setclasspath.sh 2004-02-11 18:12:57.586170211 -0500 +@@ -6,31 +6,25 @@ + + # Make sure prerequisite environment variables are set + if [ -z "$JAVA_HOME" ]; then +- echo "The JAVA_HOME environment variable is not defined" +- echo "This environment variable is needed to run this program" ++ echo "The JAVA_HOME environment variable is not defined!" ++ echo "This environment variable is needed to run this program." ++ echo "See the /etc/conf.d/tomcat file for details." + exit 1 + fi +-if $os400; then +- if [ ! -r "$JAVA_HOME"/bin/java -o ! -r "$JAVA_HOME"/bin/javac ]; then +- echo "The JAVA_HOME environment variable is not defined correctly" +- echo "This environment variable is needed to run this program" +- exit 1 +- fi +-else +- if [ ! -r "$JAVA_HOME"/bin/java -o ! -r "$JAVA_HOME"/bin/jdb -o ! -r "$JAVA_HOME"/bin/javac ]; then +- echo "The JAVA_HOME environment variable is not defined correctly" +- echo "This environment variable is needed to run this program" +- exit 1 +- fi ++if [ ! -r "$JAVA_HOME"/bin/java -o ! -r "$JAVA_HOME"/bin/jdb -o ! -r "$JAVA_HOME"/bin/javac ]; then ++ echo "The JAVA_HOME environment variable is not defined correctly!" ++ echo "This environment variable is needed to run this program." ++ echo "See the /etc/conf.d/tomcat file for details." ++ exit 1 + fi + if [ -z "$BASEDIR" ]; then +- echo "The BASEDIR environment variable is not defined" +- echo "This environment variable is needed to run this program" ++ echo "The BASEDIR environment variable is not defined!" ++ echo "This environment variable is needed to run this program." + exit 1 + fi + if [ ! -r "$BASEDIR"/bin/setclasspath.sh ]; then +- echo "The BASEDIR environment variable is not defined correctly" +- echo "This environment variable is needed to run this program" ++ echo "The BASEDIR environment variable is not defined correctly!" ++ echo "This environment variable is needed to run this program." + exit 1 + fi + +@@ -38,22 +32,9 @@ + JAVA_ENDORSED_DIRS="$BASEDIR"/common/endorsed + + # Set standard CLASSPATH +-CLASSPATH="$JAVA_HOME"/lib/tools.jar +- +-# OSX hack to CLASSPATH +-JIKESPATH= +-if [ `uname -s` = "Darwin" ]; then +- OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes" +- if [ -d "$OSXHACK" ]; then +- for i in "$OSXHACK"/*.jar; do +- JIKESPATH="$JIKESPATH":"$i" +- done +- fi +-fi ++CLASSPATH="$CLASSPATH":"$JAVA_HOME"/lib/tools.jar + + # Set standard commands for invoking Java. + _RUNJAVA="$JAVA_HOME"/bin/java +-if [ $os400 = false ]; then +- _RUNJDB="$JAVA_HOME"/bin/jdb +-fi ++_RUNJDB="$JAVA_HOME"/bin/jdb + _RUNJAVAC="$JAVA_HOME"/bin/javac +--- bin/catalina.sh.orig 2004-01-15 12:24:32.000000000 -0500 ++++ bin/catalina.sh 2004-02-11 16:11:49.000000000 -0500 +@@ -41,10 +41,6 @@ + # OS specific support. $var _must_ be set to either true or false. + cygwin=false + os400=false +-case "`uname`" in +-CYGWIN*) cygwin=true;; +-OS400*) os400=true;; +-esac + + # resolve links - $0 may be a softlink + PRG="$0" +@@ -66,26 +62,8 @@ + . "$CATALINA_HOME"/bin/setenv.sh + fi + +-# For Cygwin, ensure paths are in UNIX format before anything is touched +-if $cygwin; then +- [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +- [ -n "$CATALINA_HOME" ] && CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"` +- [ -n "$CATALINA_BASE" ] && CATALINA_BASE=`cygpath --unix "$CATALINA_BASE"` +- [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +- [ -n "$JSSE_HOME" ] && JSSE_HOME=`cygpath --path --unix "$JSSE_HOME"` +-fi +- +-# For OS400 +-if $os400; then +- # Set job priority to standard for interactive (interactive - 6) by using +- # the interactive priority - 6, the helper threads that respond to requests +- # will be running at the same priority as interactive jobs. +- COMMAND='chgjob job('$JOBNAME') runpty(6)' +- system $COMMAND +- +- # Enable multi threading +- export QIBM_MULTI_THREADED=Y +-fi ++source /etc/profile ++source /etc/conf.d/tomcat + + # Get standard Java environment variables + if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then +@@ -112,16 +90,6 @@ + CATALINA_TMPDIR="$CATALINA_BASE"/temp + fi + +-# For Cygwin, switch paths to Windows format before running java +-if $cygwin; then +- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` +- CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"` +- CATALINA_BASE=`cygpath --path --windows "$CATALINA_BASE"` +- CATALINA_TMPDIR=`cygpath --path --windows "$CATALINA_TMPDIR"` +- CLASSPATH=`cygpath --path --windows "$CLASSPATH"` +- JSSE_HOME=`cygpath --path --windows "$JSSE_HOME"` +-fi +- + # ----- Execute The Requested Command ----------------------------------------- + + echo "Using CATALINA_BASE: $CATALINA_BASE" +@@ -199,7 +167,7 @@ + elif [ "$1" = "start" ] ; then + + shift +- touch "$CATALINA_BASE"/logs/catalina.out ++ touch "$CATALINA_OUT" + if [ "$1" = "-security" ] ; then + echo "Using Security Manager" + shift +@@ -211,7 +179,7 @@ + -Dcatalina.home="$CATALINA_HOME" \ + -Djava.io.tmpdir="$CATALINA_TMPDIR" \ + org.apache.catalina.startup.Bootstrap "$@" start \ +- >> "$CATALINA_BASE"/logs/catalina.out 2>&1 & ++ >> "$CATALINA_OUT" 2>&1 & + + if [ ! -z "$CATALINA_PID" ]; then + echo $! > $CATALINA_PID +@@ -223,7 +191,7 @@ + -Dcatalina.home="$CATALINA_HOME" \ + -Djava.io.tmpdir="$CATALINA_TMPDIR" \ + org.apache.catalina.startup.Bootstrap "$@" start \ +- >> "$CATALINA_BASE"/logs/catalina.out 2>&1 & ++ >> "$CATALINA_OUT" 2>&1 & + + if [ ! -z "$CATALINA_PID" ]; then + echo $! > $CATALINA_PID +@@ -252,13 +220,8 @@ + + echo "Usage: catalina.sh ( commands ... )" + echo "commands:" +- if $os400; then +- echo " debug Start Catalina in a debugger (not available on OS400)" +- echo " debug -security Debug Catalina with a security manager (not available on OS400)" +- else +- echo " debug Start Catalina in a debugger" +- echo " debug -security Debug Catalina with a security manager" +- fi ++ echo " debug Start Catalina in a debugger" ++ echo " debug -security Debug Catalina with a security manager" + echo " jpda start Start Catalina under JPDA debugger" + echo " run Start Catalina in the current window" + echo " run -security Start in the current window with security manager" diff --git a/net-www/tomcat/files/5.0.18/tomcat.conf b/net-www/tomcat/files/5.0.18/tomcat.conf new file mode 100644 index 000000000000..68a709c15cc1 --- /dev/null +++ b/net-www/tomcat/files/5.0.18/tomcat.conf @@ -0,0 +1,76 @@ +# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/files/5.0.18/tomcat.conf,v 1.1 2004/02/16 01:06:24 zx 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=`/bin/grep -e "JAVA_HOME" /etc/profile.env | /bin/sed -e "s/^.*'\(.*\)'$/\1/"` + +# (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/tomcat +CATALINA_BASE=${CATALINA_HOME} + +# Tomcat's User +CATALINA_USER=tomcat + +# Tomcat Console Log Location +CATALINA_OUT=/var/log/tomcat/catalina.log + +# Location of the Tomcat JARs and classes +CATALINA_LIBDIR=/usr/share/tomcat/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/net-www/tomcat/files/5.0.18/tomcat.init b/net-www/tomcat/files/5.0.18/tomcat.init new file mode 100644 index 000000000000..c4f50dfc8e9c --- /dev/null +++ b/net-www/tomcat/files/5.0.18/tomcat.init @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/files/5.0.18/tomcat.init,v 1.1 2004/02/16 01:06:24 zx Exp $ + +depend() { + need net + use dns logger mysql postgresql +} + +start() { + ebegin "Starting Tomcat" + cd ${CATALINA_HOME} + su - ${CATALINA_USER} -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_START}" + eend $? +} + +stop () { + ebegin "Stopping Tomcat" + su - ${CATALINA_USER} -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_STOP}" + sleep 2 + eend $? +} + +svc_restart () { + ebegin "Restarting Tomcat" + su - ${CATALINA_USER} -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_STOP}" + sleep 5 + cd ${CATALINA_HOME} + su - ${CATALINA_USER} -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_START}" + eend $? +} |