Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/resin/files/4.0.44/, www-servers/resin/
Date: Sat, 20 Feb 2016 14:29:13
Message-Id: 1455978536.8cbc945637c5f3ee115da32db508c3897ce239b1.chewi@gentoo
1 commit: 8cbc945637c5f3ee115da32db508c3897ce239b1
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 19 22:52:42 2016 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 20 14:28:56 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cbc9456
7
8 www-servers/resin: Remove old
9
10 Package-Manager: portage-2.2.27
11
12 www-servers/resin/Manifest | 1 -
13 www-servers/resin/files/4.0.44/VarType.java.patch | 35 ----
14 www-servers/resin/files/4.0.44/build.xml.patch | 59 -------
15 www-servers/resin/files/4.0.44/resin-compile.patch | 53 ------
16 www-servers/resin/files/4.0.44/resin.conf | 16 --
17 www-servers/resin/files/4.0.44/resin.init | 37 ----
18 www-servers/resin/resin-4.0.44-r4.ebuild | 191 ---------------------
19 7 files changed, 392 deletions(-)
20
21 diff --git a/www-servers/resin/Manifest b/www-servers/resin/Manifest
22 index 10026ee..b4d6330 100644
23 --- a/www-servers/resin/Manifest
24 +++ b/www-servers/resin/Manifest
25 @@ -1,2 +1 @@
26 -DIST resin-4.0.44-src.zip 40342346 SHA256 dc2900e03d5a328ad4801df4ea2413f5d96bc1408301fa0f74545b3061c4ddfd SHA512 bef7cc8e42522396b6041e6b38858f8f2ef92f0a753b7a86e191f62f6060810930765cb834eeb53404e08f8b9b3f2e4c4d3b632cb9b80edf929b4a41bbb3d5f8 WHIRLPOOL bec0fa955dc2c6f1b04b18eb9f68424ba05814f25b690018fdb6fbe9c424730c9f19cfcec3f93f0ff1b6ce2e998d22a435788bcd52370b7c9653ef17a4cc75fa
27 DIST resin-4.0.46-src.zip 40400255 SHA256 e762506c432dc12f5100903993220b7ace6ff98ce1ed2c17a53737d04f47ebcf SHA512 49f468706a3269f851a6b359d6020b01dadb312890c97208b1a66353fb82b2d95625947a472d8d3e535d0c52ec6ad3e110eb4d227014fe7a89f313ae1df6970f WHIRLPOOL a3d12e09e2596a1e705d4cd1b1870e411080ca6371411574e7830d48ec0058463944fded005e94fc929a0635403cba27d78fc379bf1f222b0e953828ae280238
28
29 diff --git a/www-servers/resin/files/4.0.44/VarType.java.patch b/www-servers/resin/files/4.0.44/VarType.java.patch
30 deleted file mode 100644
31 index 05f03f2..0000000
32 --- a/www-servers/resin/files/4.0.44/VarType.java.patch
33 +++ /dev/null
34 @@ -1,35 +0,0 @@
35 ---- modules/kernel/src/com/caucho/config/reflect/VarType.java.orig 2015-08-12 21:05:11.892000000 +0000
36 -+++ modules/kernel/src/com/caucho/config/reflect/VarType.java 2015-08-12 21:06:04.475000000 +0000
37 -@@ -33,6 +33,7 @@
38 - import java.lang.reflect.GenericDeclaration;
39 - import java.lang.reflect.Type;
40 - import java.lang.reflect.TypeVariable;
41 -+import java.lang.reflect.AnnotatedType;
42 - import java.util.Set;
43 -
44 - import com.caucho.inject.Module;
45 -@@ -188,7 +189,23 @@
46 -
47 - return sb.toString();
48 - }
49 --
50 -+
51 -+ public AnnotatedType[] getAnnotatedBounds() {
52 -+ return null;
53 -+ }
54 -+
55 -+ public Annotation[] getDeclaredAnnotations() {
56 -+ return null;
57 -+ }
58 -+
59 -+ public Annotation[] getAnnotations() {
60 -+ return null;
61 -+ }
62 -+
63 -+ public <T extends Annotation> T getAnnotation(Class<T> klass) {
64 -+ return null;
65 -+ }
66 -+
67 - static class GenericDeclarationImpl implements GenericDeclaration {
68 - @Override
69 - public TypeVariable<?>[] getTypeParameters()
70
71 diff --git a/www-servers/resin/files/4.0.44/build.xml.patch b/www-servers/resin/files/4.0.44/build.xml.patch
72 deleted file mode 100644
73 index dc3a413..0000000
74 --- a/www-servers/resin/files/4.0.44/build.xml.patch
75 +++ /dev/null
76 @@ -1,59 +0,0 @@
77 ---- build.xml.orig 2015-08-12 23:14:20.302000000 +0000
78 -+++ build.xml 2015-08-12 23:14:47.909000000 +0000
79 -@@ -12,7 +12,7 @@
80 - <property name="eclipse.home" value="${user.home}/eclipse"/>
81 -
82 - <target name="compile"
83 -- depends="init, hessian, javaee, jaxstream, portlet, script, resin-kernel, quercus-dev, resin, ecmascript, cdi, webutil, conf, ext, j2ee-management, resin-eclipselink, gae, jasper">
84 -+ depends="init, hessian, javaee, jaxstream, portlet, script, resin-kernel, quercus-dev, resin, ecmascript, cdi, webutil, conf, ext, j2ee-management, gae">
85 - </target>
86 -
87 - <!--
88 -@@ -27,10 +27,6 @@
89 - </antcall>
90 - </target>
91 - -->
92 -- <target name="resin-eclipselink" depends="eclipselink">
93 -- <copy file="modules/eclipselink/dist/resin-eclipselink.jar"
94 -- todir="${resin.lib}"/>
95 -- </target>
96 -
97 - <target name="richfaces" depends="init">
98 - <antcall target="artifact" inheritRefs="true">
99 -@@ -92,13 +88,6 @@
100 - </antcall>
101 - </target>
102 -
103 -- <target name="eclipselink" depends="init">
104 -- <antcall target="module" inheritRefs="true">
105 -- <param name="module.name" value="eclipselink"/>
106 -- <param name="module.jar" value="resin-eclipselink.jar"/>
107 -- </antcall>
108 -- </target>
109 --
110 - <!-- gae APIs for quercus testing -->
111 - <target name="gae" depends="init">
112 - <antcall target="module" inheritRefs="true">
113 -@@ -437,13 +426,6 @@
114 - </antcall>
115 - </target>
116 -
117 -- <target name="jasper" depends="init">
118 -- <antcall target="module" inheritRefs="true">
119 -- <param name="module.name" value="jasper"/>
120 -- <param name="module.jar" value="resin-jasper.jar"/>
121 -- </antcall>
122 -- </target>
123 --
124 - <target name="version">
125 - <copy file="${resin.modules}/kernel/src/com/caucho/Version.tmpl"
126 - tofile="${resin.modules}/kernel/src/com/caucho/Version.java"
127 -@@ -903,7 +885,7 @@
128 - <delete dir="${dist}/${dist.name}"/>
129 - </target>
130 -
131 -- <target name="dist" depends="dist.clean, configure, compile, update, junit, eclipselink, artifacts, resin.dist.build, dist.package, quercus.war"/>
132 -+ <target name="dist" depends="dist.clean, configure, compile, update, junit, artifacts, resin.dist.build, dist.package, quercus.war"/>
133 -
134 - <target name="configure" depends="init">
135 - <copy tofile="modules/c/src/resin/Makefile.in"
136
137 diff --git a/www-servers/resin/files/4.0.44/resin-compile.patch b/www-servers/resin/files/4.0.44/resin-compile.patch
138 deleted file mode 100644
139 index fa6dd39..0000000
140 --- a/www-servers/resin/files/4.0.44/resin-compile.patch
141 +++ /dev/null
142 @@ -1,53 +0,0 @@
143 ---- modules/quercus/src/com/caucho/quercus/lib/xml/XMLWriter.java.orig 2015-08-12 22:15:36.022000000 +0000
144 -+++ modules/quercus/src/com/caucho/quercus/lib/xml/XMLWriter.java 2015-08-12 22:16:45.761000000 +0000
145 -@@ -29,6 +29,7 @@
146 -
147 - package com.caucho.quercus.lib.xml;
148 -
149 -+import com.caucho.quercus.annotation.Optional;
150 - import com.caucho.quercus.annotation.*;
151 - import com.caucho.quercus.env.*;
152 - import com.caucho.util.L10N;
153 ---- modules/quercus/src/com/caucho/quercus/lib/xml/XMLWriterModule.java.orig 2015-08-12 22:24:52.586000000 +0000
154 -+++ modules/quercus/src/com/caucho/quercus/lib/xml/XMLWriterModule.java 2015-08-12 22:25:10.385000000 +0000
155 -@@ -29,6 +29,7 @@
156 -
157 - package com.caucho.quercus.lib.xml;
158 -
159 -+import com.caucho.quercus.annotation.Optional;
160 - import com.caucho.quercus.annotation.*;
161 - import com.caucho.quercus.env.*;
162 - import com.caucho.util.L10N;
163 ---- modules/resin/src/com/caucho/security/x509/X509Parser.java.orig 2015-08-12 22:38:56.323000000 +0000
164 -+++ modules/resin/src/com/caucho/security/x509/X509Parser.java 2015-08-12 22:39:17.249000000 +0000
165 -@@ -29,6 +29,7 @@
166 -
167 - package com.caucho.security.x509;
168 -
169 -+import com.caucho.util.Base64;
170 - import com.caucho.util.*;
171 - import com.caucho.vfs.*;
172 - import java.io.*;
173 ---- modules/resin/src/com/caucho/server/admin/ManagementAuthenticator.java.orig 2015-08-12 22:39:56.138000000 +0000
174 -+++ modules/resin/src/com/caucho/server/admin/ManagementAuthenticator.java 2015-08-12 22:40:29.323000000 +0000
175 -@@ -33,6 +33,7 @@
176 - import com.caucho.security.AbstractAuthenticator;
177 - import com.caucho.security.PasswordUser;
178 - import com.caucho.util.*;
179 -+import com.caucho.util.Base64;
180 -
181 - import java.security.Principal;
182 - import java.util.*;
183 ---- modules/resin/src/com/caucho/ejb/session/AbstractSessionManager.java.orig 2015-08-12 22:42:36.743000000 +0000
184 -+++ modules/resin/src/com/caucho/ejb/session/AbstractSessionManager.java 2015-08-12 22:42:53.030000000 +0000
185 -@@ -379,9 +379,7 @@
186 - @Override
187 - public <T> T getLocalProxy(Class<T> api)
188 - {
189 -- OwnerCreationalContext owner = new OwnerCreationalContext(null);
190 --
191 -- return getSessionContext(api).createProxy(owner);
192 -+ return null;
193 - }
194 -
195 - protected <T> AbstractSessionContext<X,T>
196
197 diff --git a/www-servers/resin/files/4.0.44/resin.conf b/www-servers/resin/files/4.0.44/resin.conf
198 deleted file mode 100644
199 index a48840b..0000000
200 --- a/www-servers/resin/files/4.0.44/resin.conf
201 +++ /dev/null
202 @@ -1,16 +0,0 @@
203 -# JVM Runtime
204 -# Using the default setting, it will determine your JVM from the system-vm
205 -# set using java-config.
206 -# See java-config(1) manual page for assistance in determining this value.
207 -
208 -# You can override this value with whatever JDK you want.
209 -# For a list of valid values for GENTOO_VM see output of
210 -# java-config -L
211 -#GENTOO_VM=sun-jdk-1.5
212 -
213 -# Verbose starting and stopping? (yes/no, defaults to no)
214 -#VERBOSE="yes"
215 -
216 -# Select which server will be started, this is an advanced feature, please refer
217 -# to Resin documentation.
218 -SERVER_ID=""
219
220 diff --git a/www-servers/resin/files/4.0.44/resin.init b/www-servers/resin/files/4.0.44/resin.init
221 deleted file mode 100644
222 index 6103369..0000000
223 --- a/www-servers/resin/files/4.0.44/resin.init
224 +++ /dev/null
225 @@ -1,37 +0,0 @@
226 -#!/sbin/runscript
227 -# Copyright 1999-2012 Gentoo Foundation
228 -# Distributed under the terms of the GNU General Public License v2
229 -# $Id$
230 -
231 -depend() {
232 - need net
233 - use dns logger mysql postgresql
234 -}
235 -
236 -runResin() {
237 - JAVA_HOME=$(java-config -O)
238 - [ -n "${GENTOO_VM}" ] && JAVA_HOME=$(java-config --select-vm="${GENTOO_VM}" -O)
239 - export JAVA_HOME
240 -
241 - local extraArgs=
242 - if [ "${VERBOSE}" = "yes" ]; then
243 - extraArgs="-verbose"
244 - fi
245 -
246 - local msg="${1}"
247 - shift
248 -
249 - local cmdline="${JAVA_HOME}/bin/java -jar /usr/share/resin/lib/resin.jar -conf /etc/resin/resin.xml -server \"${SERVER_ID}\" -resin-home __RESIN_HOME__ -root-directory __RESIN_HOME__ ${extraArgs} ${@}"
250 -
251 - ebegin "${msg}"
252 - su - resin -c "${cmdline}"
253 - eend $?
254 -}
255 -
256 -start() {
257 - runResin "Starting Resin" "start"
258 -}
259 -
260 -stop() {
261 - runResin "Stopping Resin" "shutdown"
262 -}
263
264 diff --git a/www-servers/resin/resin-4.0.44-r4.ebuild b/www-servers/resin/resin-4.0.44-r4.ebuild
265 deleted file mode 100644
266 index dd2b257..0000000
267 --- a/www-servers/resin/resin-4.0.44-r4.ebuild
268 +++ /dev/null
269 @@ -1,191 +0,0 @@
270 -# Copyright 1999-2015 Gentoo Foundation
271 -# Distributed under the terms of the GNU General Public License v2
272 -# $Id$
273 -
274 -EAPI="5"
275 -
276 -JAVA_PKG_IUSE="source"
277 -
278 -inherit java-pkg-2 java-ant-2 eutils flag-o-matic multilib user
279 -
280 -DESCRIPTION="A fast Servlet and JSP engine"
281 -HOMEPAGE="http://www.caucho.com"
282 -SRC_URI="http://www.caucho.com/download/${P}-src.zip"
283 -
284 -LICENSE="GPL-2"
285 -SLOT="0"
286 -IUSE="admin doc"
287 -
288 -KEYWORDS="~amd64 ~x86"
289 -
290 -CDEPEND="dev-java/resin-servlet-api:3.1
291 - dev-java/jsr101:0
292 - dev-java/mojarra:2.2
293 - dev-java/oracle-javamail:0
294 - dev-java/validation-api:1.0
295 - dev-java/glassfish-xmlrpc-api:0
296 - dev-java/glassfish-deployment-api:1.2"
297 -
298 -RDEPEND=">=virtual/jre-1.6
299 - ${CDEPEND}"
300 -DEPEND=">=virtual/jdk-1.6
301 - app-arch/unzip
302 - dev-libs/openssl
303 - dev-java/ant-core:0
304 - ${CDEPEND}"
305 -
306 -RESIN_HOME="/usr/$(get_libdir)/resin"
307 -
308 -JAVA_ANT_REWRITE_CLASSPATH="yes"
309 -
310 -EANT_GENTOO_CLASSPATH="
311 -jsr101
312 -mojarra-2.2
313 -oracle-javamail
314 -validation-api-1.0
315 -glassfish-xmlrpc-api
316 -resin-servlet-api-3.1
317 -glassfish-deployment-api-1.2"
318 -
319 -PATCHES=(
320 - "${FILESDIR}"/"${PV}"/resin-compile.patch
321 - "${FILESDIR}"/"${PV}"/build.xml.patch
322 -)
323 -
324 -pkg_setup() {
325 - java-pkg-2_pkg_setup
326 - enewgroup resin
327 - enewuser resin -1 /bin/bash ${RESIN_HOME} resin
328 -}
329 -
330 -src_prepare() {
331 - local vm_version=$(java-pkg_get-vm-version)
332 -
333 - # #558442.
334 - if [[ "${vm_version}" == "1.8" ]]; then
335 - PATCHES+=("${FILESDIR}"/"${PV}"/VarType.java.patch)
336 - fi
337 -
338 - epatch "${PATCHES[@]}"
339 -
340 - # No bundled JARs!
341 - rm -f "${S}/modules/ext/"*.jar || die
342 - rm -rf "${S}/project-jars" || die
343 -
344 - java-ant_bsfix_one "${S}/build.xml"
345 - java-ant_bsfix_one "${S}/build-common.xml"
346 -
347 - rm -rf lib/* || die
348 -
349 - ln -s $(java-config --jdk-home)/lib/tools.jar || die
350 -}
351 -
352 -src_configure() {
353 - append-flags -fPIC -DPIC
354 -
355 - chmod 755 "${S}/configure" || die
356 - econf --prefix=${RESIN_HOME} || die "econf failed"
357 -}
358 -
359 -src_compile() {
360 - einfo "Building libraries..."
361 - emake || die "make failed"
362 -
363 - einfo "Building jars..."
364 - eant || die "ant failed"
365 -}
366 -
367 -src_install() {
368 - emake DESTDIR="${D}" install || die "Install failed"
369 -
370 - einfo "Moving configuration to /etc ..."
371 - dodir /etc/
372 - mv "${D}/${RESIN_HOME}/conf" "${D}/etc/resin" || die "mv of conf failed"
373 - dosym /etc/resin ${RESIN_HOME}/conf
374 -
375 - einfo "Rewriting resin.xml ..."
376 - sed -i \
377 - -e 's,${resin.root}/doc/resin-doc,webapps/resin-doc,' \
378 - -e 's,${resin.root}/doc/admin,webapps/admin,' \
379 - "${D}/etc/resin/resin.xml" || die
380 -
381 - einfo "Fixing log directory ..."
382 - rm -rf "${D}/${RESIN_HOME}/log" || die
383 - keepdir /var/log/resin
384 - dosym /var/log/resin ${RESIN_HOME}/log
385 -
386 - einfo "Installing basic documentation ..."
387 - dodoc README "${S}"/conf/*.xml
388 -
389 - einfo "Installing init.d script ..."
390 - newinitd "${FILESDIR}/${PV}/resin.init" resin
391 - newconfd "${FILESDIR}/${PV}/resin.conf" resin
392 -
393 - sed -i -e "s,__RESIN_HOME__,${RESIN_HOME},g" "${D}/etc/init.d/resin" || die
394 -
395 - einfo "Fixing location of jars ..."
396 - rm -f "${S}/lib/tools.jar" || die
397 - java-pkg_dojar "${S}"/lib/*.jar
398 - rm -fr "${D}/${RESIN_HOME}/lib" || die
399 - dosym /usr/share/resin/lib ${RESIN_HOME}/lib
400 -
401 - einfo "Symlinking directories from /var/lib/resin ..."
402 - rm -rf "${D}/${RESIN_HOME}/resin-data" || die
403 - rm -rf "${D}/${RESIN_HOME}/watchdog-data" || die
404 - dodir /var/lib/resin/webapps
405 - keepdir /var/lib/resin/hosts
406 - keepdir /var/lib/resin/resin-data
407 - keepdir /var/lib/resin/watchdog-data
408 - mv "${D}"/${RESIN_HOME}/webapps/* "${D}/var/lib/resin/webapps" || \
409 - die "mv of webapps failed"
410 - rm -rf "${D}/${RESIN_HOME}/webapps" || die
411 - dosym /var/lib/resin/webapps ${RESIN_HOME}/webapps
412 - dosym /var/lib/resin/hosts ${RESIN_HOME}/hosts
413 - dosym /var/lib/resin/resin-data ${RESIN_HOME}/resin-data
414 - dosym /var/lib/resin/watchdog-data ${RESIN_HOME}/watchdog-data
415 -
416 - dosym \
417 - "$(java-pkg_getjar resin-servlet-api-3.1 resin-servlet-api.jar)" \
418 - "${JAVA_PKG_JARDEST}/resin-servlet-api.jar"
419 -
420 - use admin && {
421 - einfo "Installing administration app ..."
422 - cp -a "${S}/doc/admin" "${D}/var/lib/resin/webapps/" || die
423 - }
424 - use doc && {
425 - einfo "Installing documentation app ..."
426 - cp -a "${S}/doc/resin-doc" "${D}/var/lib/resin/webapps/" || die
427 - }
428 -
429 - use source && {
430 - einfo "Installing sources ..."
431 - java-pkg_dosrc "${S}"/modules/*/src/* > /dev/null
432 - }
433 -
434 - einfo "Removing stale directories ..."
435 - rm -fr "${D}/${RESIN_HOME}/bin" || die
436 - rm -fr "${D}/${RESIN_HOME}/doc" || die
437 - rm -fr "${D}/${RESIN_HOME}/keys" || die
438 - rm -fr "${D}/${RESIN_HOME}/licenses" || die
439 - rm -fr "${D}/etc/resin/"*.orig || die
440 -
441 - einfo "Fixing ownerships and permissions ..."
442 - fowners -R 0:root /
443 - fowners -R resin:resin /etc/resin
444 - fowners -R resin:resin /var/lib/resin
445 - fowners -R resin:resin /var/log/resin
446 -
447 - fperms 644 /etc/conf.d/resin
448 - fperms 755 /etc/init.d/resin
449 - fperms 750 /var/lib/resin
450 - fperms 750 /etc/resin
451 -}
452 -
453 -pkg_postinst() {
454 - elog
455 - elog " User and group 'resin' have been added."
456 - elog
457 - elog " By default, Resin runs on port 8080. You can change this"
458 - elog " value by editing /etc/resin/resin.properties."
459 - elog
460 -}