Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/tomcat/files/, www-servers/tomcat/
Date: Fri, 04 Dec 2015 18:11:23
Message-Id: 1449252260.4f4acfe995ddcb78b424ca24151d2b02ad5755e0.fordfrog@gentoo
1 commit: 4f4acfe995ddcb78b424ca24151d2b02ad5755e0
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 4 18:04:20 2015 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 4 18:04:20 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f4acfe9
7
8 www-servers/tomcat: version bump - slot 9 milestone 1
9
10 Package-Manager: portage-2.2.26
11
12 www-servers/tomcat/Manifest | 1 +
13 .../files/tomcat-9.0.0_alpha1-build.xml.patch | 266 +++++++++++++++++++++
14 www-servers/tomcat/tomcat-9.0.0_alpha1.ebuild | 156 ++++++++++++
15 3 files changed, 423 insertions(+)
16
17 diff --git a/www-servers/tomcat/Manifest b/www-servers/tomcat/Manifest
18 index 0ea45d7..5132be6 100644
19 --- a/www-servers/tomcat/Manifest
20 +++ b/www-servers/tomcat/Manifest
21 @@ -5,3 +5,4 @@ DIST apache-tomcat-7.0.65-src.tar.gz 4600718 SHA256 38c266a21ff27560ba4c213dd646
22 DIST apache-tomcat-8.0.26-src.tar.gz 4904717 SHA256 3725621a73501a6e09438f177acfab7ce11fabeb2b0380a909273410f3b50b3b SHA512 70ef253889916bcca309a8f80675c4c588fef1cc5dc0360c45347107fb56fd546a334ca01e1109775410f7642acf6c75d9887f9403ad4c1d0e30f041f9ce34fb WHIRLPOOL 3c29a5418dfefc12157d8656dfa15a2937668f52d18c21f6dd4a278d2bc4c84d5b6d542daf6244040eabeab57cb759a510b7b1d0e41440a2d9ad62586723dafc
23 DIST apache-tomcat-8.0.28-src.tar.gz 4913153 SHA256 441a0a0459b6c2dacab3bcf68a9e512b4bb62f7251a27bd15b909ee31b659367 SHA512 60f9a9f643595cdc87598169b8b66cc1e445445a530cad88d2957e90ca99e7c77be9d3576c7fa3a0e7051166f2a960a1c3bf4103f902d1da122825d41e1154c7 WHIRLPOOL 5867ec0c128fe5247c7b874baf05fba9fc9a5663e1c16ecd60bc6ae1e3c411a43f4d8784db5c915fe6c54bc2ec728a01773708738aede30e5abaf1f77072cdcb
24 DIST apache-tomcat-8.0.29-src.tar.gz 4933339 SHA256 5cb87ae9afd145d68906e93b825a6a41303d7975bafe3d57530e9a8ec01c7c80 SHA512 279c971529f0e7513885a0a201753bc94b1ed7a4f035cb33943bf6ae769102630b94144c65236e8b42c666ded7cc843db54c155e8b5cd1ae175b6385d9c2789b WHIRLPOOL 8cfb5402b877be4bd4306cf5d14cf76302b1904e3530de108f262f9bb3de6f1377882fb5a1406e4b2ffc5c239c541f64df55fc98945157edafbd14586deb26bd
25 +DIST apache-tomcat-9.0.0.M1-src.tar.gz 4984318 SHA256 62fb16ed9743916b643a7b406c4b98b8b9b2df15504e9a66d4a609f6d539b34c SHA512 f47a018e30a0ceb382187de2fef443ea1ef9d6e319ef4f3a027824b7e95fb4b5e9d73531f03357b2a89c5f3baf568ac4cfde83969f9603299dd0cf742c4f6efa WHIRLPOOL ab796c7484fd2c1d5060998910e1bd1cfb4f478b6740d9d105255b1e1b36fc9118048d0089a873699b978be91adbe7e024afcb3a4fc2d5121b17089998cb9210
26
27 diff --git a/www-servers/tomcat/files/tomcat-9.0.0_alpha1-build.xml.patch b/www-servers/tomcat/files/tomcat-9.0.0_alpha1-build.xml.patch
28 new file mode 100644
29 index 0000000..f5d49c7
30 --- /dev/null
31 +++ b/www-servers/tomcat/files/tomcat-9.0.0_alpha1-build.xml.patch
32 @@ -0,0 +1,266 @@
33 +diff --git a/apache-tomcat-9.0.0.M1-src/build.xml b/apache-tomcat-9.0.0.M1-src/build.xml
34 +index eab0c45..63ac495 100644
35 +--- a/apache-tomcat-9.0.0.M1-src/build.xml
36 ++++ b/apache-tomcat-9.0.0.M1-src/build.xml
37 +@@ -711,24 +711,30 @@
38 + manifest="${tomcat.manifests}/annotations-api.jar.manifest" />
39 +
40 + <!-- Servlet 4.0 Implementation JAR File -->
41 ++<!--
42 + <jarIt jarfile="${servlet-api.jar}"
43 + filesDir="${tomcat.classes}"
44 + filesId="files.servlet-api"
45 + manifest="${tomcat.manifests}/servlet-api.jar.manifest"
46 + notice="${tomcat.manifests}/servlet-api.jar.notice"
47 + license="${tomcat.manifests}/servlet-api.jar.license" />
48 ++-->
49 +
50 + <!-- JSP 2.3 Implementation JAR File -->
51 ++<!--
52 + <jarIt jarfile="${jsp-api.jar}"
53 + filesDir="${tomcat.classes}"
54 + filesId="files.jsp-api"
55 + manifest="${tomcat.manifests}/jsp-api.jar.manifest" />
56 ++-->
57 +
58 + <!-- EL 3.0 Implementation JAR File -->
59 ++<!--
60 + <jarIt jarfile="${el-api.jar}"
61 + filesDir="${tomcat.classes}"
62 + filesId="files.el-api"
63 + manifest="${tomcat.manifests}/el-api.jar.manifest" />
64 ++-->
65 +
66 + <!-- WebSocket 1.1 API JAR File -->
67 + <jarIt jarfile="${websocket-api.jar}"
68 +@@ -1002,14 +1008,14 @@
69 +
70 + <target name="deploy" depends="package,build-docs,build-tomcat-jdbc,compile-webapp-examples"
71 + description="Default. Builds a working Tomcat instance">
72 +-
73 ++<!--
74 + <copy tofile="${tomcat.build}/bin/tomcat-native.tar.gz"
75 + file="${tomcat-native.tar.gz}" />
76 + <copy tofile="${tomcat.build}/bin/commons-daemon-native.tar.gz"
77 + file="${commons-daemon.native.src.tgz}" />
78 +
79 + <copy tofile="${tomcat.build}/bin/commons-daemon.jar" file="${commons-daemon.jar}" />
80 +-
81 ++-->
82 + <!-- Copy scripts -->
83 + <copy todir="${tomcat.build}/bin">
84 + <fileset dir="bin">
85 +@@ -1069,7 +1075,7 @@
86 + <exclude name="${jdt.jar.filename}"/>
87 + </fileset>
88 + </delete>
89 +- <copy file="${jdt.jar}" todir="${tomcat.build}/lib"/>
90 ++<!-- <copy file="${jdt.jar}" todir="${tomcat.build}/lib"/> -->
91 +
92 + <!-- Add sources for examples -->
93 + <antcall target="examples-sources" />
94 +@@ -1103,7 +1109,7 @@
95 + </javac>
96 + </target>
97 +
98 +- <target name="build-tomcat-jdbc" depends="package">
99 ++ <target name="build-tomcat-jdbc" depends="package" unless="noget">
100 + <!-- build the jdbc-pool jar and source jar-->
101 + <echo message="Building Tomcat JDBC pool libraries"/>
102 + <ant antfile="${tomcat.jdbc.dir}/build.xml" dir="${tomcat.jdbc.dir}"
103 +@@ -1118,7 +1124,7 @@
104 + <copy file="${tomcat-jdbc.jar}" todir="${tomcat.build}/lib"/>
105 + </target>
106 +
107 +- <target name="build-tomcat-jdbc-src">
108 ++ <target name="build-tomcat-jdbc-src" unless="noget">
109 + <!-- build the jdbc-pool source jar-->
110 + <echo message="Building Tomcat JDBC pool src JAR"/>
111 + <ant antfile="${tomcat.jdbc.dir}/build.xml" dir="${tomcat.jdbc.dir}"
112 +@@ -1222,10 +1228,11 @@
113 +
114 + <copy file="${basedir}/LICENSE" todir="${tomcat.embed}" />
115 + <copy file="${basedir}/NOTICE" todir="${tomcat.embed}" />
116 ++<!--
117 + <copy file="${tomcat-dbcp.jar}" todir="${tomcat.embed}"
118 + failonerror="false"/>
119 + <copy file="${jdt.jar}" todir="${tomcat.embed}" />
120 +-
121 ++-->
122 + <!-- Note the meta-inf below will work as long as there is only one JAR
123 + that needs to add entries. If there is more than one a more complex
124 + solution will be required. -->
125 +@@ -1606,7 +1613,7 @@
126 +
127 + <target name="extras-commons-logging-prepare"
128 + depends="extras-prepare"
129 +- description="Prepare to build web services extras package">
130 ++ description="Prepare to build web services extras package" unless="noget">
131 +
132 + <antcall target="downloadfile-2">
133 + <param name="sourcefile.1" value="${commons-logging-src.loc.1}"/>
134 +@@ -1745,7 +1752,7 @@
135 +
136 + <target name="extras-webservices-prepare"
137 + depends="extras-prepare"
138 +- description="Prepare to build web services extras package">
139 ++ description="Prepare to build web services extras package" unless="noget">
140 +
141 + <antcall target="downloadfile">
142 + <param name="sourcefile" value="${jaxrpc-lib.loc}"/>
143 +@@ -1940,6 +1947,7 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
144 +
145 + <target name="javadoc" depends="dist-source,extras-webservices-prepare"
146 + description="Create the Tomcat javadoc" >
147 ++<!--
148 + <javadoc packagenames="javax.servlet.*"
149 + excludepackagenames="javax.servlet.jsp.*"
150 + sourcepath="${tomcat.dist}/src/java"
151 +@@ -1998,6 +2006,7 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
152 + <path location="${ant.core.lib}"/>
153 + </classpath>
154 + </javadoc>
155 ++-->
156 + <javadoc packagenames="javax.websocket.*"
157 + sourcepath="${tomcat.dist}/src/java"
158 + destdir="${tomcat.dist}/webapps/docs/websocketapi"
159 +@@ -2028,15 +2037,17 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
160 + docencoding="UTF-8"
161 + charset="UTF-8"
162 + additionalparam="-breakiterator -notimestamp"
163 +- maxmemory="256m" >
164 ++ maxmemory="512m" >
165 + <classpath>
166 + <path refid="compile.classpath"/>
167 + <path refid="tomcat.webservices.classpath"/>
168 + <path location="${ant.core.lib}"/>
169 + </classpath>
170 ++<!--
171 + <link href="../servletapi"/>
172 + <link href="../jspapi"/>
173 + <link href="../elapi"/>
174 ++-->
175 + <link href="../websocketapi"/>
176 + <link href="http://docs.oracle.com/javase/7/docs/api/"/>
177 + <link href="http://commons.apache.org/proper/commons-io/javadocs/api-release/"/>
178 +@@ -2775,7 +2786,7 @@ skip.installer property in build.properties" />
179 + </target>
180 +
181 + <target name="download-compile"
182 +- description="Download (and build) components necessary to compile" >
183 ++ description="Download (and build) components necessary to compile" unless="noget">
184 +
185 + <antcall target="downloadfile-2">
186 + <param name="sourcefile.1" value="${tomcat-native.loc.1}"/>
187 +@@ -2809,7 +2820,7 @@ skip.installer property in build.properties" />
188 + </target>
189 +
190 + <target name="download-test-compile"
191 +- description="Download additional components for the tests" >
192 ++ description="Download additional components for the tests" unless="noget">
193 +
194 + <antcall target="downloadfile">
195 + <param name="sourcefile" value="${junit.loc}"/>
196 +@@ -2866,7 +2877,7 @@ skip.installer property in build.properties" />
197 + </target>
198 +
199 + <target name="download-dist"
200 +- description="Download additional components for a distribution" >
201 ++ description="Download additional components for a distribution" unless="noget">
202 +
203 + <antcall target="downloadzip-2">
204 + <param name="sourcefile.1" value="${tomcat-native.win.1}"/>
205 +@@ -2892,18 +2903,18 @@ skip.installer property in build.properties" />
206 +
207 + <!-- =============== Utility Targets to support downloads ================ -->
208 +
209 +- <target name="setproxy" if="${proxy.use}">
210 ++ <target name="setproxy" if="${proxy.use}" unless="noget">
211 + <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"
212 + proxyuser="${proxy.user}" proxypassword="${proxy.password}" />
213 + <echo message="Using ${proxy.host}:${proxy.port} to download ${sourcefile}"/>
214 + </target>
215 +
216 +- <target name="testexist">
217 ++ <target name="testexist" unless="noget">
218 + <echo message="Testing for ${destfile}"/>
219 + <available file="${destfile}" property="exist"/>
220 + </target>
221 +
222 +- <target name="downloadgz" unless="exist" depends="testexist,setproxy">
223 ++ <target name="downloadgz" unless="noget" depends="testexist,setproxy">
224 + <!-- Download and extract the package -->
225 + <local name="temp.file"/>
226 + <mkdir dir="${base.path}"/>
227 +@@ -2915,7 +2926,7 @@ skip.installer property in build.properties" />
228 + <delete file="${temp.file}.tar.gz"/>
229 + </target>
230 +
231 +- <target name="downloadgz-2" unless="exist" depends="testexist">
232 ++ <target name="downloadgz-2" unless="noget" depends="testexist">
233 + <!-- Download and extract the package from the two alternative locations -->
234 + <local name="temp.file"/>
235 + <mkdir dir="${base.path}"/>
236 +@@ -2934,7 +2945,7 @@ skip.installer property in build.properties" />
237 + <delete file="${temp.file}.tar.gz"/>
238 + </target>
239 +
240 +- <target name="downloadzip" unless="exist" depends="testexist,setproxy">
241 ++ <target name="downloadzip" unless="noget" depends="testexist,setproxy">
242 + <!-- Download and extract the package -->
243 + <local name="temp.file"/>
244 + <mkdir dir="${base.path}"/>
245 +@@ -2945,7 +2956,7 @@ skip.installer property in build.properties" />
246 + <delete file="${temp.file}"/>
247 + </target>
248 +
249 +- <target name="downloadzip-2" unless="exist" depends="testexist">
250 ++ <target name="downloadzip-2" unless="noget" depends="testexist">
251 + <!-- Download and extract the package from the two alternative locations -->
252 + <local name="temp.file"/>
253 + <mkdir dir="${base.path}"/>
254 +@@ -2963,7 +2974,7 @@ skip.installer property in build.properties" />
255 + <delete file="${temp.file}"/>
256 + </target>
257 +
258 +- <target name="downloadfile" unless="exist" depends="testexist,setproxy">
259 ++ <target name="downloadfile" unless="noget" depends="testexist,setproxy">
260 + <!-- Download the file -->
261 + <local name="temp.file"/>
262 + <mkdir dir="${base.path}"/>
263 +@@ -2973,7 +2984,7 @@ skip.installer property in build.properties" />
264 + <move file="${temp.file}" tofile="${destfile}"/>
265 + </target>
266 +
267 +- <target name="downloadfile-2" unless="exist" depends="testexist">
268 ++ <target name="downloadfile-2" unless="noget" depends="testexist">
269 + <!-- Download the file from the two alternative locations -->
270 + <local name="temp.file"/>
271 + <mkdir dir="${base.path}"/>
272 +@@ -2996,7 +3007,7 @@ skip.installer property in build.properties" />
273 + <move file="${temp.file}" tofile="${destfile}"/>
274 + </target>
275 +
276 +- <target name="trydownload.check" depends="setproxy">
277 ++ <target name="trydownload.check" depends="setproxy" unless="noget">
278 + <condition property="trydownload.run">
279 + <and>
280 + <not>
281 +@@ -3007,7 +3018,7 @@ skip.installer property in build.properties" />
282 + </condition>
283 + </target>
284 +
285 +- <target name="trydownload" if="trydownload.run" depends="trydownload.check">
286 ++ <target name="trydownload" if="trydownload.run" depends="trydownload.check" unless="noget">
287 + <!-- Downloads a file if not yet downloaded and the source URL is available -->
288 + <get src="${sourcefile}" httpusecaches="${trydownload.httpusecaches}" dest="${destfile}" />
289 + </target>
290 +@@ -3018,7 +3029,7 @@ skip.installer property in build.properties" />
291 +
292 + <target name="ide-eclipse"
293 + depends="download-compile, extras-webservices-prepare, download-test-compile"
294 +- description="Prepares the source tree to be built in Eclipse">
295 ++ description="Prepares the source tree to be built in Eclipse" unless="noget">
296 +
297 + <!-- Copy the sample project files into the root directory -->
298 + <copy file="${tomcat.home}/res/ide-support/eclipse/eclipse.project" tofile="${tomcat.home}/.project"/>
299
300 diff --git a/www-servers/tomcat/tomcat-9.0.0_alpha1.ebuild b/www-servers/tomcat/tomcat-9.0.0_alpha1.ebuild
301 new file mode 100644
302 index 0000000..881e9a9
303 --- /dev/null
304 +++ b/www-servers/tomcat/tomcat-9.0.0_alpha1.ebuild
305 @@ -0,0 +1,156 @@
306 +# Copyright 1999-2015 Gentoo Foundation
307 +# Distributed under the terms of the GNU General Public License v2
308 +# $Id$
309 +
310 +EAPI=5
311 +
312 +JAVA_PKG_IUSE="doc source test"
313 +
314 +inherit eutils java-pkg-2 java-ant-2 prefix user
315 +
316 +MY_PV="${PV/_alpha/.M}"
317 +MY_P="apache-${PN}-${MY_PV}-src"
318 +
319 +DESCRIPTION="Tomcat Servlet-4.0/JSP-2.3 Container"
320 +HOMEPAGE="http://tomcat.apache.org/"
321 +SRC_URI="mirror://apache/${PN}/tomcat-9/v${MY_PV}/src/${MY_P}.tar.gz"
322 +
323 +LICENSE="Apache-2.0"
324 +SLOT="9"
325 +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
326 +IUSE="extra-webapps"
327 +
328 +RESTRICT="test" # can we run them on a production system?
329 +
330 +ECJ_SLOT="4.5"
331 +SAPI_SLOT="4.0"
332 +
333 +COMMON_DEP="dev-java/eclipse-ecj:${ECJ_SLOT}
334 + dev-java/oracle-javamail:0
335 + dev-java/tomcat-servlet-api:${SAPI_SLOT}"
336 +RDEPEND="${COMMON_DEP}
337 + !<dev-java/tomcat-native-1.1.24
338 + >=virtual/jre-1.8"
339 +DEPEND="${COMMON_DEP}
340 + app-admin/pwgen
341 + >=virtual/jdk-1.8
342 + test? (
343 + >=dev-java/ant-junit-1.9:0
344 + dev-java/easymock:3.2
345 + )"
346 +
347 +S=${WORKDIR}/${MY_P}
348 +
349 +pkg_setup() {
350 + java-pkg-2_pkg_setup
351 + enewgroup tomcat 265
352 + enewuser tomcat 265 -1 /dev/null tomcat
353 +}
354 +
355 +java_prepare() {
356 + find -name '*.jar' -type f -delete -print || die
357 +
358 + # Remove bundled javamail, servlet-api
359 + rm -rv java/javax/{el,mail,servlet} || die
360 +
361 + epatch "${FILESDIR}/${P}-build.xml.patch"
362 +
363 + # For use of catalina.sh in netbeans
364 + sed -i -e "/^# ----- Execute The Requested Command/ a\
365 + CLASSPATH=\`java-config --classpath ${PN}-${SLOT}\`" \
366 + bin/catalina.sh || die
367 +}
368 +
369 +JAVA_ANT_REWRITE_CLASSPATH="true"
370 +
371 +EANT_BUILD_TARGET="deploy"
372 +EANT_GENTOO_CLASSPATH="eclipse-ecj-${ECJ_SLOT},oracle-javamail,tomcat-servlet-api-${SAPI_SLOT}"
373 +EANT_TEST_GENTOO_CLASSPATH="easymock-3.2"
374 +EANT_GENTOO_CLASSPATH_EXTRA="${S}/output/classes"
375 +EANT_NEEDS_TOOLS="true"
376 +EANT_EXTRA_ARGS="-Dversion=${PV}-gentoo -Dversion.number=${PV} -Dcompile.debug=false"
377 +
378 +# revisions of the scripts
379 +IM_REV="-r2"
380 +INIT_REV="-r1"
381 +
382 +src_compile() {
383 + EANT_GENTOO_CLASSPATH_EXTRA+=":$(java-pkg_getjar --build-only ant-core ant.jar)"
384 + java-pkg-2_src_compile
385 +}
386 +
387 +src_test() {
388 + java-pkg-2_src_test
389 +}
390 +
391 +src_install() {
392 + local dest="/usr/share/${PN}-${SLOT}"
393 +
394 + java-pkg_jarinto "${dest}"/bin
395 + java-pkg_dojar output/build/bin/*.jar
396 + exeinto "${dest}"/bin
397 + doexe output/build/bin/*.sh
398 +
399 + java-pkg_jarinto "${dest}"/lib
400 + java-pkg_dojar output/build/lib/*.jar
401 +
402 + dodoc RELEASE-NOTES RUNNING.txt
403 + use doc && java-pkg_dojavadoc output/dist/webapps/docs/api
404 + use source && java-pkg_dosrc java/*
405 +
406 + ### Webapps ###
407 +
408 + # add missing docBase
409 + local apps="host-manager manager"
410 + for app in ${apps}; do
411 + sed -i -e "s|=\"true\" >|=\"true\" docBase=\"\$\{catalina.home\}/webapps/${app}\" >|" \
412 + output/build/webapps/${app}/META-INF/context.xml || die
413 + done
414 +
415 + insinto "${dest}"/webapps
416 + doins -r output/build/webapps/{host-manager,manager,ROOT}
417 + use extra-webapps && doins -r output/build/webapps/{docs,examples}
418 +
419 + ### Config ###
420 +
421 + # create "logs" directory in $CATALINA_BASE
422 + # and set correct perms, see #458890
423 + dodir "${dest}"/logs
424 + fperms 0750 "${dest}"/logs
425 +
426 + # replace the default pw with a random one, see #92281
427 + local randpw="$(pwgen -s -B 15 1)"
428 + sed -i -e "s|SHUTDOWN|${randpw}|" output/build/conf/server.xml || die
429 +
430 + # prepend gentoo.classpath to common.loader, see #453212
431 + sed -i -e 's/^common\.loader=/\0${gentoo.classpath},/' output/build/conf/catalina.properties || die
432 +
433 + insinto "${dest}"
434 + doins -r output/build/conf
435 +
436 + ### rc ###
437 +
438 + cp "${FILESDIR}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash} "${T}" || die
439 + eprefixify "${T}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash}
440 + sed -i -e "s|@SLOT@|${SLOT}|g" "${T}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash} || die
441 +
442 + insinto "${dest}"/gentoo
443 + doins "${T}"/tomcat.conf
444 + exeinto "${dest}"/gentoo
445 + newexe "${T}"/tomcat${INIT_REV}.init tomcat.init
446 + newexe "${T}"/tomcat-instance-manager${IM_REV}.bash tomcat-instance-manager.bash
447 +}
448 +
449 +pkg_postinst() {
450 + elog "New ebuilds of Tomcat support running multiple instances. If you used prior version"
451 + elog "of Tomcat (<7.0.32), you have to migrate your existing instance to work with new Tomcat."
452 + elog "You can find more information at https://wiki.gentoo.org/wiki/Apache_Tomcat"
453 +
454 + elog "To manage Tomcat instances, run:"
455 + elog " ${EPREFIX}/usr/share/${PN}-${SLOT}/gentoo/tomcat-instance-manager.bash --help"
456 +
457 + ewarn "tomcat-dbcp.jar is not built at this time. Please fetch jar"
458 + ewarn "from upstream binary if you need it. Gentoo Bug # 144276"
459 +
460 +# einfo "Please read https://www.gentoo.org/proj/en/java/tomcat6-guide.xml for more information."
461 +}