1 |
commit: f5e50098b0e2b3167c10043aa486217faf3bcb1f |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 27 21:59:17 2020 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 27 21:59:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5e50098 |
7 |
|
8 |
www-servers/tomcat: bump to 7.0.100 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
www-servers/tomcat/Manifest | 1 + |
14 |
www-servers/tomcat/tomcat-7.0.100.ebuild | 146 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 147 insertions(+) |
16 |
|
17 |
diff --git a/www-servers/tomcat/Manifest b/www-servers/tomcat/Manifest |
18 |
index bd849bc0f4b..ac01790144f 100644 |
19 |
--- a/www-servers/tomcat/Manifest |
20 |
+++ b/www-servers/tomcat/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
+DIST apache-tomcat-7.0.100-src.tar.gz 5265444 BLAKE2B 9c706e6a50e13cd8f542669e2d80f8940816976cfb84f62c3e17bbe6f0cc6d76d6fcdd18ec69e706ce27552aa66041833f6ae7bba8e671e187de3246e90a25c5 SHA512 53ef64c64263d0f25d72ed179bd7b7beed3f73cd63010988ba740ff7328b00a5ec09fe1d4575188ecacf258c891e022a0f1ae07d2957d9830a56881170bb1a57 |
23 |
DIST apache-tomcat-7.0.96-src.tar.gz 4983881 BLAKE2B d5b828b7a4e8a7a5ce793a15421fbd6b12b55918aa7c15bc8209b4c762d7f422a7315e4cbe9b4ae2da754b6d8493bc11ae6a5c99f11a1ac3b23473e05fa26c83 SHA512 5797e66fb9ce558340e08d3a4ccd372d912707aabd6177318781925dd35055902a0ecc3e50e677d76b0feea547cc8fc038bb83ae5de65d28680cb4c9582f60c0 |
24 |
DIST apache-tomcat-7.0.99-src.tar.gz 5242549 BLAKE2B e24933364bae6ddd2b7aeec342f3bfe0293533e2513a34ec6e9b5b6da7ecc3c2fb1d88c1b49f470532d8db821a0b8f0821698d8ec52a6d88a7769cd86912a8bc SHA512 3148879d4a893167b9e60fd1ee6972fc9be8a5be97016ad1d86117c0cb681ac40702680bd21562a284f78aac327f0388e99af458cf1868a3b0ad5e31899b23c0 |
25 |
DIST apache-tomcat-8.5.47-src.tar.gz 5607118 BLAKE2B 3c326056f674032424d298c7581243a24dd01fae39b1ce7069b60e1bcf3d825de954164f643e887618c43c87d691bc41f942e73bf86b254b4c7dca9c68ce7cce SHA512 1513fdaf7751ee263d878cdfc05329bc4ee50e2f3aeea68e1d173a5f4d555ec59a43050222f013758f704967730dd25a64337cf1ba4365ab53b8730af87b4051 |
26 |
|
27 |
diff --git a/www-servers/tomcat/tomcat-7.0.100.ebuild b/www-servers/tomcat/tomcat-7.0.100.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..f9e66a096a9 |
30 |
--- /dev/null |
31 |
+++ b/www-servers/tomcat/tomcat-7.0.100.ebuild |
32 |
@@ -0,0 +1,146 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+JAVA_PKG_IUSE="doc source test" |
39 |
+ |
40 |
+inherit eutils java-pkg-2 java-ant-2 prefix user |
41 |
+ |
42 |
+MY_P="apache-${P}-src" |
43 |
+ |
44 |
+DESCRIPTION="Tomcat Servlet-3.0/JSP-2.2 Container" |
45 |
+HOMEPAGE="https://tomcat.apache.org/" |
46 |
+SRC_URI="mirror://apache/${PN}/tomcat-7/v${PV}/src/${MY_P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="Apache-2.0" |
49 |
+SLOT="7" |
50 |
+KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris" |
51 |
+IUSE="extra-webapps websockets" |
52 |
+ |
53 |
+RESTRICT="test" # can we run them on a production system? |
54 |
+ |
55 |
+ECJ_SLOT="4.5" |
56 |
+SAPI_SLOT="3.0" |
57 |
+ |
58 |
+COMMON_DEP="dev-java/eclipse-ecj:${ECJ_SLOT} |
59 |
+ ~dev-java/tomcat-servlet-api-${PV}:${SAPI_SLOT}" |
60 |
+RDEPEND="${COMMON_DEP} |
61 |
+ virtual/jre" |
62 |
+DEPEND="${COMMON_DEP} |
63 |
+ virtual/jdk:1.8 |
64 |
+ test? ( dev-java/ant-junit:0 )" |
65 |
+ |
66 |
+S=${WORKDIR}/${MY_P} |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ java-pkg-2_pkg_setup |
70 |
+ enewgroup tomcat 265 |
71 |
+ enewuser tomcat 265 -1 /dev/null tomcat |
72 |
+} |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ |
77 |
+ # Remove bundled servlet-api |
78 |
+ rm -rv java/javax/{el,servlet} || die |
79 |
+ |
80 |
+ java-pkg_clean |
81 |
+ |
82 |
+ eapply "${FILESDIR}/${PN}-7.0.99-build.xml.patch" |
83 |
+ |
84 |
+ # For use of catalina.sh in netbeans |
85 |
+ sed -i -e "/^# ----- Execute The Requested Command/ a\ |
86 |
+ CLASSPATH=\`java-config --classpath ${PN}-${SLOT}\`" \ |
87 |
+ bin/catalina.sh || die |
88 |
+ |
89 |
+ java-pkg-2_src_prepare |
90 |
+} |
91 |
+ |
92 |
+JAVA_ANT_REWRITE_CLASSPATH="true" |
93 |
+ |
94 |
+EANT_BUILD_TARGET="deploy" |
95 |
+EANT_GENTOO_CLASSPATH="eclipse-ecj-${ECJ_SLOT},tomcat-servlet-api-${SAPI_SLOT}" |
96 |
+EANT_GENTOO_CLASSPATH_EXTRA="${S}/output/classes" |
97 |
+EANT_NEEDS_TOOLS="true" |
98 |
+EANT_EXTRA_ARGS="-Dversion=${PV}-gentoo -Dversion.number=${PV} -Dcompile.debug=false" |
99 |
+ |
100 |
+# revisions of the scripts |
101 |
+IM_REV="-r1" |
102 |
+INIT_REV="-r1" |
103 |
+ |
104 |
+src_compile() { |
105 |
+ use websockets && EANT_EXTRA_ARGS+=" -Djava.7.home=${JAVA_HOME}" |
106 |
+ EANT_GENTOO_CLASSPATH_EXTRA+=":$(java-pkg_getjar --build-only ant-core ant.jar)" |
107 |
+ java-pkg-2_src_compile |
108 |
+} |
109 |
+ |
110 |
+src_test() { |
111 |
+ java-pkg-2_src_test |
112 |
+} |
113 |
+ |
114 |
+src_install() { |
115 |
+ local dest="/usr/share/${PN}-${SLOT}" |
116 |
+ |
117 |
+ java-pkg_jarinto "${dest}"/bin |
118 |
+ java-pkg_dojar output/build/bin/*.jar |
119 |
+ exeinto "${dest}"/bin |
120 |
+ doexe output/build/bin/*.sh |
121 |
+ |
122 |
+ java-pkg_jarinto "${dest}"/lib |
123 |
+ java-pkg_dojar output/build/lib/*.jar |
124 |
+ |
125 |
+ dodoc RELEASE-NOTES RUNNING.txt |
126 |
+ use doc && java-pkg_dojavadoc output/dist/webapps/docs/api |
127 |
+ use source && java-pkg_dosrc java/* |
128 |
+ |
129 |
+ ### Webapps ### |
130 |
+ |
131 |
+ insinto "${dest}"/webapps |
132 |
+ doins -r output/build/webapps/{host-manager,manager,ROOT} |
133 |
+ use extra-webapps && doins -r output/build/webapps/{docs,examples} |
134 |
+ |
135 |
+ ### Config ### |
136 |
+ |
137 |
+ # create "logs" directory in $CATALINA_BASE |
138 |
+ # and set correct perms, see #458890 |
139 |
+ dodir "${dest}"/logs |
140 |
+ fperms 0750 "${dest}"/logs |
141 |
+ |
142 |
+ # replace the default pw with a random one, see #92281 |
143 |
+ local randpw=$(echo ${RANDOM}|md5sum|cut -c 1-15) |
144 |
+ sed -i -e "s|SHUTDOWN|${randpw}|" output/build/conf/server.xml || die |
145 |
+ |
146 |
+ # prepend gentoo.classpath to common.loader, see #453212 |
147 |
+ sed -i -e 's/^common\.loader=/\0${gentoo.classpath},/' output/build/conf/catalina.properties || die |
148 |
+ |
149 |
+ insinto "${dest}" |
150 |
+ doins -r output/build/conf |
151 |
+ |
152 |
+ ### rc ### |
153 |
+ |
154 |
+ cp "${FILESDIR}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash} "${T}" || die |
155 |
+ eprefixify "${T}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash} |
156 |
+ sed -i -e "s|@SLOT@|${SLOT}|g" "${T}"/tomcat{.conf,${INIT_REV}.init,-instance-manager${IM_REV}.bash} || die |
157 |
+ |
158 |
+ insinto "${dest}"/gentoo |
159 |
+ doins "${T}"/tomcat.conf |
160 |
+ exeinto "${dest}"/gentoo |
161 |
+ newexe "${T}"/tomcat${INIT_REV}.init tomcat.init |
162 |
+ newexe "${T}"/tomcat-instance-manager${IM_REV}.bash tomcat-instance-manager.bash |
163 |
+} |
164 |
+ |
165 |
+pkg_postinst() { |
166 |
+ elog "New ebuilds of Tomcat support running multiple instances. If you used prior version" |
167 |
+ elog "of Tomcat (<7.0.32), you have to migrate your existing instance to work with new Tomcat." |
168 |
+ elog "You can find more information at https://wiki.gentoo.org/wiki/Apache_Tomcat" |
169 |
+ |
170 |
+ elog "To manage Tomcat instances, run:" |
171 |
+ elog " ${EPREFIX}/usr/share/${PN}-${SLOT}/gentoo/tomcat-instance-manager.bash --help" |
172 |
+ |
173 |
+ ewarn "tomcat-dbcp.jar is not built at this time. Please fetch jar" |
174 |
+ ewarn "from upstream binary if you need it. Gentoo Bug # 144276" |
175 |
+ |
176 |
+ einfo "Please read https://wiki.gentoo.org/wiki/Apache_Tomcat and" |
177 |
+ einfo "https://wiki.gentoo.org/wiki/Project:Java/Tomcat_6_Guide for more information." |
178 |
+} |