summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Aniszczyk <zx@gentoo.org>2004-02-22 07:27:17 +0000
committerChris Aniszczyk <zx@gentoo.org>2004-02-22 07:27:17 +0000
commit9974e174ba36359aa74cece42743fd88f2ebce68 (patch)
treebe7986db23aa1a203613bad6e0b350f4cf6ecc61 /net-www/tomcat
parentheader fix; arm needs deps first (Manifest recommit) (diff)
downloadgentoo-2-9974e174ba36359aa74cece42743fd88f2ebce68.tar.gz
gentoo-2-9974e174ba36359aa74cece42743fd88f2ebce68.tar.bz2
gentoo-2-9974e174ba36359aa74cece42743fd88f2ebce68.zip
Added support for two use flags, jikes and doc.
Diffstat (limited to 'net-www/tomcat')
-rw-r--r--net-www/tomcat/ChangeLog7
-rw-r--r--net-www/tomcat/files/5.0.18/jikes.diff24
-rw-r--r--net-www/tomcat/files/5.0.18/tomcat.conf4
-rw-r--r--net-www/tomcat/tomcat-5.0.18.ebuild21
4 files changed, 47 insertions, 9 deletions
diff --git a/net-www/tomcat/ChangeLog b/net-www/tomcat/ChangeLog
index 20272799410c..3d899d3ad043 100644
--- a/net-www/tomcat/ChangeLog
+++ b/net-www/tomcat/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-www/tomcat
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/ChangeLog,v 1.24 2004/02/16 01:04:02 zx Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/ChangeLog,v 1.25 2004/02/22 07:27:17 zx Exp $
+
+ 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)
diff --git a/net-www/tomcat/files/5.0.18/jikes.diff b/net-www/tomcat/files/5.0.18/jikes.diff
new file mode 100644
index 000000000000..44973c7d9cbf
--- /dev/null
+++ b/net-www/tomcat/files/5.0.18/jikes.diff
@@ -0,0 +1,24 @@
+--- conf/web.xml 2004-01-15 18:28:52.000000000 +0100
++++ conf/web.xml.jikes 2004-02-09 22:00:33.204381264 +0100
+@@ -184,6 +184,10 @@
+ <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>
+ </init-param>
+--- tomcat 2004-02-24 08:08:16.965295648 -0500
++++ tomcat.conf.patched 2004-02-24 08:09:00.413690488 -0500
+@@ -50,7 +50,7 @@
+
+ # (Optional) Java runtime options used when the "start", "stop", or "run"
+ # commands are executed.
+-# CATALINA_OPTS=""
++CATALINA_OPTS="-Dbuild.compiler.emacs=true"
+
+ # Java Platform Debugger Architecture (JPDA)
+ # http://java.sun.com/products/jpda/
diff --git a/net-www/tomcat/files/5.0.18/tomcat.conf b/net-www/tomcat/files/5.0.18/tomcat.conf
index 68a709c15cc1..031791549f28 100644
--- a/net-www/tomcat/files/5.0.18/tomcat.conf
+++ b/net-www/tomcat/files/5.0.18/tomcat.conf
@@ -1,4 +1,4 @@
-# $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 $
+# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/files/5.0.18/tomcat.conf,v 1.2 2004/02/22 07:27:17 zx Exp $
# JVM Runtime
# Using the default setting, it will determine your JVM from the system-vm
@@ -8,7 +8,7 @@
# 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/"`
+JAVA_HOME=`java-config -O`
# (Optional) Java runtime options used when the "start", "stop", or "run"
# commands are executed.
diff --git a/net-www/tomcat/tomcat-5.0.18.ebuild b/net-www/tomcat/tomcat-5.0.18.ebuild
index 2ec39d8fb94b..75721ac4bed8 100644
--- a/net-www/tomcat/tomcat-5.0.18.ebuild
+++ b/net-www/tomcat/tomcat-5.0.18.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/tomcat-5.0.18.ebuild,v 1.2 2004/02/16 01:04:02 zx Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/tomcat/tomcat-5.0.18.ebuild,v 1.3 2004/02/22 07:27:17 zx Exp $
+
+inherit eutils
DESCRIPTION="Apache Servlet-2.4/JSP-2.0 Container"
SRC_URI="http://apache.mirrors.pair.com/jakarta/tomcat-`echo ${PV} | cut -b 1`/v${PV}/bin/jakarta-${P}.tar.gz"
@@ -10,6 +12,7 @@ LICENSE="Apache-1.1"
SLOT="0"
DEPEND="sys-apps/sed"
RDEPEND=">=virtual/jdk-1.2"
+IUSE="doc jikes"
S=${WORKDIR}/jakarta-${P}
At="jakarta-tomcat-${PV}.tar.gz"
@@ -18,6 +21,10 @@ src_unpack() {
tar xzf ${DISTDIR}/${At} || die
cd ${S}
epatch ${FILESDIR}/${PV}/gentoo.diff
+
+ if [ ! `use doc` ] ; then
+ rm -rf webapps/{tomcat-docs,jsp-examples,servlets-examples}
+ fi
}
@@ -36,7 +43,8 @@ pkg_setup() {
src_install() {
TOMCAT_HOME="/opt/tomcat"
INSTALLING="yes"
- DIROPTIONS="--mode=0755 --owner=tomcat --group=tomcat"
+ DIROPTIONS="--mode=0750 --owner=tomcat --group=tomcat"
+
# Create directories
dodir ${TOMCAT_HOME}
@@ -55,10 +63,11 @@ src_install() {
cp -a ${FILESDIR}/${PV}/tomcat.init ${S}/tomcat
insinto /etc/init.d
- insopts -m0755
+ insopts -m0750
doins ${S}/tomcat
cp -a ${FILESDIR}/${PV}/tomcat.conf ${S}/tomcat
+ use jikes && epatch ${FILESDIR}/${PV}/jikes.diff
insinto /etc/conf.d
insopts -m0644
doins ${S}/tomcat
@@ -78,8 +87,8 @@ src_install() {
dodoc RELEASE-NOTES RUNNING.txt LICENSE
- chown -R tomcat.tomcat ${S}
- DIROPTIONS="--mode=0755 --owner=tomcat --group=tomcat"
+ chown -R tomcat:tomcat ${S}
+ DIROPTIONS="--mode=0750 --owner=tomcat --group=tomcat"
dodir ${TOMCAT_HOME}/common
dodir ${TOMCAT_HOME}/common/classes
dodir ${TOMCAT_HOME}/webapps
@@ -133,7 +142,7 @@ pkg_postinst() {
einfo " value by editing /etc/tomcat/server.xml."
einfo " "
einfo " To test Tomcat while it's running, point your web browser to:"
- einfo " http://${HOSTNAME}:8080/"
+ einfo " http://localhost:8080/"
einfo " "
einfo " "
einfo " BUGS:"