summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Carlson <absinthe@gentoo.org>2003-04-06 08:44:46 +0000
committerDylan Carlson <absinthe@gentoo.org>2003-04-06 08:44:46 +0000
commitb63bd776386d266c15de189b8395357ec5c31d94 (patch)
tree9a815467210b7ea66b0517999565ff89744977e3 /net-www/tomcat
parentx86 ppc sparc moved to stable. (diff)
downloadgentoo-2-b63bd776386d266c15de189b8395357ec5c31d94.tar.gz
gentoo-2-b63bd776386d266c15de189b8395357ec5c31d94.tar.bz2
gentoo-2-b63bd776386d266c15de189b8395357ec5c31d94.zip
housecleaning.
Diffstat (limited to 'net-www/tomcat')
-rw-r--r--net-www/tomcat/files/21tomcat2
-rw-r--r--net-www/tomcat/files/4.1.18/21tomcat2
-rw-r--r--net-www/tomcat/files/4.1.18/gentoo.diff112
-rw-r--r--net-www/tomcat/files/4.1.18/tomcat.conf73
-rw-r--r--net-www/tomcat/files/4.1.18/tomcat.init32
-rw-r--r--net-www/tomcat/files/digest-tomcat-4.0.61
-rw-r--r--net-www/tomcat/files/digest-tomcat-4.1.18-r11
-rw-r--r--net-www/tomcat/files/httpd.tomcat166
-rwxr-xr-xnet-www/tomcat/files/tomcat90
-rw-r--r--net-www/tomcat/tomcat-4.0.6.ebuild24
-rw-r--r--net-www/tomcat/tomcat-4.1.18-r1.ebuild150
11 files changed, 0 insertions, 653 deletions
diff --git a/net-www/tomcat/files/21tomcat b/net-www/tomcat/files/21tomcat
deleted file mode 100644
index 55c466ad24a8..000000000000
--- a/net-www/tomcat/files/21tomcat
+++ /dev/null
@@ -1,2 +0,0 @@
-CATALINA_HOME=/opt/jakarta/tomcat
-CONFIG_PROTECT=/opt/jakarta/tomcat/conf
diff --git a/net-www/tomcat/files/4.1.18/21tomcat b/net-www/tomcat/files/4.1.18/21tomcat
deleted file mode 100644
index a3879343e642..000000000000
--- a/net-www/tomcat/files/4.1.18/21tomcat
+++ /dev/null
@@ -1,2 +0,0 @@
-CATALINA_HOME=/opt/tomcat
-CONFIG_PROTECT=/opt/tomcat/conf
diff --git a/net-www/tomcat/files/4.1.18/gentoo.diff b/net-www/tomcat/files/4.1.18/gentoo.diff
deleted file mode 100644
index 5ef055e4a42f..000000000000
--- a/net-www/tomcat/files/4.1.18/gentoo.diff
+++ /dev/null
@@ -1,112 +0,0 @@
---- bin/catalina.sh.orig 2003-03-22 00:34:17.000000000 -0500
-+++ bin/catalina.sh 2003-03-22 02:14:52.000000000 -0500
-@@ -35,12 +35,6 @@
- # $Id: gentoo.diff,v 1.1 2003/03/22 10:42:02 absinthe Exp $
- # -----------------------------------------------------------------------------
-
--# OS specific support. $var _must_ be set to either true or false.
--cygwin=false
--case "`uname`" in
--CYGWIN*) cygwin=true;;
--esac
--
- # resolve links - $0 may be a softlink
- PRG="$0"
-
-@@ -56,20 +50,12 @@
-
- # Get standard environment variables
- PRGDIR=`dirname "$PRG"`
-+source /etc/conf.d/tomcat
- CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`
- if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
- . "$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
--
- # Get standard Java environment variables
- if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
- BASEDIR="$CATALINA_HOME"
-@@ -95,16 +81,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"
-@@ -188,7 +164,7 @@
- elif [ "$1" = "start" ] ; then
-
- shift
-- touch "$CATALINA_BASE"/logs/catalina.out
-+ touch "$CATALINA_OUT"
- if [ "$1" = "-security" ] ; then
- echo "Using Security Manager"
- shift
-@@ -200,7 +176,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 &
- else
- "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
- -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
-@@ -208,7 +184,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 &
- fi
-
- elif [ "$1" = "stop" ] ; then
---- bin/setclasspath.sh.orig 2003-03-22 00:42:16.000000000 -0500
-+++ bin/setclasspath.sh 2003-03-22 05:14:10.000000000 -0500
-@@ -6,13 +6,15 @@
-
- # 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 [ ! -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 "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
-@@ -27,7 +29,7 @@
- fi
-
- # Set the default -Djava.endorsed.dirs argument
--JAVA_ENDORSED_DIRS="$BASEDIR"/bin:"$BASEDIR"/common/endorsed
-+JAVA_ENDORSED_DIRS="$TOMCAT_LIBDIR"
-
- # Set standard CLASSPATH
- CLASSPATH="$JAVA_HOME"/lib/tools.jar
diff --git a/net-www/tomcat/files/4.1.18/tomcat.conf b/net-www/tomcat/files/4.1.18/tomcat.conf
deleted file mode 100644
index 5f857fab233e..000000000000
--- a/net-www/tomcat/files/4.1.18/tomcat.conf
+++ /dev/null
@@ -1,73 +0,0 @@
-# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/files/4.1.18/tomcat.conf,v 1.1 2003/03/22 10:42:02 absinthe Exp $
-
-# Must point at your Java Development Kit installation.
-# This value must be set to a correct value for Tomcat to run!
-# See java-config(1) manual page for assistance in determining this value.
-#
-# Example: JAVA_HOME=/opt/sun-jdk-1.4.1.01
-JAVA_HOME=""
-
-# (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 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}/lib
-
-# (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.01/jre/lib/"
diff --git a/net-www/tomcat/files/4.1.18/tomcat.init b/net-www/tomcat/files/4.1.18/tomcat.init
deleted file mode 100644
index dc9589b7147a..000000000000
--- a/net-www/tomcat/files/4.1.18/tomcat.init
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/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.18/tomcat.init,v 1.1 2003/03/22 10:42:02 absinthe Exp $
-
-depend() {
- need net
- use dns logger
-}
-
-start() {
- ebegin "Starting Tomcat"
- cd ${CATALINA_HOME}
- su - tomcat -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_START}"
- eend $?
-}
-
-stop () {
- ebegin "Stopping Tomcat"
- su - tomcat -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_STOP}"
- sleep 2
- eend $?
-}
-
-svc_restart () {
- ebegin "Restarting Tomcat"
- su - tomcat -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_STOP}"
- sleep 5
- cd ${CATALINA_HOME}
- su - tomcat -c "/opt/tomcat/bin/catalina.sh ${TOMCAT_START}"
- eend $?
-}
diff --git a/net-www/tomcat/files/digest-tomcat-4.0.6 b/net-www/tomcat/files/digest-tomcat-4.0.6
deleted file mode 100644
index 7444cdf20705..000000000000
--- a/net-www/tomcat/files/digest-tomcat-4.0.6
+++ /dev/null
@@ -1 +0,0 @@
-MD5 643f334059afa719a3d0bc1b04ac7504 jakarta-tomcat-4.0.6.tar.gz 4313503
diff --git a/net-www/tomcat/files/digest-tomcat-4.1.18-r1 b/net-www/tomcat/files/digest-tomcat-4.1.18-r1
deleted file mode 100644
index 723d25febec3..000000000000
--- a/net-www/tomcat/files/digest-tomcat-4.1.18-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 dc2add13f9f1b1038ccbb72a0610f343 jakarta-tomcat-4.1.18.tar.gz 6847833
diff --git a/net-www/tomcat/files/httpd.tomcat b/net-www/tomcat/files/httpd.tomcat
deleted file mode 100644
index cfba3843d7ec..000000000000
--- a/net-www/tomcat/files/httpd.tomcat
+++ /dev/null
@@ -1,166 +0,0 @@
-###################################################################
-# Auto generated configuration. Dated: Tue Jul 10 03:54:01 CEST 2001
-###################################################################
-
-#
-# The following line instructs Apache to load the jk module
-#
-LoadModule jk_module /usr/lib/apache/mod_jk.so
-
-JkWorkersFile /opt/jakarta/tomcat/conf/workers.properties
-JkLogFile /var/log/apache/mod_jk.log
-
-#
-# Log level to be used by mod_jk
-#
-JkLogLevel error
-
-###################################################################
-# SSL configuration #
-#
-# By default mod_jk is configured to collect SSL information from
-# the apache environment and send it to the Tomcat workers. The
-# problem is that there are many SSL solutions for Apache and as
-# a result the environment variable names may change.
-#
-# The following (commented out) JK related SSL configureation
-# can be used to customize mod_jk's SSL behaviour.
-#
-# Should mod_jk send SSL information to Tomact (default is On)
-# JkExtractSSL Off
-#
-# What is the indicator for SSL (default is HTTPS)
-# JkHTTPSIndicator HTTPS
-#
-# What is the indicator for SSL session (default is SSL_SESSION_ID)
-# JkSESSIONIndicator SSL_SESSION_ID
-#
-# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
-# JkCIPHERIndicator SSL_CIPHER
-#
-# What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT)
-# JkCERTSIndicator SSL_CLIENT_CERT
-#
-# #
-###################################################################
-
-#
-# Root context mounts for Tomcat
-#
-JkMount /*.jsp ajp12
-JkMount /servlet/* ajp12
-
-#########################################################
-# Auto configuration for the /examples context starts.
-#########################################################
-
-#
-# The following line makes apache aware of the location of the /examples context
-#
-Alias /examples "/opt/jakarta/tomcat/webapps/examples"
-<Directory "/opt/jakarta/tomcat/webapps/examples">
- Options Indexes FollowSymLinks
-</Directory>
-
-#
-# The following line mounts all JSP files and the /servlet/ uri to tomcat
-#
-JkMount /examples/servlet/* ajp12
-JkMount /examples/*.jsp ajp12
-
-#
-# The following line prohibits users from directly accessing WEB-INF
-#
-<Location "/examples/WEB-INF/">
- AllowOverride None
- deny from all
-</Location>
-
-#
-# The following line prohibits users from directly accessing META-INF
-#
-<Location "/examples/META-INF/">
- AllowOverride None
- deny from all
-</Location>
-
-#######################################################
-# Auto configuration for the /examples context ends.
-#######################################################
-
-#########################################################
-# Auto configuration for the /admin context starts.
-#########################################################
-
-#
-# The following line makes apache aware of the location of the /admin context
-#
-Alias /admin "/opt/jakarta/tomcat/webapps/admin"
-<Directory "/opt/jakarta/tomcat/webapps/admin">
- Options Indexes FollowSymLinks
-</Directory>
-
-#
-# The following line mounts all JSP files and the /servlet/ uri to tomcat
-#
-JkMount /admin/servlet/* ajp12
-JkMount /admin/*.jsp ajp12
-
-#
-# The following line prohibits users from directly accessing WEB-INF
-#
-<Location "/admin/WEB-INF/">
- AllowOverride None
- deny from all
-</Location>
-
-#
-# The following line prohibits users from directly accessing META-INF
-#
-<Location "/admin/META-INF/">
- AllowOverride None
- deny from all
-</Location>
-
-#######################################################
-# Auto configuration for the /admin context ends.
-#######################################################
-
-#########################################################
-# Auto configuration for the /test context starts.
-#########################################################
-
-#
-# The following line makes apache aware of the location of the /test context
-#
-Alias /test "/opt/jakarta/tomcat/webapps/test"
-<Directory "/opt/jakarta/tomcat/webapps/test">
- Options Indexes FollowSymLinks
-</Directory>
-
-#
-# The following line mounts all JSP files and the /servlet/ uri to tomcat
-#
-JkMount /test/servlet/* ajp12
-JkMount /test/*.jsp ajp12
-
-#
-# The following line prohibits users from directly accessing WEB-INF
-#
-<Location "/test/WEB-INF/">
- AllowOverride None
- deny from all
-</Location>
-
-#
-# The following line prohibits users from directly accessing META-INF
-#
-<Location "/test/META-INF/">
- AllowOverride None
- deny from all
-</Location>
-
-#######################################################
-# Auto configuration for the /test context ends.
-#######################################################
-
diff --git a/net-www/tomcat/files/tomcat b/net-www/tomcat/files/tomcat
deleted file mode 100755
index 196dacf6a69a..000000000000
--- a/net-www/tomcat/files/tomcat
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/sh
-#RCUPDATE:3 4:75:
-# $Id: tomcat,v 1.1 2001/07/10 02:00:22 achim Exp $
-
-. /etc/rc.d/config/functions
-
-# Shell script to start and stop the server
-opts="start stop restart"
-
-# There are other, simpler commands to startup the runner. The two
-# commented commands good replacements. The first works well with
-# Java Platform 1.1 based runtimes. The second works well with
-# Java2 Platform based runtimes.
-
-JAVA_HOME=/opt/java
-TOMCAT_HOME=/opt/jakarta/tomcat
-
-if [ "$TOMCAT_OPTS" = "" ] ; then
- TOMCAT_OPTS=""
-fi
-
-if [ "$ANT_OPTS" = "" ] ; then
- ANT_OPTS=""
-fi
-
-if [ "$JSPC_OPTS" = "" ] ; then
- JSPC_OPTS=""
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- JAVA=`which java`
- if [ -z "$JAVA" ] ; then
- echo "Cannot find JAVA. Please set your PATH."
- exit 1
- fi
- JAVA_BINDIR=`dirname $JAVA`
- JAVA_HOME=$JAVA_BINDIR/..
-fi
-
-if [ "$JAVACMD" = "" ] ; then
- # it may be defined in env - including flags!!
- JAVACMD=$JAVA_HOME/bin/java
-fi
-
-
-oldCP=$CLASSPATH
-
-CLASSPATH=.
-
-# Add support for Cocoon if available
-
-if [ -f /opt/tomcat/lib/cocoon/cocoon.jar ]; then
-
- for i in ${TOMCAT_HOME}/lib/cocoon/*.jar
- do
- CLASSPATH=${i}:${CLASSPATH}
- done
- CLASSPATH=${CLASSPATH}:/usr/lib/java/jndi.jar
-fi
-
-for i in ${TOMCAT_HOME}/lib/* ; do
- CLASSPATH=${CLASSPATH}:$i
-done
-
-CLASSPATH=${CLASSPATH}:/opt/java/src.jar:/opt/java/lib/tools.jar:/usr/lib/java/jaxp.jar:/usr/lib/java/parser.jar:/usr/lib/java/jcert.jar:/usr/lib/java/jnet.jar:/usr/lib/java/jsse.jar
-
-export CLASSPATH
-
-# We start the server up in the background for a couple of reasons:
-# 1) It frees up your command window
-# 2) You should use `stop` option instead of ^C to bring down the server
-OP="$TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME} org.apache.tomcat.startup.Tomcat"
-start () {
- ebegin "Starting Jakarta Servlet Engine..."
- $JAVACMD $OP &
- eend $? "Error starting Jakarta Servler Engine!"
-}
-stop () {
- ebegin "Stopping Jakarta Servlet Engine..."
- $JAVACMD $OP -stop
- eend $? "Error stopping Jakarta Servler Engine!"
-}
-restart () {
- stop
- start
-}
-
-doservice ${@}
-
-
diff --git a/net-www/tomcat/tomcat-4.0.6.ebuild b/net-www/tomcat/tomcat-4.0.6.ebuild
deleted file mode 100644
index 0d9e0e6fe116..000000000000
--- a/net-www/tomcat/tomcat-4.0.6.ebuild
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/tomcat-4.0.6.ebuild,v 1.5 2003/02/13 15:45:08 vapier Exp $
-
-S=${WORKDIR}/jakarta-${P}
-DESCRIPTION="Apache Servlet Engine"
-SRC_URI="http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v${PV}/bin/jakarta-tomcat-${PV}.tar.gz"
-HOMEPAGE="http://jakarta.apache.org/tomcat"
-KEYWORDS="x86 ppc sparc alpha"
-LICENSE="Apache-1.1"
-SLOT="0"
-DEPEND=">=virtual/jdk-1.2"
-
-src_install() {
- dodir /opt/jakarta/tomcat
- dodir /opt/jakarta/tomcat/logs
- touch ${D}/opt/jakarta/tomcat/logs/.keep
- dodoc RELEASE-NOTES-* README.txt RUNNING.txt LICENSE
- cp -Rdp bin common conf lib server webapps work ${D}/opt/jakarta/tomcat
- dodir /etc/env.d
- insinto /etc/env.d
- doins ${FILESDIR}/21tomcat
-}
-
diff --git a/net-www/tomcat/tomcat-4.1.18-r1.ebuild b/net-www/tomcat/tomcat-4.1.18-r1.ebuild
deleted file mode 100644
index 93e2da84dd1b..000000000000
--- a/net-www/tomcat/tomcat-4.1.18-r1.ebuild
+++ /dev/null
@@ -1,150 +0,0 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/tomcat-4.1.18-r1.ebuild,v 1.1 2003/03/22 10:42:02 absinthe Exp $
-
-S=${WORKDIR}/jakarta-${P}
-At="jakarta-tomcat-${PV}.tar.gz"
-DESCRIPTION="Apache Servlet Engine"
-SRC_URI="http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v${PV}/bin/${At}"
-HOMEPAGE="http://jakarta.apache.org/tomcat"
-KEYWORDS="~x86 ~ppc ~sparc ~alpha"
-LICENSE="Apache-1.1"
-SLOT="0"
-DEPEND=">=virtual/jdk-1.2"
-
-src_unpack() {
- tar xzf ${DISTDIR}/${At} || die
- cd ${S}
- epatch ${FILESDIR}/${PV}/gentoo.diff
-}
-
-
-pkg_setup() {
- if ! groupmod tomcat ; then
- groupadd tomcat || die "problem adding group tomcat"
- fi
- if ! id tomcat; then
- useradd -g tomcat -s /bin/bash -d /opt/tomcat -c "tomcat" tomcat || die "problem adding user tomcat"
- fi
-}
-
-src_install() {
- TOMCAT_HOME="/opt/tomcat"
- INSTALLING="yes"
- DIROPTIONS="--mode=0775 --owner=tomcat --group=tomcat"
-
- # Create directories
- dodir ${TOMCAT_HOME}
- dodir /var/log/${PN}
- dosym /var/log/${PN} ${TOMCAT_HOME}/logs
- dodir ${TOMCAT_HOME}/temp
- dodir ${TOMCAT_HOME}/work
-
- touch ${D}${TOMCAT_HOME}/logs/.keep
- touch ${D}${TOMCAT_HOME}/temp/.keep
- touch ${D}${TOMCAT_HOME}/work/.keep
-
- cd ${S}
-
- # INIT SCRIPTS AND ENV
-
- cp -a ${FILESDIR}/${PV}/tomcat.init ${S}/tomcat
- insinto /etc/init.d
- insopts -m0750
- doins ${S}/tomcat
-
- cp -a ${FILESDIR}/${PV}/tomcat.conf ${S}/tomcat
- insinto /etc/conf.d
- insopts -m0755
- doins ${S}/tomcat
-
- cp -a ${FILESDIR}/${PV}/21tomcat ${S}/21tomcat
- insinto /etc/env.d
- insopts -m0755
- doins ${S}/tomcat
-
- # SEND JARS TO SHARED LOCATION
- for i in \
- common/endorsed/*.jar \
- common/lib/*.jar
- do
- dojar ${i}
- rm ${i}
- done
-
- dodoc RELEASE-NOTES-* README.txt RUNNING.txt LICENSE RELEASE-PLAN-4.1.txt
-
- chown -R tomcat.tomcat ${S}
- DIROPTIONS="--mode=0775 --owner=tomcat --group=tomcat"
- dodir ${TOMCAT_HOME}/common
- dodir ${TOMCAT_HOME}/common/classes
- dodir ${TOMCAT_HOME}/webapps
-
- cp -Rdp \
- bin \
- conf \
- server \
- shared \
- webapps \
- work \
- ${D}${TOMCAT_HOME}
-
- dosym /usr/share/tomcat/package.env ${TOMCAT_HOME}/common/package.env
- dosym /usr/share/tomcat/lib ${TOMCAT_HOME}/common/endorsed
- dosym /usr/share/tomcat/lib ${TOMCAT_HOME}/common/lib
-
-}
-
-pkg_postinst() {
- einfo " "
- einfo " NOTICE!"
- einfo " User and group 'tomcat' have been added."
- einfo " Please set a password for the user account 'tomcat'"
- einfo " if you have not done so already."
- einfo " "
- einfo " "
- einfo " FILE LOCATIONS:"
- einfo " 1. Tomcat home directory: ${TOMCAT_HOME}"
- einfo " Contains application data, configuration files."
- einfo " 2. Runtime settings: /etc/conf.d/tomcat"
- einfo " Contains CLASSPATH and JAVA_HOME settings."
- einfo " "
- einfo " >>>>>>>> Set your JAVA_HOME in /etc/conf.d/tomcat! <<<<<<<<"
- einfo " "
- einfo " 3. Logs: /var/log/tomcat/"
- einfo " 4. Executables, libraries: /usr/share/tomcat/"
- einfo " "
- einfo " "
- einfo " STARTING AND STOPPING ORION:"
- einfo " /etc/init.d/tomcat start"
- einfo " /etc/init.d/tomcat stop"
- einfo " /etc/init.d/tomcat restart"
- einfo " "
- einfo " "
- einfo " NETWORK CONFIGURATION:"
- einfo " By default, Tomcat runs on port 8080. You can change this"
- einfo " value by editing ${TOMCAT_HOME}/conf/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 " "
- echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1
- sleep 10
-
-}
-
-pkg_postrm() {
- if [ -z "${INSTALLING}" ] ; then
- einfo ">>> Removing user for Tomcat"
- userdel tomcat || die "Error removing Tomcat user"
- einfo ">>> Removing group for Tomcat"
- groupdel tomcat || die "Error removing Tomcat group"
- else
- einfo ">>> Tomcat user and group preserved"
- fi
-}