1 |
commit: 2c038355eee3da2733f31add5f0d2a819f960a41 |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 3 15:42:57 2012 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 3 15:42:57 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=2c038355 |
7 |
|
8 |
add jetty-bin and solr ebuilds |
9 |
|
10 |
--- |
11 |
www-servers/jetty-bin/ChangeLog | 39 ++++++ |
12 |
www-servers/jetty-bin/Manifest | 8 ++ |
13 |
www-servers/jetty-bin/files/conf.d/jetty-6 | 24 ++++ |
14 |
www-servers/jetty-bin/files/conf.d/jetty-7 | 24 ++++ |
15 |
www-servers/jetty-bin/files/init.d/jetty-6 | 51 ++++++++ |
16 |
www-servers/jetty-bin/files/init.d/jetty-7 | 51 ++++++++ |
17 |
www-servers/jetty-bin/jetty-bin-6.1.26-r3.ebuild | 145 ++++++++++++++++++++++ |
18 |
www-servers/solr/Manifest | 3 + |
19 |
www-servers/solr/files/jetty-env.xml | 12 ++ |
20 |
www-servers/solr/solr-3.5.0.ebuild | 56 +++++++++ |
21 |
10 files changed, 413 insertions(+), 0 deletions(-) |
22 |
|
23 |
diff --git a/www-servers/jetty-bin/ChangeLog b/www-servers/jetty-bin/ChangeLog |
24 |
new file mode 100644 |
25 |
index 0000000..9105226 |
26 |
--- /dev/null |
27 |
+++ b/www-servers/jetty-bin/ChangeLog |
28 |
@@ -0,0 +1,39 @@ |
29 |
+# ChangeLog for www-servers/jetty-bin |
30 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: $ |
32 |
+ |
33 |
+ 02 Feb 2012; Sven Eden <sven.eden@×××.de> |
34 |
+ -jetty-bin-7.5.4.ebuild : |
35 |
+ It is not possible to make Eclipse be happy with jetty-7, so |
36 |
+ drop it. |
37 |
+ |
38 |
+*jetty-bin-7.5.4.ebuild (02 Feb 2012) |
39 |
+*jetty-bin-6.1.26-r3.ebuild (02 Feb 2012) |
40 |
+ |
41 |
+ 02 Feb 2012; Sven Eden <sven.eden@×××.de> |
42 |
+ +jetty-bin-7.5.4.ebuild : |
43 |
+ First Ebuild for Jetty-7 |
44 |
+ +jetty-bin-6.1.26-r3.ebuild : |
45 |
+ Cleaned up some issues |
46 |
+ |
47 |
+ - jetty-bin-6.1.26.ebuild |
48 |
+ - jetty-bin-6.1.26-r1.ebuild |
49 |
+ - jetty-bin-6.1.26-r2.ebuild |
50 |
+ Removed old ebuilds |
51 |
+ |
52 |
+*jetty-bin-6.1.26-r2.ebuild (22 Nov 2011) |
53 |
+ |
54 |
+ 15 Aug 2011; Sven Eden <sven.eden@×××.de> +jetty-bin-6.1.26-r2.ebuild : |
55 |
+ Added USE_Flag "tomcat7" to depend on tomcat:3.0 instead of 2.5. |
56 |
+ |
57 |
+*jetty-bin-6.1.26-r1.ebuild (16 Aug 2011) |
58 |
+ |
59 |
+ 15 Aug 2011; Sven Eden <sven.eden@×××.de> +jetty-bin-6.1.26-r1.ebuild : |
60 |
+ Changed the ebuild to install as "jetty" and not "jetty-bin". Eclipse |
61 |
+ 3.7 now merges fine with it. |
62 |
+ |
63 |
+*jetty-bin-6.1.26.ebuild (15 Aug 2011) |
64 |
+ |
65 |
+ 15 Aug 2011; Sven Eden <sven.eden@×××.de> +jetty-bin-6.1.26.ebuild : |
66 |
+ Initial commit of the ebuild. Ebuild taken from Bug #328747, written |
67 |
+ by John J. Aylward (johnjaylward@×××××.com) |
68 |
|
69 |
diff --git a/www-servers/jetty-bin/Manifest b/www-servers/jetty-bin/Manifest |
70 |
new file mode 100644 |
71 |
index 0000000..80c4484 |
72 |
--- /dev/null |
73 |
+++ b/www-servers/jetty-bin/Manifest |
74 |
@@ -0,0 +1,8 @@ |
75 |
+AUX conf.d/jetty-6 676 RMD160 47bd799223d448b21e83d4f2102597ba1012788d SHA1 4add53cc8f55b8d3154efab67b4e082270089356 SHA256 19ea54fbf09fab5b3ccaf819ae872935d6d3718ce6e753dc834302a6be4d199f |
76 |
+AUX conf.d/jetty-7 638 RMD160 833e953d23750afd17e20a8b4274e84150a0bf03 SHA1 4b9e6c67ed1eba32d36e840a590d378a8975a0ce SHA256 5e15c5283ac1177d42e209f1838b34d50c8c687befb3978f31072c16b8cdc0f5 |
77 |
+AUX init.d/jetty-6 1542 RMD160 60df75201271ac2e62d1a164238a435b842c39b3 SHA1 90f278c31dc1397df1b6bd318f844a2266c8ebf4 SHA256 76872ed861876492cbf1915cb3bbb4fdc36996446744f816a78fbe0b321f8720 |
78 |
+AUX init.d/jetty-7 1542 RMD160 60df75201271ac2e62d1a164238a435b842c39b3 SHA1 90f278c31dc1397df1b6bd318f844a2266c8ebf4 SHA256 76872ed861876492cbf1915cb3bbb4fdc36996446744f816a78fbe0b321f8720 |
79 |
+DIST jetty-6.1.26.zip 25894195 RMD160 6e960763e720641e1bfd69ca8e5d54f0bc7d8def SHA1 9485913f1a1945a849a90f1a34853d22350bc524 SHA256 96c08eb87ec3772dccc2b3dba54fea85ccc3f804faf7429eecfba3ed55648187 |
80 |
+DIST jetty-ant-6.1.26.jar 22961 RMD160 910a0e8522a9bf9f6e33298d72a1aba46aa39954 SHA1 0e07d6fad03c440daa7b0523ffbf58bf41151266 SHA256 b82f643508d0fbcac5f92e3ecd7271684be098a97bd1304345c00c98a4d95f4c |
81 |
+EBUILD jetty-bin-6.1.26-r3.ebuild 5139 RMD160 d7f4bd16c30eeb4170a4bccefbcaef22ba73f423 SHA1 a0631ac1df261e9b60dee3f94010159d76eb771e SHA256 2c9fe405e256f08deeb2a2dbd3bc9d90147c519635f4bd78313b483c0f03f3fe |
82 |
+MISC ChangeLog 1254 RMD160 50e0707342b57c5625020bca3888186edccc4f8a SHA1 3447932b56e0b58d26e4a177205481da1d7bc67b SHA256 1706f719a8484e130b69d691f568b2b8547ee232750ce5c712b4d12d4c5b1086 |
83 |
|
84 |
diff --git a/www-servers/jetty-bin/files/conf.d/jetty-6 b/www-servers/jetty-bin/files/conf.d/jetty-6 |
85 |
new file mode 100644 |
86 |
index 0000000..730ac76 |
87 |
--- /dev/null |
88 |
+++ b/www-servers/jetty-bin/files/conf.d/jetty-6 |
89 |
@@ -0,0 +1,24 @@ |
90 |
+#Configuration options for jetty server |
91 |
+ |
92 |
+#JETTY_HOST=localhost |
93 |
+#JETTY_PORT=8080 |
94 |
+ |
95 |
+# port to listen on to stop the server |
96 |
+#STOP_PORT=8079 |
97 |
+ |
98 |
+# "password" used on the stop port to verify that the server should be stopped |
99 |
+STOP_KEY=secret |
100 |
+ |
101 |
+# Set this value to 1 and configure the jetty-setuid.xml to have the server run as an unprivilaged user |
102 |
+#USE_SETUID=1 |
103 |
+ |
104 |
+# jetty 6 has a bug that only lets it connect to ipv6 or ipv4, not both |
105 |
+#USE_IPV6=1 |
106 |
+ |
107 |
+# Use the SSL config jetty-ssl.xml |
108 |
+#USE_SSL=1 |
109 |
+ |
110 |
+# Set this to a space delimited list of extra conf files you want loaded |
111 |
+# The files are relative to ${JETTY_HOME} so |
112 |
+# ex. JETTY_CONF="etc/jetty-ajp.xml etc/jetty-logging.xml" |
113 |
+#JETTY_CONF="" |
114 |
|
115 |
diff --git a/www-servers/jetty-bin/files/conf.d/jetty-7 b/www-servers/jetty-bin/files/conf.d/jetty-7 |
116 |
new file mode 100644 |
117 |
index 0000000..43c75e0 |
118 |
--- /dev/null |
119 |
+++ b/www-servers/jetty-bin/files/conf.d/jetty-7 |
120 |
@@ -0,0 +1,24 @@ |
121 |
+#Configuration options for jetty server |
122 |
+ |
123 |
+#JETTY_HOST=localhost |
124 |
+#JETTY_PORT=8080 |
125 |
+ |
126 |
+# port to listen on to stop the server |
127 |
+#STOP_PORT=8079 |
128 |
+ |
129 |
+# "password" used on the stop port to verify that the server should be stopped |
130 |
+STOP_KEY=secret |
131 |
+ |
132 |
+# Set this value to 1 and configure the jetty-setuid.xml to have the server run as an unprivilaged user |
133 |
+#USE_SETUID=1 |
134 |
+ |
135 |
+# Set this value to 1 to use ipv6 |
136 |
+#USE_IPV6=1 |
137 |
+ |
138 |
+# Use the SSL config jetty-ssl.xml |
139 |
+#USE_SSL=1 |
140 |
+ |
141 |
+# Set this to a space delimited list of extra conf files you want loaded |
142 |
+# The files are relative to ${JETTY_HOME} so |
143 |
+# ex. JETTY_CONF="etc/jetty-ajp.xml etc/jetty-logging.xml" |
144 |
+#JETTY_CONF="" |
145 |
|
146 |
diff --git a/www-servers/jetty-bin/files/init.d/jetty-6 b/www-servers/jetty-bin/files/init.d/jetty-6 |
147 |
new file mode 100644 |
148 |
index 0000000..1e54649 |
149 |
--- /dev/null |
150 |
+++ b/www-servers/jetty-bin/files/init.d/jetty-6 |
151 |
@@ -0,0 +1,51 @@ |
152 |
+#!/sbin/runscript |
153 |
+ |
154 |
+depend() { |
155 |
+ need net |
156 |
+} |
157 |
+ |
158 |
+start() { |
159 |
+ ebegin "Starting ${SVCNAME}" |
160 |
+ |
161 |
+ JETTY_HOME="/var/lib/${SVCNAME}" |
162 |
+ CONF_FILES="${JETTY_HOME}/etc/jetty.xml" |
163 |
+ JETTY_OPTS="-DSTART=${JETTY_HOME}/start.config" |
164 |
+ |
165 |
+ if [[ -n ${JETTY_HOST} ]]; then |
166 |
+ JETTY_OPTS="${JETTY_OPTS} -Djetty.host=${JETTY_HOST}" |
167 |
+ fi |
168 |
+ if [[ -n ${JETTY_PORT} ]]; then |
169 |
+ JETTY_OPTS="${JETTY_OPTS} -Djetty.port=${JETTY_PORT}" |
170 |
+ fi |
171 |
+ if [[ -n ${STOP_PORT} ]]; then |
172 |
+ JETTY_OPTS="${JETTY_OPTS} -DSTOP.PORT=${STOP_PORT}" |
173 |
+ fi |
174 |
+ if [[ -n ${STOP_KEY} ]]; then |
175 |
+ JETTY_OPTS="${JETTY_OPTS} -DSTOP.KEY=${STOP_KEY}" |
176 |
+ fi |
177 |
+ if [[ ${USE_SETUID} -eq 1 ]]; then |
178 |
+ # Setuid configuration file needs to be the first one in the list |
179 |
+ CONF_FILES="${JETTY_HOME}/etc/jetty-setuid.xml ${CONF_FILES}" |
180 |
+ JETTY_OPTS="${JETTY_OPTS} -Djava.library.path=/usr/lib64/${SVCNAME}/" |
181 |
+ fi |
182 |
+ if [[ ${USE_IPV6} -ne 1 ]]; then |
183 |
+ JETTY_OPTS="${JETTY_OPTS} -Djava.net.preferIPv4Stack=true" |
184 |
+ fi |
185 |
+ if [[ ${USE_SSL} -eq 1 ]]; then |
186 |
+ # Setuid configuration file needs to be the first one in the list |
187 |
+ CONF_FILES="${CONF_FILES} ${JETTY_HOME}/etc/jetty-ssl.xml" |
188 |
+ fi |
189 |
+ |
190 |
+ cd "${JETTY_HOME}" |
191 |
+ |
192 |
+ start-stop-daemon --start --background --make-pidfile \ |
193 |
+ --pidfile /var/run/${SVCNAME}.pid \ |
194 |
+ --startas java -- ${JETTY_OPTS} -jar ${JETTY_HOME}/start.jar ${CONF_FILES} ${JETTY_CONF} |
195 |
+ eend $? |
196 |
+} |
197 |
+ |
198 |
+stop() { |
199 |
+ ebegin "Stopping ${SVCNAME}" |
200 |
+ start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid |
201 |
+ eend $? |
202 |
+} |
203 |
|
204 |
diff --git a/www-servers/jetty-bin/files/init.d/jetty-7 b/www-servers/jetty-bin/files/init.d/jetty-7 |
205 |
new file mode 100644 |
206 |
index 0000000..1e54649 |
207 |
--- /dev/null |
208 |
+++ b/www-servers/jetty-bin/files/init.d/jetty-7 |
209 |
@@ -0,0 +1,51 @@ |
210 |
+#!/sbin/runscript |
211 |
+ |
212 |
+depend() { |
213 |
+ need net |
214 |
+} |
215 |
+ |
216 |
+start() { |
217 |
+ ebegin "Starting ${SVCNAME}" |
218 |
+ |
219 |
+ JETTY_HOME="/var/lib/${SVCNAME}" |
220 |
+ CONF_FILES="${JETTY_HOME}/etc/jetty.xml" |
221 |
+ JETTY_OPTS="-DSTART=${JETTY_HOME}/start.config" |
222 |
+ |
223 |
+ if [[ -n ${JETTY_HOST} ]]; then |
224 |
+ JETTY_OPTS="${JETTY_OPTS} -Djetty.host=${JETTY_HOST}" |
225 |
+ fi |
226 |
+ if [[ -n ${JETTY_PORT} ]]; then |
227 |
+ JETTY_OPTS="${JETTY_OPTS} -Djetty.port=${JETTY_PORT}" |
228 |
+ fi |
229 |
+ if [[ -n ${STOP_PORT} ]]; then |
230 |
+ JETTY_OPTS="${JETTY_OPTS} -DSTOP.PORT=${STOP_PORT}" |
231 |
+ fi |
232 |
+ if [[ -n ${STOP_KEY} ]]; then |
233 |
+ JETTY_OPTS="${JETTY_OPTS} -DSTOP.KEY=${STOP_KEY}" |
234 |
+ fi |
235 |
+ if [[ ${USE_SETUID} -eq 1 ]]; then |
236 |
+ # Setuid configuration file needs to be the first one in the list |
237 |
+ CONF_FILES="${JETTY_HOME}/etc/jetty-setuid.xml ${CONF_FILES}" |
238 |
+ JETTY_OPTS="${JETTY_OPTS} -Djava.library.path=/usr/lib64/${SVCNAME}/" |
239 |
+ fi |
240 |
+ if [[ ${USE_IPV6} -ne 1 ]]; then |
241 |
+ JETTY_OPTS="${JETTY_OPTS} -Djava.net.preferIPv4Stack=true" |
242 |
+ fi |
243 |
+ if [[ ${USE_SSL} -eq 1 ]]; then |
244 |
+ # Setuid configuration file needs to be the first one in the list |
245 |
+ CONF_FILES="${CONF_FILES} ${JETTY_HOME}/etc/jetty-ssl.xml" |
246 |
+ fi |
247 |
+ |
248 |
+ cd "${JETTY_HOME}" |
249 |
+ |
250 |
+ start-stop-daemon --start --background --make-pidfile \ |
251 |
+ --pidfile /var/run/${SVCNAME}.pid \ |
252 |
+ --startas java -- ${JETTY_OPTS} -jar ${JETTY_HOME}/start.jar ${CONF_FILES} ${JETTY_CONF} |
253 |
+ eend $? |
254 |
+} |
255 |
+ |
256 |
+stop() { |
257 |
+ ebegin "Stopping ${SVCNAME}" |
258 |
+ start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid |
259 |
+ eend $? |
260 |
+} |
261 |
|
262 |
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 |
263 |
new file mode 100644 |
264 |
index 0000000..6a4204a |
265 |
--- /dev/null |
266 |
+++ b/www-servers/jetty-bin/jetty-bin-6.1.26-r3.ebuild |
267 |
@@ -0,0 +1,145 @@ |
268 |
+# Copyright 1999-2010 Gentoo Foundation |
269 |
+# Distributed under the terms of the GNU General Public License v2 |
270 |
+# $Header: $ |
271 |
+ |
272 |
+EAPI="2" |
273 |
+ |
274 |
+inherit eutils java-pkg-2 |
275 |
+ |
276 |
+DESCRIPTION="Jetty Web Server; Java Servlet container" |
277 |
+ |
278 |
+SLOT="6" |
279 |
+HOMEPAGE="http://jetty.codehaus.org/" |
280 |
+KEYWORDS="~amd64 ~x86" |
281 |
+LICENSE="Apache-2.0" |
282 |
+ |
283 |
+MY_PN=${PN/-bin} |
284 |
+MY_JETTY=${MY_PN}-${SLOT} |
285 |
+MY_P=${MY_PN}-${PV} |
286 |
+ |
287 |
+IUSE="anttasks client ldap ssl stats tomcat7" |
288 |
+ |
289 |
+SRC_URI="http://dist.codehaus.org/jetty/jetty-${PV}/jetty-${PV}.zip |
290 |
+ anttasks? ( http://dist.codehaus.org/jetty/jetty-${PV}/jetty-ant-${PV}.jar )" |
291 |
+RESTRICT="mirror" |
292 |
+ |
293 |
+DEPEND=" |
294 |
+ tomcat7? ( dev-java/tomcat-servlet-api:3.0 ) |
295 |
+ !tomcat7? ( dev-java/tomcat-servlet-api:2.5 ) |
296 |
+ !www-servers/jetty:${SLOT} |
297 |
+ !www-servers/jetty-eclipse:${SLOT} |
298 |
+ !www-servers/jetty-eclipse-bin:${SLOT} |
299 |
+ >=virtual/jre-1.5" |
300 |
+ |
301 |
+RDEPEND="${DEPEND} |
302 |
+ anttasks? ( dev-java/ant ) |
303 |
+ >=dev-java/slf4j-api-1.3.1 |
304 |
+ >=dev-java/sun-javamail-1.4 |
305 |
+ >=dev-java/jta-1.0.1 |
306 |
+ >=java-virtuals/jaf-1.1" |
307 |
+ |
308 |
+S=${WORKDIR}/${MY_P} |
309 |
+ |
310 |
+src_install() { |
311 |
+ cd "${S}" |
312 |
+ rm -f etc/jetty-sslengine.xml |
313 |
+ |
314 |
+ java-pkg_jarinto "/usr/share/${MY_JETTY}/lib/" |
315 |
+ java-pkg_sointo "/usr/$(get_libdir)/${MY_JETTY}" |
316 |
+ |
317 |
+ java-pkg_dojar start.jar |
318 |
+ java-pkg_newjar lib/${MY_P}.jar ${MY_PN}.jar |
319 |
+ java-pkg_newjar lib/${MY_PN}-util-${PV}.jar ${MY_PN}-util.jar |
320 |
+ java-pkg_newjar lib/jre1.5/${MY_PN}-util5-${PV}.jar ${MY_PN}-util5.jar |
321 |
+ java-pkg_newjar lib/annotations/${MY_PN}-annotations-${PV}.jar ${MY_PN}-annotations.jar |
322 |
+ java-pkg_newjar lib/ext/${MY_PN}-rewrite-handler-${PV}.jar ${MY_PN}-rewrite-handler.jar |
323 |
+ java-pkg_newjar lib/ext/${MY_PN}-html-${PV}.jar ${MY_PN}-html.jar |
324 |
+ java-pkg_newjar lib/ext/${MY_PN}-java5-threadpool-${PV}.jar ${MY_PN}-java5-threadpool.jar |
325 |
+ java-pkg_newjar lib/ext/${MY_PN}-ajp-${PV}.jar ${MY_PN}-ajp.jar |
326 |
+ java-pkg_newjar lib/ext/${MY_PN}-servlet-tester-${PV}.jar ${MY_PN}-servlet-tester.jar |
327 |
+ java-pkg_newjar lib/ext/${MY_PN}-setuid-${PV}.jar ${MY_PN}-setuid.jar |
328 |
+ java-pkg_doso lib/ext/libsetuid.so |
329 |
+ java-pkg_newjar lib/jsp-2.1/jsp-2.1-${MY_P}.jar jsp-2.1-${MY_PN}.jar |
330 |
+ java-pkg_newjar lib/management/${MY_PN}-management-${PV}.jar ${MY_PN}-management.jar |
331 |
+ java-pkg_newjar lib/naming/${MY_PN}-naming-${PV}.jar ${MY_PN}-naming.jar |
332 |
+ java-pkg_newjar lib/plus/${MY_PN}-plus-${PV}.jar ${MY_PN}-plus.jar |
333 |
+ java-pkg_newjar lib/terracotta/${MY_PN}-terracotta-sessions-${PV}.jar ${MY_PN}-terracotta-sessions.jar |
334 |
+ java-pkg_newjar lib/xbean/${MY_PN}-xbean-${PV}.jar ${MY_PN}-xbean.jar |
335 |
+ |
336 |
+ use client && java-pkg_newjar lib/ext/${MY_PN}-client-${PV}.jar ${MY_PN}-client.jar |
337 |
+ if use ldap ; then |
338 |
+ java-pkg_newjar lib/ext/${MY_PN}-ldap-jaas-${PV}.jar ${MY_PN}-ldap-jaas.jar |
339 |
+ else |
340 |
+ rm -f etc/jetty-jaas.xml |
341 |
+ fi |
342 |
+ if use ssl ; then |
343 |
+ java-pkg_newjar lib/ext/${MY_PN}-sslengine-${PV}.jar ${MY_PN}-sslengine.jar |
344 |
+ else |
345 |
+ rm -f etc/jetty-ssl.xml |
346 |
+ fi |
347 |
+ if use stats ; then |
348 |
+ java-pkg_newjar lib/ext/${MY_PN}-java5-stats-${PV}.jar ${MY_PN}-java5-stats.jar |
349 |
+ else |
350 |
+ rm -f etc/jetty-stats.xml |
351 |
+ fi |
352 |
+ |
353 |
+ if use anttasks ; then |
354 |
+ java-pkg_dojar bin/jetty-tasks.xml |
355 |
+ cd ${DISTDIR} |
356 |
+ java-pkg_newjar ${MY_PN}-ant-${PV}.jar ${MY_PN}-ant.jar |
357 |
+ cd ${S} |
358 |
+ fi |
359 |
+ |
360 |
+ |
361 |
+ dodir /etc/${MY_JETTY} |
362 |
+ insinto /etc/${MY_JETTY} |
363 |
+ doins etc/* |
364 |
+ |
365 |
+ dodir /etc/conf.d |
366 |
+ insinto /etc/conf.d |
367 |
+ newins ${FILESDIR}/conf.d/${MY_JETTY} ${MY_JETTY} |
368 |
+ |
369 |
+ dodir /etc/init.d |
370 |
+ exeinto /etc/init.d |
371 |
+ newexe ${FILESDIR}/init.d/${MY_JETTY} ${MY_JETTY} |
372 |
+ |
373 |
+ dodir /var/log/${MY_JETTY} |
374 |
+ |
375 |
+ JETTY_HOME=/var/lib/${MY_JETTY} |
376 |
+ dodir ${JETTY_HOME}/webapps |
377 |
+ dodir ${JETTY_HOME}/contexts |
378 |
+ dodir ${JETTY_HOME}/resources |
379 |
+ dosym ${JAVA_PKG_JARDEST} ${JETTY_HOME}/lib |
380 |
+ dosym ${JAVA_PKG_JARDEST}/start.jar ${JETTY_HOME}/start.jar |
381 |
+ dosym /etc/${MY_JETTY} ${JETTY_HOME}/etc |
382 |
+ dosym /var/log/${MY_JETTY} ${JETTY_HOME}/logs |
383 |
+ |
384 |
+ START_CONFIG=${D}/${JETTY_HOME}/start.config |
385 |
+ echo "\$(jetty.class.path).path always" > ${START_CONFIG} |
386 |
+ echo "\$(jetty.lib)/** exists \$(jetty.lib)" >> ${START_CONFIG} |
387 |
+ echo "jetty.home=${JETTY_HOME}" >> ${START_CONFIG} |
388 |
+ echo "org.mortbay.xml.XmlConfiguration.class" >> ${START_CONFIG} |
389 |
+ echo "\$(start.class).class" >> ${START_CONFIG} |
390 |
+ echo "\$(jetty.home)/etc/jetty.xml" >> ${START_CONFIG} |
391 |
+ echo "\$(jetty.home)/lib/*" >> ${START_CONFIG} |
392 |
+ echo "/usr/share/sun-javamail/lib/*" >> ${START_CONFIG} |
393 |
+ echo "/usr/share/ant/lib/*" >> ${START_CONFIG} |
394 |
+ echo "/usr/share/slf4j-api/lib/*" >> ${START_CONFIG} |
395 |
+ echo "/usr/share/jta/lib/*" >> ${START_CONFIG} |
396 |
+ if use tomcat7 ; then |
397 |
+ echo "/usr/share/tomcat-servlet-api-3.0/lib/*" >> ${START_CONFIG} |
398 |
+ else |
399 |
+ echo "/usr/share/tomcat-servlet-api-2.5/lib/*" >> ${START_CONFIG} |
400 |
+ fi |
401 |
+ echo "" >> ${START_CONFIG} |
402 |
+ echo "\$(jetty.home)/resources/" >> ${START_CONFIG} |
403 |
+} |
404 |
+ |
405 |
+pkg_preinst () { |
406 |
+ enewuser jetty |
407 |
+ fowners jetty:jetty /var/log/${MY_JETTY} |
408 |
+ fperms g+w /var/log/${MY_JETTY} |
409 |
+ mv ${D}/usr/share/${PN}-${SLOT}/package.env ${D}/usr/share/${MY_JETTY}/package.env |
410 |
+ rm -rf ${D}/usr/share/${PN}-${SLOT} |
411 |
+} |
412 |
+ |
413 |
|
414 |
diff --git a/www-servers/solr/Manifest b/www-servers/solr/Manifest |
415 |
new file mode 100644 |
416 |
index 0000000..27edcda |
417 |
--- /dev/null |
418 |
+++ b/www-servers/solr/Manifest |
419 |
@@ -0,0 +1,3 @@ |
420 |
+AUX jetty-env.xml 433 RMD160 c045cf668c894da6b9d8c65dd6867c9868460f75 SHA1 3118bc66892d6c754ec98ba249897987b47283ab SHA256 f5e94950c8ba6d2c4815eb2e0f8d65908e3ee2649c714f19247ddfe536d6b073 |
421 |
+DIST apache-solr-3.5.0.tgz 78673382 RMD160 365d4b27753375ea3a39b9d42c06b80dce474731 SHA1 020fc86dfd2405212c0f706111d8576dbb8e54b4 SHA256 804f3ba9d1296f81388605a79538b7362355693fbdd03b7b2dbf9a706bf1d1d0 |
422 |
+EBUILD solr-3.5.0.ebuild 1643 RMD160 c7b533d41bdb0c3405a0ef820dd1904cb0e7a960 SHA1 ce16d66d8f3be8ae6481972bcd7df95ec9340e6c SHA256 f5efd5b9435ecdc7c68cf84a0476fb127350037890f1dcfc22c44aca141867bb |
423 |
|
424 |
diff --git a/www-servers/solr/files/jetty-env.xml b/www-servers/solr/files/jetty-env.xml |
425 |
new file mode 100644 |
426 |
index 0000000..3beae8c |
427 |
--- /dev/null |
428 |
+++ b/www-servers/solr/files/jetty-env.xml |
429 |
@@ -0,0 +1,12 @@ |
430 |
+<?xml version="1.0" encoding="ISO-8859-1"?> |
431 |
+<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> |
432 |
+ |
433 |
+<!-- Set the solr.solr.home system property --> |
434 |
+<Configure class="org.eclipse.jetty.webapp.WebAppContext"> |
435 |
+ <Call name="setProperty" class="java.lang.System"> |
436 |
+ <Arg type="String">solr.solr.home</Arg> |
437 |
+ <Arg type="String">/usr/share/solr</Arg> |
438 |
+ </Call> |
439 |
+</Configure> |
440 |
+ |
441 |
+ |
442 |
|
443 |
diff --git a/www-servers/solr/solr-3.5.0.ebuild b/www-servers/solr/solr-3.5.0.ebuild |
444 |
new file mode 100644 |
445 |
index 0000000..928d382 |
446 |
--- /dev/null |
447 |
+++ b/www-servers/solr/solr-3.5.0.ebuild |
448 |
@@ -0,0 +1,56 @@ |
449 |
+# Copyright 1999-2012 Gentoo Foundation |
450 |
+# Distributed under the terms of the GNU General Public License v2 |
451 |
+# $Header: $ |
452 |
+ |
453 |
+EAPI="4" |
454 |
+ |
455 |
+# inherit apache-module python multilib ruby-ng |
456 |
+ |
457 |
+DESCRIPTION="Popular, blazing fast open source enterprise search platform from the Apache Lucene project" |
458 |
+HOMEPAGE="http://lucene.apache.org/solr/" |
459 |
+SRC_URI="http://www.apache.org/dist/lucene/${PN}/${PV}/apache-${P}.tgz" |
460 |
+ |
461 |
+LICENSE="Apache" |
462 |
+SLOT="0" |
463 |
+KEYWORDS="~amd64 ~x86" |
464 |
+IUSE="" |
465 |
+ |
466 |
+DEPEND="www-servers/jetty-bin" |
467 |
+RDEPEND="${DEPEND}" |
468 |
+ |
469 |
+S="${WORKDIR}/apache-${P}" |
470 |
+ |
471 |
+ |
472 |
+# cd "$srcdir/apache-solr-$pkgver" |
473 |
+# |
474 |
+# install -d "$pkgdir/etc/solr" |
475 |
+# install -d "$pkgdir/usr/share/solr" |
476 |
+# install -d "$pkgdir/opt/jetty/webapps" |
477 |
+# |
478 |
+# unzip "dist/apache-solr-$pkgver.war" -d "$pkgdir/usr/share/solr" |
479 |
+# rm -rf "$pkgdir/usr/share/solr/META-INF" |
480 |
+# |
481 |
+# cp -R example/solr/conf "$pkgdir/etc/solr" |
482 |
+# ln -s /etc/solr/conf "$pkgdir/usr/share/solr/conf" |
483 |
+# |
484 |
+# mv "$pkgdir/usr/share/solr/WEB-INF/web.xml" "$pkgdir/etc/solr" |
485 |
+# ln -s /etc/solr/web.xml "$pkgdir/usr/share/solr/WEB-INF/web.xml" |
486 |
+# |
487 |
+# install -m0644 "$srcdir/jetty-env.xml" "$pkgdir/usr/share/solr/WEB-INF/jetty-env.xml" |
488 |
+# ln -s /usr/share/solr "$pkgdir/opt/jetty/webapps/solr" |
489 |
+ |
490 |
+ |
491 |
+src_install() { |
492 |
+ dodir /usr/share/solr |
493 |
+ unzip dist/apache-"${P}.war" -d "${D}"/usr/share/solr || die |
494 |
+ rm -rf "${D}"/usr/share/solr/META-INF || die |
495 |
+ |
496 |
+ dodir /etc/solr |
497 |
+ cp -R example/solr/conf "${D}"/etc/solr || die |
498 |
+ dosym /etc/solr/conf /usr/share/solr/conf |
499 |
+ |
500 |
+ mv "${D}"/usr/share/solr/WEB-INF/web.xml "${D}"/etc/solr/ || die |
501 |
+ dosym /etc/solr/web.xml /usr/share/solr/WEB-INF/web.xml |
502 |
+ |
503 |
+ cp ${FILESDIR}/jetty-env.xml ${D}/usr/share/solr/WEB-INF/ |
504 |
+} |