summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2004-12-11 01:18:44 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2004-12-11 01:18:44 +0000
commit6b7343e7b4946e64215f878be0d0bbaf95a83415 (patch)
treebb9f3740fbd07f7918ec7b01aa31e2fef9a4c1a8 /www-apache
parentFixed ChangeLog header. (diff)
downloadhistorical-6b7343e7b4946e64215f878be0d0bbaf95a83415.tar.gz
historical-6b7343e7b4946e64215f878be0d0bbaf95a83415.tar.bz2
historical-6b7343e7b4946e64215f878be0d0bbaf95a83415.zip
Initial import. Fixes #18353.
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_jk2/ChangeLog11
-rw-r--r--www-apache/mod_jk2/Manifest6
-rw-r--r--www-apache/mod_jk2/files/89_mod_jk2.conf18
-rw-r--r--www-apache/mod_jk2/files/digest-mod_jk2-2.0.41
-rw-r--r--www-apache/mod_jk2/files/workers2.properties10
-rw-r--r--www-apache/mod_jk2/metadata.xml7
-rw-r--r--www-apache/mod_jk2/mod_jk2-2.0.4.ebuild48
7 files changed, 101 insertions, 0 deletions
diff --git a/www-apache/mod_jk2/ChangeLog b/www-apache/mod_jk2/ChangeLog
new file mode 100644
index 000000000000..4cf02ff2b625
--- /dev/null
+++ b/www-apache/mod_jk2/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for www-apache/mod_jk2
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_jk2/ChangeLog,v 1.1 2004/12/11 01:18:44 karltk Exp $
+
+*mod_jk2-2.0.4 (11 Dec 2004)
+
+ 11 Dec 2004; <karltk@gentoo.org> +metadata.xml, +files/89_mod_jk2.conf,
+ +files/workers2.properties, +mod_jk2-2.0.4.ebuild:
+ Initial import. Ebuild submitted by Mark Wolfe <mwolfe@netspace.net.au>.
+ Fixes #18353.
+
diff --git a/www-apache/mod_jk2/Manifest b/www-apache/mod_jk2/Manifest
new file mode 100644
index 000000000000..9de3bfee4cf5
--- /dev/null
+++ b/www-apache/mod_jk2/Manifest
@@ -0,0 +1,6 @@
+MD5 8f0c98828a0932c82af687bd7a060857 mod_jk2-2.0.4.ebuild 1528
+MD5 e756d74dffe50c1f1d7459896fe8ace4 ChangeLog 458
+MD5 349d3af72865d1e69d5d48d7c6d8a944 metadata.xml 159
+MD5 c6bcf5cf5fd668fefc072e92dd64ca1c files/89_mod_jk2.conf 588
+MD5 bc2adcea4c36c1955a114a0a22d3d0c9 files/workers2.properties 171
+MD5 248472015ef8fb286a8091498ec14f1a files/digest-mod_jk2-2.0.4 91
diff --git a/www-apache/mod_jk2/files/89_mod_jk2.conf b/www-apache/mod_jk2/files/89_mod_jk2.conf
new file mode 100644
index 000000000000..b35bbc5eafbb
--- /dev/null
+++ b/www-apache/mod_jk2/files/89_mod_jk2.conf
@@ -0,0 +1,18 @@
+<IfDefine JK2>
+ <IfModule !mod_jk2.c>
+ LoadModule jk2_module extramodules/mod_jk2.so
+
+ # for extra piece of mind we can project the WEB-INF directory
+ <Location "/jsp-examples/WEB-INF/">
+ AllowOverride None
+ deny from all
+ </Location>
+
+ # This is provided as an example of how to
+ # map a webapp from tomcat to a path in
+ # Apache.
+ <Location "/jsp-examples/*">
+ JkUriSet worker ajp13:localhost:8009
+ </Location>
+ </IfModule>
+</IfDefine>
diff --git a/www-apache/mod_jk2/files/digest-mod_jk2-2.0.4 b/www-apache/mod_jk2/files/digest-mod_jk2-2.0.4
new file mode 100644
index 000000000000..afd6b360033e
--- /dev/null
+++ b/www-apache/mod_jk2/files/digest-mod_jk2-2.0.4
@@ -0,0 +1 @@
+MD5 444bef31619f772df1f0b1c50e6ba773 jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz 907088
diff --git a/www-apache/mod_jk2/files/workers2.properties b/www-apache/mod_jk2/files/workers2.properties
new file mode 100644
index 000000000000..2d1e642ac3be
--- /dev/null
+++ b/www-apache/mod_jk2/files/workers2.properties
@@ -0,0 +1,10 @@
+[channel.socket:localhost:8009]
+port=8009
+host=127.0.0.1
+
+[ajp13:localhost:8009]
+channel=channel.socket:localhost:8009
+
+[uri:/jsp-examples/*]
+worker=ajp13:localhost:8009
+
diff --git a/www-apache/mod_jk2/metadata.xml b/www-apache/mod_jk2/metadata.xml
new file mode 100644
index 000000000000..1f0730a7d38b
--- /dev/null
+++ b/www-apache/mod_jk2/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>java</herd>
+
+</pkgmetadata>
diff --git a/www-apache/mod_jk2/mod_jk2-2.0.4.ebuild b/www-apache/mod_jk2/mod_jk2-2.0.4.ebuild
new file mode 100644
index 000000000000..95e496884b1f
--- /dev/null
+++ b/www-apache/mod_jk2/mod_jk2-2.0.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_jk2/mod_jk2-2.0.4.ebuild,v 1.1 2004/12/11 01:18:44 karltk Exp $
+
+DESCRIPTION="JK2 module that is used to connect tomcat to apache2 using the ajp13 protocol"
+HOMEPAGE="http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html"
+SRC_URI="mirror://apache/jakarta/tomcat-connectors/jk2/source/jakarta-tomcat-connectors-jk2-${PV}-src.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND="=net-www/apache-2*
+ >=virtual/jdk-1.4"
+RDEPEND="=net-www/apache-2*
+ >=virtual/jre-1.4"
+
+S=${WORKDIR}/jakarta-tomcat-connectors-jk2-${PV}-src
+
+src_compile() {
+ cd ${S}/jk/native2
+ econf --with-apxs2=/usr/sbin/apxs2 --with-jni --with-pcre
+ emake || die "emake failed"
+}
+src_install() {
+ cd ${S}/jk/native2
+ dodoc CHANGES.txt README.txt INSTALL.txt
+
+ cd ${S}/jk/build/jk2
+ exeinto /usr/lib/apache2-extramodules/
+ doexe apache2/mod_jk2.so
+ doexe apache2/libjkjni.so
+
+ einfo "Installing a Apache2 config for mod_jk (89_mod_jk2.conf)"
+ insinto /etc/apache2/conf/modules.d
+ doins ${FILESDIR}/89_mod_jk2.conf
+ insinto /etc/apache2/conf
+ doins ${FILESDIR}/workers2.properties
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Please add \"-D JK2\" to your /etc/conf.d/apache2 file to"
+ einfo "allow apache2 to recognize and load the mod_jk2 module."
+ einfo
+ einfo "A basic workers2.properties file has been created in"
+ einfo "/etc/apache2/conf/. Modify it before loading mod_jk2."
+ einfo
+}