summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2007-08-17 08:21:44 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2007-08-17 08:21:44 +0000
commit8abbe1b66223b420ffe0075e3c72570446b9d612 (patch)
tree89cd77183baf73ad42e8ee7d8942d9a1ff03831c
parentVersion bump. (diff)
downloadgentoo-2-8abbe1b66223b420ffe0075e3c72570446b9d612.tar.gz
gentoo-2-8abbe1b66223b420ffe0075e3c72570446b9d612.tar.bz2
gentoo-2-8abbe1b66223b420ffe0075e3c72570446b9d612.zip
Version bump.
(Portage version: 2.1.3.6)
-rw-r--r--www-apache/mod_caucho/ChangeLog14
-rw-r--r--www-apache/mod_caucho/files/digest-mod_caucho-3.0.243
-rw-r--r--www-apache/mod_caucho/files/digest-mod_caucho-3.1.23
-rw-r--r--www-apache/mod_caucho/files/mod_caucho-3.0.24-disable-sticky-sessions.patch30
-rw-r--r--www-apache/mod_caucho/files/mod_caucho-3.0.24-gentoo.patch17
-rw-r--r--www-apache/mod_caucho/files/mod_caucho-3.0.24-java.patch126
-rw-r--r--www-apache/mod_caucho/files/mod_caucho-3.0.24-ssl.patch20
-rw-r--r--www-apache/mod_caucho/files/mod_caucho-3.1.2-gentoo.patch17
-rw-r--r--www-apache/mod_caucho/files/mod_caucho-3.1.2-java.patch131
-rw-r--r--www-apache/mod_caucho/files/mod_caucho-3.1.2-ssl.patch20
-rw-r--r--www-apache/mod_caucho/mod_caucho-3.0.24.ebuild49
-rw-r--r--www-apache/mod_caucho/mod_caucho-3.1.2.ebuild51
12 files changed, 480 insertions, 1 deletions
diff --git a/www-apache/mod_caucho/ChangeLog b/www-apache/mod_caucho/ChangeLog
index 5be4ecc31b5f..ba460123bf01 100644
--- a/www-apache/mod_caucho/ChangeLog
+++ b/www-apache/mod_caucho/ChangeLog
@@ -1,6 +1,18 @@
# ChangeLog for www-apache/mod_caucho
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_caucho/ChangeLog,v 1.18 2007/06/16 22:46:57 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_caucho/ChangeLog,v 1.19 2007/08/17 08:21:44 nelchael Exp $
+
+*mod_caucho-3.1.2 (17 Aug 2007)
+*mod_caucho-3.0.24 (17 Aug 2007)
+
+ 17 Aug 2007; Krzysiek Pawlik <nelchael@gentoo.org>
+ +files/mod_caucho-3.0.24-disable-sticky-sessions.patch,
+ +files/mod_caucho-3.0.24-gentoo.patch,
+ +files/mod_caucho-3.0.24-java.patch, +files/mod_caucho-3.0.24-ssl.patch,
+ +files/mod_caucho-3.1.2-gentoo.patch, +files/mod_caucho-3.1.2-java.patch,
+ +files/mod_caucho-3.1.2-ssl.patch, +mod_caucho-3.0.24.ebuild,
+ +mod_caucho-3.1.2.ebuild:
+ Version bump.
*mod_caucho-3.1.1-r1 (16 Jun 2007)
*mod_caucho-3.0.23-r1 (16 Jun 2007)
diff --git a/www-apache/mod_caucho/files/digest-mod_caucho-3.0.24 b/www-apache/mod_caucho/files/digest-mod_caucho-3.0.24
new file mode 100644
index 000000000000..42192b685b09
--- /dev/null
+++ b/www-apache/mod_caucho/files/digest-mod_caucho-3.0.24
@@ -0,0 +1,3 @@
+MD5 9310288218c7cb4c97f68a966600fede resin-3.0.24-src.zip 10688883
+RMD160 84aeee1482ac41d4e596c6800c7ab72c3a448d54 resin-3.0.24-src.zip 10688883
+SHA256 d7862e12245f5620dd198bdf10e3c5486fe6bd6262bdf0be3a7bb29280e70a1c resin-3.0.24-src.zip 10688883
diff --git a/www-apache/mod_caucho/files/digest-mod_caucho-3.1.2 b/www-apache/mod_caucho/files/digest-mod_caucho-3.1.2
new file mode 100644
index 000000000000..7df0a0078aca
--- /dev/null
+++ b/www-apache/mod_caucho/files/digest-mod_caucho-3.1.2
@@ -0,0 +1,3 @@
+MD5 f9cd79d9f5b12bf163ef632da8c9e4e3 resin-3.1.2-src.zip 13317024
+RMD160 33989f69c6d757fe5cf4ea50077f503fc68e98d1 resin-3.1.2-src.zip 13317024
+SHA256 3e56d9437091597b7d0bf6523254b753733533dbfbb4160af21b1cadf793d081 resin-3.1.2-src.zip 13317024
diff --git a/www-apache/mod_caucho/files/mod_caucho-3.0.24-disable-sticky-sessions.patch b/www-apache/mod_caucho/files/mod_caucho-3.0.24-disable-sticky-sessions.patch
new file mode 100644
index 000000000000..1e49f750218a
--- /dev/null
+++ b/www-apache/mod_caucho/files/mod_caucho-3.0.24-disable-sticky-sessions.patch
@@ -0,0 +1,30 @@
+diff -Nru resin-3.0.23.vanilla/modules/c/src/apache2/mod_caucho.c resin-3.0.23/modules/c/src/apache2/mod_caucho.c
+--- resin-3.0.23.vanilla/modules/c/src/apache2/mod_caucho.c 2006-11-01 19:09:04.000000000 +0100
++++ resin-3.0.23/modules/c/src/apache2/mod_caucho.c 2007-05-22 11:02:20.000000000 +0200
+@@ -391,6 +391,16 @@
+ }
+
+ /**
++ * Parse the CauchoDisableStickySessions configuration in the apache config file.
++ */
++static const char cse_disable_sticky_sessions(cmd_parms *cmd, void *pconfig, int on)
++{
++ config_t *config = pconfig;
++ config->disable_sticky_sessions = on;
++ return 0;
++}
++
++/**
+ * Parse the CauchoBackup configuration in the apache config file.
+ */
+ static const char *
+@@ -1215,6 +1225,9 @@
+ AP_INIT_TAKE1("CauchoConfigCacheDirectory", resin_config_cache_command,
+ NULL, RSRC_CONF|ACCESS_CONF,
+ "Configures the saved configuration file."),
++ AP_INIT_FLAG("CauchoDisableStickySessions", cse_disable_sticky_sessions,
++ NULL, RSRC_CONF,
++ "Disable sticky sessions."),
+ {NULL}
+ };
+
diff --git a/www-apache/mod_caucho/files/mod_caucho-3.0.24-gentoo.patch b/www-apache/mod_caucho/files/mod_caucho-3.0.24-gentoo.patch
new file mode 100644
index 000000000000..71920c0feb95
--- /dev/null
+++ b/www-apache/mod_caucho/files/mod_caucho-3.0.24-gentoo.patch
@@ -0,0 +1,17 @@
+diff -Nru resin-3.0.23.vanilla/modules/c/src/apache2/Makefile.in resin-3.0.23/modules/c/src/apache2/Makefile.in
+--- resin-3.0.23.vanilla/modules/c/src/apache2/Makefile.in 2006-08-14 22:44:04.000000000 +0200
++++ resin-3.0.23/modules/c/src/apache2/Makefile.in 2006-08-14 23:24:00.000000000 +0200
+@@ -36,11 +36,8 @@
+ $(CC) -c $(INCLUDES) $(CFLAGS) $<
+
+ install : mod_caucho.la
+- $(LIBTOOL) --mode=install $(CP) mod_caucho.la $(apache_libexec)
+- - rm -f $(apache_libexec)/mod_caucho.la
+- - rm -f $(apache_libexec)/mod_caucho.a
+- sh install.sh -conf $(apache_conf) -libexec $(apache_libexec) \
+- -resin_home $(resin_home)
++ mkdir -p $(DESTDIR)$(apache_libexec)
++ $(LIBTOOL) --mode=install $(CP) mod_caucho.la $(DESTDIR)$(apache_libexec)
+
+ clean :
+ - rm -r *.o *.lo *.la *.so .libs
diff --git a/www-apache/mod_caucho/files/mod_caucho-3.0.24-java.patch b/www-apache/mod_caucho/files/mod_caucho-3.0.24-java.patch
new file mode 100644
index 000000000000..f5ac7e24d801
--- /dev/null
+++ b/www-apache/mod_caucho/files/mod_caucho-3.0.24-java.patch
@@ -0,0 +1,126 @@
+--- resin-3.0.23.vanilla/configure.in 2007-04-14 22:51:15.000000000 +0200
++++ resin-3.0.23/configure.in 2007-04-14 22:54:46.000000000 +0200
+@@ -427,54 +427,6 @@
+ fi
+ fi
+ #
+-# --with-java-home
+-#
+-AC_ARG_WITH(java-home,
+-[ --with-java-home=DIR java home
+-], [
+-JAVA_HOME=${withval}
+-])
+-
+-if test -z "$JAVA_HOME"; then
+- java=`which java 2>/dev/null`
+- if test $? = "0"; then
+- while test -h "$java"
+- do
+- head=`dirname $java`
+- tail=`/bin/ls -l $java | awk '{ print $NF; }'`
+- if test -f "$tail"; then
+- java=$tail
+- else
+- java=$head/$tail
+- fi
+- done
+-
+- javabin=`dirname $java`
+- JAVA_HOME=`cd $javabin/..; pwd`
+-
+- # we're in $JAVA_HOME/jre
+- if test -f "$JAVA_HOME/lib/rt.jar"; then
+- JAVA_HOME=`cd $JAVA_HOME/..; pwd`
+- elif test -d "/usr/java"; then
+- JAVA_HOME=/usr/java
+- elif test -f "/System/Library/Frameworks/JavaVM.framework"; then
+- JAVA_HOME="/System/Library/Frameworks/JavaVM.framework"
+- fi
+- elif test -d "/usr/java"; then
+- JAVA_HOME=/usr/java
+- elif test -f "/System/Library/Frameworks/JavaVM.framework"; then
+- JAVA_HOME="/System/Library/Frameworks/JavaVM.framework"
+- fi
+-fi
+-
+-echo $ac_n "checking for JAVA_HOME... $JAVA_HOME"
+-
+-if test ! -d "$JAVA_HOME"; then
+- AC_MSG_ERROR([Can't find valid JAVA_HOME ${JAVA_HOME}])
+-fi
+-
+-AC_SUBST(JAVA_HOME)
+-#
+ # Resin home
+ #
+ resin_home=`pwd`
+@@ -870,68 +822,6 @@
+ AC_SUBST(SSL_LIBS)
+
+ #
+-# --with-jni-include
+-#
+-AC_ARG_WITH(jni-include,
+-[ --with-jni-include="-Idir -Idir" jni include string
+-], [
+-JNI_INCLUDE=${withval}
+-JNI="yes"
+-])
+-
+-#
+-# --enable-jni
+-#
+-AC_ARG_ENABLE(jni,
+-[ --enable-jni Turn on jni],
+-[case "${enableval}" in
+- yes) JNI=true ;;
+- no) JNI="" ;;
+- *) AC_MSG_ERROR(bad value ${enableval} for --enable-jni) ;;
+- esac],[JNI=""])
+-
+-if test -n "$JNI_INCLUDE"; then
+- JNI=yes
+-elif test -r "$JAVA_HOME/include/jni_md.h"; then
+- JNI_INCLUDE="-I$JAVA_HOME/include"
+- JNI=yes
+- echo "checking for JNI in $JAVA_HOME/include ... found"
+-elif test -r "$JAVA_HOME/include/$jni_os/jni_md.h"; then
+- JNI_INCLUDE="-I$JAVA_HOME/include -I$JAVA_HOME/include/$jni_os"
+- JNI=yes
+- echo "checking for JNI in $JAVA_HOME/include/$jni_os ... found"
+-elif test -r "/System/Library/Frameworks/JavaVM.framework/Headers/jni_md.h"; then
+- # Darwin
+- echo "checking for JNI in /System/Library/Frameworks/JavaVM.framework/Headers ... found"
+- JNI_INCLUDE="-I/System/Library/Frameworks/JavaVM.framework/Headers"
+- JNI=yes
+-else
+- JNI=""
+- AC_MSG_WARN([Can't find JNI directory ${JAVA_HOME}/include/$jni_os])
+-fi
+-
+-if test -r "$JAVA_HOME/include/jvmti.h"; then
+- echo "Using JVMTI for class reloading"
+-
+- CFLAGS="$CFLAGS -DHAS_JVMTI"
+-fi
+-
+-if test -r "$JAVA_HOME/include/jvmdi.h"; then
+- echo "Using JVMDI for class reloading"
+-
+- CFLAGS="$CFLAGS -DHAS_JVMDI"
+-fi
+-
+-if test -n "$JNI"; then
+- plugins="$plugins $resin_plugin resin_os"
+-else
+- echo "Can't JNI include files in JAVA_HOME: $JAVA_HOME"
+-fi
+-
+-AC_SUBST(JNI)
+-AC_SUBST(JNI_INCLUDE)
+-
+-#
+ # --enable-ssl
+ #
+ AC_ARG_ENABLE(ssl,
diff --git a/www-apache/mod_caucho/files/mod_caucho-3.0.24-ssl.patch b/www-apache/mod_caucho/files/mod_caucho-3.0.24-ssl.patch
new file mode 100644
index 000000000000..343e3b864446
--- /dev/null
+++ b/www-apache/mod_caucho/files/mod_caucho-3.0.24-ssl.patch
@@ -0,0 +1,20 @@
+diff -Nru resin-3.0.23.vanilla/modules/c/src/apache2/mod_caucho.c resin-3.0.23/modules/c/src/apache2/mod_caucho.c
+--- resin-3.0.23.vanilla/modules/c/src/apache2/mod_caucho.c 2007-04-13 15:41:18.000000000 +0200
++++ resin-3.0.23/modules/c/src/apache2/mod_caucho.c 2007-04-13 16:00:24.000000000 +0200
+@@ -582,6 +582,16 @@
+ }
+ }
+ #endif
++ /* Add SSL Client certificate: (requires SSLOptions +StdEnvVars) */
++ {
++ int i;
++ char **env = (char **)ap_create_environment(r->pool, r->subprocess_env);
++ for (i = 0; env[i]; ++i) {
++ char *name = strsep(&(env[i]), "=");
++ if (strncmp(name, "SSL_CLIENT_CERT", 16) == 0)
++ cse_write_string(s, CSE_CLIENT_CERT, env[i]);
++ }
++ }
+ }
+
+ /**
diff --git a/www-apache/mod_caucho/files/mod_caucho-3.1.2-gentoo.patch b/www-apache/mod_caucho/files/mod_caucho-3.1.2-gentoo.patch
new file mode 100644
index 000000000000..c2160d8a9654
--- /dev/null
+++ b/www-apache/mod_caucho/files/mod_caucho-3.1.2-gentoo.patch
@@ -0,0 +1,17 @@
+diff -Nru resin-3.1.1.vanilla/modules/c/src/apache2/Makefile.in resin-3.1.1/modules/c/src/apache2/Makefile.in
+--- resin-3.1.1.vanilla/modules/c/src/apache2/Makefile.in 2006-12-26 02:44:02.000000000 +0100
++++ resin-3.1.1/modules/c/src/apache2/Makefile.in 2006-12-26 02:46:14.000000000 +0100
+@@ -36,11 +36,8 @@
+ $(CC) -c $(INCLUDES) $(CFLAGS) $<
+
+ install : mod_caucho.la
+- $(LIBTOOL) --mode=install $(CP) mod_caucho.la $(apache_libexec)
+- - rm -f $(apache_libexec)/mod_caucho.la
+- - rm -f $(apache_libexec)/mod_caucho.a
+- sh install.sh -conf $(apache_conf) -libexec $(apache_libexec) \
+- -resin_home $(resin_home)
++ mkdir -p $(DESTDIR)$(apache_libexec)
++ $(LIBTOOL) --mode=install $(CP) mod_caucho.la $(DESTDIR)$(apache_libexec)
+
+ clean :
+ - rm -r *.o *.lo *.la *.so .libs
diff --git a/www-apache/mod_caucho/files/mod_caucho-3.1.2-java.patch b/www-apache/mod_caucho/files/mod_caucho-3.1.2-java.patch
new file mode 100644
index 000000000000..37fa05011260
--- /dev/null
+++ b/www-apache/mod_caucho/files/mod_caucho-3.1.2-java.patch
@@ -0,0 +1,131 @@
+diff -Nru resin-3.1.2.vanilla/configure.in resin-3.1.2/configure.in
+--- resin-3.1.2.vanilla/configure.in 2007-08-17 10:14:28.000000000 +0200
++++ resin-3.1.2/configure.in 2007-08-17 10:14:59.000000000 +0200
+@@ -442,54 +442,6 @@
+ fi
+ fi
+ #
+-# --with-java-home
+-#
+-AC_ARG_WITH(java-home,
+-[ --with-java-home=DIR java home
+-], [
+-JAVA_HOME=${withval}
+-])
+-
+-if test -z "$JAVA_HOME"; then
+- java=`which java 2>/dev/null`
+- if test $? = "0"; then
+- while test -h "$java"
+- do
+- head=`dirname $java`
+- tail=`/bin/ls -l $java | awk '{ print $NF; }'`
+- if test -f "$tail"; then
+- java=$tail
+- else
+- java=$head/$tail
+- fi
+- done
+-
+- javabin=`dirname $java`
+- JAVA_HOME=`cd $javabin/..; pwd`
+-
+- # we're in $JAVA_HOME/jre
+- if test -f "$JAVA_HOME/lib/rt.jar"; then
+- JAVA_HOME=`cd $JAVA_HOME/..; pwd`
+- elif test -d "/usr/java"; then
+- JAVA_HOME=/usr/java
+- elif test -f "/System/Library/Frameworks/JavaVM.framework"; then
+- JAVA_HOME="/System/Library/Frameworks/JavaVM.framework"
+- fi
+- elif test -d "/usr/java"; then
+- JAVA_HOME=/usr/java
+- elif test -f "/System/Library/Frameworks/JavaVM.framework"; then
+- JAVA_HOME="/System/Library/Frameworks/JavaVM.framework"
+- fi
+-fi
+-
+-echo $ac_n "checking for JAVA_HOME... $JAVA_HOME"
+-
+-if test ! -d "$JAVA_HOME"; then
+- AC_MSG_ERROR([Can't find valid JAVA_HOME ${JAVA_HOME}])
+-fi
+-
+-AC_SUBST(JAVA_HOME)
+-#
+ # Resin home
+ #
+ resin_home=`pwd`
+@@ -814,72 +766,6 @@
+ AC_SUBST(SSL_LIBS)
+
+ #
+-# --with-jni-include
+-#
+-AC_ARG_WITH(jni-include,
+-[ --with-jni-include="-Idir -Idir" jni include string
+-], [
+-JNI_INCLUDE=${withval}
+-JNI="yes"
+-])
+-
+-#
+-# --enable-jni
+-#
+-AC_ARG_ENABLE(jni,
+-[ --enable-jni Turn on jni],
+-[case "${enableval}" in
+- yes) JNI=true ;;
+- no) JNI="" ;;
+- *) AC_MSG_ERROR(bad value ${enableval} for --enable-jni) ;;
+- esac],[JNI=""])
+-
+-if test -n "$JNI_INCLUDE"; then
+- JNI=yes
+-elif test -r "$JAVA_HOME/include/jni_md.h"; then
+- JNI_INCLUDE="-I$JAVA_HOME/include"
+- JNI=yes
+- echo "checking for JNI in $JAVA_HOME/include ... found"
+-elif test -r "$JAVA_HOME/include/$jni_os/jni_md.h"; then
+- JNI_INCLUDE="-I$JAVA_HOME/include -I$JAVA_HOME/include/$jni_os"
+- JNI=yes
+- echo "checking for JNI in $JAVA_HOME/include/$jni_os ... found"
+-elif test -r "/System/Library/Frameworks/JavaVM.framework/Headers/jni_md.h"; then
+- # Darwin
+- echo "checking for JNI in /System/Library/Frameworks/JavaVM.framework/Headers ... found"
+- JNI_INCLUDE="-I/System/Library/Frameworks/JavaVM.framework/Headers"
+- JNI=yes
+-elif test -r "$JAVA_HOME/include/jni.h"; then
+- JNI_INCLUDE="-I$JAVA_HOME/include"
+- JNI=yes
+- echo "checking for JNI in $JAVA_HOME/include ... found"
+-else
+- JNI=""
+- AC_MSG_WARN([Can't find JNI directory ${JAVA_HOME}/include/$jni_os])
+-fi
+-
+-if test -r "$JAVA_HOME/include/jvmti.h"; then
+- echo "Using JVMTI for class reloading"
+-
+- CFLAGS="$CFLAGS -DHAS_JVMTI"
+-fi
+-
+-if test -r "$JAVA_HOME/include/jvmdi.h"; then
+- echo "Using JVMDI for class reloading"
+-
+- CFLAGS="$CFLAGS -DHAS_JVMDI"
+-fi
+-
+-if test -n "$JNI"; then
+- plugins="$plugins $resin_plugin resin_os"
+-else
+- echo "Can't JNI include files in JAVA_HOME: $JAVA_HOME"
+-fi
+-
+-AC_SUBST(JNI)
+-AC_SUBST(JNI_INCLUDE)
+-
+-#
+ # --enable-ssl
+ #
+ AC_ARG_ENABLE(ssl,
diff --git a/www-apache/mod_caucho/files/mod_caucho-3.1.2-ssl.patch b/www-apache/mod_caucho/files/mod_caucho-3.1.2-ssl.patch
new file mode 100644
index 000000000000..1cfcdc397b8a
--- /dev/null
+++ b/www-apache/mod_caucho/files/mod_caucho-3.1.2-ssl.patch
@@ -0,0 +1,20 @@
+diff -Nru resin-3.1.1.vanilla/modules/c/src/apache2/mod_caucho.c resin-3.1.1/modules/c/src/apache2/mod_caucho.c
+--- resin-3.1.1.vanilla/modules/c/src/apache2/mod_caucho.c 2007-04-13 15:41:18.000000000 +0200
++++ resin-3.1.1/modules/c/src/apache2/mod_caucho.c 2007-04-13 16:00:24.000000000 +0200
+@@ -582,6 +582,16 @@
+ }
+ }
+ #endif
++ /* Add SSL Client certificate: (requires SSLOptions +StdEnvVars) */
++ {
++ int i;
++ char **env = (char **)ap_create_environment(r->pool, r->subprocess_env);
++ for (i = 0; env[i]; ++i) {
++ char *name = strsep(&(env[i]), "=");
++ if (strncmp(name, "SSL_CLIENT_CERT", 16) == 0)
++ cse_write_string(s, CSE_CLIENT_CERT, env[i]);
++ }
++ }
+ }
+
+ /**
diff --git a/www-apache/mod_caucho/mod_caucho-3.0.24.ebuild b/www-apache/mod_caucho/mod_caucho-3.0.24.ebuild
new file mode 100644
index 000000000000..61b168122c47
--- /dev/null
+++ b/www-apache/mod_caucho/mod_caucho-3.0.24.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_caucho/mod_caucho-3.0.24.ebuild,v 1.1 2007/08/17 08:21:44 nelchael Exp $
+
+inherit eutils apache-module autotools
+
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DESCRIPTION="mod_caucho connects Resin and Apache2."
+HOMEPAGE="http://www.caucho.com/"
+SRC_URI="http://www.caucho.com/download/resin-${PV}-src.zip"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+S="${WORKDIR}/resin-${PV}"
+
+# See apache-module.eclass for more information.
+APACHE2_MOD_CONF="88_${PN}"
+APACHE2_MOD_DEFINE="CAUCHO"
+
+need_apache2
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+ epatch "${FILESDIR}/${P}-ssl.patch"
+ epatch "${FILESDIR}/${P}-java.patch"
+ epatch "${FILESDIR}/${P}-disable-sticky-sessions.patch"
+ eautoreconf
+ chmod 755 ./configure
+}
+
+src_compile() {
+ econf --with-apxs=${APXS2} || die "econf failed"
+
+ emake -j1 -C "${S}/modules/c/src/apache2/" || die "emake failed"
+}
+
+src_install() {
+ cd "${S}/modules/c/src/apache2"
+ emake -j1 DESTDIR="${D}" install || die "emake install failed"
+
+ insinto "${APACHE2_MODULES_CONFDIR}"
+ doins "${FILESDIR}/${APACHE2_MOD_CONF}.conf" \
+ || die "internal ebuild error: '${FILESDIR}/${APACHE2_MOD_CONF}.conf' not found."
+}
diff --git a/www-apache/mod_caucho/mod_caucho-3.1.2.ebuild b/www-apache/mod_caucho/mod_caucho-3.1.2.ebuild
new file mode 100644
index 000000000000..218bad4f20d1
--- /dev/null
+++ b/www-apache/mod_caucho/mod_caucho-3.1.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_caucho/mod_caucho-3.1.2.ebuild,v 1.1 2007/08/17 08:21:44 nelchael Exp $
+
+inherit eutils apache-module autotools
+
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DESCRIPTION="mod_caucho connects Resin and Apache2."
+HOMEPAGE="http://www.caucho.com/"
+SRC_URI="http://www.caucho.com/download/resin-${PV}-src.zip"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/resin-${PV}"
+
+# See apache-module.eclass for more information.
+APACHE2_MOD_CONF="88_${PN}"
+APACHE2_MOD_DEFINE="CAUCHO"
+
+need_apache2
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+ epatch "${FILESDIR}/${P}-ssl.patch"
+ epatch "${FILESDIR}/${P}-java.patch"
+ eautoreconf
+ chmod 755 ./configure
+}
+
+src_compile() {
+ econf --with-apxs=${APXS2} || die "econf failed"
+
+ emake -j1 -C "${S}/modules/c/src/apache2/" || die "emake failed"
+}
+
+src_install() {
+ cd "${S}/modules/c/src/apache2"
+ emake -j1 DESTDIR="${D}" install || die "emake install failed"
+
+ insinto "${APACHE2_MODULES_CONFDIR}"
+ doins "${FILESDIR}/${APACHE2_MOD_CONF}.conf" \
+ || die "internal ebuild error: '${FILESDIR}/${APACHE2_MOD_CONF}.conf' not found."
+}