Import of mod_jk 1.2.37 for use on Apache2.
mod_jk is a DSO module for Apache2. It connects Apache to Tomcat. mod_jk can be configured to off-load SSL processing to Apache, serve static content for webapps and load balance multiple Tomcat servers. ok kurt@ tweaks & ok sthen@
This commit is contained in:
parent
147dd19b12
commit
f6fd1af021
54
www/ap2-mod_jk/Makefile
Normal file
54
www/ap2-mod_jk/Makefile
Normal file
@ -0,0 +1,54 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2013/01/25 08:51:16 dcoppa Exp $
|
||||
|
||||
SHARED_ONLY = Yes
|
||||
|
||||
COMMENT = Apache-Tomcat AJP Connector for Apache2
|
||||
|
||||
V = 1.2.37
|
||||
DISTNAME = tomcat-connectors-${V}-src
|
||||
PKGNAME = ap2-mod_jk-${V}
|
||||
CATEGORIES = www
|
||||
|
||||
HOMEPAGE = http://tomcat.apache.org/connectors-doc/index.html
|
||||
|
||||
# Apache Software License 2.0
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB += pthread
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_APACHE:=tomcat/tomcat-connectors/jk/}
|
||||
|
||||
RUN_DEPENDS = www/apache-httpd
|
||||
BUILD_DEPENDS = ${RUN_DEPENDS}
|
||||
|
||||
USE_GMAKE = Yes
|
||||
USE_LIBTOOL = Yes
|
||||
NO_REGRESS = Yes
|
||||
|
||||
CONFIGURE_STYLE =gnu
|
||||
CONFIGURE_ARGS =--with-apxs=${LOCALBASE}/sbin/apxs2
|
||||
|
||||
WRKSRC = ${WRKDIST}/native
|
||||
MODGNU_CONFIG_GUESS_DIRS =${WRKSRC}/scripts/build/unix
|
||||
|
||||
DOCDIR = ${PREFIX}/share/doc/ap2-mod_jk
|
||||
EXAMPLEDIR = ${PREFIX}/share/examples/ap2-mod_jk
|
||||
EXAMPLES = uriworkermap.properties workers.properties \
|
||||
workers.properties.minimal
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${EXAMPLEDIR}/apache2
|
||||
.for file in ${EXAMPLES}
|
||||
${INSTALL_DATA} ${WRKSRC}/../conf/${file} ${EXAMPLEDIR}/apache2/
|
||||
.endfor
|
||||
${INSTALL_DATA_DIR} ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKDIST}/LICENSE ${DOCDIR}/
|
||||
${INSTALL_DATA} ${WRKDIST}/NOTICE ${DOCDIR}/
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/lib/apache2
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/apache-2.0/mod_jk.so \
|
||||
${PREFIX}/lib/apache2/
|
||||
|
||||
.include <bsd.port.mk>
|
2
www/ap2-mod_jk/distinfo
Normal file
2
www/ap2-mod_jk/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (tomcat-connectors-1.2.37-src.tar.gz) = OKkmI93Si4W79Uz3f0yGfMvrr7cSMxMUcWI2keTnUfk=
|
||||
SIZE (tomcat-connectors-1.2.37-src.tar.gz) = 1528647
|
27
www/ap2-mod_jk/patches/patch-conf_uriworkermap_properties
Normal file
27
www/ap2-mod_jk/patches/patch-conf_uriworkermap_properties
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-conf_uriworkermap_properties,v 1.1.1.1 2013/01/25 08:51:16 dcoppa Exp $
|
||||
--- conf/uriworkermap.properties.orig Mon Mar 19 18:50:27 2012
|
||||
+++ conf/uriworkermap.properties Wed Nov 28 12:17:29 2012
|
||||
@@ -15,21 +15,12 @@
|
||||
|
||||
# uriworkermap.properties - IIS
|
||||
#
|
||||
-# This file provides sample mappings for example wlb
|
||||
+# This file provides sample mappings for example node1
|
||||
# worker defined in workermap.properties.minimal
|
||||
# The general syntax for this file is:
|
||||
# [URL]=[Worker name]
|
||||
|
||||
-/admin/*=lb
|
||||
-/manager/*=lb
|
||||
-/jsp-examples/*=lb
|
||||
-/servlets-examples/*=lb
|
||||
-/examples/*=lb
|
||||
-
|
||||
-# Optionally filter out all .jpeg files inside that context
|
||||
-# For no mapping the url has to start with exclamation (!)
|
||||
-
|
||||
-!/servlets-examples/*.jpeg=lb
|
||||
+/examples/*=node1
|
||||
|
||||
#
|
||||
# Mount jkstatus to /jkmanager
|
28
www/ap2-mod_jk/patches/patch-conf_workers_properties_minimal
Normal file
28
www/ap2-mod_jk/patches/patch-conf_workers_properties_minimal
Normal file
@ -0,0 +1,28 @@
|
||||
$OpenBSD: patch-conf_workers_properties_minimal,v 1.1.1.1 2013/01/25 08:51:16 dcoppa Exp $
|
||||
--- conf/workers.properties.minimal.orig Mon Mar 19 18:50:27 2012
|
||||
+++ conf/workers.properties.minimal Wed Nov 28 11:45:51 2012
|
||||
@@ -21,22 +21,15 @@
|
||||
# The workers that jk should create and work with
|
||||
#
|
||||
|
||||
-worker.list=lb,jk-status
|
||||
+worker.list=node1,jk-status
|
||||
|
||||
#
|
||||
# Defining a worker named node1 and of type ajp13
|
||||
# Note that the name and the type do not have to match.
|
||||
#
|
||||
worker.node1.type=ajp13
|
||||
-worker.node1.host=localhost
|
||||
+worker.node1.host=127.0.0.1
|
||||
worker.node1.port=8009
|
||||
-
|
||||
-#
|
||||
-# Defining a load balancer
|
||||
-#
|
||||
-
|
||||
-worker.lb.type=lb
|
||||
-worker.lb.balance_workers=node1
|
||||
|
||||
#
|
||||
# Define status worker
|
12
www/ap2-mod_jk/patches/patch-native_configure
Normal file
12
www/ap2-mod_jk/patches/patch-native_configure
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-native_configure,v 1.1.1.1 2013/01/25 08:51:16 dcoppa Exp $
|
||||
--- native/configure.orig Tue May 29 09:35:01 2012
|
||||
+++ native/configure Wed Nov 28 11:31:08 2012
|
||||
@@ -3648,7 +3648,7 @@ for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
- for lt_ac_prog in sed gsed; do
|
||||
+ for lt_ac_prog in sed; do
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
||||
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
3
www/ap2-mod_jk/pkg/DESCR
Normal file
3
www/ap2-mod_jk/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
||||
mod_jk is a DSO module for Apache2. It connects Apache to Tomcat.
|
||||
mod_jk can be configured to off-load SSL processing to Apache, serve
|
||||
static content for webapps and load balance multiple Tomcat servers.
|
14
www/ap2-mod_jk/pkg/PLIST
Normal file
14
www/ap2-mod_jk/pkg/PLIST
Normal file
@ -0,0 +1,14 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/01/25 08:51:16 dcoppa Exp $
|
||||
lib/apache2/mod_jk.so
|
||||
share/doc/ap2-mod_jk/
|
||||
share/doc/ap2-mod_jk/LICENSE
|
||||
share/doc/ap2-mod_jk/NOTICE
|
||||
share/doc/pkg-readmes/${FULLPKGNAME}
|
||||
share/examples/ap2-mod_jk/
|
||||
share/examples/ap2-mod_jk/apache2/
|
||||
@sample ${SYSCONFDIR}/apache2/
|
||||
share/examples/ap2-mod_jk/apache2/uriworkermap.properties
|
||||
@sample ${SYSCONFDIR}/apache2/uriworkermap.properties
|
||||
share/examples/ap2-mod_jk/apache2/workers.properties
|
||||
share/examples/ap2-mod_jk/apache2/workers.properties.minimal
|
||||
@sample ${SYSCONFDIR}/apache2/workers.properties
|
25
www/ap2-mod_jk/pkg/README
Normal file
25
www/ap2-mod_jk/pkg/README
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: README,v 1.1.1.1 2013/01/25 08:51:16 dcoppa Exp $
|
||||
|
||||
+-----------------------------------------------------------------------
|
||||
| Running ${FULLPKGNAME} on OpenBSD
|
||||
+-----------------------------------------------------------------------
|
||||
|
||||
Before you can use ap2-mod_jk, you need to enable it in your Apache2
|
||||
configuration.
|
||||
|
||||
Edit ${SYSCONFDIR}/apache2/httpd2.conf and add the following lines:
|
||||
|
||||
LoadModule jk_module ${TRUEPREFIX}/lib/apache2/mod_jk.so
|
||||
<IfModule jk_module>
|
||||
JkWorkersFile ${SYSCONFDIR}/apache2/workers.properties
|
||||
JkLogFile "logs/mod_jk.log"
|
||||
JkLogLevel info
|
||||
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
|
||||
JkRequestLogFormat "%w %V %T"
|
||||
JkMountFile ${SYSCONFDIR}/apache2/uriworkermap.properties
|
||||
</IfModule>
|
||||
|
||||
Restart your httpd2 for changes to make effect.
|
||||
|
||||
You also need to edit ${SYSCONFDIR}/apache2/uriworkermap.properties to reflect
|
||||
your environment.
|
Loading…
Reference in New Issue
Block a user