Gentoo Archives: gentoo-commits

From: "Krzysiek Pawlik (nelchael)" <nelchael@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/resin/3.0.28: mod_caucho-3.0.28-disable-sticky-sessions.patch mod_caucho-3.0.28-gentoo.patch mod_caucho-3.0.28-java.patch mod_caucho-3.0.28-ssl.patch resin-3.0.28-Makefile.in.patch resin-3.0.28-Resin.java.patch resin-3.0.28-build.xml.patch resin-3.0.28-wrapper.pl.patch
Date: Sun, 28 Jun 2009 10:38:02
Message-Id: E1MKrll-0006Vr-At@stork.gentoo.org
1 nelchael 09/06/28 10:37:57
2
3 Added: mod_caucho-3.0.28-disable-sticky-sessions.patch
4 mod_caucho-3.0.28-gentoo.patch
5 mod_caucho-3.0.28-java.patch
6 mod_caucho-3.0.28-ssl.patch
7 resin-3.0.28-Makefile.in.patch
8 resin-3.0.28-Resin.java.patch
9 resin-3.0.28-build.xml.patch
10 resin-3.0.28-wrapper.pl.patch
11 Log:
12 Add patches for Resin 3.0.28.
13
14 Revision Changes Path
15 1.1 src/patchsets/resin/3.0.28/mod_caucho-3.0.28-disable-sticky-sessions.patch
16
17 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/mod_caucho-3.0.28-disable-sticky-sessions.patch?rev=1.1&view=markup
18 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/mod_caucho-3.0.28-disable-sticky-sessions.patch?rev=1.1&content-type=text/plain
19
20 Index: mod_caucho-3.0.28-disable-sticky-sessions.patch
21 ===================================================================
22 diff -Nru resin-3.0.28.vanilla/modules/c/src/apache2/mod_caucho.c resin-3.0.28/modules/c/src/apache2/mod_caucho.c
23 --- resin-3.0.28.vanilla/modules/c/src/apache2/mod_caucho.c 2009-06-28 11:33:00.000000000 +0100
24 +++ resin-3.0.28/modules/c/src/apache2/mod_caucho.c 2009-06-28 11:34:53.000000000 +0100
25 @@ -391,6 +391,16 @@
26 }
27
28 /**
29 + * Parse the CauchoDisableStickySessions configuration in the apache config file.
30 + */
31 +static const char cse_disable_sticky_sessions(cmd_parms *cmd, void *pconfig, int on)
32 +{
33 + config_t *config = pconfig;
34 + config->disable_sticky_sessions = on;
35 + return 0;
36 +}
37 +
38 +/**
39 * Parse the CauchoBackup configuration in the apache config file.
40 */
41 static const char *
42 @@ -1215,6 +1225,9 @@
43 AP_INIT_TAKE1("CauchoConfigCacheDirectory", resin_config_cache_command,
44 NULL, RSRC_CONF|ACCESS_CONF,
45 "Configures the saved configuration file."),
46 + AP_INIT_FLAG("CauchoDisableStickySessions", cse_disable_sticky_sessions,
47 + NULL, RSRC_CONF,
48 + "Disable sticky sessions."),
49 {NULL}
50 };
51
52
53
54
55 1.1 src/patchsets/resin/3.0.28/mod_caucho-3.0.28-gentoo.patch
56
57 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/mod_caucho-3.0.28-gentoo.patch?rev=1.1&view=markup
58 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/mod_caucho-3.0.28-gentoo.patch?rev=1.1&content-type=text/plain
59
60 Index: mod_caucho-3.0.28-gentoo.patch
61 ===================================================================
62 diff -Nru resin-3.0.28.vanilla/modules/c/src/apache2/Makefile.in resin-3.0.28/modules/c/src/apache2/Makefile.in
63 --- resin-3.0.28.vanilla/modules/c/src/apache2/Makefile.in 2009-06-28 11:33:00.000000000 +0100
64 +++ resin-3.0.28/modules/c/src/apache2/Makefile.in 2009-06-28 11:35:26.000000000 +0100
65 @@ -36,11 +36,8 @@
66 $(CC) -c $(INCLUDES) $(CFLAGS) $<
67
68 install : mod_caucho.la
69 - $(LIBTOOL) --mode=install $(CP) mod_caucho.la $(apache_libexec)
70 - - rm -f $(apache_libexec)/mod_caucho.la
71 - - rm -f $(apache_libexec)/mod_caucho.a
72 - sh install.sh -conf $(apache_conf) -libexec $(apache_libexec) \
73 - -resin_home $(resin_home)
74 + mkdir -p $(DESTDIR)$(apache_libexec)
75 + $(LIBTOOL) --mode=install $(CP) mod_caucho.la $(DESTDIR)$(apache_libexec)
76
77 clean :
78 - rm -r *.o *.lo *.la *.so .libs
79
80
81
82 1.1 src/patchsets/resin/3.0.28/mod_caucho-3.0.28-java.patch
83
84 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/mod_caucho-3.0.28-java.patch?rev=1.1&view=markup
85 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/mod_caucho-3.0.28-java.patch?rev=1.1&content-type=text/plain
86
87 Index: mod_caucho-3.0.28-java.patch
88 ===================================================================
89 diff -Nru resin-3.0.28.vanilla/configure.in resin-3.0.28/configure.in
90 --- resin-3.0.28.vanilla/configure.in 2009-06-28 11:33:00.000000000 +0100
91 +++ resin-3.0.28/configure.in 2009-06-28 11:35:42.000000000 +0100
92 @@ -430,54 +430,6 @@
93 fi
94 fi
95 #
96 -# --with-java-home
97 -#
98 -AC_ARG_WITH(java-home,
99 -[ --with-java-home=DIR java home
100 -], [
101 -JAVA_HOME=${withval}
102 -])
103 -
104 -if test -z "$JAVA_HOME"; then
105 - java=`which java 2>/dev/null`
106 - if test $? = "0"; then
107 - while test -h "$java"
108 - do
109 - head=`dirname $java`
110 - tail=`/bin/ls -l $java | awk '{ print $NF; }'`
111 - if test -f "$tail"; then
112 - java=$tail
113 - else
114 - java=$head/$tail
115 - fi
116 - done
117 -
118 - javabin=`dirname $java`
119 - JAVA_HOME=`cd $javabin/..; pwd`
120 -
121 - # we're in $JAVA_HOME/jre
122 - if test -f "$JAVA_HOME/lib/rt.jar"; then
123 - JAVA_HOME=`cd $JAVA_HOME/..; pwd`
124 - elif test -d "/usr/java"; then
125 - JAVA_HOME=/usr/java
126 - elif test -f "/System/Library/Frameworks/JavaVM.framework"; then
127 - JAVA_HOME="/System/Library/Frameworks/JavaVM.framework"
128 - fi
129 - elif test -d "/usr/java"; then
130 - JAVA_HOME=/usr/java
131 - elif test -f "/System/Library/Frameworks/JavaVM.framework"; then
132 - JAVA_HOME="/System/Library/Frameworks/JavaVM.framework"
133 - fi
134 -fi
135 -
136 -echo $ac_n "checking for JAVA_HOME... $JAVA_HOME"
137 -
138 -if test ! -d "$JAVA_HOME"; then
139 - AC_MSG_ERROR([Can't find valid JAVA_HOME ${JAVA_HOME}])
140 -fi
141 -
142 -AC_SUBST(JAVA_HOME)
143 -#
144 # Resin home
145 #
146 resin_home=`pwd`
147 @@ -876,68 +828,6 @@
148 AC_SUBST(SSL_LIBS)
149
150 #
151 -# --with-jni-include
152 -#
153 -AC_ARG_WITH(jni-include,
154 -[ --with-jni-include="-Idir -Idir" jni include string
155 -], [
156 -JNI_INCLUDE=${withval}
157 -JNI="yes"
158 -])
159 -
160 -#
161 -# --enable-jni
162 -#
163 -AC_ARG_ENABLE(jni,
164 -[ --enable-jni Turn on jni],
165 -[case "${enableval}" in
166 - yes) JNI=true ;;
167 - no) JNI="" ;;
168 - *) AC_MSG_ERROR(bad value ${enableval} for --enable-jni) ;;
169 - esac],[JNI=""])
170 -
171 -if test -n "$JNI_INCLUDE"; then
172 - JNI=yes
173 -elif test -r "$JAVA_HOME/include/jni_md.h"; then
174 - JNI_INCLUDE="-I$JAVA_HOME/include"
175 - JNI=yes
176 - echo "checking for JNI in $JAVA_HOME/include ... found"
177 -elif test -r "$JAVA_HOME/include/$jni_os/jni_md.h"; then
178 - JNI_INCLUDE="-I$JAVA_HOME/include -I$JAVA_HOME/include/$jni_os"
179 - JNI=yes
180 - echo "checking for JNI in $JAVA_HOME/include/$jni_os ... found"
181 -elif test -r "/System/Library/Frameworks/JavaVM.framework/Headers/jni_md.h"; then
182 - # Darwin
183 - echo "checking for JNI in /System/Library/Frameworks/JavaVM.framework/Headers ... found"
184 - JNI_INCLUDE="-I/System/Library/Frameworks/JavaVM.framework/Headers"
185 - JNI=yes
186 -else
187 - JNI=""
188 - AC_MSG_WARN([Can't find JNI directory ${JAVA_HOME}/include/$jni_os])
189 -fi
190 -
191 -if test -r "$JAVA_HOME/include/jvmti.h"; then
192 - echo "Using JVMTI for class reloading"
193 -
194 - CFLAGS="$CFLAGS -DHAS_JVMTI"
195 -fi
196 -
197 -if test -r "$JAVA_HOME/include/jvmdi.h"; then
198 - echo "Using JVMDI for class reloading"
199 -
200 - CFLAGS="$CFLAGS -DHAS_JVMDI"
201 -fi
202 -
203 -if test -n "$JNI"; then
204 - plugins="$plugins $resin_plugin resin_os"
205 -else
206 - echo "Can't JNI include files in JAVA_HOME: $JAVA_HOME"
207 -fi
208 -
209 -AC_SUBST(JNI)
210 -AC_SUBST(JNI_INCLUDE)
211 -
212 -#
213 # --enable-ssl
214 #
215 AC_ARG_ENABLE(ssl,
216 diff -Nru resin-3.0.28.vanilla/configure.in.orig resin-3.0.28/configure.in.orig
217 --- resin-3.0.28.vanilla/configure.in.orig 1970-01-01 01:00:00.000000000 +0100
218 +++ resin-3.0.28/configure.in.orig 2009-06-28 11:35:35.000000000 +0100
219 @@ -0,0 +1,1211 @@
220 +AC_INIT(modules/c/src/apache2/mod_caucho.c)
221 +AC_PREFIX_DEFAULT(`pwd`)
222 +AC_CONFIG_AUX_DIR(automake)
223 +
224 +dnl Get os info
225 +AC_CANONICAL_SYSTEM
226 +
227 +AM_INIT_AUTOMAKE(resin, 3.0.9)
228 +
229 +FULL_VERSION="Resin $VERSION -- `date`"
230 +AC_SUBST(FULL_VERSION)
231 +
232 +dnl Checks for programs.
233 +AC_PROG_CC
234 +AC_PROG_LD
235 +AC_PROG_EGREP
236 +
237 +dnl Checks for poll.h
238 +AC_CHECK_HEADER(sys/poll.h, [ CFLAGS="$CFLAGS -DPOLL" ])
239 +
240 +AC_PROG_LIBTOOL
241 +#
242 +# libtool stuff
243 +#
244 +if test -z "${LTFLAGS}"; then
245 + LTFLAGS="--silent"
246 +fi
247 +
248 +LIBTOOL_SCRIPT="`pwd`/libtool"
249 +LIBTOOL="${LIBTOOL_SCRIPT} ${LTFLAGS}"
250 +libtoolversion=`${SHELL} ${LIBTOOL_SCRIPT} --version`
251 +case $libtoolversion in
252 + *1.4*)
253 + SH_LIBTOOL="${LIBTOOL_SCRIPT}"
254 + SHLTCFLAGS="-prefer-pic"
255 + LTCFLAGS="-prefer-non-pic -static"
256 + ;;
257 + *)
258 + SH_LIBTOOL="${SHELL} ${LIBTOOL_SCRIPT} ${LTFLAGS}"
259 + SHLTCFLAGS=""
260 + LTCFLAGS=""
261 + ;;
262 +esac
263 +
264 +AC_SUBST(LTFLAGS)
265 +AC_SUBST(LIBTOOL_SCRIPT)
266 +AC_SUBST(LIBTOOL)
267 +AC_SUBST(SH_LIBTOOL)
268 +AC_SUBST(LTCFLAGS)
269 +AC_SUBST(EGREP)
270 +
271 +INCLUDES=""
272 +plugins=common
273 +AC_SUBST(plugins)
274 +dnl should be unnecessary
275 +AC_SUBST(LD)
276 +
277 +#
278 +# --with-apache-src
279 +#
280 +AC_ARG_WITH(apache-src,
281 +[ --with-apache-src=DIR Apache src static compilation
282 +], [
283 +apache_src=${withval}
284 +
285 +if test -d "${apache_src}/modules"; then
286 + a=b
287 +elif test -d "${apache_src}/src/modules"; then
288 + apache_src=${apache_src}/src
289 +else
290 + AC_MSG_ERROR([Can't find valid Apache source ${apache_src}])
291 +fi
292 +
293 +echo "using Apache source in ${apache_src}"
294 +
295 +mkdir ${apache_src}/modules/caucho 2> /dev/null
296 +cp modules/c/src/common/*.c ${apache_src}/modules/caucho
297 +cp modules/c/src/common/*.h ${apache_src}/modules/caucho
298 +cp modules/c/src/apache/*.c ${apache_src}/modules/caucho
299 +
300 +cat > ${apache_src}/modules/caucho/Makefile.tmpl <<'END'
301 +LIB=libcaucho.a
302 +OBJS=mod_caucho.o stream.o config.o registry.o memory.o
303 +
304 +OBJS_PIC=mod_caucho.lo stream.lo config.lo registry.lo memory.lo
305 +
306 +$(OBJS) $(OBJS_PIC): Makefile
307 +
308 +all: lib
309 +
310 +lib: $(LIB)
311 +
312 +libcaucho.a: $(OBJS)
313 + rm -f $@
314 + ar cr $@ $(OBJS)
315 + $(RANLIB) $@
316 +
317 +libcaucho.o: $(OBJS)
318 + $(LD) $(LDFLAGS) -r -o $@ $(OBJS)
319 +
320 +libcaucho.so: $(OBJS_PIC)
321 + rm -f $@
322 + $(LD_SHLIB) $(LDFLAGS_SHLIB) -o $@ $(OBJS_PIC) $(LIBS_SHLIB)
323 +
324 +.SUFFIXES: .o .lo
325 +
326 +.c.o:
327 + $(CC) -c $(INCLUDES) $(CFLAGS) $<
328 +
329 +.c.lo:
330 + $(CC) -c $(INCLUDES) $(CFLAGS) $(CFLAGS_SHLIB) $< && mv $*.o $*.lo
331 +
332 +# DO NOT REMOVE
333 +mod_caucho.o: cse.h
334 +mod_caucho.lo: cse.h
335 +stream.o: cse.h
336 +stream.lo: cse.h
337 +config.o: cse.h
338 +config.lo: cse.h
339 +registry.o: cse.h
340 +registry.lo: cse.h
341 +memory.o: cse.h
342 +memory.lo: cse.h
343 +
344 +END
345 +
346 +cat > ${apache_src}/modules/caucho/Makefile.libdir <<'END'
347 +# dummy
348 +END
349 +
350 +#grep caucho ${apache_src}/src/Configuration.tmpl >/dev/null 2>/dev/null
351 +#if test "$?" -ne 0; then
352 +# cat >> ${apache_src}/src/Configuration.tmpl <<'END'
353 +## mod_caucho incorporates Resin into Apache.
354 +#
355 +## AddModule modules/caucho/libcaucho.a
356 +#END
357 +#fi
358 +
359 +])
360 +#
361 +# --with-apache
362 +#
363 +AC_ARG_WITH(apache,
364 +[ --with-apache=DIR the Apache root directory
365 +], [
366 +apache_dir=${withval}
367 +
368 +if test "${apache_dir}" = "yes"; then
369 + apache_dir=/usr/local/apache
370 +fi
371 +
372 +apache=1
373 +])
374 +
375 +#
376 +# --with-apxs
377 +#
378 +AC_ARG_WITH(apxs,
379 +[ --with-apxs=PATH the Apache configuration utility
380 +], [
381 +apxs=${withval}
382 +
383 +if test "${apxs}" = "yes"; then
384 + apxs=apxs
385 +fi
386 +
387 +apache=1
388 +])
389 +
390 +#
391 +# --with-apache-eapi
392 +#
393 +AC_ARG_WITH(apache-eapi,
394 +[ --with-apache-eapi=DIR Apache eapi support
395 +], [
396 +apache_eapi=${withval}
397 +])
398 +
399 +#
400 +# --with-apache-include
401 +#
402 +AC_ARG_WITH(apache-include,
403 +[ --with-apache-include=DIR the Apache include directory
404 +], [
405 +apache_include=${withval}
406 +
407 +if test "${apache_include}" = "yes"; then
408 + apache_include=
409 +fi
410 +
411 +apache=1
412 +])
413 +
414 +#
415 +# --with-apache-libexec
416 +#
417 +AC_ARG_WITH(apache-libexec,
418 +[ --with-apache-libexec=DIR the Apache module directory
419 +], [
420 +apache_libexec=${withval}
421 +
422 +if test "${apache_libexec}" = "yes"; then
423 + apache_libexec=
424 +fi
425 +
426 +apache=1
427 +])
428 +
429 +#
430 +# --with-apache-conf
431 +#
432 +AC_ARG_WITH(apache-conf,
433 +[ --with-apache-conf=DIR the Apache configuration
434 +], [
435 +apache_conf=${withval}
436 +
437 +if test "${apache_conf}" = "yes"; then
438 + apache_conf=
439 +fi
440 +
441 +apache=1
442 +])
443 +
444 +apache_cflags=
445 +
446 +#
447 +# --with-apache-cflags
448 +#
449 +AC_ARG_WITH(apache-cflags,
450 +[ --with-apache-cflags=flags flags for compiling mod_caucho
451 +], [
452 +apache_cflags=${withval}
453 +
454 +apache=1
455 +])
456 +
457 +#
458 +# check that apxs is okay
459 +#
460 +if test -n "${apxs}"; then
461 + ${apxs} -q PREFIX >/dev/null 2>/dev/null
462 + if test "$?" -ne 0; then
463 + AC_MSG_ERROR(bad apxs ${apxs})
464 + fi
465 +elif test -x "${apache_bin}/apxs"; then
466 + apxs=${apache_bin}/apxs
467 +elif test -x "${apache_dir}/bin/apxs"; then
468 + apxs=${apache_dir}/bin/apxs
469 +elif test -x "${apache_dir}/sbin/apxs"; then
470 + apxs=${apache_dir}/sbin/apxs
471 +elif test -x "/sbin/apxs"; then
472 + apxs=/sbin/apxs
473 +elif test -x "/usr/sbin/apxs"; then
474 + apxs=/usr/sbin/apxs
475 +fi
476 +
477 +#
478 +# heuristics for finding the Apache include directory
479 +#
480 +if test -z "${apache_include}" -a -n "${apxs}"; then
481 + apache_include=`${apxs} -q INCLUDEDIR`
482 +fi
483 +
484 +if test -z "${apache_include}" -a -r "${apache_dir}/include/httpd.h"; then
485 + apache_include=${apache_dir}/include
486 +fi
487 +
488 +if test -n "${apache_include}"; then
489 + APACHE_INC="-I${apache_include}"
490 +fi
491 +
492 +#
493 +# deal with stronghold
494 +#
495 +if test -z "${apache_include}" -a -r "${apache_dir}/src/include/httpd.h"; then
496 + apache_include=${apache_dir}/src/include
497 +
498 + APACHE_INC="-I${apache_dir}/src/include"
499 + APACHE_INC="-I${apache_dir}/ssl/include $APACHE_INC"
500 + APACHE_INC="-I${apache_dir}/src/os/unix $APACHE_INC"
501 +fi
502 +
503 +if test -n "$apache" -a ! -r ${apache_include}/httpd.h; then
504 + AC_MSG_ERROR([Can't find Apache include directory ${apache_include}])
505 +fi
506 +
507 +#
508 +# heuristics for finding the Apache bin directory
509 +#
510 +if test -n "${apache_bin}"; then
511 + a=b
512 +elif test -x "${apxs}"; then
513 + apache_bin=`${apxs} -q SBINDIR`
514 + apache_exe="${apache_bin}/`${apxs} -q TARGET`"
515 +elif test -n "${apache_dir}"; then
516 + apache_bin="${apache_dir}/bin"
517 +fi
518 +
519 +if test -n "${apache_exe}"; then
520 + a=b;
521 +elif test -z "${apache_bin}"; then
522 + a=b;
523 +elif test -x "${apache_bin}/httpd"; then
524 + apache_exe="${apache_bin}/httpd"
525 +elif test -x "${apache_bin}/apache"; then
526 + apache_exe="${apache_bin}/apache"
527 +elif test -x "${apache_bin}/httpd2"; then
528 + apache_exe="${apache_bin}/httpd2"
529 +elif test -x "${apache_bin}/apache2"; then
530 + apache_exe="${apache_bin}/apache2"
531 +fi
532 +
533 +if test -n "${apache_exe}" -a ! -x "${apache_exe}"; then
534 + AC_MSG_ERROR([Can't find Apache binary in directory ${apache_exe}])
535 +fi
536 +
537 +#
538 +# heuristics for finding the Apache module directory
539 +#
540 +if test -z "${apache_libexec}" -a -n "${apxs}"; then
541 + apache_libexec=`${apxs} -q LIBEXECDIR`
542 +fi
543 +
544 +if test -z "${apache_libexec}" -a -d "${apache_dir}/libexec"; then
545 + apache_libexec=${apache_dir}/libexec
546 +fi
547 +
548 +if test -z "${apache_libexec}" -a -d "${apache_dir}/modules"; then
549 + apache_libexec=${apache_dir}/modules
550 +fi
551 +
552 +if test -n "$apache" -a ! -d "${apache_libexec}"; then
553 + AC_MSG_ERROR([Can't find Apache module directory ${apache_libexec}])
554 +fi
555 +
556 +#
557 +# Heuristics for finding the Apache configuration directory
558 +#
559 +
560 +if test -z "${apache_conf}" -a -n "${apxs}"; then
561 + apache_confdir=`${apxs} -q SYSCONFDIR`
562 +
563 + if test -r "${apache_confdir}"/httpd.conf; then
564 + apache_conf=${apache_confdir}/httpd.conf
565 + elif test -r "${apache_confdir}"/apache.conf; then
566 + apache_conf=${apache_confdir}/apache.conf
567 + elif test -r "${apache_confdir}"/httpsd.conf; then
568 + apache_conf=${apache_confdir}/httpsd.conf
569 + fi
570 +fi
571 +
572 +if test -z "${apache_conf}" -a -r "${apache_dir}/conf/httpd.conf"; then
573 + apache_conf=${apache_dir}/conf/httpd.conf
574 +fi
575 +
576 +if test -z "${apache_conf}" -a -r "${apache_dir}/etc/httpd.conf"; then
577 + apache_conf=${apache_dir}/etc/httpd.conf
578 +fi
579 +
580 +if test -n "$apache" -a ! -r "${apache_conf}"; then
581 + AC_MSG_ERROR([Can't find Apache module configuration ${apache_conf}])
582 +fi
583 +
584 +#
585 +# check for apr
586 +#
587 +if test -x "${apxs}"; then
588 + apr_bin=`${apxs} -q APR_BINDIR 2> /dev/null`
589 + if test -x "${apr_bin}/apr-config"; then
590 + apr_inc=`"${apr_bin}/apr-config" --includes`
591 + APACHE_INC="${APACHE_INC} ${apr_inc}"
592 + elif test -x "${apr_bin}/apr-1-config"; then
593 + apr_inc=`"${apr_bin}/apr-1-config" --includes`
594 + APACHE_INC="${APACHE_INC} ${apr_inc}"
595 + fi
596 +fi
597 +
598 +#
599 +# Apache CFLAGS
600 +#
601 +
602 +if test -z "$apache_cflags" -a -x "${apxs}"; then
603 + if test -x "${apr_bin}/apr-config"; then
604 + apache_cflags="$apache_cflags `${apr_bin}/apr-config --cppflags`"
605 + apache_cflags="$apache_cflags `${apr_bin}/apr-config --cflags`"
606 + elif test -x "${apr_bin}/apr-1-config"; then
607 + apache_cflags="$apache_cflags `${apr_bin}/apr-1-config --cppflags`"
608 + apache_cflags="$apache_cflags `${apr_bin}/apr-1-config --cflags`"
609 + else
610 + apache_cflags="`${apxs} -q CFLAGS`"
611 + fi
612 + fi
613 +
614 +if test -z "$apache_cflags" -a -x "${apache_exe}"; then
615 + flags=`${apache_exe} -V | grep EAPI`
616 + if test -n "$flags"; then
617 + apache_cflags=-DEAPI
618 + fi
619 +fi
620 +
621 +if test -z "$apache_dir" -a -x "${apxs}"; then
622 + apache_dir=`${apxs} -q PREFIX`
623 +fi
624 +
625 +AC_SUBST(APACHE_INC)
626 +AC_SUBST(apache_libexec)
627 +AC_SUBST(apache_conf)
628 +AC_SUBST(apache_dir)
629 +AC_SUBST(apache_cflags)
630 +#
631 +# fill in compilation stuff
632 +#
633 +SO=so
634 +
635 +is_gcc=`${CC} -v 2>&1 | grep gcc`
636 +is_gnu_ld=`${LD} -v 2>&1 | grep GNU`
637 +
638 +#
639 +# Use apxs if it's available
640 +#
641 +if test -z "${LD_SHLIB}"; then
642 + if test -n "${apxs}"; then
643 + CFLAGS_SHLIB=`${apxs} -q CFLAGS_SHLIB`
644 + LD_SHLIB=`${apxs} -q LD_SHLIB`
645 + LDFLAGS_SHLIB=`${apxs} -q LDFLAGS_SHLIB`
646 + LIBS_SHLIB=`${apxs} -q LIBS_SHLIB`
647 +
648 + echo "Using shared library flags from ${apxs}"
649 + fi
650 +fi
651 +#
652 +# --with-java-home
653 +#
654 +AC_ARG_WITH(java-home,
655 +[ --with-java-home=DIR java home
656 +], [
657 +JAVA_HOME=${withval}
658 +])
659 +
660 +if test -z "$JAVA_HOME"; then
661 + java=`which java 2>/dev/null`
662 + if test $? = "0"; then
663 + while test -h "$java"
664 + do
665 + head=`dirname $java`
666 + tail=`/bin/ls -l $java | awk '{ print $NF; }'`
667 + if test -f "$tail"; then
668 + java=$tail
669 + else
670 + java=$head/$tail
671 + fi
672 + done
673 +
674 + javabin=`dirname $java`
675 + JAVA_HOME=`cd $javabin/..; pwd`
676 +
677 + # we're in $JAVA_HOME/jre
678 + if test -f "$JAVA_HOME/lib/rt.jar"; then
679 + JAVA_HOME=`cd $JAVA_HOME/..; pwd`
680 + elif test -d "/usr/java"; then
681 + JAVA_HOME=/usr/java
682 + elif test -f "/System/Library/Frameworks/JavaVM.framework"; then
683 + JAVA_HOME="/System/Library/Frameworks/JavaVM.framework"
684 + fi
685 + elif test -d "/usr/java"; then
686 + JAVA_HOME=/usr/java
687 + elif test -f "/System/Library/Frameworks/JavaVM.framework"; then
688 + JAVA_HOME="/System/Library/Frameworks/JavaVM.framework"
689 + fi
690 +fi
691 +
692 +echo $ac_n "checking for JAVA_HOME... $JAVA_HOME"
693 +
694 +if test ! -d "$JAVA_HOME"; then
695 + AC_MSG_ERROR([Can't find valid JAVA_HOME ${JAVA_HOME}])
696 +fi
697 +
698 +AC_SUBST(JAVA_HOME)
699 +#
700 +# Resin home
701 +#
702 +resin_home=`pwd`
703 +AC_SUBST(resin_home)
704 +
705 +
706 +#
707 +# 64bit heuristics
708 +#
709 +echo -n "checking if Java is 64-bit... "
710 +
711 +tmpname="/tmp/java$$.out"
712 +
713 +$JAVA_HOME/bin/java -version 2> $tmpname
714 +grep "64-Bit" $tmpname 1> /dev/null
715 +if test "$?" = "0"; then
716 + b64_jni=true
717 +fi
718 +grep "amd64-64" $tmpname 1> /dev/null
719 +if test "$?" = "0"; then
720 + b64_jni=true
721 +fi
722 +
723 +$JAVA_HOME/bin/sparcv9/java -version 2> $tmpname
724 +grep "64-Bit" $tmpname 1> /dev/null
725 +
726 +if test "$?" = "0"; then
727 + b64_jni=true
728 +fi
729 +
730 +#$JAVA_HOME/bin/java -d64 -version 2> $tmpname
731 +#grep "64-Bit" $tmpname 1> /dev/null
732 +
733 +#if test "$?" = "0"; then
734 +# b64_jni=true
735 +#fi
736 +
737 +if test -n "$b64_jni"; then
738 + echo "yes"
739 +else
740 + echo "no"
741 +fi
742 +
743 +rm -f $tmpname
744 +
745 +#
746 +# --enable-64bit
747 +#
748 +AC_ARG_ENABLE(64bit,
749 +[ --enable-64bit Enable 64 bit],
750 +[case "${enableval}" in
751 + yes) b64=true ;;
752 + no) b64=""; b64_jni="" ;;
753 + *) AC_MSG_ERROR(bad value ${enableval} for --enable-64bit) ;;
754 + esac],[])
755 +
756 +if test -n "${b64}"; then
757 + b64_jni=true
758 +fi
759 +
760 +if test -n "${b64_jni}"; then
761 + CFLAGS="$CFLAGS -DB64"
762 +fi
763 +
764 +#
765 +# Resin HardCore(tm) configuration
766 +#
767 +LINUX_SRC=
768 +smp=
769 +#
770 +# --with-linux-src
771 +#
772 +AC_ARG_WITH(linux-src,
773 +[ --with-linux-src=DIR Linux src dir
774 +], [
775 +LINUX_SRC=${withval}
776 +hardcore=1
777 +if test "${LINUX_SRC}" = "yes"; then
778 + LINUX_SRC=
779 +fi
780 +])
781 +#
782 +# --with-hardcore
783 +#
784 +AC_ARG_WITH(hardcore,
785 +[ --with-hardcore=DIR Linux src dir
786 +], [
787 +LINUX_SRC=${withval}
788 +hardcore=1
789 +
790 +if test "${LINUX_SRC}" = "yes"; then
791 + LINUX_SRC=
792 +fi
793 +])
794 +#
795 +# --with-hardcore-cflags
796 +#
797 +AC_ARG_WITH(hardcore-cflags,
798 +[ --with-hardcore-cflags=flags Linux src dir
799 +], [
800 +HARDCORE_CFLAGS=${withval}
801 +hardcore=1
802 +])
803 +#
804 +# --enable-linux-smp
805 +#
806 +AC_ARG_ENABLE(linux-smp,
807 +[ --enable-linux-smp Compile with smp],
808 +[case "${enableval}" in
809 + yes) smp=1 ;;
810 + no) smp="" ;;
811 + *) AC_MSG_ERROR(bad value ${enableval} for --enable-linux-smp) ;;
812 + esac],[smp=""])
813 +#
814 +# looking for proper hardcore stuff
815 +#
816 +#hardcore=""
817 +#
818 +if test -n "$hardcore"; then
819 + kver=`uname -r`
820 +
821 + if test -n "$LINUX_SRC"; then
822 + zz=m
823 + elif test -r "/usr/src/linux-$kver/include/linux/version.h"; then
824 + LINUX_SRC="/usr/src/linux-$kver/include"
825 + elif test -r "/usr/src/linux-2.4/include/linux/version.h"; then
826 + LINUX_SRC="/usr/src/linux-2.4/include"
827 + elif test -r "/usr/src/linux/include/linux/version.h"; then
828 + LINUX_SRC="/usr/src/linux/include"
829 + else
830 + LINUX_SRC="/usr/src/linux-2.4/include"
831 + fi
832 +
833 + if test ! -r "$LINUX_SRC/linux/version.h"; then
834 + AC_MSG_ERROR(HardCore can't find valid Linux source at \"${LINUX_SRC}\")
835 + fi
836 +
837 + cat /proc/version | grep SMP > /dev/null
838 + if test -n "$smp"; then
839 + zz=m
840 + elif test ! $?; then
841 + smp=1
842 + HARDCORE_CFLAGS="$HARDCORE_CFLAGS -DSMP"
843 + fi
844 +
845 + plugins="$plugins hardcore"
846 +
847 + echo "Using Linux src for Resin HardCore ... ${LINUX_SRC}"
848 +
849 + if test -n "$smp"; then
850 + echo "Resin HardCore(tm) using SMP"
851 + fi
852 +fi
853 +
854 +AC_SUBST(LINUX_SRC)
855 +AC_SUBST(HARDCORE_CFLAGS)
856 +
857 +#
858 +# fill in based on known configurations
859 +#
860 +if test -z "${LD_SHLIB}"; then
861 + LD_SHLIB=${LD}
862 + CFLAGS_SHLIB="-fpic"
863 + LDFLAGS_SHLIB="-shared"
864 +
865 + case "$target_os" in
866 + linux*)
867 + LD_SHLIB=${CC}
868 +
869 + if test -n "$b64"; then
870 + CFLAGS="$CFLAGS -m64 -fPIC"
871 + LDFLAGS_SHLIB="-shared -fPIC"
872 + fi
873 + if test -n "$b64_jni"; then
874 + CFLAGS_JNI="$CFLAGS_JNI -m64 -fPIC"
875 + LDFLAGS_SHLIB="-shared -fPIC"
876 + fi
877 + ;;
878 +
879 + *solaris*)
880 + if test -n "$is_gcc"; then
881 + CFLAGS_SHLIB="-fPIC"
882 +
883 + if test -n "$b64"; then
884 + CFLAGS="$CFLAGS -m64"
885 + fi
886 + if test -n "$b64_jni"; then
887 + CFLAGS_JNI="$CFLAGS_JNI -m64"
888 + fi
889 + else
890 + CFLAGS_SHLIB="-KPIC"
891 +
892 + if test -n "$b64"; then
893 + CFLAGS="$CFLAGS -xarch=v9"
894 + fi
895 + if test -n "$b64_jni"; then
896 + CFLAGS_JNI="$CFLAGS_JNI -xarch=v9"
897 + fi
898 + fi
899 +
900 + if test -n "$is_gnu_ld"; then
901 + LDFLAGS_SHLIB="-shared"
902 + else
903 + LDFLAGS_SHLIB="-G -fPIC"
904 + fi
905 + ;;
906 +
907 + darwin*)
908 + CFLAGS_SHLIB="-DSHARED_MODULE"
909 + LD_SHLIB=${CC}
910 + LDFLAGS_SHLIB="-bundle -undefined suppress -flat_namespace"
911 + ;;
912 +
913 + *aix*)
914 + if test -z "$is_gcc"; then
915 + CFLAGS_SHLIB="-bexpall"
916 + else
917 + CFLAGS_SHLIB="-fpic"
918 + fi
919 + LDFLAGS_SHLIB=""
920 + ;;
921 +
922 + *hpux*)
923 + if test -z "$is_gcc"; then
924 + CFLAGS_SHLIB="+z"
925 + else
926 + CFLAGS_SHLIB="-fpic"
927 + fi
928 + LDFLAGS_SHLIB="-b"
929 + ;;
930 + esac
931 +
932 + case "$target_cpu" in
933 + x86_64)
934 + if test -z "$b64_jni"; then
935 + CFLAGS_JNI="$CFLAGS_JNI -m32"
936 + LDFLAGS_SHLIB="$LDFLAGS_SHLIB -melf_i386"
937 + fi
938 + ;;
939 + esac
940 +fi
941 +
942 +if test -z "$apache"; then
943 + a=b
944 +elif test -r "${apache_include}/apr_thread_mutex.h" -o -n "${apr_inc}"; then
945 + echo "Using Apache 2.0 configuration ${apache_conf}"
946 +
947 + plugins="$plugins apache2"
948 +elif test -n "${apache_include}/ap.h"; then
949 + echo "Using Apache 1.3 configuration ${apache_conf}"
950 +
951 + plugins="$plugins apache1"
952 +else
953 + AC_MSG_ERROR([Can't find valid Apache directory ${apache_inc}])
954 +fi
955 +
956 +if test -n "$apache_cflags"; then
957 + echo "Using Apache CFLAGS: $apache_cflags"
958 +fi
959 +
960 +#
961 +# Using Perl if it's available.
962 +#
963 +PERL=`which perl`
964 +if test -z "${LD_SHLIB}"; then
965 + if test -z "${LD_SHLIB}" -a "x`$PERL -V:dlsrc 2>/dev/null | grep dlopen`" != "x"; then
966 + PCC="`$PERL -V:cc | cut -d\' -f2`"
967 + if test "${PCC}" = "${CC}"; then
968 + CFLAGS_SHLIB="`$PERL -V:cccdlflags | cut -d\' -f2`"
969 + LDFLAGS_SHLIB="`$PERL -V:lddlflags | cut -d\' -f2`"
970 + LD_SHLIB="`$PERL -V:ld | cut -d\' -f2`"
971 +
972 + has_clflags=1
973 +
974 + echo "Using shared library flags from Perl"
975 + fi
976 + fi
977 +fi
978 +
979 +#if test -z "${LD_SHLIB}"; then
980 +# AC_MSG_ERROR([Can't determine compilation flags.]);
981 +#fi
982 +
983 +#
984 +# OS which can handle the Resin launcher
985 +#
986 +resin_pro_plugin=
987 +if test -r "modules/c/src/resin/Makefile.in"; then
988 + resin_pro_plugin="resin"
989 +fi
990 +
991 +resin_ssl_plugin=
992 +if test -r "modules/c/src/resinssl/Makefile.in"; then
993 + resin_ssl_plugin="resinssl"
994 +fi
995 +
996 +resin_plugin=
997 +
998 +case "$target_cpu" in
999 + i?86)
1000 + CPU=i386
1001 + resin_plugin="$resin_pro_plugin $resin_ssl_plugin"
1002 + CFLAGS_JNI="$CFLAGS_JNI -D_FILE_OFFSET_BITS=64"
1003 + ;;
1004 +
1005 + sparc*)
1006 + if test -n "${b64_jni}"; then
1007 + CPU=sparcv9
1008 + else
1009 + CPU=sparc
1010 + fi
1011 + resin_plugin="$resin_pro_plugin $resin_ssl_plugin"
1012 + ;;
1013 +
1014 + x86_64)
1015 + CPU=$target_cpu
1016 + resin_plugin="$resin_pro_plugin $resin_ssl_plugin"
1017 + CFLAGS_JNI="$CFLAGS_JNI -D_FILE_OFFSET_BITS=64"
1018 + ;;
1019 +
1020 + *)
1021 + CPU=$target_cpu
1022 + ;;
1023 +esac
1024 +
1025 +case "$target_os" in
1026 + linux*)
1027 + jni_os=linux
1028 + PROXY_LIBS='-lpthread -lc'
1029 + ;;
1030 +
1031 + *solaris*)
1032 + jni_os=solaris
1033 + CFLAGS="$CFLAGS -D__SOLARIS__"
1034 + PROXY_LIBS='-lnsl -lsocket -lthread'
1035 + ;;
1036 +
1037 + *freebsd*5*)
1038 + PROXY_LIBS='-lpthread'
1039 + jni_os=freebsd
1040 +
1041 + tmp=`ldd $JAVA_HOME/bin/java | sed 's/.*=>//' | grep -c libc_r`
1042 + tmp=$tmp `ldd $JAVA_HOME/bin/java | sed 's/.*=>//' | grep -c libpthread`
1043 + tmp=$tmp `ldd $JAVA_HOME/bin/java | sed 's/.*=>//' | grep -c libthr`
1044 +
1045 + case "$tmp" in
1046 + 100)
1047 + PROXY_LIBS='-lc_r';
1048 + ;;
1049 + 010)
1050 + PROXY_LIBS='-lpthread';
1051 + ;;
1052 + 001)
1053 + PROXY_LIBS='-lthr';
1054 + ;;
1055 + *)
1056 + PROXY_LIBS='-lpthread'
1057 + echo "Using -lpthread as default"
1058 + ;;
1059 + esac
1060 + ;;
1061 +
1062 + *freebsd*)
1063 + PROXY_LIBS='-lc_r'
1064 + jni_os=freebsd
1065 + ;;
1066 +
1067 + *darwin*)
1068 + LD=gcc
1069 + SO=jnilib
1070 + resin_plugin="$resin_pro_plugin $resin_ssl_plugin"
1071 + ;;
1072 +
1073 + *hpux*)
1074 + if test -r "$JAVA_HOME/include/hpux/jni_md.h"; then
1075 + jni_os=hpux
1076 + else
1077 + jni_os=hp-ux
1078 + fi
1079 + ;;
1080 +
1081 + *aix*)
1082 + jni_os=aix
1083 + ;;
1084 +esac
1085 +
1086 +AC_SUBST(CPU)
1087 +AC_SUBST(OS)
1088 +AC_SUBST(SO)
1089 +AC_SUBST(CFLAGS)
1090 +AC_SUBST(CFLAGS_SHLIB)
1091 +AC_SUBST(LD_SHLIB)
1092 +AC_SUBST(LDFLAGS_SHLIB)
1093 +AC_SUBST(LIBS_SHLIB)
1094 +AC_SUBST(PROXY_LIBS)
1095 +AC_SUBST(SSL_LIBS)
1096 +
1097 +#
1098 +# --with-jni-include
1099 +#
1100 +AC_ARG_WITH(jni-include,
1101 +[ --with-jni-include="-Idir -Idir" jni include string
1102 +], [
1103 +JNI_INCLUDE=${withval}
1104 +JNI="yes"
1105 +])
1106 +
1107 +#
1108 +# --enable-jni
1109 +#
1110 +AC_ARG_ENABLE(jni,
1111 +[ --enable-jni Turn on jni],
1112 +[case "${enableval}" in
1113 + yes) JNI=true ;;
1114 + no) JNI="" ;;
1115 + *) AC_MSG_ERROR(bad value ${enableval} for --enable-jni) ;;
1116 + esac],[JNI=""])
1117 +
1118 +if test -n "$JNI_INCLUDE"; then
1119 + JNI=yes
1120 +elif test -r "$JAVA_HOME/include/jni_md.h"; then
1121 + JNI_INCLUDE="-I$JAVA_HOME/include"
1122 + JNI=yes
1123 + echo "checking for JNI in $JAVA_HOME/include ... found"
1124 +elif test -r "$JAVA_HOME/include/$jni_os/jni_md.h"; then
1125 + JNI_INCLUDE="-I$JAVA_HOME/include -I$JAVA_HOME/include/$jni_os"
1126 + JNI=yes
1127 + echo "checking for JNI in $JAVA_HOME/include/$jni_os ... found"
1128 +elif test -r "/System/Library/Frameworks/JavaVM.framework/Headers/jni_md.h"; then
1129 + # Darwin
1130 + echo "checking for JNI in /System/Library/Frameworks/JavaVM.framework/Headers ... found"
1131 + JNI_INCLUDE="-I/System/Library/Frameworks/JavaVM.framework/Headers"
1132 + JNI=yes
1133 +else
1134 + JNI=""
1135 + AC_MSG_WARN([Can't find JNI directory ${JAVA_HOME}/include/$jni_os])
1136 +fi
1137 +
1138 +if test -r "$JAVA_HOME/include/jvmti.h"; then
1139 + echo "Using JVMTI for class reloading"
1140 +
1141 + CFLAGS="$CFLAGS -DHAS_JVMTI"
1142 +fi
1143 +
1144 +if test -r "$JAVA_HOME/include/jvmdi.h"; then
1145 + echo "Using JVMDI for class reloading"
1146 +
1147 + CFLAGS="$CFLAGS -DHAS_JVMDI"
1148 +fi
1149 +
1150 +if test -n "$JNI"; then
1151 + plugins="$plugins $resin_plugin resin_os"
1152 +else
1153 + echo "Can't JNI include files in JAVA_HOME: $JAVA_HOME"
1154 +fi
1155 +
1156 +AC_SUBST(JNI)
1157 +AC_SUBST(JNI_INCLUDE)
1158 +
1159 +#
1160 +# --enable-ssl
1161 +#
1162 +AC_ARG_ENABLE(ssl,
1163 +[ --enable-ssl Turn on ssl],
1164 +[case "${enableval}" in
1165 + yes) ENABLE_SSL=true ;;
1166 + no) ENABLE_SSL="false" ;;
1167 + *) AC_MSG_ERROR(bad value ${enableval} for --enable-ssl) ;;
1168 + esac],[ENABLE_SSL=""])
1169 +
1170 +#
1171 +# --with-openssl
1172 +#
1173 +AC_ARG_WITH(openssl,
1174 +[ --with-openssl=DIR Openssl directory
1175 +], [
1176 +OPENSSL=${withval}
1177 +OPENSSL_INCLUDE=${OPENSSL}/include
1178 +OPENSSL_LIB=${OPENSSL}/lib
1179 +])
1180 +
1181 +#
1182 +# --with-openssl-include
1183 +#
1184 +AC_ARG_WITH(openssl-include,
1185 +[ --with-openssl-include=DIR Openssl include directory
1186 +], [
1187 +OPENSSL_INCLUDE=${withval}
1188 +
1189 +if test ! -r "${OPENSSL_INCLUDE}/openssl/ssl23.h"; then
1190 + AC_MSG_ERROR([Can't find valid OpenSSL include ${OPENSSL_INCLUDE}])
1191 +fi
1192 +])
1193 +
1194 +#
1195 +# --with-openssl-lib
1196 +#
1197 +AC_ARG_WITH(openssl-lib,
1198 +[ --with-openssl-lib=DIR Openssl lib directory
1199 +], [
1200 +OPENSSL_LIB=${withval}
1201 +
1202 +if test ! -r "${OPENSSL_LIB}/libssl.a" -a \
1203 + ! -r "${OPENSSL_LIB}/libssl.dylib" -a \
1204 + ! -r "${OPENSSL_LIB}/libssl.so"; then
1205 + AC_MSG_ERROR([Can't find valid OpenSSL library ${OPENSSL_LIB}])
1206 +fi
1207 +])
1208 +
1209 +if test "${ENABLE_SSL}" = false; then
1210 + foo=bar
1211 +elif test -n "${OPENSSL_INCLUDE}"; then
1212 + foo=bar
1213 +elif test -r ${OPENSSL}/include/openssl/ssl23.h; then
1214 + OPENSSL_INCLUDE=${OPENSSL}/include
1215 +elif test -r /usr/include/openssl/ssl23.h; then
1216 + OPENSSL_INCLUDE=/usr/include
1217 +elif test -r /usr/local/include/openssl/ssl23.h; then
1218 + OPENSSL_INCLUDE=/usr/local/include
1219 +elif test -r /usr/local/ssl/include/openssl/ssl23.h; then
1220 + OPENSSL_INCLUDE=/usr/local/ssl/include
1221 +fi
1222 +
1223 +if test "${ENABLE_SSL}" = false; then
1224 + foo=bar
1225 +
1226 +elif test -n "${OPENSSL_LIB}"; then
1227 + foo=bar
1228 +
1229 +elif test -n "${b64_jni}" -a -r /lib64/libcrypto.so; then
1230 + OPENSSL_LIB=/lib64
1231 +elif test -n "${b64_jni}" -a -r /usr/lib64/libcrypto.so; then
1232 + OPENSSL_LIB=/usr/lib64
1233 +
1234 +elif test -r /lib/libcrypto.so; then
1235 + OPENSSL_LIB=/lib
1236 +elif test -r /lib/libcrypto.dylib; then
1237 + OPENSSL_LIB=/lib
1238 +
1239 +elif test -r /usr/lib/libcrypto.so; then
1240 + OPENSSL_LIB=/usr/lib
1241 +elif test -r /usr/lib/libcrypto.dylib; then
1242 + OPENSSL_LIB=/usr/lib
1243 +
1244 +elif test -r /usr/local/ssl/lib/libcrypto.so; then
1245 + OPENSSL_LIB=/usr/local/ssl/lib
1246 +elif test -r /usr/local/ssl/lib/libcrypto.dylib; then
1247 + OPENSSL_LIB=/usr/local/ssl/lib
1248 +elif test -r ${OPENSSL}/lib/libcrypto.a; then
1249 + OPENSSL_LIB=${OPENSSL}/lib
1250 +elif test -r /usr/local/ssl/lib/libcrypto.a; then
1251 + OPENSSL_LIB=/usr/local/ssl/lib
1252 +elif test -r /usr/local/lib/libssl.a; then
1253 + OPENSSL_LIB=/usr/local/lib
1254 +elif test -r /usr/lib/libssl.a; then
1255 + OPENSSL_LIB=/usr/lib
1256 +fi
1257 +
1258 +if test -z "${OPENSSL_LIB}"; then
1259 + foo=bar
1260 +elif test -r "${OPENSSL_LIB}/libssl.so"; then
1261 + SSL_LIBS="${SSL_LIBS} -lssl"
1262 +elif test -r "${OPENSSL_LIB}/libssl.dylib"; then
1263 + SSL_LIBS="${SSL_LIBS} -lssl"
1264 +elif test -r "${OPENSSL_LIB}/libssl3.so"; then
1265 + SSL_LIBS="${SSL_LIBS} -lssl3"
1266 +elif test -r "${OPENSSL_LIB}/libssl3.dylib"; then
1267 + SSL_LIBS="${SSL_LIBS} -lssl3"
1268 +elif test -r "${OPENSSL_LIB}/libssl.a"; then
1269 + SSL_LIBS="${SSL_LIBS} ${OPENSSL_LIB}/libssl.a"
1270 +elif test -r "${OPENSSL_LIB}/libssl3.a"; then
1271 + SSL_LIBS="${SSL_LIBS} ${OPENSSL_LIB}/libssl3.a"
1272 +else
1273 + # probably an error
1274 + SSL_LIBS="${SSL_LIBS} -lssl"
1275 +fi
1276 +
1277 +if test -z "${OPENSSL_LIB}"; then
1278 + foo=bar
1279 +elif test -r "${OPENSSL_LIB}/libcrypto.so"; then
1280 + SSL_LIBS="${SSL_LIBS} -lcrypto"
1281 +elif test -r "${OPENSSL_LIB}/libcrypto.dylib"; then
1282 + SSL_LIBS="${SSL_LIBS} -lcrypto"
1283 +elif test -r "${OPENSSL_LIB}/libcrypto.a"; then
1284 + SSL_LIBS="${SSL_LIBS} ${OPENSSL_LIB}/libcrypto.a"
1285 +else
1286 + # probably an error
1287 + SSL_LIBS="${SSL_LIBS} -lcrypto"
1288 +fi
1289 +
1290 +SSL_OBJ=ssl_stub.o
1291 +
1292 +if test "${ENABLE_SSL}" = false; then
1293 + echo "Openssl is not enabled"
1294 +elif test -z "${OPENSSL_LIB}"; then
1295 + echo "Openssl library was not found"
1296 +elif test ! -r "${OPENSSL_LIB}/libcrypto.so" -a \
1297 + ! -r "${OPENSSL_LIB}/libcrypto.dylib" -a \
1298 + ! -r "${OPENSSL_LIB}/libcrypto.a" ; then
1299 + AC_MSG_ERROR([Can't find valid OpenSSL library in ${OPENSSL_LIB}])
1300 +elif test ! -r "${OPENSSL_INCLUDE}/openssl/ssl23.h"; then
1301 + AC_MSG_ERROR([Can't find valid OpenSSL include in ${OPENSSL_INCLUDE}])
1302 +else
1303 + echo "Using openssl include in ... ${OPENSSL_INCLUDE}"
1304 + echo "Using openssl lib in ... ${OPENSSL_LIB}"
1305 + echo "Using openssl libraries in ... ${SSL_LIBS}"
1306 +
1307 + if test -x "${apache_dir}/bin/httpd"; then
1308 + apache_ssl=`${apache_dir}/bin/httpd -l 2>&1 | grep ssl`
1309 + if test -n "$apache_ssl"; then
1310 + CFLAGS="$CFLAGS -DOPENSSL"
1311 + echo "Enabling ssl for mod_caucho"
1312 + fi
1313 + elif test -x "${apache_dir}/bin/httpd2"; then
1314 + apache_ssl=`${apache_dir}/bin/httpd2 -l 2>&1 | grep ssl`
1315 + if test -n "$apache_ssl"; then
1316 + CFLAGS="$CFLAGS -DOPENSSL"
1317 + echo "Enabling ssl for mod_caucho"
1318 + fi
1319 + fi
1320 +
1321 + if test -r "${OPENSSL_INCLUDE}/openssl/engine.h"; then
1322 + CFLAGS_OPENSSL="$OPENSSL_CFLAGS -DSSL_ENGINE"
1323 + fi
1324 +
1325 + if test -n "${OPENSSL_INCLUDE}"; then
1326 + INCLUDES="$INCLUDES -I${OPENSSL_INCLUDE}"
1327 + fi
1328 + SSL_OBJ=ssl.o
1329 + LDFLAGS_SHLIB="${LDFLAGS_SHLIB} -L${OPENSSL_LIB}"
1330 + # PROXY_LIBS="$PROXY_LIBS ${OPENSSL_LIB}/libssl.a ${OPENSSL_LIB}/libcrypto.a"
1331 +fi
1332 +
1333 +if test -d /usr/kerberos/include; then
1334 + INCLUDES="$INCLUDES -I/usr/kerberos/include"
1335 +fi
1336 +
1337 +#
1338 +# test the open ssl
1339 +#
1340 +if test -n "${OPENSSL_LIB}"; then
1341 +cat >conftest.$ac_ext <<_ACEOF
1342 +#include <openssl/ssl.h>
1343 +#include <openssl/rsa.h>
1344 +#include <openssl/err.h>
1345 +
1346 +int main(int argc, char **argv)
1347 +{
1348 + SSLeay_add_ssl_algorithms();
1349 + SSL_load_error_strings();
1350 +
1351 +#if OPENSSL_VERSION_NUMBER >= 0x00907000L
1352 + if (0)
1353 + ERR_print_errors_cb(0, 0);
1354 +#endif
1355 +
1356 + return 0;
1357 +}
1358 +_ACEOF
1359 +
1360 +${CC} -o conftest ${CFLAGS_OPENSSL} ${CFLAGS} ${INCLUDES} conftest.$ac_ext -L${OPENSSL_LIB} ${SSL_LIBS} ${PROXY_LIBS} 1>/dev/null 2>/dev/null
1361 +
1362 +if test "$?" != 0; then
1363 + ${CC} -o conftest ${CFLAGS_OPENSSL} ${CFLAGS} ${INCLUDES} conftest.$ac_ext -L${OPENSSL_LIB} ${SSL_LIBS} ${PROXY_LIBS}
1364 +
1365 + AC_MSG_WARN(Can't compile SSL. Check compilation flags: ${CC} ${CFLAGS_OPENSSL} ${CFLAGS} ${INCLUDES} -L${OPENSSL_LIB} ${SSL_LIBS} ${PROXY_LIBS})
1366 +
1367 + resin_ssl_plugin=""
1368 +else
1369 + ./conftest
1370 +
1371 + if test "$?" != 0; then
1372 + AC_MSG_WARN(Can't execute SSL. Check that load version in the library path: ${LD_LIBRARY_PATH} matches the expected version.)
1373 + fi
1374 +fi
1375 +
1376 +rm -f conftest conftest.$ac_ext
1377 +fi
1378 +
1379 +AC_SUBST(INCLUDES)
1380 +AC_SUBST(CFLAGS_OPENSSL)
1381 +AC_SUBST(CFLAGS_JNI)
1382 +AC_SUBST(SSL_OBJ)
1383 +
1384 +PERL="perl"
1385 +#
1386 +# --with-perl
1387 +#
1388 +AC_ARG_WITH(perl,
1389 +[ --with-perl=DIR Perl binary location
1390 +], [
1391 +PERL=${withval}
1392 +])
1393 +
1394 +AC_SUBST(PERL)
1395 +
1396 +#
1397 +# --enable-debug
1398 +#
1399 +AC_ARG_ENABLE(debug,
1400 +[ --enable-debug Turn on debugging],
1401 +[case "${enableval}" in
1402 + yes) debug=true ;;
1403 + no) debug=false ;;
1404 + *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
1405 + esac],[debug=false])
1406 +
1407 +if test "$debug" = true; then
1408 + CFLAGS="$CFLAGS -DDEBUG -Wall"
1409 + HARDCORE_CFLAGS="$HARDCORE_CFLAGS -DDEBUG"
1410 +fi
1411 +
1412 +AC_OUTPUT([
1413 +Makefile
1414 +bin/wrapper.pl
1415 +modules/c/src/Makefile
1416 +modules/c/src/common/Makefile
1417 +modules/c/src/apache1/Makefile
1418 +modules/c/src/apache2/Makefile
1419 +modules/c/src/resin_os/Makefile
1420 +contrib/init.resin
1421 +], [])
1422 +
1423 +if test -n "${resin_pro_plugin}"; then
1424 + AC_OUTPUT([
1425 + modules/c/src/resin/Makefile
1426 + modules/c/src/resinssl/Makefile
1427 + ])
1428 +fi
1429 +
1430 +chmod +x bin/wrapper.pl
1431
1432
1433
1434 1.1 src/patchsets/resin/3.0.28/mod_caucho-3.0.28-ssl.patch
1435
1436 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/mod_caucho-3.0.28-ssl.patch?rev=1.1&view=markup
1437 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/mod_caucho-3.0.28-ssl.patch?rev=1.1&content-type=text/plain
1438
1439 Index: mod_caucho-3.0.28-ssl.patch
1440 ===================================================================
1441 diff -Nru resin-3.0.28.vanilla/modules/c/src/apache2/mod_caucho.c resin-3.0.28/modules/c/src/apache2/mod_caucho.c
1442 --- resin-3.0.28.vanilla/modules/c/src/apache2/mod_caucho.c 2009-06-28 11:33:00.000000000 +0100
1443 +++ resin-3.0.28/modules/c/src/apache2/mod_caucho.c 2009-06-28 11:35:57.000000000 +0100
1444 @@ -582,6 +582,16 @@
1445 }
1446 }
1447 #endif
1448 + /* Add SSL Client certificate: (requires SSLOptions +StdEnvVars) */
1449 + {
1450 + int i;
1451 + char **env = (char **)ap_create_environment(r->pool, r->subprocess_env);
1452 + for (i = 0; env[i]; ++i) {
1453 + char *name = strsep(&(env[i]), "=");
1454 + if (strncmp(name, "SSL_CLIENT_CERT", 16) == 0)
1455 + cse_write_string(s, CSE_CLIENT_CERT, env[i]);
1456 + }
1457 + }
1458 }
1459
1460 /**
1461
1462
1463
1464 1.1 src/patchsets/resin/3.0.28/resin-3.0.28-Makefile.in.patch
1465
1466 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/resin-3.0.28-Makefile.in.patch?rev=1.1&view=markup
1467 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/resin-3.0.28-Makefile.in.patch?rev=1.1&content-type=text/plain
1468
1469 Index: resin-3.0.28-Makefile.in.patch
1470 ===================================================================
1471 diff -Nru resin-3.0.28.vanilla/Makefile.in resin-3.0.28/Makefile.in
1472 --- resin-3.0.28.vanilla/Makefile.in 2009-06-28 11:33:01.000000000 +0100
1473 +++ resin-3.0.28/Makefile.in 2009-06-28 11:33:13.000000000 +0100
1474 @@ -1,6 +1,6 @@
1475 PREFIX=@prefix@
1476
1477 -all :
1478 +all :
1479 (cd modules/c/src; $(MAKE))
1480
1481 clean :
1482 @@ -8,20 +8,20 @@
1483
1484 install :
1485 (cd modules/c/src; $(MAKE) install)
1486 - if test $(PREFIX) != `pwd`; then \
1487 - mkdir -p $(PREFIX)/lib; \
1488 - mkdir -p $(PREFIX)/libexec; \
1489 - cp -r libexec/* $(PREFIX)/libexec; \
1490 - cp lib/*.jar $(PREFIX)/lib; \
1491 - mkdir -p $(PREFIX)/bin; \
1492 - cp bin/* $(PREFIX)/bin; \
1493 - mkdir -p $(PREFIX)/webapps; \
1494 - cp -r webapps/* $(PREFIX)/webapps; \
1495 - mkdir -p $(PREFIX)/conf; \
1496 - cp conf/resin.conf $(PREFIX)/conf/resin.conf.orig; \
1497 - cp conf/app-default.xml $(PREFIX)/conf/app-default.xml.orig; \
1498 - if test ! -r $(PREFIX)/conf/resin.conf; then \
1499 - cp conf/resin.conf $(PREFIX)/conf/resin.conf; \
1500 - cp conf/app-default.xml $(PREFIX)/conf/app-default.xml; \
1501 + if test $(DESTDIR)$(PREFIX) != `pwd`; then \
1502 + mkdir -p $(DESTDIR)$(PREFIX)/lib; \
1503 + mkdir -p $(DESTDIR)$(PREFIX)/libexec; \
1504 + cp -r libexec/* $(DESTDIR)$(PREFIX)/libexec; \
1505 + cp lib/*.jar $(DESTDIR)$(PREFIX)/lib; \
1506 + mkdir -p $(DESTDIR)$(PREFIX)/bin; \
1507 + cp bin/* $(DESTDIR)$(PREFIX)/bin; \
1508 + mkdir -p $(DESTDIR)$(PREFIX)/webapps; \
1509 + cp -r webapps/* $(DESTDIR)$(PREFIX)/webapps; \
1510 + mkdir -p $(DESTDIR)$(PREFIX)/conf; \
1511 + cp conf/resin.conf $(DESTDIR)$(PREFIX)/conf/resin.conf.orig; \
1512 + cp conf/app-default.xml $(DESTDIR)$(PREFIX)/conf/app-default.xml.orig; \
1513 + if test ! -r $(DESTDIR)$(PREFIX)/conf/resin.conf; then \
1514 + cp conf/resin.conf $(DESTDIR)$(PREFIX)/conf/resin.conf; \
1515 + cp conf/app-default.xml $(DESTDIR)$(PREFIX)/conf/app-default.xml; \
1516 fi; \
1517 fi
1518
1519
1520
1521 1.1 src/patchsets/resin/3.0.28/resin-3.0.28-Resin.java.patch
1522
1523 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/resin-3.0.28-Resin.java.patch?rev=1.1&view=markup
1524 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/resin-3.0.28-Resin.java.patch?rev=1.1&content-type=text/plain
1525
1526 Index: resin-3.0.28-Resin.java.patch
1527 ===================================================================
1528 diff -Nru resin-3.0.28.vanilla/modules/resin/src/com/caucho/server/resin/Resin.java resin-3.0.28/modules/resin/src/com/caucho/server/resin/Resin.java
1529 --- resin-3.0.28.vanilla/modules/resin/src/com/caucho/server/resin/Resin.java 2009-06-28 11:33:01.000000000 +0100
1530 +++ resin-3.0.28/modules/resin/src/com/caucho/server/resin/Resin.java 2009-06-28 11:34:03.000000000 +0100
1531 @@ -700,10 +700,10 @@
1532 throw new ConfigException(L().l("The following system property must be set:\n -Djava.util.logging.manager=com.caucho.log.LogManagerImpl\nThe JDK 1.4 Logging manager must be set to Resin's log manager."));
1533 }
1534
1535 - validatePackage("javax.servlet.Servlet", new String[] {"2.4", "1.4"});
1536 + validatePackage("javax.servlet.Servlet", new String[] {"2.4", "1.5"});
1537 validatePackage("javax.servlet.jsp.jstl.core.Config", new String[] {"1.1"});
1538 validatePackage("javax.management.MBeanServer", new String[] { "1.2", "1.5" });
1539 - validatePackage("javax.resource.spi.ResourceAdapter", new String[] {"1.5", "1.4"});
1540 + validatePackage("javax.resource.spi.ResourceAdapter", new String[] {"1.5", "1.5"});
1541 }
1542
1543 /**
1544
1545
1546
1547 1.1 src/patchsets/resin/3.0.28/resin-3.0.28-build.xml.patch
1548
1549 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/resin-3.0.28-build.xml.patch?rev=1.1&view=markup
1550 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/resin-3.0.28-build.xml.patch?rev=1.1&content-type=text/plain
1551
1552 Index: resin-3.0.28-build.xml.patch
1553 ===================================================================
1554 diff -Nru resin-3.0.28.vanilla/build.xml resin-3.0.28/build.xml
1555 --- resin-3.0.28.vanilla/build.xml 2009-06-28 11:30:23.000000000 +0100
1556 +++ resin-3.0.28/build.xml 2009-06-28 11:30:36.000000000 +0100
1557 @@ -7,7 +7,6 @@
1558
1559 <property name="modules" location="${basedir}/modules"/>
1560 <property name="src" location="${basedir}/src"/>
1561 - <property name="ext" location="${basedir}/modules/ext"/>
1562 <property name="doc" location="${basedir}/doc"/>
1563
1564 <property name="build" location="${install}/build"/>
1565 @@ -17,14 +16,12 @@
1566
1567
1568 <property name="javac.verbose" value="off"/>
1569 - <property name="javac.debug" value="on"/>
1570 + <property name="javac.debug" value="off"/>
1571 <property name="javac.optimize" value="off"/>
1572 <property name="javac.deprecation" value="off"/>
1573 <property name="javac.nowarn" value="on"/>
1574 <property name="javac.memoryMaximumSize" value="256m"/>
1575
1576 - <property name="javac.source" value="1.4"/>
1577 -
1578 <property name="jar.compress" value="false"/>
1579 <property name="jar.index" value="true"/>
1580 <property name="jar.update" value="false"/>
1581 @@ -66,7 +63,7 @@
1582 </target>
1583
1584 <target name="compile"
1585 - depends="init, ejb, ejb30, j2ee-deploy, j2ee-management, jaxrpc, jca, jms, jmx, jsdk, jstl, jta, portlet, script, resin-jdk15, resin, quercus, webutil, deploy, conf, ext">
1586 + depends="init, ejb, ejb30, j2ee-deploy, j2ee-management, jaxrpc, jca, jms, jmx, jstl, jta, portlet, script, resin-jdk15, resin, quercus, webutil, deploy, conf">
1587 </target>
1588
1589 <target name="ejb" depends="init, jta">
1590 @@ -80,7 +77,6 @@
1591 <antcall target="module" inheritRefs="true">
1592 <param name="module.name" value="ejb30"/>
1593 <param name="module.jar" value="ejb-30.jar"/>
1594 - <param name="javac.source" value="1.5"/>
1595 </antcall>
1596 </target>
1597
1598 @@ -98,11 +94,10 @@
1599 </antcall>
1600 </target>
1601
1602 - <target name="jaxrpc" depends="init,saaj,jsdk">
1603 + <target name="jaxrpc" depends="init,saaj">
1604 <antcall target="module" inheritRefs="true">
1605 <param name="module.name" value="jaxrpc"/>
1606 <param name="module.jar" value="jaxrpc.jar"/>
1607 - <param name="javac.source" value="1.5"/>
1608 </antcall>
1609 </target>
1610
1611 @@ -116,7 +111,6 @@
1612 <target name="resin-jdk15" depends="init">
1613 <antcall target="module" inheritRefs="true">
1614 <param name="module.name" value="resin-jdk15"/>
1615 - <param name="javac.source" value="1.5"/>
1616 </antcall>
1617 </target>
1618
1619 @@ -148,7 +142,7 @@
1620 </antcall>
1621 </target>
1622
1623 - <target name="jstl" depends="init, jsdk">
1624 + <target name="jstl" depends="init">
1625 <antcall target="module" inheritRefs="true">
1626 <param name="module.name" value="jstl"/>
1627 <param name="module.jar" value="jstl-11.jar"/>
1628 @@ -187,7 +181,7 @@
1629 </antcall>
1630 </target>
1631
1632 - <target name="resin-dev" depends="init, ejb, ejb30, jca, jcr, jms, jmx, jsdk, jstl, jta, j2ee-deploy, j2ee-management, saaj, jaxrpc, portlet, script, resin-jdk15">
1633 + <target name="resin-dev" depends="init, ejb, ejb30, jca, jcr, jms, jmx, jstl, jta, j2ee-deploy, j2ee-management, saaj, jaxrpc, portlet, script, resin-jdk15">
1634
1635 <!-- filter to insert version -->
1636
1637 @@ -217,7 +211,6 @@
1638
1639 <antcall target="module" inheritRefs="true">
1640 <param name="module.name" value="resin"/>
1641 - <param name="javac.source" value="1.5"/>
1642 </antcall>
1643 </target>
1644
1645 @@ -242,14 +235,12 @@
1646 <target name="webutil" depends="init, resin">
1647 <antcall target="module" inheritRefs="true">
1648 <param name="module.name" value="webutil"/>
1649 - <param name="javac.source" value="1.5"/>
1650 </antcall>
1651 </target>
1652
1653 <target name="quercus-dev" depends="init">
1654 <antcall target="module" inheritRefs="true">
1655 <param name="module.name" value="quercus"/>
1656 - <param name="javac.source" value="1.5"/>
1657 </antcall>
1658 </target>
1659
1660 @@ -282,16 +273,15 @@
1661 verbose="${javac.verbose}"
1662 debug="${javac.debug}" optimize="${javac.optimize}"
1663 deprecation="${javac.deprecation}" nowarn="${javac.nowarn}"
1664 - source="${javac.source}"
1665 excludes="**/.svn/**"
1666 memoryMaximumSize="${javac.memoryMaximumSize}">
1667 <classpath>
1668 <dirset dir="${modules}">
1669 <include name="*/classes"/>
1670 </dirset>
1671 - <fileset dir="${ext}">
1672 - <include name="**/*.jar"/>
1673 - </fileset>
1674 + <fileset dir="lib">
1675 + <include name="*.jar" />
1676 + </fileset>
1677 </classpath>
1678 </javac>
1679
1680 @@ -358,13 +348,6 @@
1681 </copy>
1682 </target>
1683
1684 - <target name="ext" depends="init, resin">
1685 - <copy todir="${install}/lib" preservelastmodified="true">
1686 - <fileset dir="${ext}">
1687 - </fileset>
1688 - </copy>
1689 - </target>
1690 -
1691 <target name="webapps" depends="init, doc, quercus">
1692 </target>
1693
1694 @@ -503,9 +486,6 @@
1695 <dirset dir="${modules}">
1696 <include name="*/classes"/>
1697 </dirset>
1698 - <fileset dir="${modules}/ext">
1699 - <include name="**/*.jar"/>
1700 - </fileset>
1701 </classpath>
1702 </java>
1703
1704 @@ -688,7 +668,6 @@
1705 <include name="lib/jca-15.jar"/>
1706 <include name="lib/jms-11.jar"/>
1707 <include name="lib/jmx-12.jar"/>
1708 - <include name="lib/jsdk-24.jar"/>
1709 <include name="lib/jstl-11.jar"/>
1710 <include name="lib/jta-101.jar"/>
1711 <include name="lib/portlet-10.jar"/>
1712
1713
1714
1715 1.1 src/patchsets/resin/3.0.28/resin-3.0.28-wrapper.pl.patch
1716
1717 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/resin-3.0.28-wrapper.pl.patch?rev=1.1&view=markup
1718 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/resin/3.0.28/resin-3.0.28-wrapper.pl.patch?rev=1.1&content-type=text/plain
1719
1720 Index: resin-3.0.28-wrapper.pl.patch
1721 ===================================================================
1722 diff -Nru resin-3.0.28.vanilla/bin/wrapper.pl resin-3.0.28/bin/wrapper.pl
1723 --- resin-3.0.28.vanilla/bin/wrapper.pl 2009-06-28 11:33:00.000000000 +0100
1724 +++ resin-3.0.28/bin/wrapper.pl 2009-06-28 11:34:28.000000000 +0100
1725 @@ -447,9 +447,6 @@
1726 $pid=`cat $pid_file`;
1727 chop($pid);
1728
1729 - if ($cmd eq "stop") {
1730 - print("Stopping ${name}\n");
1731 - }
1732 $signal = 15;
1733 $count = 10;
1734 while (kill($signal, $pid) && $count-- > 0) {
1735 @@ -565,8 +562,6 @@
1736 $SIG{CHLD} = 'IGNORE';
1737 }
1738
1739 - print "\n\nResin wrapper.pl closing.\n\n";
1740 -
1741 close(S);
1742 close(C); # closing the accepted socket should start orderly shutdown
1743 # unlink needs to happen relatively soon so restart's pid won't
1744 @@ -744,8 +739,6 @@
1745 $date = `date`;
1746 chop($date);
1747
1748 - print "Resin $name $cmd at $date\n";
1749 -
1750 # create a keepalive socket
1751 # when the wrapper dies, the httpd class will detect that and
1752 # close gracefully
1753 diff -Nru resin-3.0.28.vanilla/bin/wrapper.pl.in resin-3.0.28/bin/wrapper.pl.in
1754 --- resin-3.0.28.vanilla/bin/wrapper.pl.in 2009-06-28 11:33:00.000000000 +0100
1755 +++ resin-3.0.28/bin/wrapper.pl.in 2009-06-28 11:34:28.000000000 +0100
1756 @@ -447,9 +447,6 @@
1757 $pid=`cat $pid_file`;
1758 chop($pid);
1759
1760 - if ($cmd eq "stop") {
1761 - print("Stopping ${name}\n");
1762 - }
1763 $signal = 15;
1764 $count = 10;
1765 while (kill($signal, $pid) && $count-- > 0) {
1766 @@ -565,8 +562,6 @@
1767 $SIG{CHLD} = 'IGNORE';
1768 }
1769
1770 - print "\n\nResin wrapper.pl closing.\n\n";
1771 -
1772 close(S);
1773 close(C); # closing the accepted socket should start orderly shutdown
1774 # unlink needs to happen relatively soon so restart's pid won't
1775 @@ -743,8 +738,6 @@
1776 $date = `date`;
1777 chop($date);
1778
1779 - print "Resin $name $cmd at $date\n";
1780 -
1781 # create a keepalive socket
1782 # when the wrapper dies, the httpd class will detect that and
1783 # close gracefully