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