summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-04-14 19:37:59 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-04-14 19:37:59 +0000
commit8b4678fcc147a4036c396d803aa1b57e9bed271a (patch)
treef9d12d32826abbe82fae2b4f3b9f573249724429 /www-apache/mod_jk
parentVersion bump. (diff)
downloadgentoo-2-8b4678fcc147a4036c396d803aa1b57e9bed271a.tar.gz
gentoo-2-8b4678fcc147a4036c396d803aa1b57e9bed271a.tar.bz2
gentoo-2-8b4678fcc147a4036c396d803aa1b57e9bed271a.zip
Inital import. Ebuild is based on the apache-module.eclass, fixes #19094. Special thanks to trapni and beu for offering that much help.
(Portage version: 2.0.51.19)
Diffstat (limited to 'www-apache/mod_jk')
-rw-r--r--www-apache/mod_jk/ChangeLog11
-rw-r--r--www-apache/mod_jk/Manifest6
-rw-r--r--www-apache/mod_jk/files/88_mod_jk.conf158
-rw-r--r--www-apache/mod_jk/files/digest-mod_jk-1.2.101
-rw-r--r--www-apache/mod_jk/files/jk-workers.properties47
-rw-r--r--www-apache/mod_jk/metadata.xml9
-rw-r--r--www-apache/mod_jk/mod_jk-1.2.10.ebuild58
7 files changed, 290 insertions, 0 deletions
diff --git a/www-apache/mod_jk/ChangeLog b/www-apache/mod_jk/ChangeLog
new file mode 100644
index 000000000000..858492877bfc
--- /dev/null
+++ b/www-apache/mod_jk/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for www-apache/mod_jk
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_jk/ChangeLog,v 1.1 2005/04/14 19:37:58 luckyduck Exp $
+
+*mod_jk-1.2.10 (14 Apr 2005)
+
+ 14 Apr 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml,
+ +files/88_mod_jk.conf, +files/jk-workers.properties, +mod_jk-1.2.10.ebuild:
+ Inital import. Ebuild is based on the apache-module.eclass, fixes #19094.
+ Special thanks to trapni and beu for offering that much help.
+
diff --git a/www-apache/mod_jk/Manifest b/www-apache/mod_jk/Manifest
new file mode 100644
index 000000000000..71942072dc00
--- /dev/null
+++ b/www-apache/mod_jk/Manifest
@@ -0,0 +1,6 @@
+MD5 321237280a5d0ce78d7ef78a95132291 mod_jk-1.2.10.ebuild 1396
+MD5 70e6c761e9712e43c1f08e2d1fe9cd49 ChangeLog 434
+MD5 11ef6cb34c4b91bfd47d0587040d276b metadata.xml 254
+MD5 86fedc18b7719c7544590cbe38781ad5 files/jk-workers.properties 1380
+MD5 4816b7fbdd754d6ad17f967ec252ea39 files/digest-mod_jk-1.2.10 88
+MD5 1e8094206c6318f27770a5d0062d59d6 files/88_mod_jk.conf 5392
diff --git a/www-apache/mod_jk/files/88_mod_jk.conf b/www-apache/mod_jk/files/88_mod_jk.conf
new file mode 100644
index 000000000000..4044a18326ac
--- /dev/null
+++ b/www-apache/mod_jk/files/88_mod_jk.conf
@@ -0,0 +1,158 @@
+<IfDefine JK>
+LoadModule jk_module modules/mod_jk.so
+
+###
+### Where to find workers.properties
+###
+# JkWorkersFile specify the location where mod_jk will find
+# the workers definitions.
+JkWorkersFile conf/jk-workers.properties
+
+
+###
+### Where to put mod_jk logs
+###
+# specify the location where mod_jk is going to place its log file.
+JkLogFile logs/mod_jk.log
+
+
+###
+### Set the jk log level [debug/error/info]
+###
+# info log will contains standard mod_jk activity (default).
+# error log will contains also error reports.
+# debug log will contains all informations on mod_jk activity
+#JkLogLevel info
+
+
+###
+### Select the log format
+###
+# JkLogStampFormat will configure the date/time format found
+# on mod_jk logfile. Using the strftime() format string it's
+# set by default to "[%a %b %d %H:%M:%S %Y]"
+#JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
+
+
+###
+### JkOptions indicate to send SSL KEY SIZE,
+###
+# The directive JkOptions allow you to set many forwarding
+# options which will enable (+) or disable (-) following option.
+#
+#
+# JkOptions ForwardKeySize , you ask mod_jk, when using ajp13, to
+# forward also the SSL Key Size as required by Servlet API 2.3.
+# This flag shouldn't be set when servlet engine is Tomcat 3.2.x
+# (on by default).
+#
+#
+# JkOptions ForwardURICompat , you told mod_jk to send the URI to
+# Tomcat normally, which is less spec compliant but mod_rewrite
+# compatible, use it for compatibility with Tomcat 3.2.x engines
+# (on by default).
+#
+#
+# JkOptions ForwardURICompatUnparsed , the forwarded URI is unparsed,
+# it's spec compliant but broke mod_rewrite.
+#
+#
+# JkOptions ForwardURIEscaped , the forwarded URI is escaped and
+# Tomcat (since 3.3 rc2) will do the decoding part.
+#
+#
+# JkOptions ForwardDirectories is used in conjunction with Directory-
+# Index directive of Apache web server. As such mod_dir should be
+# available to Apache, statically or dynamically (DSO)
+#
+# When DirectoryIndex is configured, Apache will create sub-requests
+# for each of the local-url's specified in the directive, to determine
+# if there is a local file that matches (this is done by stat-ing the file).
+#
+# If ForwardDirectories is set to false (default) and Apache doesn't
+# find any files that match, Apache will serve the content of the
+# directory (if directive Options specifies Indexes for that directory)
+# or a 403 Forbidden response (if directive Options doesn't specify
+# Indexes for that directory).
+#
+# If ForwarDirectories is set to true and Apache doesn't find any
+# files that match, the request will be forwarded to Tomcat for
+# resolution. This is used in cases when Apache cannot see the index
+# files on the file system for various reasons: Tomcat is running on
+# a different machine, the JSP file has been precompiled etc.
+#
+# Note that locally visible files will take precedence over the ones
+# visible only to Tomcat (i.e. if Apache can see the file, that's
+# the one that's going to get served). This is important if there is
+# more then one type of file that Tomcat normally serves - for
+# instance Velocity pages and JSP pages.
+#
+JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
+
+
+###
+### JkEnvVar forward environment vars
+###
+# The directive JkEnvVar allow you to forward an environment vars
+# from Apache server to Tomcat engine.
+#
+#JkEnvVar SSL_CLIENT_V_START
+
+
+###
+### JkRequestLogFormat set the request format
+###
+# JkRequestLogFormat will configure the format of mod_jk individual
+# request logging. Request logging is configured and enabled on a
+# per virtual host basis. To enable request logging for a virtual
+# host just add a JkRequestLogFormat config. The syntax of the
+# format string is similiar to the Apache LogFormat command, here
+# is a list of the available request log format options:
+#
+# Options Description
+# %b Bytes sent, excluding HTTP headers (CLF format)
+# %B Bytes sent, excluding HTTP headers
+# %H The request protocol
+# %m The request method
+# %p The canonical Port of the server serving the request
+# %q The query string (prepended with a ? if a query string exists, otherwise an empty string)
+# %r First line of request
+# %s Request HTTP status code
+# %T Request duration, elapsed time to handle request in seconds '.' micro seconds
+# %U The URL path requested, not including any query string.
+# %v The canonical ServerName of the server serving the request
+# %V The server name according to the UseCanonicalName setting
+# %w Tomcat worker name
+#
+JkRequestLogFormat "%w %V %T"
+
+
+###
+### JkMount assign specific URLs to Tomcat
+###
+# JkMount directive assign specific URLs to Tomcat. In general the
+# structure of a JkMount directive is:
+#
+# send all requests ending in .jsp to worker1
+# JkMount /*.jsp worker1
+#
+# send all requests ending /servlet to worker1
+# JkMount /*/servlet/ worker1
+#
+# send all requests jsp requests to files located in /otherworker will go worker2
+# JkMount /otherworker/*.jsp worker2
+#
+#
+# You can use the JkMount directive at the top level or inside
+# <VirtualHost> sections of your httpd.conf file.
+#
+
+
+# We specify an autoalias, that makes it possible that apache is still
+# reponsible for serving static html files. All requests of files with
+# the ending .jsp will be redirected to a default Tomcat installation which
+# uses the default profile. Change this to fit your needs.
+jkAutoAlias /var/lib/tomcat-5/default/webapps/
+jkMount /*.jsp ajp13
+
+</IfDefine>
diff --git a/www-apache/mod_jk/files/digest-mod_jk-1.2.10 b/www-apache/mod_jk/files/digest-mod_jk-1.2.10
new file mode 100644
index 000000000000..69b41e28a88e
--- /dev/null
+++ b/www-apache/mod_jk/files/digest-mod_jk-1.2.10
@@ -0,0 +1 @@
+MD5 bdec6d9bc0a0f8e394d3bca9b0e390c6 jakarta-tomcat-connectors-1.2.10-src.tar.gz 825352
diff --git a/www-apache/mod_jk/files/jk-workers.properties b/www-apache/mod_jk/files/jk-workers.properties
new file mode 100644
index 000000000000..59744d18b9ca
--- /dev/null
+++ b/www-apache/mod_jk/files/jk-workers.properties
@@ -0,0 +1,47 @@
+# workers.properties -
+#
+# This file provides jk derived plugins with the needed information to
+# connect to the different tomcat workers. Note that the distributed
+# version of this file requires modification before it is usable by a
+# plugin.
+#
+# As a general note, the characters $( and ) are used internally to define
+# macros. Do not use them in your own configuration!
+
+# workers.tomcat_home should point to the location where you
+# installed tomcat. This is where you have your conf, webapps and lib
+# directories.
+#
+workers.tomcat_home=/usr/share/tomcat-5
+
+# workers.java_home should point to your Java installation. Normally
+# you should have a bin and lib directories beneath it.
+#
+workers.java_home=$JAVA_HOME
+
+# The list of Tomcat workers
+#
+worker.list=ajp13
+
+
+#------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
+#---------------------------------------------------------------------
+#
+
+# Defining a worker named ajp13 and of type ajp13
+# Note that the name and the type do not have to match.
+#
+worker.ajp13.port=8009
+worker.ajp13.host=localhost
+worker.ajp13.type=ajp13
+#
+# Specifies the load balance factor when used with
+# a load balancing worker.
+# Note:
+# ----> lbfactor must be > 0
+# ----> Low lbfactor means less work done by the worker.
+worker.ajp13.lbfactor=1
+
+#
+# Specify the size of the open connection cache.
+worker.ajp13.cachesize=10
diff --git a/www-apache/mod_jk/metadata.xml b/www-apache/mod_jk/metadata.xml
new file mode 100644
index 000000000000..c670d3e0d46b
--- /dev/null
+++ b/www-apache/mod_jk/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <maintainer>
+ <email>luckyduck@gentoo.org</email>
+ <name>Jan Brinkmann</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apache/mod_jk/mod_jk-1.2.10.ebuild b/www-apache/mod_jk/mod_jk-1.2.10.ebuild
new file mode 100644
index 000000000000..89bc3ed39992
--- /dev/null
+++ b/www-apache/mod_jk/mod_jk-1.2.10.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_jk/mod_jk-1.2.10.ebuild,v 1.1 2005/04/14 19:37:59 luckyduck Exp $
+
+inherit apache-module
+
+MY_P="jakarta-tomcat-connectors-${PV}-src"
+
+DESCRIPTION="JK module for connecting Tomcat and Apache using the ajp13 protocol"
+HOMEPAGE="http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html"
+SRC_URI="mirror://apache/jakarta/tomcat-connectors/jk/source/jk-${PV}/${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="apache2"
+
+DEPEND=">=virtual/jdk-1.4
+ >=www-servers/tomcat-5.0.28"
+S="${WORKDIR}/${MY_P}/jk/native"
+
+APACHE1_MOD_FILE="${S}/apache-1.3/mod_jk.so"
+APACHE1_MOD_CONF="88_${PN}"
+APACHE1_MOD_DEFINE="JK"
+
+APACHE2_MOD_FILE="${S}/apache-2.0/mod_jk.so"
+APACHE2_MOD_CONF="88_${PN}"
+APACHE2_MOD_DEFINE="JK"
+
+DOCFILES="CHANGES.txt README"
+
+need_apache
+
+src_compile() {
+ local apxs
+ use apache2 && apxs="${APXS2}"
+ use apache2 || apxs="${APXS1}"
+
+ econf \
+ --with-apxs=${apxs} \
+ --with-apr-config=/usr/bin/apr-config \
+ || die "econf failed"
+ emake LIBTOOL="/bin/sh `pwd`/libtool --silent" || die "make failed"
+}
+
+src_install() {
+ # install the workers.properties file
+ local confdir=""
+ use apache2 && confdir="/etc/apache2"
+ use apache2 || confdir="/etc/apache"
+
+ dodir ${confdir}
+ insinto ${confdir}
+ doins ${FILESDIR}/jk-workers.properties
+
+ # call the nifty default src_install :-)
+ apache-module_src_install
+}