1 |
commit: edbd8cd876351d7b208b30a9ba4eaaeb63e84b82 |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 6 10:29:35 2012 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 6 10:29:35 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=edbd8cd8 |
7 |
|
8 |
jetty and solr bump |
9 |
|
10 |
--- |
11 |
www-servers/jetty/Manifest | 6 + |
12 |
www-servers/jetty/files/jetty.conf | 1 + |
13 |
www-servers/jetty/files/jetty.confd | 30 ++++ |
14 |
www-servers/jetty/files/jetty.initd | 36 +++++ |
15 |
www-servers/jetty/files/jetty.xml | 143 ++++++++++++++++++++ |
16 |
www-servers/jetty/jetty-6.1.26.ebuild | 55 ++++++++ |
17 |
www-servers/solr/Manifest | 5 +- |
18 |
.../solr/files/{jetty-env.xml => jetty-solr.xml} | 4 +- |
19 |
www-servers/solr/files/solr.xml | 34 +++++ |
20 |
www-servers/solr/solr-3.5.0.ebuild | 52 +++----- |
21 |
10 files changed, 330 insertions(+), 36 deletions(-) |
22 |
|
23 |
diff --git a/www-servers/jetty/Manifest b/www-servers/jetty/Manifest |
24 |
new file mode 100644 |
25 |
index 0000000..7f1b4bc |
26 |
--- /dev/null |
27 |
+++ b/www-servers/jetty/Manifest |
28 |
@@ -0,0 +1,6 @@ |
29 |
+AUX jetty.conf 21 RMD160 a8c154d733ca49824e576de3ad7584a2fb9f154e SHA1 9c044b7e0b6cd4560bdb1b137570bd74071e79f2 SHA256 03fbba4876f4f3733ea8a00ac4f40fd5be5eccee728c4e501d9f6d7e9ebfad13 |
30 |
+AUX jetty.confd 933 RMD160 9f666b8184a89f0e8d671c0fc87afefa0a3f7df1 SHA1 f9f7b052672e7182f794c0ca8b1af0c0a04834ac SHA256 9edd437baa0eb556daf61ce93c53b8b36a1e9010f06280ed2f547c01c97fbfc1 |
31 |
+AUX jetty.initd 1002 RMD160 efbeabe8317a1a62a94cab7e560be540271626f6 SHA1 e1b1c02f6a25fef6e6280cd0d5845ec3e0c0a475 SHA256 1e244c66f155d198d6a9abaac80b23107c9e8c13bf4b9885f3d235c524bec5e4 |
32 |
+AUX jetty.xml 6165 RMD160 f620f74b257c620c0fd69d9438e295e8d1b27ce4 SHA1 3387f4606a1168e3a22bde1516987dd3a2449dc2 SHA256 e23234537cfd42b48d91e550b2a30b46b4e84b9c6d17cb73f0e9948a6a3a7a71 |
33 |
+DIST jetty-6.1.26.zip 25894195 RMD160 6e960763e720641e1bfd69ca8e5d54f0bc7d8def SHA1 9485913f1a1945a849a90f1a34853d22350bc524 SHA256 96c08eb87ec3772dccc2b3dba54fea85ccc3f804faf7429eecfba3ed55648187 |
34 |
+EBUILD jetty-6.1.26.ebuild 1224 RMD160 b68d9c6959e37a3360c03a863db4f0accf62e264 SHA1 0064d34f915202ae066ce73d01190a22e096330f SHA256 31c884534a45efb5ff2aa5ed13220839c0d0e497a671471a814ea15f3d80df9f |
35 |
|
36 |
diff --git a/www-servers/jetty/files/jetty.conf b/www-servers/jetty/files/jetty.conf |
37 |
new file mode 100755 |
38 |
index 0000000..b5da826 |
39 |
--- /dev/null |
40 |
+++ b/www-servers/jetty/files/jetty.conf |
41 |
@@ -0,0 +1 @@ |
42 |
+/etc/jetty/jetty.xml |
43 |
|
44 |
diff --git a/www-servers/jetty/files/jetty.confd b/www-servers/jetty/files/jetty.confd |
45 |
new file mode 100755 |
46 |
index 0000000..ca72909 |
47 |
--- /dev/null |
48 |
+++ b/www-servers/jetty/files/jetty.confd |
49 |
@@ -0,0 +1,30 @@ |
50 |
+# JVM Runtime |
51 |
+# Using the default setting, it will determine your JVM from the system-vm |
52 |
+# set using java-config. |
53 |
+# See java-config(1) manual page for assistance in determining this value. |
54 |
+# |
55 |
+# You can override this value with whatever path you wish. |
56 |
+# Example: JAVA_HOME="/opt/sun-jdk-1.4.1.01" |
57 |
+ |
58 |
+# Set's JAVA_HOME to current selected JRE |
59 |
+JAVA_HOME="$(java-config -O)" |
60 |
+ |
61 |
+# (Optional) Java runtime options used when the "start", "stop", or "run" |
62 |
+# commands are executed. |
63 |
+# JAVA_OPTIONS="" |
64 |
+ |
65 |
+# Where your web applications are located |
66 |
+JETTY_HOME="/opt/jetty" |
67 |
+ |
68 |
+# Jetty's User |
69 |
+JETTY_USER="jetty" |
70 |
+ |
71 |
+JETTY_PORT="8080" |
72 |
+ |
73 |
+# Jetty is quite skilled where to look for configuration |
74 |
+# setup files. If JETTY_CONF is not set it defaults to |
75 |
+# /etc/jetty.conf $JETTY_HOME/etc/jetty.conf (see jetty.sh) |
76 |
+JETTY_CONF="/etc/jetty/jetty.conf" |
77 |
+ |
78 |
+# Additional CLASSPATH for Jetty to use, plus any others you need. |
79 |
+#CLASSPATH="${CLASSPATH}:/YOUR_SPECIFIC_LIBDIR" |
80 |
|
81 |
diff --git a/www-servers/jetty/files/jetty.initd b/www-servers/jetty/files/jetty.initd |
82 |
new file mode 100755 |
83 |
index 0000000..bbdf39b |
84 |
--- /dev/null |
85 |
+++ b/www-servers/jetty/files/jetty.initd |
86 |
@@ -0,0 +1,36 @@ |
87 |
+#!/sbin/runscript |
88 |
+# Copyright 1999-2005 Gentoo Foundation |
89 |
+# Distributed under the terms of the GNU General Public License, v2 or later |
90 |
+# $Header: $ |
91 |
+ |
92 |
+JETTY_ENV="JAVA_HOME=${JAVA_HOME} JAVA_OPTIONS=\"${JAVA_OPTIONS}\"" |
93 |
+JETTY_ENV="${JETTY_ENV} JETTY_HOME=${JETTY_HOME} JETTY_CONSOLE=/var/log/jetty/jetty.log" |
94 |
+JETTY_ENV="${JETTY_ENV} JETTY_PORT=${JETTY_PORT} JETTY_CONF=${JETTY_CONF} JETTY_RUN=/var/run/jetty" |
95 |
+JETTY_ENV="${JETTY_ENV} CLASSPATH=${CLASSPATH}:${JETTY_ADD_CLASSPATH}" |
96 |
+ |
97 |
+depend() { |
98 |
+ need net |
99 |
+ use dns logger postgresql mysql |
100 |
+} |
101 |
+ |
102 |
+start() { |
103 |
+ ebegin "Starting Jetty" |
104 |
+ su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh start" |
105 |
+ eend $? |
106 |
+} |
107 |
+ |
108 |
+stop () { |
109 |
+ ebegin "Stopping Jetty" |
110 |
+ su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh stop" |
111 |
+ sleep 2 |
112 |
+ eend $? |
113 |
+} |
114 |
+ |
115 |
+svc_restart () { |
116 |
+ ebegin "Restarting Jetty" |
117 |
+ su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh stop" |
118 |
+ sleep 5 |
119 |
+ cd ${JETTY_HOME} |
120 |
+ su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh start" |
121 |
+ eend $? |
122 |
+} |
123 |
|
124 |
diff --git a/www-servers/jetty/files/jetty.xml b/www-servers/jetty/files/jetty.xml |
125 |
new file mode 100755 |
126 |
index 0000000..3ef3d67 |
127 |
--- /dev/null |
128 |
+++ b/www-servers/jetty/files/jetty.xml |
129 |
@@ -0,0 +1,143 @@ |
130 |
+<?xml version="1.0"?> |
131 |
+<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> |
132 |
+ |
133 |
+<Configure id="Server" class="org.mortbay.jetty.Server"> |
134 |
+ |
135 |
+ <!-- =========================================================== --> |
136 |
+ <!-- Server Thread Pool --> |
137 |
+ <!-- =========================================================== --> |
138 |
+ <Set name="ThreadPool"> |
139 |
+ |
140 |
+ <New class="org.mortbay.thread.QueuedThreadPool"> |
141 |
+ <Set name="minThreads">10</Set> |
142 |
+ <Set name="maxThreads">200</Set> |
143 |
+ <Set name="lowThreads">20</Set> |
144 |
+ <Set name="SpawnOrShrinkAt">2</Set> |
145 |
+ </New> |
146 |
+ |
147 |
+ </Set> |
148 |
+ |
149 |
+ |
150 |
+ |
151 |
+ <!-- =========================================================== --> |
152 |
+ <!-- Set connectors --> |
153 |
+ <!-- =========================================================== --> |
154 |
+ <!-- One of each type! --> |
155 |
+ <!-- =========================================================== --> |
156 |
+ |
157 |
+ <!-- Use this connector for many frequently idle connections |
158 |
+ and for threadless continuations. |
159 |
+ --> |
160 |
+ <Call name="addConnector"> |
161 |
+ <Arg> |
162 |
+ <New class="org.mortbay.jetty.nio.SelectChannelConnector"> |
163 |
+ <Set name="host">127.0.0.1</Set> |
164 |
+ <Set name="port">8080</Set> |
165 |
+ <Set name="maxIdleTime">10000</Set> |
166 |
+ <Set name="Acceptors">2</Set> |
167 |
+ <Set name="statsOn">false</Set> |
168 |
+ <Set name="confidentialPort">8443</Set> |
169 |
+ <Set name="lowResourcesConnections">5000</Set> |
170 |
+ <Set name="lowResourcesMaxIdleTime">5000</Set> |
171 |
+ </New> |
172 |
+ </Arg> |
173 |
+ </Call> |
174 |
+ |
175 |
+ <!-- =========================================================== --> |
176 |
+ <!-- Set up global session ID manager --> |
177 |
+ <!-- =========================================================== --> |
178 |
+ <!-- |
179 |
+ <Set name="sessionIdManager"> |
180 |
+ <New class="org.mortbay.jetty.servlet.HashSessionIdManager"> |
181 |
+ <Set name="workerName">node1</Set> |
182 |
+ </New> |
183 |
+ </Set> |
184 |
+ --> |
185 |
+ |
186 |
+ <!-- =========================================================== --> |
187 |
+ <!-- Set handler Collection Structure --> |
188 |
+ <!-- =========================================================== --> |
189 |
+ <Set name="handler"> |
190 |
+ <New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection"> |
191 |
+ <Set name="handlers"> |
192 |
+ <Array type="org.mortbay.jetty.Handler"> |
193 |
+ <Item> |
194 |
+ <New id="Contexts" class="org.mortbay.jetty.handler.ContextHandlerCollection"/> |
195 |
+ </Item> |
196 |
+ <Item> |
197 |
+ <New id="DefaultHandler" class="org.mortbay.jetty.handler.DefaultHandler"/> |
198 |
+ </Item> |
199 |
+ <Item> |
200 |
+ <New id="RequestLog" class="org.mortbay.jetty.handler.RequestLogHandler"/> |
201 |
+ </Item> |
202 |
+ </Array> |
203 |
+ </Set> |
204 |
+ </New> |
205 |
+ </Set> |
206 |
+ |
207 |
+ <!-- =========================================================== --> |
208 |
+ <!-- Configure the context deployer --> |
209 |
+ <!-- A context deployer will deploy contexts described in --> |
210 |
+ <!-- configuration files discovered in a directory. --> |
211 |
+ <!-- The configuration directory can be scanned for hot --> |
212 |
+ <!-- deployments at the configured scanInterval. --> |
213 |
+ <!-- --> |
214 |
+ <!-- This deployer is configured to deploy contexts configured --> |
215 |
+ <!-- in the $JETTY_HOME/contexts directory --> |
216 |
+ <!-- --> |
217 |
+ <!-- =========================================================== --> |
218 |
+ |
219 |
+ <Call name="addLifeCycle"> |
220 |
+ <Arg> |
221 |
+ <New class="org.mortbay.jetty.deployer.ContextDeployer"> |
222 |
+ <Set name="contexts"><Ref id="Contexts"/></Set> |
223 |
+ <Set name="configurationDir">/etc/jetty/contexts</Set> |
224 |
+ <Set name="scanInterval">1</Set> |
225 |
+ </New> |
226 |
+ </Arg> |
227 |
+ </Call> |
228 |
+ |
229 |
+ <!-- =========================================================== --> |
230 |
+ <!-- Configure Request Log --> |
231 |
+ <!-- Request logs may be configured for the entire server here, --> |
232 |
+ <!-- or they can be configured for a specific web app in a --> |
233 |
+ <!-- contexts configuration (see $(jetty.home)/contexts/test.xml --> |
234 |
+ <!-- for an example). --> |
235 |
+ <!-- =========================================================== --> |
236 |
+ <Ref id="RequestLog"> |
237 |
+ <Set name="requestLog"> |
238 |
+ <New id="RequestLogImpl" class="org.mortbay.jetty.NCSARequestLog"> |
239 |
+ <Set name="filename">/var/log/jetty/access.yyyy_mm_dd.log</Set> |
240 |
+ <Set name="filenameDateFormat">yyyy_MM_dd</Set> |
241 |
+ <Set name="retainDays">90</Set> |
242 |
+ <Set name="append">true</Set> |
243 |
+ <Set name="extended">true</Set> |
244 |
+ <Set name="logCookies">false</Set> |
245 |
+ <Set name="LogTimeZone">GMT</Set> |
246 |
+ </New> |
247 |
+ </Set> |
248 |
+ </Ref> |
249 |
+ |
250 |
+ <New id="ServerLog" class="java.io.PrintStream"> |
251 |
+ <Arg> |
252 |
+ <New class="org.mortbay.util.RolloverFileOutputStream"> |
253 |
+ <Arg>/var/log/jetty/error.yyyy_mm_dd.log</Arg> |
254 |
+ <Arg type="boolean">false</Arg> |
255 |
+ <Arg type="int">90</Arg> |
256 |
+ <Arg><Call class="java.util.TimeZone" name="getTimeZone"><Arg>GMT</Arg></Call></Arg> |
257 |
+ <Get id="ServerLogName" name="datedFilename"/> |
258 |
+ </New> |
259 |
+ </Arg> |
260 |
+ </New> |
261 |
+ <Call class="java.lang.System" name="setErr"><Arg><Ref id="ServerLog"/></Arg></Call> |
262 |
+ <Call class="java.lang.System" name="setOut"><Arg><Ref id="ServerLog"/></Arg></Call> |
263 |
+ |
264 |
+ <!-- =========================================================== --> |
265 |
+ <!-- extra options --> |
266 |
+ <!-- =========================================================== --> |
267 |
+ <Set name="stopAtShutdown">true</Set> |
268 |
+ <Set name="sendServerVersion">false</Set> |
269 |
+ <Set name="sendDateHeader">true</Set> |
270 |
+ <Set name="gracefulShutdown">1000</Set> |
271 |
+ |
272 |
+</Configure> |
273 |
|
274 |
diff --git a/www-servers/jetty/jetty-6.1.26.ebuild b/www-servers/jetty/jetty-6.1.26.ebuild |
275 |
new file mode 100755 |
276 |
index 0000000..cf4f998 |
277 |
--- /dev/null |
278 |
+++ b/www-servers/jetty/jetty-6.1.26.ebuild |
279 |
@@ -0,0 +1,55 @@ |
280 |
+# Copyright 1999-2008 Gentoo Foundation |
281 |
+# Distributed under the terms of the GNU General Public License v2 |
282 |
+# $Header: $ |
283 |
+ |
284 |
+inherit eutils |
285 |
+ |
286 |
+DESCRIPTION="Jetty is an full-featured web and applicaction server implemented entirely in Java." |
287 |
+HOMEPAGE="http://www.mortbay.org/jetty-6/" |
288 |
+SRC_URI="http://dist.codehaus.org/jetty/${P}/${P}.zip" |
289 |
+SLOT="0" |
290 |
+ |
291 |
+LICENSE="Apache-2.0" |
292 |
+KEYWORDS="~amd64 ~x86" |
293 |
+IUSE="" |
294 |
+ |
295 |
+DEPEND=">=virtual/jdk-1.5 |
296 |
+ app-arch/unzip |
297 |
+ dev-java/java-config" |
298 |
+RDEPEND=">=virtual/jdk-1.5" |
299 |
+ |
300 |
+JETTY_HOME="/opt/${PN}" |
301 |
+ |
302 |
+pkg_setup() { |
303 |
+ enewgroup jetty |
304 |
+ enewuser jetty -1 /bin/bash "${JETTY_HOME}" jetty |
305 |
+} |
306 |
+ |
307 |
+src_install() { |
308 |
+ sed -i -e 's@default="./logs"@default="/var/log/jetty"@g' etc/jetty.xml || die |
309 |
+ |
310 |
+# newinitd "${FILESDIR}"/jetty.initd jetty |
311 |
+# newconfd "${FILESDIR}"/jetty.confd jetty |
312 |
+ |
313 |
+ dodir "${JETTY_HOME}" |
314 |
+ insinto "${JETTY_HOME}" |
315 |
+ doins start.jar |
316 |
+ doins -r etc |
317 |
+ doins -r lib |
318 |
+ doins -r resources |
319 |
+ |
320 |
+ dodir "${JETTY_HOME}"/webapps |
321 |
+ dodir "${JETTY_HOME}"/etc/contexts |
322 |
+ dosym "${JETTY_HOME}"/etc /etc/jetty |
323 |
+ |
324 |
+# exeinto "${JETTY_HOME}"/bin |
325 |
+# doexe bin/jetty.sh |
326 |
+ |
327 |
+ fowners -R jetty:jetty "${JETTY_HOME}" |
328 |
+ |
329 |
+ keepdir /var/log/jetty |
330 |
+ fowners jetty:jetty /var/log/jetty |
331 |
+ |
332 |
+ keepdir /var/run/jetty |
333 |
+ fowners jetty:jetty /var/run/jetty |
334 |
+} |
335 |
|
336 |
diff --git a/www-servers/solr/Manifest b/www-servers/solr/Manifest |
337 |
index 27edcda..8d8643b 100644 |
338 |
--- a/www-servers/solr/Manifest |
339 |
+++ b/www-servers/solr/Manifest |
340 |
@@ -1,3 +1,4 @@ |
341 |
-AUX jetty-env.xml 433 RMD160 c045cf668c894da6b9d8c65dd6867c9868460f75 SHA1 3118bc66892d6c754ec98ba249897987b47283ab SHA256 f5e94950c8ba6d2c4815eb2e0f8d65908e3ee2649c714f19247ddfe536d6b073 |
342 |
+AUX jetty-solr.xml 431 RMD160 52b20e7cbb74c70ebd8650007313a15c423eff3b SHA1 c17d71e161cbebb466c42b1d6266967128d29f81 SHA256 e3f5a4499db74586d56df7fabfaeeaef14e83caa7c1e003a004087604468660a |
343 |
+AUX solr.xml 1320 RMD160 206cf52b217afec7ab83b16599d72f33e128753d SHA1 c5b1512c5c153c760063a38db085bdb73187b4d8 SHA256 45f7ea56648a651389e95ad9f653591331dcf47a3dae11aadbd8e806ec736dca |
344 |
DIST apache-solr-3.5.0.tgz 78673382 RMD160 365d4b27753375ea3a39b9d42c06b80dce474731 SHA1 020fc86dfd2405212c0f706111d8576dbb8e54b4 SHA256 804f3ba9d1296f81388605a79538b7362355693fbdd03b7b2dbf9a706bf1d1d0 |
345 |
-EBUILD solr-3.5.0.ebuild 1643 RMD160 c7b533d41bdb0c3405a0ef820dd1904cb0e7a960 SHA1 ce16d66d8f3be8ae6481972bcd7df95ec9340e6c SHA256 f5efd5b9435ecdc7c68cf84a0476fb127350037890f1dcfc22c44aca141867bb |
346 |
+EBUILD solr-3.5.0.ebuild 1165 RMD160 349aa7d7984e44f12ae69153db29bc07584122c8 SHA1 dac4b6c2244d3b14842e2fc213ec774ae2081dd4 SHA256 fe0f001ac5459743bf5cb37c4ba89380dcb6559f1b1b6730f977b138ad5e3146 |
347 |
|
348 |
diff --git a/www-servers/solr/files/jetty-env.xml b/www-servers/solr/files/jetty-solr.xml |
349 |
similarity index 85% |
350 |
rename from www-servers/solr/files/jetty-env.xml |
351 |
rename to www-servers/solr/files/jetty-solr.xml |
352 |
index 3beae8c..88490a0 100644 |
353 |
--- a/www-servers/solr/files/jetty-env.xml |
354 |
+++ b/www-servers/solr/files/jetty-solr.xml |
355 |
@@ -2,11 +2,9 @@ |
356 |
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> |
357 |
|
358 |
<!-- Set the solr.solr.home system property --> |
359 |
-<Configure class="org.eclipse.jetty.webapp.WebAppContext"> |
360 |
+<Configure class="org.mortbay.jetty.webapp.WebAppContext"> |
361 |
<Call name="setProperty" class="java.lang.System"> |
362 |
<Arg type="String">solr.solr.home</Arg> |
363 |
<Arg type="String">/usr/share/solr</Arg> |
364 |
</Call> |
365 |
</Configure> |
366 |
- |
367 |
- |
368 |
|
369 |
diff --git a/www-servers/solr/files/solr.xml b/www-servers/solr/files/solr.xml |
370 |
new file mode 100644 |
371 |
index 0000000..4d1a84e |
372 |
--- /dev/null |
373 |
+++ b/www-servers/solr/files/solr.xml |
374 |
@@ -0,0 +1,34 @@ |
375 |
+<?xml version="1.0" encoding="UTF-8" ?> |
376 |
+<!-- |
377 |
+ Licensed to the Apache Software Foundation (ASF) under one or more |
378 |
+ contributor license agreements. See the NOTICE file distributed with |
379 |
+ this work for additional information regarding copyright ownership. |
380 |
+ The ASF licenses this file to You under the Apache License, Version 2.0 |
381 |
+ (the "License"); you may not use this file except in compliance with |
382 |
+ the License. You may obtain a copy of the License at |
383 |
+ |
384 |
+ http://www.apache.org/licenses/LICENSE-2.0 |
385 |
+ |
386 |
+ Unless required by applicable law or agreed to in writing, software |
387 |
+ distributed under the License is distributed on an "AS IS" BASIS, |
388 |
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
389 |
+ See the License for the specific language governing permissions and |
390 |
+ limitations under the License. |
391 |
+--> |
392 |
+ |
393 |
+<!-- |
394 |
+ All (relative) paths are relative to the installation path |
395 |
+ |
396 |
+ persistent: Save changes made via the API to this file |
397 |
+ sharedLib: path to a lib directory that will be shared across all cores |
398 |
+--> |
399 |
+<solr persistent="false"> |
400 |
+ |
401 |
+ <!-- |
402 |
+ adminPath: RequestHandler path to manage cores. |
403 |
+ If 'null' (or absent), cores will not be manageable via request handler |
404 |
+ --> |
405 |
+ <cores adminPath="/admin/cores" defaultCoreName="collection1"> |
406 |
+ <core name="collection1" instanceDir="." /> |
407 |
+ </cores> |
408 |
+</solr> |
409 |
|
410 |
diff --git a/www-servers/solr/solr-3.5.0.ebuild b/www-servers/solr/solr-3.5.0.ebuild |
411 |
index 928d382..61cb485 100644 |
412 |
--- a/www-servers/solr/solr-3.5.0.ebuild |
413 |
+++ b/www-servers/solr/solr-3.5.0.ebuild |
414 |
@@ -4,8 +4,6 @@ |
415 |
|
416 |
EAPI="4" |
417 |
|
418 |
-# inherit apache-module python multilib ruby-ng |
419 |
- |
420 |
DESCRIPTION="Popular, blazing fast open source enterprise search platform from the Apache Lucene project" |
421 |
HOMEPAGE="http://lucene.apache.org/solr/" |
422 |
SRC_URI="http://www.apache.org/dist/lucene/${PN}/${PV}/apache-${P}.tgz" |
423 |
@@ -15,42 +13,34 @@ SLOT="0" |
424 |
KEYWORDS="~amd64 ~x86" |
425 |
IUSE="" |
426 |
|
427 |
-DEPEND="www-servers/jetty-bin" |
428 |
+CDEPEND="app-arch/unzip" |
429 |
+DEPEND="www-servers/jetty" |
430 |
RDEPEND="${DEPEND}" |
431 |
|
432 |
S="${WORKDIR}/apache-${P}" |
433 |
|
434 |
- |
435 |
-# cd "$srcdir/apache-solr-$pkgver" |
436 |
-# |
437 |
-# install -d "$pkgdir/etc/solr" |
438 |
-# install -d "$pkgdir/usr/share/solr" |
439 |
-# install -d "$pkgdir/opt/jetty/webapps" |
440 |
-# |
441 |
-# unzip "dist/apache-solr-$pkgver.war" -d "$pkgdir/usr/share/solr" |
442 |
-# rm -rf "$pkgdir/usr/share/solr/META-INF" |
443 |
-# |
444 |
-# cp -R example/solr/conf "$pkgdir/etc/solr" |
445 |
-# ln -s /etc/solr/conf "$pkgdir/usr/share/solr/conf" |
446 |
-# |
447 |
-# mv "$pkgdir/usr/share/solr/WEB-INF/web.xml" "$pkgdir/etc/solr" |
448 |
-# ln -s /etc/solr/web.xml "$pkgdir/usr/share/solr/WEB-INF/web.xml" |
449 |
-# |
450 |
-# install -m0644 "$srcdir/jetty-env.xml" "$pkgdir/usr/share/solr/WEB-INF/jetty-env.xml" |
451 |
-# ln -s /usr/share/solr "$pkgdir/opt/jetty/webapps/solr" |
452 |
- |
453 |
+SOLR_HOME="/usr/share/solr" |
454 |
|
455 |
src_install() { |
456 |
- dodir /usr/share/solr |
457 |
- unzip dist/apache-"${P}.war" -d "${D}"/usr/share/solr || die |
458 |
- rm -rf "${D}"/usr/share/solr/META-INF || die |
459 |
- |
460 |
+ dodir "${SOLR_HOME}" |
461 |
dodir /etc/solr |
462 |
- cp -R example/solr/conf "${D}"/etc/solr || die |
463 |
- dosym /etc/solr/conf /usr/share/solr/conf |
464 |
|
465 |
- mv "${D}"/usr/share/solr/WEB-INF/web.xml "${D}"/etc/solr/ || die |
466 |
- dosym /etc/solr/web.xml /usr/share/solr/WEB-INF/web.xml |
467 |
+ unzip dist/apache-"${P}.war" -d "${D}/${SOLR_HOME}" || die |
468 |
+ sed -i -e 's@\.\./\.\./@\./@g' example/solr/conf/solrconfig.xml || die |
469 |
+ rm -rf "${D}/${SOLR_HOME}"/META-INF || die |
470 |
+ |
471 |
+ insinto "${SOLR_HOME}" |
472 |
+ doins -r dist |
473 |
+ doins -r contrib |
474 |
+ doins -r example/solr/conf |
475 |
+ doins "${FILESDIR}"/solr.xml |
476 |
+ |
477 |
+ dosym "${SOLR_HOME}"/conf /etc/solr/conf |
478 |
+ dosym "${SOLR_HOME}"/WEB-INF/web.xml /etc/solr/web.xml |
479 |
|
480 |
- cp ${FILESDIR}/jetty-env.xml ${D}/usr/share/solr/WEB-INF/ |
481 |
+ # jetty env |
482 |
+ insinto /opt/jetty/etc |
483 |
+ doins "${FILESDIR}"/jetty-solr.xml |
484 |
+ dosym "${SOLR_HOME}" /opt/jetty/webapps/solr |
485 |
+ dosym "${SOLR_HOME}"/solr.xml /opt/jetty/etc/solr.xml |
486 |
} |