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