1 |
commit: 15627a8a2ef5a0a383c30b0bfebdcb81e460e0a2 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 1 09:03:54 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 09:03:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15627a8a |
7 |
|
8 |
www-servers/tomcat: removed obsolete 8.5.60 |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
www-servers/tomcat/Manifest | 1 - |
14 |
www-servers/tomcat/tomcat-8.5.60.ebuild | 159 -------------------------------- |
15 |
2 files changed, 160 deletions(-) |
16 |
|
17 |
diff --git a/www-servers/tomcat/Manifest b/www-servers/tomcat/Manifest |
18 |
index 9f5e5d03cef..ab97345b5b8 100644 |
19 |
--- a/www-servers/tomcat/Manifest |
20 |
+++ b/www-servers/tomcat/Manifest |
21 |
@@ -1,5 +1,4 @@ |
22 |
DIST apache-tomcat-7.0.107-src.tar.gz 5312698 BLAKE2B 1f2712ddce6aa604692aaf6a6c706469d3dbcb2266a99e62346c15b8347fff573608440473be8e20b8632a431f8838dd29f24f6bf630a13d262c444be68e0d2c SHA512 820923697c487367786c595d3aeaa58981d25b56529c6739b9388ad771f3264e6995f7659805cc5b2ef9456dbd42bad92ad2cfa3c7f741920a5b7bff2cc1bb1b |
23 |
-DIST apache-tomcat-8.5.60-src.tar.gz 5837412 BLAKE2B 0c2200412900f7f6d318051333b15b8c6236e00f6194c21fc45bb95b565c4146e2682b879f3a293de3ab65524013f786a7f69dd7e91f1c4cc903179075253cc4 SHA512 43222e5d04b3de400429d6f1792d418172b6ff15dcc17e392cd66a5444d740a323b9c426a9f39678b3460452545fda4d784f56961d5ea56b9c0e1ca466d49040 |
24 |
DIST apache-tomcat-8.5.61-src.tar.gz 5840559 BLAKE2B 18e1505b6b7d8e1a024d9f834d33ef105a16e6fc1f9e80abd3e6e88b2326597b9973e13c2ebc030a1db4a2d4dc5572d195b9f61db6cb7bf51e97cbfaa121678a SHA512 fd6bb5926b5e7cf44f359c93dadc4edd87fa5f2e26fb0fb3a9bc0a5c89ae4d844d66872055e1b441392cf03d7690aca3429b66afd8334319784f089f821d8c22 |
25 |
DIST apache-tomcat-9.0.40-src.tar.gz 6017562 BLAKE2B 1c90511911363bb3b154124382f6401851c3a0e7925e06cc8f2b4f02a7b4c1c59bc75007a8b387f06742cbeca7f840b6860d84dc7c6fdb1e7774b22dbca6082f SHA512 61b8e191315cee2bc0437013dbe7d1fb3451182e0b316fb377581c7d47a59cefb7f2ff30d96a2d6326a99c86f4151b26d1ef76bda5029b30d81c8297a0b362fb |
26 |
DIST apache-tomcat-9.0.41-src.tar.gz 6022059 BLAKE2B 6e97390aec956c16f271e57a2fa8805b6f49f593434f0dff8d82e14bc9abc199b00a7523dbb8da335a7ffa9dfee6790430c30f8b0ee90bcd133694c8da42197f SHA512 094e7cbd2519a4b812a2ca865f92802ece3385a20826c5e29b5f7cda8b9265d01ede6f598999f8aa2f1b04bcaca2e67e3f0132781b3f22007356df49ab6b1838 |
27 |
|
28 |
diff --git a/www-servers/tomcat/tomcat-8.5.60.ebuild b/www-servers/tomcat/tomcat-8.5.60.ebuild |
29 |
deleted file mode 100644 |
30 |
index 3a82c34d5f2..00000000000 |
31 |
--- a/www-servers/tomcat/tomcat-8.5.60.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,159 +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 |
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 |
- acct-group/tomcat |
63 |
- acct-user/tomcat |
64 |
- virtual/jre" |
65 |
-DEPEND="${COMMON_DEP} |
66 |
- app-admin/pwgen |
67 |
- dev-java/ant-core |
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 |
-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.57-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 --with-dependencies --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 |
- 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)" |
114 |
- java-pkg-2_src_compile |
115 |
-} |
116 |
- |
117 |
-src_test() { |
118 |
- java-pkg-2_src_test |
119 |
-} |
120 |
- |
121 |
-src_install() { |
122 |
- local dest="/usr/share/${PN}-${SLOT}" |
123 |
- |
124 |
- java-pkg_jarinto "${dest}"/bin |
125 |
- java-pkg_dojar output/build/bin/*.jar |
126 |
- exeinto "${dest}"/bin |
127 |
- doexe output/build/bin/*.sh |
128 |
- |
129 |
- java-pkg_jarinto "${dest}"/lib |
130 |
- java-pkg_dojar output/build/lib/*.jar |
131 |
- |
132 |
- dodoc RELEASE-NOTES RUNNING.txt |
133 |
- use doc && java-pkg_dojavadoc output/dist/webapps/docs/api |
134 |
- use source && java-pkg_dosrc java/* |
135 |
- |
136 |
- ### Webapps ### |
137 |
- |
138 |
- # add missing docBase |
139 |
- local apps="host-manager manager" |
140 |
- for app in ${apps}; do |
141 |
- sed -i -e "s|=\"true\" >|=\"true\" docBase=\"\$\{catalina.home\}/webapps/${app}\" >|" \ |
142 |
- output/build/webapps/${app}/META-INF/context.xml || die |
143 |
- done |
144 |
- |
145 |
- insinto "${dest}"/webapps |
146 |
- doins -r output/build/webapps/{host-manager,manager,ROOT} |
147 |
- use extra-webapps && doins -r output/build/webapps/{docs,examples} |
148 |
- |
149 |
- ### Config ### |
150 |
- |
151 |
- # create "logs" directory in $CATALINA_BASE |
152 |
- # and set correct perms, see #458890 |
153 |
- dodir "${dest}"/logs |
154 |
- fperms 0750 "${dest}"/logs |
155 |
- |
156 |
- # replace the default pw with a random one, see #92281 |
157 |
- local randpw="$(pwgen -s -B 15 1)" |
158 |
- sed -i -e "s|SHUTDOWN|${randpw}|" output/build/conf/server.xml || die |
159 |
- |
160 |
- # prepend gentoo.classpath to common.loader, see #453212 |
161 |
- sed -i -e 's/^common\.loader=/\0${gentoo.classpath},/' output/build/conf/catalina.properties || die |
162 |
- |
163 |
- insinto "${dest}" |
164 |
- doins -r output/build/conf |
165 |
- |
166 |
- ### rc ### |
167 |
- |
168 |
- cp "${FILESDIR}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash} "${T}" || die |
169 |
- eprefixify "${T}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash} |
170 |
- sed -i -e "s|@SLOT@|${SLOT}|g" "${T}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash} || die |
171 |
- |
172 |
- insinto "${dest}"/gentoo |
173 |
- doins "${T}"/tomcat.conf |
174 |
- exeinto "${dest}"/gentoo |
175 |
- newexe "${T}"/tomcat${INIT_REV}.init tomcat.init |
176 |
- newexe "${T}"/tomcat-instance-manager${IM_REV}.bash tomcat-instance-manager.bash |
177 |
-} |
178 |
- |
179 |
-pkg_postinst() { |
180 |
- elog "New ebuilds of Tomcat support running multiple instances. If you used prior version" |
181 |
- elog "of Tomcat (<7.0.32), you have to migrate your existing instance to work with new Tomcat." |
182 |
- elog "You can find more information at https://wiki.gentoo.org/wiki/Apache_Tomcat" |
183 |
- |
184 |
- elog "To manage Tomcat instances, run:" |
185 |
- elog " ${EPREFIX}/usr/share/${PN}-${SLOT}/gentoo/tomcat-instance-manager.bash --help" |
186 |
- |
187 |
- ewarn "tomcat-dbcp.jar is not built at this time. Please fetch jar" |
188 |
- ewarn "from upstream binary if you need it. Gentoo Bug # 144276" |
189 |
- |
190 |
- einfo "Please read https://wiki.gentoo.org/wiki/Apache_Tomcat and" |
191 |
- einfo "https://wiki.gentoo.org/wiki/Project:Java/Tomcat_6_Guide for more information." |
192 |
-} |