diff options
author | Jan Brinkmann <luckyduck@gentoo.org> | 2005-03-20 16:33:18 +0000 |
---|---|---|
committer | Jan Brinkmann <luckyduck@gentoo.org> | 2005-03-20 16:33:18 +0000 |
commit | e6c799f340a2483e7af2330a56f74c38d6c5a28d (patch) | |
tree | a9287aa885721d5f816f59153161733530d96b6f /www-servers/tomcat | |
parent | added ~amd64 to KEYWORDS, fixes #85204 (diff) | |
download | historical-e6c799f340a2483e7af2330a56f74c38d6c5a28d.tar.gz historical-e6c799f340a2483e7af2330a56f74c38d6c5a28d.tar.bz2 historical-e6c799f340a2483e7af2330a56f74c38d6c5a28d.zip |
cleanup, removed old vulnerable versions. see #85383
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'www-servers/tomcat')
-rw-r--r-- | www-servers/tomcat/ChangeLog | 9 | ||||
-rw-r--r-- | www-servers/tomcat/Manifest | 19 | ||||
-rw-r--r-- | www-servers/tomcat/files/3.3.2/gentoo.diff | 13 | ||||
-rw-r--r-- | www-servers/tomcat/files/3.3.2/tomcat.conf | 32 | ||||
-rw-r--r-- | www-servers/tomcat/files/3.3.2/tomcat.init | 23 | ||||
-rw-r--r-- | www-servers/tomcat/files/4.1.30/gentoo.diff | 13 | ||||
-rw-r--r-- | www-servers/tomcat/files/4.1.30/jikes.diff | 13 | ||||
-rw-r--r-- | www-servers/tomcat/files/4.1.30/tomcat.conf | 76 | ||||
-rw-r--r-- | www-servers/tomcat/files/4.1.30/tomcat.init | 22 | ||||
-rw-r--r-- | www-servers/tomcat/files/digest-tomcat-3.3.2-r2 | 1 | ||||
-rw-r--r-- | www-servers/tomcat/files/digest-tomcat-4.1.30-r5 | 1 | ||||
-rw-r--r-- | www-servers/tomcat/tomcat-3.3.2-r2.ebuild | 109 | ||||
-rw-r--r-- | www-servers/tomcat/tomcat-4.1.30-r5.ebuild | 119 |
13 files changed, 12 insertions, 438 deletions
diff --git a/www-servers/tomcat/ChangeLog b/www-servers/tomcat/ChangeLog index cf418502de78..0d9ed5dac00d 100644 --- a/www-servers/tomcat/ChangeLog +++ b/www-servers/tomcat/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for www-servers/tomcat # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/ChangeLog,v 1.20 2005/03/19 22:56:38 luckyduck Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/ChangeLog,v 1.21 2005/03/20 16:33:17 luckyduck Exp $ + + 20 Mar 2005; Jan Brinkmann <luckyduck@gentoo.org> -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, + -tomcat-3.3.2-r2.ebuild, -tomcat-4.1.30-r5.ebuild: + cleanup, removed old vulnerable versions. see #85383 *tomcat-5.0.28-r2 (19 Mar 2005) diff --git a/www-servers/tomcat/Manifest b/www-servers/tomcat/Manifest index e674c58abb42..11a02c08e560 100644 --- a/www-servers/tomcat/Manifest +++ b/www-servers/tomcat/Manifest @@ -3,25 +3,14 @@ Hash: SHA1 MD5 0111243c02d84f0284685e7647620eb8 tomcat-5.0.27-r4.ebuild 3776 MD5 021a5a634771a57a24b83d563a40e165 tomcat-5.0.28.ebuild 9672 -MD5 b8bdcdd27b76556b90401621fc29996c tomcat-4.1.30-r5.ebuild 3614 MD5 60044758625d2aeecb8324d9ed326875 tomcat-5.0.28-r2.ebuild 9674 -MD5 257ce52cfc15f63798cb7b13ee761cb4 tomcat-3.3.2-r2.ebuild 3217 -MD5 4e1c082071abb737418ec64a94e5f9d1 ChangeLog 14296 +MD5 611b55460bf24758b6703ca13ae3d03c ChangeLog 14648 MD5 c11ce937193406815ff7a2b306784fd8 metadata.xml 555 MD5 f4814c52a1bf5c1b61eec3706d86480e tomcat-5.0.28-r1.ebuild 9674 -MD5 71d59fd713a960e63c1b894ca5893a1b files/digest-tomcat-4.1.30-r5 74 MD5 d5a48abc8db5543a73abbbf151d0630e files/digest-tomcat-5.0.27-r4 75 MD5 af26ca4772989a2090085a6e24b71628 files/digest-tomcat-5.0.28-r1 78 MD5 af26ca4772989a2090085a6e24b71628 files/digest-tomcat-5.0.28-r2 78 MD5 af26ca4772989a2090085a6e24b71628 files/digest-tomcat-5.0.28 78 -MD5 6940eb780efc66ecb6ecf11b6b7adb05 files/digest-tomcat-3.3.2-r2 73 -MD5 eb7830519ae94bb563d39f1f51ab590a files/3.3.2/gentoo.diff 368 -MD5 04d838f36e57a63e574b2aea1c70dc47 files/3.3.2/tomcat.conf 904 -MD5 78271965848d01760914766b1d1ae425 files/3.3.2/tomcat.init 627 -MD5 69ec5e00d8708345bd24af96c9c3fab4 files/4.1.30/gentoo.diff 463 -MD5 1b596708b069c5ac88ac293e1a759625 files/4.1.30/tomcat.conf 2660 -MD5 dbbe111e7f2dae8a4e01b7b2f0f76ba9 files/4.1.30/tomcat.init 636 -MD5 c19b85e130d0e0a565eebc406d699965 files/4.1.30/jikes.diff 510 MD5 cbb635ed31e3b7ddabe1db851a8b471e files/5.0.27/gentoo.diff 463 MD5 38c130772e7d43dcdff78b3d94f96efd files/5.0.27/tomcat.env 27 MD5 bf74c2bd8c21359ada1793cddfa95f37 files/5.0.27/tomcat.conf 2660 @@ -38,7 +27,7 @@ MD5 98a29b32de00d97f156dc31dfe3cf472 files/5.0.28/jikes.diff 584 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) -iD8DBQFCPK4r06ebR+OMO78RAmWFAJ97N7VK0F31yjmXUSU610KwIQabkACfaDTw -YQmIrJms4D22o2LE9mb/dvM= -=WNVj +iD8DBQFCPaXU06ebR+OMO78RAs8UAJ4q3UzAO9UnRY6maA4rzgirUBZBkgCfalk3 +Px5zDpUFG91VoKpYrKmVlxI= +=PdbU -----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 deleted file mode 100644 index f30a6017c879..000000000000 --- a/www-servers/tomcat/files/3.3.2/gentoo.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- 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 deleted file mode 100644 index 303f1ce71fa5..000000000000 --- a/www-servers/tomcat/files/3.3.2/tomcat.conf +++ /dev/null @@ -1,32 +0,0 @@ -# $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 deleted file mode 100644 index 42e30ee8f919..000000000000 --- a/www-servers/tomcat/files/3.3.2/tomcat.init +++ /dev/null @@ -1,23 +0,0 @@ -#!/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.2 2004/10/08 13:38:08 axxo Exp $ - -depend() { - use dns net -} - -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 deleted file mode 100644 index a3a281499128..000000000000 --- a/www-servers/tomcat/files/4.1.30/gentoo.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- 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 deleted file mode 100644 index a91210d56c99..000000000000 --- a/www-servers/tomcat/files/4.1.30/jikes.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- 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 deleted file mode 100644 index 1adc708f2e5c..000000000000 --- a/www-servers/tomcat/files/4.1.30/tomcat.conf +++ /dev/null @@ -1,76 +0,0 @@ -# $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 deleted file mode 100644 index d71cd63028e7..000000000000 --- a/www-servers/tomcat/files/4.1.30/tomcat.init +++ /dev/null @@ -1,22 +0,0 @@ -#!/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.3 2004/10/08 13:38:08 axxo Exp $ - -depend() { - use dns logger mysql postgresql net -} - -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 deleted file mode 100644 index 44bcb5d64a95..000000000000 --- a/www-servers/tomcat/files/digest-tomcat-3.3.2-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 edaa93b5867df0e007be7a9b44f48e0c jakarta-tomcat-3.3.2.tar.gz 6527346 diff --git a/www-servers/tomcat/files/digest-tomcat-4.1.30-r5 b/www-servers/tomcat/files/digest-tomcat-4.1.30-r5 deleted file mode 100644 index a1651a599a01..000000000000 --- a/www-servers/tomcat/files/digest-tomcat-4.1.30-r5 +++ /dev/null @@ -1 +0,0 @@ -MD5 ff27f6a5900768c1aafab4a68675b2ed jakarta-tomcat-4.1.30.tar.gz 7894019 diff --git a/www-servers/tomcat/tomcat-3.3.2-r2.ebuild b/www-servers/tomcat/tomcat-3.3.2-r2.ebuild deleted file mode 100644 index fb6bbaa89236..000000000000 --- a/www-servers/tomcat/tomcat-3.3.2-r2.ebuild +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 1999-2005 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.4 2005/02/07 23:43:14 luckyduck 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-r5.ebuild b/www-servers/tomcat/tomcat-4.1.30-r5.ebuild deleted file mode 100644 index a70e622f5c51..000000000000 --- a/www-servers/tomcat/tomcat-4.1.30-r5.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2005 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-r5.ebuild,v 1.6 2005/02/07 23:43:14 luckyduck 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 ~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} - keepdir ${TOMCAT_HOME}/work - - 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 " " -} |