Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/ultrabug:master commit in: www-servers/jetty-bin/files/, www-servers/jetty-bin/files/conf.d/, ...
Date: Fri, 06 Apr 2012 14:27:04
Message-Id: 1333722407.b971801d32ac9597719c9aeaa54ab1b9d69df761.ultrabug@gentoo
1 commit: b971801d32ac9597719c9aeaa54ab1b9d69df761
2 Author: Ultrabug <ultrabug <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 6 14:26:47 2012 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 6 14:26:47 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=b971801d
7
8 jetty and solr rework
9
10 ---
11 www-servers/jetty-bin/ChangeLog | 39 ------
12 www-servers/jetty-bin/Manifest | 10 +-
13 www-servers/jetty-bin/files/conf.d/jetty-7 | 24 ----
14 www-servers/jetty-bin/files/init.d/jetty-6 | 51 -------
15 www-servers/jetty-bin/files/init.d/jetty-7 | 51 -------
16 .../files/{conf.d/jetty-6 => jetty.confd} | 0
17 www-servers/jetty-bin/files/jetty.initd | 51 +++++++
18 .../{jetty => jetty-bin}/jetty-6.1.26.ebuild | 23 ++--
19 www-servers/jetty-bin/jetty-bin-6.1.26-r3.ebuild | 145 --------------------
20 www-servers/jetty/Manifest | 6 -
21 www-servers/jetty/files/jetty.conf | 1 -
22 www-servers/jetty/files/jetty.confd | 30 ----
23 www-servers/jetty/files/jetty.initd | 36 -----
24 www-servers/jetty/files/jetty.xml | 143 -------------------
25 www-servers/solr/Manifest | 2 +-
26 www-servers/solr/solr-3.5.0.ebuild | 6 +-
27 16 files changed, 70 insertions(+), 548 deletions(-)
28
29 diff --git a/www-servers/jetty-bin/ChangeLog b/www-servers/jetty-bin/ChangeLog
30 deleted file mode 100644
31 index 9105226..0000000
32 --- a/www-servers/jetty-bin/ChangeLog
33 +++ /dev/null
34 @@ -1,39 +0,0 @@
35 -# ChangeLog for www-servers/jetty-bin
36 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
37 -# $Header: $
38 -
39 - 02 Feb 2012; Sven Eden <sven.eden@×××.de>
40 - -jetty-bin-7.5.4.ebuild :
41 - It is not possible to make Eclipse be happy with jetty-7, so
42 - drop it.
43 -
44 -*jetty-bin-7.5.4.ebuild (02 Feb 2012)
45 -*jetty-bin-6.1.26-r3.ebuild (02 Feb 2012)
46 -
47 - 02 Feb 2012; Sven Eden <sven.eden@×××.de>
48 - +jetty-bin-7.5.4.ebuild :
49 - First Ebuild for Jetty-7
50 - +jetty-bin-6.1.26-r3.ebuild :
51 - Cleaned up some issues
52 -
53 - - jetty-bin-6.1.26.ebuild
54 - - jetty-bin-6.1.26-r1.ebuild
55 - - jetty-bin-6.1.26-r2.ebuild
56 - Removed old ebuilds
57 -
58 -*jetty-bin-6.1.26-r2.ebuild (22 Nov 2011)
59 -
60 - 15 Aug 2011; Sven Eden <sven.eden@×××.de> +jetty-bin-6.1.26-r2.ebuild :
61 - Added USE_Flag "tomcat7" to depend on tomcat:3.0 instead of 2.5.
62 -
63 -*jetty-bin-6.1.26-r1.ebuild (16 Aug 2011)
64 -
65 - 15 Aug 2011; Sven Eden <sven.eden@×××.de> +jetty-bin-6.1.26-r1.ebuild :
66 - Changed the ebuild to install as "jetty" and not "jetty-bin". Eclipse
67 - 3.7 now merges fine with it.
68 -
69 -*jetty-bin-6.1.26.ebuild (15 Aug 2011)
70 -
71 - 15 Aug 2011; Sven Eden <sven.eden@×××.de> +jetty-bin-6.1.26.ebuild :
72 - Initial commit of the ebuild. Ebuild taken from Bug #328747, written
73 - by John J. Aylward (johnjaylward@×××××.com)
74
75 diff --git a/www-servers/jetty-bin/Manifest b/www-servers/jetty-bin/Manifest
76 index 80c4484..72fa9fc 100644
77 --- a/www-servers/jetty-bin/Manifest
78 +++ b/www-servers/jetty-bin/Manifest
79 @@ -1,8 +1,4 @@
80 -AUX conf.d/jetty-6 676 RMD160 47bd799223d448b21e83d4f2102597ba1012788d SHA1 4add53cc8f55b8d3154efab67b4e082270089356 SHA256 19ea54fbf09fab5b3ccaf819ae872935d6d3718ce6e753dc834302a6be4d199f
81 -AUX conf.d/jetty-7 638 RMD160 833e953d23750afd17e20a8b4274e84150a0bf03 SHA1 4b9e6c67ed1eba32d36e840a590d378a8975a0ce SHA256 5e15c5283ac1177d42e209f1838b34d50c8c687befb3978f31072c16b8cdc0f5
82 -AUX init.d/jetty-6 1542 RMD160 60df75201271ac2e62d1a164238a435b842c39b3 SHA1 90f278c31dc1397df1b6bd318f844a2266c8ebf4 SHA256 76872ed861876492cbf1915cb3bbb4fdc36996446744f816a78fbe0b321f8720
83 -AUX init.d/jetty-7 1542 RMD160 60df75201271ac2e62d1a164238a435b842c39b3 SHA1 90f278c31dc1397df1b6bd318f844a2266c8ebf4 SHA256 76872ed861876492cbf1915cb3bbb4fdc36996446744f816a78fbe0b321f8720
84 +AUX jetty.confd 676 RMD160 47bd799223d448b21e83d4f2102597ba1012788d SHA1 4add53cc8f55b8d3154efab67b4e082270089356 SHA256 19ea54fbf09fab5b3ccaf819ae872935d6d3718ce6e753dc834302a6be4d199f
85 +AUX jetty.initd 1386 RMD160 32d113aae6e88329259b1c5d41b2862c39f58bbc SHA1 fdc943dd47cefde4dc80e2ee83692be05970b8ad SHA256 3cda6f5a29b774699b5f3694990ebae1e85ffd0c9925b13368b2ae51c8200622
86 DIST jetty-6.1.26.zip 25894195 RMD160 6e960763e720641e1bfd69ca8e5d54f0bc7d8def SHA1 9485913f1a1945a849a90f1a34853d22350bc524 SHA256 96c08eb87ec3772dccc2b3dba54fea85ccc3f804faf7429eecfba3ed55648187
87 -DIST jetty-ant-6.1.26.jar 22961 RMD160 910a0e8522a9bf9f6e33298d72a1aba46aa39954 SHA1 0e07d6fad03c440daa7b0523ffbf58bf41151266 SHA256 b82f643508d0fbcac5f92e3ecd7271684be098a97bd1304345c00c98a4d95f4c
88 -EBUILD jetty-bin-6.1.26-r3.ebuild 5139 RMD160 d7f4bd16c30eeb4170a4bccefbcaef22ba73f423 SHA1 a0631ac1df261e9b60dee3f94010159d76eb771e SHA256 2c9fe405e256f08deeb2a2dbd3bc9d90147c519635f4bd78313b483c0f03f3fe
89 -MISC ChangeLog 1254 RMD160 50e0707342b57c5625020bca3888186edccc4f8a SHA1 3447932b56e0b58d26e4a177205481da1d7bc67b SHA256 1706f719a8484e130b69d691f568b2b8547ee232750ce5c712b4d12d4c5b1086
90 +EBUILD jetty-6.1.26.ebuild 1192 RMD160 825b8439cedd74f78a1a9dd91d41d37cb70c92ac SHA1 52a5e0f4bab1365fa656572239bf78c1891f1013 SHA256 a428715e68f1983ee96a23a67f170eb94c587a24b0410fc1bdd477395210a0a4
91
92 diff --git a/www-servers/jetty-bin/files/conf.d/jetty-7 b/www-servers/jetty-bin/files/conf.d/jetty-7
93 deleted file mode 100644
94 index 43c75e0..0000000
95 --- a/www-servers/jetty-bin/files/conf.d/jetty-7
96 +++ /dev/null
97 @@ -1,24 +0,0 @@
98 -#Configuration options for jetty server
99 -
100 -#JETTY_HOST=localhost
101 -#JETTY_PORT=8080
102 -
103 -# port to listen on to stop the server
104 -#STOP_PORT=8079
105 -
106 -# "password" used on the stop port to verify that the server should be stopped
107 -STOP_KEY=secret
108 -
109 -# Set this value to 1 and configure the jetty-setuid.xml to have the server run as an unprivilaged user
110 -#USE_SETUID=1
111 -
112 -# Set this value to 1 to use ipv6
113 -#USE_IPV6=1
114 -
115 -# Use the SSL config jetty-ssl.xml
116 -#USE_SSL=1
117 -
118 -# Set this to a space delimited list of extra conf files you want loaded
119 -# The files are relative to ${JETTY_HOME} so
120 -# ex. JETTY_CONF="etc/jetty-ajp.xml etc/jetty-logging.xml"
121 -#JETTY_CONF=""
122
123 diff --git a/www-servers/jetty-bin/files/init.d/jetty-6 b/www-servers/jetty-bin/files/init.d/jetty-6
124 deleted file mode 100644
125 index 1e54649..0000000
126 --- a/www-servers/jetty-bin/files/init.d/jetty-6
127 +++ /dev/null
128 @@ -1,51 +0,0 @@
129 -#!/sbin/runscript
130 -
131 -depend() {
132 - need net
133 -}
134 -
135 -start() {
136 - ebegin "Starting ${SVCNAME}"
137 -
138 - JETTY_HOME="/var/lib/${SVCNAME}"
139 - CONF_FILES="${JETTY_HOME}/etc/jetty.xml"
140 - JETTY_OPTS="-DSTART=${JETTY_HOME}/start.config"
141 -
142 - if [[ -n ${JETTY_HOST} ]]; then
143 - JETTY_OPTS="${JETTY_OPTS} -Djetty.host=${JETTY_HOST}"
144 - fi
145 - if [[ -n ${JETTY_PORT} ]]; then
146 - JETTY_OPTS="${JETTY_OPTS} -Djetty.port=${JETTY_PORT}"
147 - fi
148 - if [[ -n ${STOP_PORT} ]]; then
149 - JETTY_OPTS="${JETTY_OPTS} -DSTOP.PORT=${STOP_PORT}"
150 - fi
151 - if [[ -n ${STOP_KEY} ]]; then
152 - JETTY_OPTS="${JETTY_OPTS} -DSTOP.KEY=${STOP_KEY}"
153 - fi
154 - if [[ ${USE_SETUID} -eq 1 ]]; then
155 - # Setuid configuration file needs to be the first one in the list
156 - CONF_FILES="${JETTY_HOME}/etc/jetty-setuid.xml ${CONF_FILES}"
157 - JETTY_OPTS="${JETTY_OPTS} -Djava.library.path=/usr/lib64/${SVCNAME}/"
158 - fi
159 - if [[ ${USE_IPV6} -ne 1 ]]; then
160 - JETTY_OPTS="${JETTY_OPTS} -Djava.net.preferIPv4Stack=true"
161 - fi
162 - if [[ ${USE_SSL} -eq 1 ]]; then
163 - # Setuid configuration file needs to be the first one in the list
164 - CONF_FILES="${CONF_FILES} ${JETTY_HOME}/etc/jetty-ssl.xml"
165 - fi
166 -
167 - cd "${JETTY_HOME}"
168 -
169 - start-stop-daemon --start --background --make-pidfile \
170 - --pidfile /var/run/${SVCNAME}.pid \
171 - --startas java -- ${JETTY_OPTS} -jar ${JETTY_HOME}/start.jar ${CONF_FILES} ${JETTY_CONF}
172 - eend $?
173 -}
174 -
175 -stop() {
176 - ebegin "Stopping ${SVCNAME}"
177 - start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid
178 - eend $?
179 -}
180
181 diff --git a/www-servers/jetty-bin/files/init.d/jetty-7 b/www-servers/jetty-bin/files/init.d/jetty-7
182 deleted file mode 100644
183 index 1e54649..0000000
184 --- a/www-servers/jetty-bin/files/init.d/jetty-7
185 +++ /dev/null
186 @@ -1,51 +0,0 @@
187 -#!/sbin/runscript
188 -
189 -depend() {
190 - need net
191 -}
192 -
193 -start() {
194 - ebegin "Starting ${SVCNAME}"
195 -
196 - JETTY_HOME="/var/lib/${SVCNAME}"
197 - CONF_FILES="${JETTY_HOME}/etc/jetty.xml"
198 - JETTY_OPTS="-DSTART=${JETTY_HOME}/start.config"
199 -
200 - if [[ -n ${JETTY_HOST} ]]; then
201 - JETTY_OPTS="${JETTY_OPTS} -Djetty.host=${JETTY_HOST}"
202 - fi
203 - if [[ -n ${JETTY_PORT} ]]; then
204 - JETTY_OPTS="${JETTY_OPTS} -Djetty.port=${JETTY_PORT}"
205 - fi
206 - if [[ -n ${STOP_PORT} ]]; then
207 - JETTY_OPTS="${JETTY_OPTS} -DSTOP.PORT=${STOP_PORT}"
208 - fi
209 - if [[ -n ${STOP_KEY} ]]; then
210 - JETTY_OPTS="${JETTY_OPTS} -DSTOP.KEY=${STOP_KEY}"
211 - fi
212 - if [[ ${USE_SETUID} -eq 1 ]]; then
213 - # Setuid configuration file needs to be the first one in the list
214 - CONF_FILES="${JETTY_HOME}/etc/jetty-setuid.xml ${CONF_FILES}"
215 - JETTY_OPTS="${JETTY_OPTS} -Djava.library.path=/usr/lib64/${SVCNAME}/"
216 - fi
217 - if [[ ${USE_IPV6} -ne 1 ]]; then
218 - JETTY_OPTS="${JETTY_OPTS} -Djava.net.preferIPv4Stack=true"
219 - fi
220 - if [[ ${USE_SSL} -eq 1 ]]; then
221 - # Setuid configuration file needs to be the first one in the list
222 - CONF_FILES="${CONF_FILES} ${JETTY_HOME}/etc/jetty-ssl.xml"
223 - fi
224 -
225 - cd "${JETTY_HOME}"
226 -
227 - start-stop-daemon --start --background --make-pidfile \
228 - --pidfile /var/run/${SVCNAME}.pid \
229 - --startas java -- ${JETTY_OPTS} -jar ${JETTY_HOME}/start.jar ${CONF_FILES} ${JETTY_CONF}
230 - eend $?
231 -}
232 -
233 -stop() {
234 - ebegin "Stopping ${SVCNAME}"
235 - start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid
236 - eend $?
237 -}
238
239 diff --git a/www-servers/jetty-bin/files/conf.d/jetty-6 b/www-servers/jetty-bin/files/jetty.confd
240 similarity index 100%
241 rename from www-servers/jetty-bin/files/conf.d/jetty-6
242 rename to www-servers/jetty-bin/files/jetty.confd
243
244 diff --git a/www-servers/jetty-bin/files/jetty.initd b/www-servers/jetty-bin/files/jetty.initd
245 new file mode 100644
246 index 0000000..5820fc2
247 --- /dev/null
248 +++ b/www-servers/jetty-bin/files/jetty.initd
249 @@ -0,0 +1,51 @@
250 +#!/sbin/runscript
251 +
252 +depend() {
253 + need net
254 +}
255 +
256 +start() {
257 + ebegin "Starting ${SVCNAME}"
258 +
259 + JETTY_HOME="/opt/${SVCNAME}"
260 + CONF_FILES="${JETTY_HOME}/etc/jetty.xml"
261 + JETTY_OPTS=""
262 +
263 + if [[ -n ${JETTY_HOST} ]]; then
264 + JETTY_OPTS="${JETTY_OPTS} -Djetty.host=${JETTY_HOST}"
265 + fi
266 + if [[ -n ${JETTY_PORT} ]]; then
267 + JETTY_OPTS="${JETTY_OPTS} -Djetty.port=${JETTY_PORT}"
268 + fi
269 + if [[ -n ${STOP_PORT} ]]; then
270 + JETTY_OPTS="${JETTY_OPTS} -DSTOP.PORT=${STOP_PORT}"
271 + fi
272 + if [[ -n ${STOP_KEY} ]]; then
273 + JETTY_OPTS="${JETTY_OPTS} -DSTOP.KEY=${STOP_KEY}"
274 + fi
275 + if [[ ${USE_SETUID} -eq 1 ]]; then
276 + # Setuid configuration file needs to be the first one in the list
277 + CONF_FILES="${JETTY_HOME}/etc/jetty-setuid.xml ${CONF_FILES}"
278 + #JETTY_OPTS="${JETTY_OPTS} -Djava.library.path=/usr/lib64/${SVCNAME}/"
279 + fi
280 + if [[ ${USE_IPV6} -ne 1 ]]; then
281 + JETTY_OPTS="${JETTY_OPTS} -Djava.net.preferIPv4Stack=true"
282 + fi
283 + if [[ ${USE_SSL} -eq 1 ]]; then
284 + # Setuid configuration file needs to be the first one in the list
285 + CONF_FILES="${CONF_FILES} ${JETTY_HOME}/etc/jetty-ssl.xml"
286 + fi
287 +
288 + cd "${JETTY_HOME}"
289 +
290 + start-stop-daemon --start --background --make-pidfile \
291 + --pidfile /var/run/${SVCNAME}.pid \
292 + --exec java -- ${JETTY_OPTS} -jar ${JETTY_HOME}/start.jar ${CONF_FILES} ${JETTY_CONF}
293 + eend $?
294 +}
295 +
296 +stop() {
297 + ebegin "Stopping ${SVCNAME}"
298 + start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid
299 + eend $?
300 +}
301
302 diff --git a/www-servers/jetty/jetty-6.1.26.ebuild b/www-servers/jetty-bin/jetty-6.1.26.ebuild
303 similarity index 72%
304 rename from www-servers/jetty/jetty-6.1.26.ebuild
305 rename to www-servers/jetty-bin/jetty-6.1.26.ebuild
306 index cf4f998..bfd010b 100755
307 --- a/www-servers/jetty/jetty-6.1.26.ebuild
308 +++ b/www-servers/jetty-bin/jetty-6.1.26.ebuild
309 @@ -2,6 +2,8 @@
310 # Distributed under the terms of the GNU General Public License v2
311 # $Header: $
312
313 +EAPI=4
314 +
315 inherit eutils
316
317 DESCRIPTION="Jetty is an full-featured web and applicaction server implemented entirely in Java."
318 @@ -13,12 +15,14 @@ LICENSE="Apache-2.0"
319 KEYWORDS="~amd64 ~x86"
320 IUSE=""
321
322 +MY_PN=${PN/-bin}
323 +
324 DEPEND=">=virtual/jdk-1.5
325 app-arch/unzip
326 dev-java/java-config"
327 RDEPEND=">=virtual/jdk-1.5"
328
329 -JETTY_HOME="/opt/${PN}"
330 +JETTY_HOME="/opt/${MY_PN}"
331
332 pkg_setup() {
333 enewgroup jetty
334 @@ -28,8 +32,8 @@ pkg_setup() {
335 src_install() {
336 sed -i -e 's@default="./logs"@default="/var/log/jetty"@g' etc/jetty.xml || die
337
338 -# newinitd "${FILESDIR}"/jetty.initd jetty
339 -# newconfd "${FILESDIR}"/jetty.confd jetty
340 + newinitd "${FILESDIR}"/"${MY_PN}".initd "${MY_PN}"
341 + newconfd "${FILESDIR}"/"${MY_PN}".confd "${MY_PN}"
342
343 dodir "${JETTY_HOME}"
344 insinto "${JETTY_HOME}"
345 @@ -40,16 +44,13 @@ src_install() {
346
347 dodir "${JETTY_HOME}"/webapps
348 dodir "${JETTY_HOME}"/etc/contexts
349 - dosym "${JETTY_HOME}"/etc /etc/jetty
350 -
351 -# exeinto "${JETTY_HOME}"/bin
352 -# doexe bin/jetty.sh
353 + dosym "${JETTY_HOME}"/etc /etc/"${MY_PN}"
354
355 fowners -R jetty:jetty "${JETTY_HOME}"
356
357 - keepdir /var/log/jetty
358 - fowners jetty:jetty /var/log/jetty
359 + keepdir /var/log/"${MY_PN}"
360 + fowners jetty:jetty /var/log/"${MY_PN}"
361
362 - keepdir /var/run/jetty
363 - fowners jetty:jetty /var/run/jetty
364 + keepdir /var/run/"${MY_PN}"
365 + fowners jetty:jetty /var/run/"${MY_PN}"
366 }
367
368 diff --git a/www-servers/jetty-bin/jetty-bin-6.1.26-r3.ebuild b/www-servers/jetty-bin/jetty-bin-6.1.26-r3.ebuild
369 deleted file mode 100644
370 index 6a4204a..0000000
371 --- a/www-servers/jetty-bin/jetty-bin-6.1.26-r3.ebuild
372 +++ /dev/null
373 @@ -1,145 +0,0 @@
374 -# Copyright 1999-2010 Gentoo Foundation
375 -# Distributed under the terms of the GNU General Public License v2
376 -# $Header: $
377 -
378 -EAPI="2"
379 -
380 -inherit eutils java-pkg-2
381 -
382 -DESCRIPTION="Jetty Web Server; Java Servlet container"
383 -
384 -SLOT="6"
385 -HOMEPAGE="http://jetty.codehaus.org/"
386 -KEYWORDS="~amd64 ~x86"
387 -LICENSE="Apache-2.0"
388 -
389 -MY_PN=${PN/-bin}
390 -MY_JETTY=${MY_PN}-${SLOT}
391 -MY_P=${MY_PN}-${PV}
392 -
393 -IUSE="anttasks client ldap ssl stats tomcat7"
394 -
395 -SRC_URI="http://dist.codehaus.org/jetty/jetty-${PV}/jetty-${PV}.zip
396 - anttasks? ( http://dist.codehaus.org/jetty/jetty-${PV}/jetty-ant-${PV}.jar )"
397 -RESTRICT="mirror"
398 -
399 -DEPEND="
400 - tomcat7? ( dev-java/tomcat-servlet-api:3.0 )
401 - !tomcat7? ( dev-java/tomcat-servlet-api:2.5 )
402 - !www-servers/jetty:${SLOT}
403 - !www-servers/jetty-eclipse:${SLOT}
404 - !www-servers/jetty-eclipse-bin:${SLOT}
405 - >=virtual/jre-1.5"
406 -
407 -RDEPEND="${DEPEND}
408 - anttasks? ( dev-java/ant )
409 - >=dev-java/slf4j-api-1.3.1
410 - >=dev-java/sun-javamail-1.4
411 - >=dev-java/jta-1.0.1
412 - >=java-virtuals/jaf-1.1"
413 -
414 -S=${WORKDIR}/${MY_P}
415 -
416 -src_install() {
417 - cd "${S}"
418 - rm -f etc/jetty-sslengine.xml
419 -
420 - java-pkg_jarinto "/usr/share/${MY_JETTY}/lib/"
421 - java-pkg_sointo "/usr/$(get_libdir)/${MY_JETTY}"
422 -
423 - java-pkg_dojar start.jar
424 - java-pkg_newjar lib/${MY_P}.jar ${MY_PN}.jar
425 - java-pkg_newjar lib/${MY_PN}-util-${PV}.jar ${MY_PN}-util.jar
426 - java-pkg_newjar lib/jre1.5/${MY_PN}-util5-${PV}.jar ${MY_PN}-util5.jar
427 - java-pkg_newjar lib/annotations/${MY_PN}-annotations-${PV}.jar ${MY_PN}-annotations.jar
428 - java-pkg_newjar lib/ext/${MY_PN}-rewrite-handler-${PV}.jar ${MY_PN}-rewrite-handler.jar
429 - java-pkg_newjar lib/ext/${MY_PN}-html-${PV}.jar ${MY_PN}-html.jar
430 - java-pkg_newjar lib/ext/${MY_PN}-java5-threadpool-${PV}.jar ${MY_PN}-java5-threadpool.jar
431 - java-pkg_newjar lib/ext/${MY_PN}-ajp-${PV}.jar ${MY_PN}-ajp.jar
432 - java-pkg_newjar lib/ext/${MY_PN}-servlet-tester-${PV}.jar ${MY_PN}-servlet-tester.jar
433 - java-pkg_newjar lib/ext/${MY_PN}-setuid-${PV}.jar ${MY_PN}-setuid.jar
434 - java-pkg_doso lib/ext/libsetuid.so
435 - java-pkg_newjar lib/jsp-2.1/jsp-2.1-${MY_P}.jar jsp-2.1-${MY_PN}.jar
436 - java-pkg_newjar lib/management/${MY_PN}-management-${PV}.jar ${MY_PN}-management.jar
437 - java-pkg_newjar lib/naming/${MY_PN}-naming-${PV}.jar ${MY_PN}-naming.jar
438 - java-pkg_newjar lib/plus/${MY_PN}-plus-${PV}.jar ${MY_PN}-plus.jar
439 - java-pkg_newjar lib/terracotta/${MY_PN}-terracotta-sessions-${PV}.jar ${MY_PN}-terracotta-sessions.jar
440 - java-pkg_newjar lib/xbean/${MY_PN}-xbean-${PV}.jar ${MY_PN}-xbean.jar
441 -
442 - use client && java-pkg_newjar lib/ext/${MY_PN}-client-${PV}.jar ${MY_PN}-client.jar
443 - if use ldap ; then
444 - java-pkg_newjar lib/ext/${MY_PN}-ldap-jaas-${PV}.jar ${MY_PN}-ldap-jaas.jar
445 - else
446 - rm -f etc/jetty-jaas.xml
447 - fi
448 - if use ssl ; then
449 - java-pkg_newjar lib/ext/${MY_PN}-sslengine-${PV}.jar ${MY_PN}-sslengine.jar
450 - else
451 - rm -f etc/jetty-ssl.xml
452 - fi
453 - if use stats ; then
454 - java-pkg_newjar lib/ext/${MY_PN}-java5-stats-${PV}.jar ${MY_PN}-java5-stats.jar
455 - else
456 - rm -f etc/jetty-stats.xml
457 - fi
458 -
459 - if use anttasks ; then
460 - java-pkg_dojar bin/jetty-tasks.xml
461 - cd ${DISTDIR}
462 - java-pkg_newjar ${MY_PN}-ant-${PV}.jar ${MY_PN}-ant.jar
463 - cd ${S}
464 - fi
465 -
466 -
467 - dodir /etc/${MY_JETTY}
468 - insinto /etc/${MY_JETTY}
469 - doins etc/*
470 -
471 - dodir /etc/conf.d
472 - insinto /etc/conf.d
473 - newins ${FILESDIR}/conf.d/${MY_JETTY} ${MY_JETTY}
474 -
475 - dodir /etc/init.d
476 - exeinto /etc/init.d
477 - newexe ${FILESDIR}/init.d/${MY_JETTY} ${MY_JETTY}
478 -
479 - dodir /var/log/${MY_JETTY}
480 -
481 - JETTY_HOME=/var/lib/${MY_JETTY}
482 - dodir ${JETTY_HOME}/webapps
483 - dodir ${JETTY_HOME}/contexts
484 - dodir ${JETTY_HOME}/resources
485 - dosym ${JAVA_PKG_JARDEST} ${JETTY_HOME}/lib
486 - dosym ${JAVA_PKG_JARDEST}/start.jar ${JETTY_HOME}/start.jar
487 - dosym /etc/${MY_JETTY} ${JETTY_HOME}/etc
488 - dosym /var/log/${MY_JETTY} ${JETTY_HOME}/logs
489 -
490 - START_CONFIG=${D}/${JETTY_HOME}/start.config
491 - echo "\$(jetty.class.path).path always" > ${START_CONFIG}
492 - echo "\$(jetty.lib)/** exists \$(jetty.lib)" >> ${START_CONFIG}
493 - echo "jetty.home=${JETTY_HOME}" >> ${START_CONFIG}
494 - echo "org.mortbay.xml.XmlConfiguration.class" >> ${START_CONFIG}
495 - echo "\$(start.class).class" >> ${START_CONFIG}
496 - echo "\$(jetty.home)/etc/jetty.xml" >> ${START_CONFIG}
497 - echo "\$(jetty.home)/lib/*" >> ${START_CONFIG}
498 - echo "/usr/share/sun-javamail/lib/*" >> ${START_CONFIG}
499 - echo "/usr/share/ant/lib/*" >> ${START_CONFIG}
500 - echo "/usr/share/slf4j-api/lib/*" >> ${START_CONFIG}
501 - echo "/usr/share/jta/lib/*" >> ${START_CONFIG}
502 - if use tomcat7 ; then
503 - echo "/usr/share/tomcat-servlet-api-3.0/lib/*" >> ${START_CONFIG}
504 - else
505 - echo "/usr/share/tomcat-servlet-api-2.5/lib/*" >> ${START_CONFIG}
506 - fi
507 - echo "" >> ${START_CONFIG}
508 - echo "\$(jetty.home)/resources/" >> ${START_CONFIG}
509 -}
510 -
511 -pkg_preinst () {
512 - enewuser jetty
513 - fowners jetty:jetty /var/log/${MY_JETTY}
514 - fperms g+w /var/log/${MY_JETTY}
515 - mv ${D}/usr/share/${PN}-${SLOT}/package.env ${D}/usr/share/${MY_JETTY}/package.env
516 - rm -rf ${D}/usr/share/${PN}-${SLOT}
517 -}
518 -
519
520 diff --git a/www-servers/jetty/Manifest b/www-servers/jetty/Manifest
521 deleted file mode 100644
522 index 7f1b4bc..0000000
523 --- a/www-servers/jetty/Manifest
524 +++ /dev/null
525 @@ -1,6 +0,0 @@
526 -AUX jetty.conf 21 RMD160 a8c154d733ca49824e576de3ad7584a2fb9f154e SHA1 9c044b7e0b6cd4560bdb1b137570bd74071e79f2 SHA256 03fbba4876f4f3733ea8a00ac4f40fd5be5eccee728c4e501d9f6d7e9ebfad13
527 -AUX jetty.confd 933 RMD160 9f666b8184a89f0e8d671c0fc87afefa0a3f7df1 SHA1 f9f7b052672e7182f794c0ca8b1af0c0a04834ac SHA256 9edd437baa0eb556daf61ce93c53b8b36a1e9010f06280ed2f547c01c97fbfc1
528 -AUX jetty.initd 1002 RMD160 efbeabe8317a1a62a94cab7e560be540271626f6 SHA1 e1b1c02f6a25fef6e6280cd0d5845ec3e0c0a475 SHA256 1e244c66f155d198d6a9abaac80b23107c9e8c13bf4b9885f3d235c524bec5e4
529 -AUX jetty.xml 6165 RMD160 f620f74b257c620c0fd69d9438e295e8d1b27ce4 SHA1 3387f4606a1168e3a22bde1516987dd3a2449dc2 SHA256 e23234537cfd42b48d91e550b2a30b46b4e84b9c6d17cb73f0e9948a6a3a7a71
530 -DIST jetty-6.1.26.zip 25894195 RMD160 6e960763e720641e1bfd69ca8e5d54f0bc7d8def SHA1 9485913f1a1945a849a90f1a34853d22350bc524 SHA256 96c08eb87ec3772dccc2b3dba54fea85ccc3f804faf7429eecfba3ed55648187
531 -EBUILD jetty-6.1.26.ebuild 1224 RMD160 b68d9c6959e37a3360c03a863db4f0accf62e264 SHA1 0064d34f915202ae066ce73d01190a22e096330f SHA256 31c884534a45efb5ff2aa5ed13220839c0d0e497a671471a814ea15f3d80df9f
532
533 diff --git a/www-servers/jetty/files/jetty.conf b/www-servers/jetty/files/jetty.conf
534 deleted file mode 100755
535 index b5da826..0000000
536 --- a/www-servers/jetty/files/jetty.conf
537 +++ /dev/null
538 @@ -1 +0,0 @@
539 -/etc/jetty/jetty.xml
540
541 diff --git a/www-servers/jetty/files/jetty.confd b/www-servers/jetty/files/jetty.confd
542 deleted file mode 100755
543 index ca72909..0000000
544 --- a/www-servers/jetty/files/jetty.confd
545 +++ /dev/null
546 @@ -1,30 +0,0 @@
547 -# JVM Runtime
548 -# Using the default setting, it will determine your JVM from the system-vm
549 -# set using java-config.
550 -# See java-config(1) manual page for assistance in determining this value.
551 -#
552 -# You can override this value with whatever path you wish.
553 -# Example: JAVA_HOME="/opt/sun-jdk-1.4.1.01"
554 -
555 -# Set's JAVA_HOME to current selected JRE
556 -JAVA_HOME="$(java-config -O)"
557 -
558 -# (Optional) Java runtime options used when the "start", "stop", or "run"
559 -# commands are executed.
560 -# JAVA_OPTIONS=""
561 -
562 -# Where your web applications are located
563 -JETTY_HOME="/opt/jetty"
564 -
565 -# Jetty's User
566 -JETTY_USER="jetty"
567 -
568 -JETTY_PORT="8080"
569 -
570 -# Jetty is quite skilled where to look for configuration
571 -# setup files. If JETTY_CONF is not set it defaults to
572 -# /etc/jetty.conf $JETTY_HOME/etc/jetty.conf (see jetty.sh)
573 -JETTY_CONF="/etc/jetty/jetty.conf"
574 -
575 -# Additional CLASSPATH for Jetty to use, plus any others you need.
576 -#CLASSPATH="${CLASSPATH}:/YOUR_SPECIFIC_LIBDIR"
577
578 diff --git a/www-servers/jetty/files/jetty.initd b/www-servers/jetty/files/jetty.initd
579 deleted file mode 100755
580 index bbdf39b..0000000
581 --- a/www-servers/jetty/files/jetty.initd
582 +++ /dev/null
583 @@ -1,36 +0,0 @@
584 -#!/sbin/runscript
585 -# Copyright 1999-2005 Gentoo Foundation
586 -# Distributed under the terms of the GNU General Public License, v2 or later
587 -# $Header: $
588 -
589 -JETTY_ENV="JAVA_HOME=${JAVA_HOME} JAVA_OPTIONS=\"${JAVA_OPTIONS}\""
590 -JETTY_ENV="${JETTY_ENV} JETTY_HOME=${JETTY_HOME} JETTY_CONSOLE=/var/log/jetty/jetty.log"
591 -JETTY_ENV="${JETTY_ENV} JETTY_PORT=${JETTY_PORT} JETTY_CONF=${JETTY_CONF} JETTY_RUN=/var/run/jetty"
592 -JETTY_ENV="${JETTY_ENV} CLASSPATH=${CLASSPATH}:${JETTY_ADD_CLASSPATH}"
593 -
594 -depend() {
595 - need net
596 - use dns logger postgresql mysql
597 -}
598 -
599 -start() {
600 - ebegin "Starting Jetty"
601 - su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh start"
602 - eend $?
603 -}
604 -
605 -stop () {
606 - ebegin "Stopping Jetty"
607 - su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh stop"
608 - sleep 2
609 - eend $?
610 -}
611 -
612 -svc_restart () {
613 - ebegin "Restarting Jetty"
614 - su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh stop"
615 - sleep 5
616 - cd ${JETTY_HOME}
617 - su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh start"
618 - eend $?
619 -}
620
621 diff --git a/www-servers/jetty/files/jetty.xml b/www-servers/jetty/files/jetty.xml
622 deleted file mode 100755
623 index 3ef3d67..0000000
624 --- a/www-servers/jetty/files/jetty.xml
625 +++ /dev/null
626 @@ -1,143 +0,0 @@
627 -<?xml version="1.0"?>
628 -<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
629 -
630 -<Configure id="Server" class="org.mortbay.jetty.Server">
631 -
632 - <!-- =========================================================== -->
633 - <!-- Server Thread Pool -->
634 - <!-- =========================================================== -->
635 - <Set name="ThreadPool">
636 -
637 - <New class="org.mortbay.thread.QueuedThreadPool">
638 - <Set name="minThreads">10</Set>
639 - <Set name="maxThreads">200</Set>
640 - <Set name="lowThreads">20</Set>
641 - <Set name="SpawnOrShrinkAt">2</Set>
642 - </New>
643 -
644 - </Set>
645 -
646 -
647 -
648 - <!-- =========================================================== -->
649 - <!-- Set connectors -->
650 - <!-- =========================================================== -->
651 - <!-- One of each type! -->
652 - <!-- =========================================================== -->
653 -
654 - <!-- Use this connector for many frequently idle connections
655 - and for threadless continuations.
656 - -->
657 - <Call name="addConnector">
658 - <Arg>
659 - <New class="org.mortbay.jetty.nio.SelectChannelConnector">
660 - <Set name="host">127.0.0.1</Set>
661 - <Set name="port">8080</Set>
662 - <Set name="maxIdleTime">10000</Set>
663 - <Set name="Acceptors">2</Set>
664 - <Set name="statsOn">false</Set>
665 - <Set name="confidentialPort">8443</Set>
666 - <Set name="lowResourcesConnections">5000</Set>
667 - <Set name="lowResourcesMaxIdleTime">5000</Set>
668 - </New>
669 - </Arg>
670 - </Call>
671 -
672 - <!-- =========================================================== -->
673 - <!-- Set up global session ID manager -->
674 - <!-- =========================================================== -->
675 - <!--
676 - <Set name="sessionIdManager">
677 - <New class="org.mortbay.jetty.servlet.HashSessionIdManager">
678 - <Set name="workerName">node1</Set>
679 - </New>
680 - </Set>
681 - -->
682 -
683 - <!-- =========================================================== -->
684 - <!-- Set handler Collection Structure -->
685 - <!-- =========================================================== -->
686 - <Set name="handler">
687 - <New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection">
688 - <Set name="handlers">
689 - <Array type="org.mortbay.jetty.Handler">
690 - <Item>
691 - <New id="Contexts" class="org.mortbay.jetty.handler.ContextHandlerCollection"/>
692 - </Item>
693 - <Item>
694 - <New id="DefaultHandler" class="org.mortbay.jetty.handler.DefaultHandler"/>
695 - </Item>
696 - <Item>
697 - <New id="RequestLog" class="org.mortbay.jetty.handler.RequestLogHandler"/>
698 - </Item>
699 - </Array>
700 - </Set>
701 - </New>
702 - </Set>
703 -
704 - <!-- =========================================================== -->
705 - <!-- Configure the context deployer -->
706 - <!-- A context deployer will deploy contexts described in -->
707 - <!-- configuration files discovered in a directory. -->
708 - <!-- The configuration directory can be scanned for hot -->
709 - <!-- deployments at the configured scanInterval. -->
710 - <!-- -->
711 - <!-- This deployer is configured to deploy contexts configured -->
712 - <!-- in the $JETTY_HOME/contexts directory -->
713 - <!-- -->
714 - <!-- =========================================================== -->
715 -
716 - <Call name="addLifeCycle">
717 - <Arg>
718 - <New class="org.mortbay.jetty.deployer.ContextDeployer">
719 - <Set name="contexts"><Ref id="Contexts"/></Set>
720 - <Set name="configurationDir">/etc/jetty/contexts</Set>
721 - <Set name="scanInterval">1</Set>
722 - </New>
723 - </Arg>
724 - </Call>
725 -
726 - <!-- =========================================================== -->
727 - <!-- Configure Request Log -->
728 - <!-- Request logs may be configured for the entire server here, -->
729 - <!-- or they can be configured for a specific web app in a -->
730 - <!-- contexts configuration (see $(jetty.home)/contexts/test.xml -->
731 - <!-- for an example). -->
732 - <!-- =========================================================== -->
733 - <Ref id="RequestLog">
734 - <Set name="requestLog">
735 - <New id="RequestLogImpl" class="org.mortbay.jetty.NCSARequestLog">
736 - <Set name="filename">/var/log/jetty/access.yyyy_mm_dd.log</Set>
737 - <Set name="filenameDateFormat">yyyy_MM_dd</Set>
738 - <Set name="retainDays">90</Set>
739 - <Set name="append">true</Set>
740 - <Set name="extended">true</Set>
741 - <Set name="logCookies">false</Set>
742 - <Set name="LogTimeZone">GMT</Set>
743 - </New>
744 - </Set>
745 - </Ref>
746 -
747 - <New id="ServerLog" class="java.io.PrintStream">
748 - <Arg>
749 - <New class="org.mortbay.util.RolloverFileOutputStream">
750 - <Arg>/var/log/jetty/error.yyyy_mm_dd.log</Arg>
751 - <Arg type="boolean">false</Arg>
752 - <Arg type="int">90</Arg>
753 - <Arg><Call class="java.util.TimeZone" name="getTimeZone"><Arg>GMT</Arg></Call></Arg>
754 - <Get id="ServerLogName" name="datedFilename"/>
755 - </New>
756 - </Arg>
757 - </New>
758 - <Call class="java.lang.System" name="setErr"><Arg><Ref id="ServerLog"/></Arg></Call>
759 - <Call class="java.lang.System" name="setOut"><Arg><Ref id="ServerLog"/></Arg></Call>
760 -
761 - <!-- =========================================================== -->
762 - <!-- extra options -->
763 - <!-- =========================================================== -->
764 - <Set name="stopAtShutdown">true</Set>
765 - <Set name="sendServerVersion">false</Set>
766 - <Set name="sendDateHeader">true</Set>
767 - <Set name="gracefulShutdown">1000</Set>
768 -
769 -</Configure>
770
771 diff --git a/www-servers/solr/Manifest b/www-servers/solr/Manifest
772 index 8d8643b..b3b657f 100644
773 --- a/www-servers/solr/Manifest
774 +++ b/www-servers/solr/Manifest
775 @@ -1,4 +1,4 @@
776 AUX jetty-solr.xml 431 RMD160 52b20e7cbb74c70ebd8650007313a15c423eff3b SHA1 c17d71e161cbebb466c42b1d6266967128d29f81 SHA256 e3f5a4499db74586d56df7fabfaeeaef14e83caa7c1e003a004087604468660a
777 AUX solr.xml 1320 RMD160 206cf52b217afec7ab83b16599d72f33e128753d SHA1 c5b1512c5c153c760063a38db085bdb73187b4d8 SHA256 45f7ea56648a651389e95ad9f653591331dcf47a3dae11aadbd8e806ec736dca
778 DIST apache-solr-3.5.0.tgz 78673382 RMD160 365d4b27753375ea3a39b9d42c06b80dce474731 SHA1 020fc86dfd2405212c0f706111d8576dbb8e54b4 SHA256 804f3ba9d1296f81388605a79538b7362355693fbdd03b7b2dbf9a706bf1d1d0
779 -EBUILD solr-3.5.0.ebuild 1165 RMD160 349aa7d7984e44f12ae69153db29bc07584122c8 SHA1 dac4b6c2244d3b14842e2fc213ec774ae2081dd4 SHA256 fe0f001ac5459743bf5cb37c4ba89380dcb6559f1b1b6730f977b138ad5e3146
780 +EBUILD solr-3.5.0.ebuild 1156 RMD160 fa4f70afbde272215d6edcda9a3e4d6ce09d4637 SHA1 8c8ca8b815157c246b7f5552c6d3c05a7cbd71b4 SHA256 c49fb0866d2c3f17ea6c19a8e97ad972e11f0e7e841179972cd488bc6d8942c3
781
782 diff --git a/www-servers/solr/solr-3.5.0.ebuild b/www-servers/solr/solr-3.5.0.ebuild
783 index 61cb485..5cd73c2 100644
784 --- a/www-servers/solr/solr-3.5.0.ebuild
785 +++ b/www-servers/solr/solr-3.5.0.ebuild
786 @@ -13,9 +13,9 @@ SLOT="0"
787 KEYWORDS="~amd64 ~x86"
788 IUSE=""
789
790 -CDEPEND="app-arch/unzip"
791 -DEPEND="www-servers/jetty"
792 -RDEPEND="${DEPEND}"
793 +DEPEND="app-arch/unzip"
794 +RDEPEND="${DEPEND}
795 + www-servers/jetty"
796
797 S="${WORKDIR}/apache-${P}"