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/
Date: Thu, 14 May 2020 07:00:42
Message-Id: 1589439629.88a6c62b165bd9b21f2e7c9f6f7843e2ae2b0090.fordfrog@gentoo
1 commit: 88a6c62b165bd9b21f2e7c9f6f7843e2ae2b0090
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 14 06:57:46 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Thu May 14 07:00:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88a6c62b
7
8 www-servers/tomcat: removed obsolete 8.5.53
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 www-servers/tomcat/Manifest | 1 -
14 www-servers/tomcat/tomcat-8.5.53.ebuild | 158 --------------------------------
15 2 files changed, 159 deletions(-)
16
17 diff --git a/www-servers/tomcat/Manifest b/www-servers/tomcat/Manifest
18 index fe8eabaae43..ca5031cf453 100644
19 --- a/www-servers/tomcat/Manifest
20 +++ b/www-servers/tomcat/Manifest
21 @@ -1,5 +1,4 @@
22 DIST apache-tomcat-7.0.103-src.tar.gz 5279592 BLAKE2B a8ab36fb84cf158fcd8b888276576cd523d211ab0f6fe0933f600d1990a8f68076f192177a574987e52440037c0ebefd3edaf3c84fee541afb076c5ad33cce9b SHA512 812fce83c7242ebc16dc2365f0b363f1fb2691cd6a2f19f1209ea467557c42ee2d108c8bef89f23bb4a20c800d0ecdb4afc37567ef8079966b4eec0331a2ef9b
23 -DIST apache-tomcat-8.5.53-src.tar.gz 5676477 BLAKE2B 284ddc3b3d491a57aac31fc59a9c7d80bdb11efb410ab53eea5d3a0a754507203de287eff0a621d02bfea581b45b860598c8ab95d529ad18790fe381f5518cca SHA512 d78613042a9e4caa5b5eeebd2589383ef10312698e535e2c8f82e40c7b3d793ea6cac50f346316a84f4b47ad330f82c7a4f0e4a3d2f0d449f1d4dad9c6d5e267
24 DIST apache-tomcat-8.5.54-src.tar.gz 5689648 BLAKE2B 7d4c80cb86261bba46b1879d8f2b9218a63cfb069d32dfe72bd5d73baf87887cdff37c5841c44196ded1dbafcfe2d525cb09d8a15905c24600caf107255416cf SHA512 fe4a82fc58aed0df203abf03367f840d7ac498a3ba317eb2b08826e8ab5e705ea13b99f3af1e17878b2cf96271c5d9ff4e7cecf3b2631e061f1b02988449f9e2
25 DIST apache-tomcat-8.5.55-src.tar.gz 5719386 BLAKE2B 4d5d20cf81e0a9aba1fe2b0fc2e9641696a2c7b4bfe1cefd1e86025612484ef06a8171e28722bcde91b671df5bd6e148b22c2fc267828109c6af762fe35f8fdb SHA512 214758bf4dc868c38fd92a19e405f3cd8e47008dee82610f8f7373d92ab5f8800c160a42c96c293f599b702c1c9d2967ca40d3410c1f6a14745edac4739f177d
26 DIST apache-tomcat-9.0.34-src.tar.gz 5843244 BLAKE2B e4124c5986b0be26f17cf5e62443fa945ebea6dd713db6a7f96c8e4c7eed7d8e38610763adda928a7099c1574b00e072635576d9d29cc8ae1b98658f0e341acb SHA512 8ac8a916bfe2d3daf679dab9f299bc50f138f3cc9a6e8679a22862d122dea1e5ce3b9101472295398366f5b5d8477097a3cfb536f01136e72ff09d69b2f6c3df
27
28 diff --git a/www-servers/tomcat/tomcat-8.5.53.ebuild b/www-servers/tomcat/tomcat-8.5.53.ebuild
29 deleted file mode 100644
30 index 688cb761576..00000000000
31 --- a/www-servers/tomcat/tomcat-8.5.53.ebuild
32 +++ /dev/null
33 @@ -1,158 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -JAVA_PKG_IUSE="doc source test"
40 -
41 -inherit eutils java-pkg-2 java-ant-2 prefix user
42 -
43 -MY_P="apache-${P}-src"
44 -
45 -DESCRIPTION="Tomcat Servlet-3.1/JSP-2.3/EL-3.0/WebSocket-1.1/JASPIC-1.1 Container"
46 -HOMEPAGE="https://tomcat.apache.org/"
47 -SRC_URI="mirror://apache/${PN}/tomcat-8/v${PV}/src/${MY_P}.tar.gz"
48 -
49 -LICENSE="Apache-2.0"
50 -SLOT="8.5"
51 -KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
52 -IUSE="extra-webapps"
53 -
54 -RESTRICT="test" # can we run them on a production system?
55 -
56 -ECJ_SLOT="4.5"
57 -SAPI_SLOT="3.1"
58 -
59 -COMMON_DEP="dev-java/eclipse-ecj:${ECJ_SLOT}
60 - ~dev-java/tomcat-servlet-api-${PV}:${SAPI_SLOT}"
61 -RDEPEND="${COMMON_DEP}
62 - virtual/jre"
63 -DEPEND="${COMMON_DEP}
64 - app-admin/pwgen
65 - >=dev-java/ant-core-1.9.13
66 - virtual/jdk:1.8
67 - test? (
68 - >=dev-java/ant-junit-1.9:0
69 - dev-java/easymock:3.2
70 - )"
71 -
72 -S=${WORKDIR}/${MY_P}
73 -
74 -pkg_setup() {
75 - java-pkg-2_pkg_setup
76 - enewgroup tomcat 265
77 - enewuser tomcat 265 -1 /dev/null tomcat
78 -}
79 -
80 -src_prepare() {
81 - default
82 -
83 - find -name '*.jar' -type f -delete -print || die
84 -
85 - # Remove bundled servlet-api
86 - rm -rv java/javax/{el,servlet} || die
87 -
88 - eapply "${FILESDIR}/${PN}-8.5.47-build.xml.patch"
89 -
90 - # For use of catalina.sh in netbeans
91 - sed -i -e "/^# ----- Execute The Requested Command/ a\
92 - CLASSPATH=\`java-config --classpath ${PN}-${SLOT}\`" \
93 - bin/catalina.sh || die
94 -
95 - java-pkg-2_src_prepare
96 -}
97 -
98 -JAVA_ANT_REWRITE_CLASSPATH="true"
99 -
100 -EANT_BUILD_TARGET="deploy"
101 -EANT_GENTOO_CLASSPATH="eclipse-ecj-${ECJ_SLOT},tomcat-servlet-api-${SAPI_SLOT}"
102 -EANT_TEST_GENTOO_CLASSPATH="easymock-3.2"
103 -EANT_GENTOO_CLASSPATH_EXTRA="${S}/output/classes"
104 -EANT_NEEDS_TOOLS="true"
105 -EANT_EXTRA_ARGS="-Dversion=${PV}-gentoo -Dversion.number=${PV} -Dcompile.debug=false -Dexecute.validate=false"
106 -
107 -# revisions of the scripts
108 -IM_REV="-r2"
109 -INIT_REV="-r1"
110 -
111 -src_compile() {
112 - EANT_GENTOO_CLASSPATH_EXTRA+=":$(java-pkg_getjar --build-only ant-core ant.jar)"
113 - java-pkg-2_src_compile
114 -}
115 -
116 -src_test() {
117 - java-pkg-2_src_test
118 -}
119 -
120 -src_install() {
121 - local dest="/usr/share/${PN}-${SLOT}"
122 -
123 - java-pkg_jarinto "${dest}"/bin
124 - java-pkg_dojar output/build/bin/*.jar
125 - exeinto "${dest}"/bin
126 - doexe output/build/bin/*.sh
127 -
128 - java-pkg_jarinto "${dest}"/lib
129 - java-pkg_dojar output/build/lib/*.jar
130 -
131 - dodoc RELEASE-NOTES RUNNING.txt
132 - use doc && java-pkg_dojavadoc output/dist/webapps/docs/api
133 - use source && java-pkg_dosrc java/*
134 -
135 - ### Webapps ###
136 -
137 - # add missing docBase
138 - local apps="host-manager manager"
139 - for app in ${apps}; do
140 - sed -i -e "s|=\"true\" >|=\"true\" docBase=\"\$\{catalina.home\}/webapps/${app}\" >|" \
141 - output/build/webapps/${app}/META-INF/context.xml || die
142 - done
143 -
144 - insinto "${dest}"/webapps
145 - doins -r output/build/webapps/{host-manager,manager,ROOT}
146 - use extra-webapps && doins -r output/build/webapps/{docs,examples}
147 -
148 - ### Config ###
149 -
150 - # create "logs" directory in $CATALINA_BASE
151 - # and set correct perms, see #458890
152 - dodir "${dest}"/logs
153 - fperms 0750 "${dest}"/logs
154 -
155 - # replace the default pw with a random one, see #92281
156 - local randpw="$(pwgen -s -B 15 1)"
157 - sed -i -e "s|SHUTDOWN|${randpw}|" output/build/conf/server.xml || die
158 -
159 - # prepend gentoo.classpath to common.loader, see #453212
160 - sed -i -e 's/^common\.loader=/\0${gentoo.classpath},/' output/build/conf/catalina.properties || die
161 -
162 - insinto "${dest}"
163 - doins -r output/build/conf
164 -
165 - ### rc ###
166 -
167 - cp "${FILESDIR}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash} "${T}" || die
168 - eprefixify "${T}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash}
169 - sed -i -e "s|@SLOT@|${SLOT}|g" "${T}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash} || die
170 -
171 - insinto "${dest}"/gentoo
172 - doins "${T}"/tomcat.conf
173 - exeinto "${dest}"/gentoo
174 - newexe "${T}"/tomcat${INIT_REV}.init tomcat.init
175 - newexe "${T}"/tomcat-instance-manager${IM_REV}.bash tomcat-instance-manager.bash
176 -}
177 -
178 -pkg_postinst() {
179 - elog "New ebuilds of Tomcat support running multiple instances. If you used prior version"
180 - elog "of Tomcat (<7.0.32), you have to migrate your existing instance to work with new Tomcat."
181 - elog "You can find more information at https://wiki.gentoo.org/wiki/Apache_Tomcat"
182 -
183 - elog "To manage Tomcat instances, run:"
184 - elog " ${EPREFIX}/usr/share/${PN}-${SLOT}/gentoo/tomcat-instance-manager.bash --help"
185 -
186 - ewarn "tomcat-dbcp.jar is not built at this time. Please fetch jar"
187 - ewarn "from upstream binary if you need it. Gentoo Bug # 144276"
188 -
189 - einfo "Please read https://wiki.gentoo.org/wiki/Apache_Tomcat and"
190 - einfo "https://wiki.gentoo.org/wiki/Project:Java/Tomcat_6_Guide for more information."
191 -}