summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-06-06 12:59:19 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-06-06 12:59:19 +0000
commitbfafd12812b9fc07a2394aab9c353f4fc9e2b95a (patch)
tree2d5ba58f26ed81b70cbfdf3563de66fccb48adb7 /www
parentUpdate to 1.1. (diff)
New port: mod_jk for apache2
This is a port-ification of mod_jk (a JSP connector module) for Apache 2.x. It is based on the (rather outdated) www/mod_jk port, which is an older version of mod_jk, and only works with apache 1.3. PR: ports/50828 Submitted by: Larry Lansing <lansil@fuzzilicious.fuzzynerd.com>
Notes
Notes: svn path=/head/; revision=82362
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/mod_jk2/Makefile40
-rw-r--r--www/mod_jk2/distinfo1
-rw-r--r--www/mod_jk2/files/mod_jk.conf.sample14
-rw-r--r--www/mod_jk2/files/patch-configure.in11
-rw-r--r--www/mod_jk2/files/workers.properties.sample12
-rw-r--r--www/mod_jk2/pkg-descr5
-rw-r--r--www/mod_jk2/pkg-message5
-rw-r--r--www/mod_jk2/pkg-plist5
9 files changed, 94 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index f7cd6d95c4a4..70b52278e805 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -203,6 +203,7 @@
SUBDIR += mod_hosts_access
SUBDIR += mod_index_rss
SUBDIR += mod_jk
+ SUBDIR += mod_jk2
SUBDIR += mod_layout
SUBDIR += mod_limitipconn
SUBDIR += mod_log_mysql
diff --git a/www/mod_jk2/Makefile b/www/mod_jk2/Makefile
new file mode 100644
index 000000000000..5882a9360a53
--- /dev/null
+++ b/www/mod_jk2/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: mod_jk
+# Date created: Thu Apr 10 15:14:37 EDT 2003
+# Whom: Larry Lansing <lansil@fuzzynerd.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mod_jk
+PORTVERSION= 1.2.2
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
+MASTER_SITE_SUBDIR= jakarta-tomcat-connectors/jk/release/v${PORTVERSION}/src
+PKGNAMESUFFIX= -apache2
+DISTNAME= jakarta-tomcat-connectors-jk-${PORTVERSION}-src
+
+MAINTAINER= lansil@fuzzynerd.com
+COMMENT= Apache 2.0 module for Tomcat
+
+BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
+RUN_DEPENDS= ${APXS}:${APACHE_PORT}
+
+APXS?= ${PREFIX}/sbin/apxs
+APACHE_PORT?= ${PORTSDIR}/www/apache2
+APACHE_CONF= ${PREFIX}/etc/apache2
+WRKSRC= ${WRKDIR}/jakarta-tomcat-connectors-jk-${PORTVERSION}-src/jk/native
+
+USE_GMAKE= YES
+USE_LIBTOOL= YES
+USE_AUTOCONF= YES
+USE_AUTOMAKE= YES
+HAS_CONFIGURE= YES
+CONFIGURE_ARGS+= --with-apxs=${APXS}
+
+do-install:
+ ${APXS} -i -A -n jk ${WRKSRC}/apache-2.0/mod_jk.so
+ ${SED} -e "s#%%APACHE_CONF%%#${APACHE_CONF}#g" ${FILESDIR}/mod_jk.conf.sample > ${WRKDIR}/mod_jk.conf.sample
+ ${INSTALL_DATA} ${WRKDIR}/mod_jk.conf.sample ${APACHE_CONF}
+ ${INSTALL_DATA} ${FILESDIR}/workers.properties.sample ${APACHE_CONF}
+
+.include <bsd.port.mk>
diff --git a/www/mod_jk2/distinfo b/www/mod_jk2/distinfo
new file mode 100644
index 000000000000..9feca7b392b7
--- /dev/null
+++ b/www/mod_jk2/distinfo
@@ -0,0 +1 @@
+MD5 (jakarta-tomcat-connectors-jk-1.2.2-src.tar.gz) = 5e9e76f538d2dbd28d4e1d4f42145ab9
diff --git a/www/mod_jk2/files/mod_jk.conf.sample b/www/mod_jk2/files/mod_jk.conf.sample
new file mode 100644
index 000000000000..c97545d64e9e
--- /dev/null
+++ b/www/mod_jk2/files/mod_jk.conf.sample
@@ -0,0 +1,14 @@
+# Replace jsp-hostname with the hostname of your JSP server, as
+# specified in workers.properties.
+#
+<IfModule mod_jk.c>
+ JkWorkersFile %%APACHE_CONF%%/workers.properties
+ JkLogFile logs/jk.log
+ JkLogLevel warn
+
+ # Sample JkMounts. Replace these with the paths you would
+ # like to mount from your JSP server.
+ JkMount /*.jsp jsp-hostname
+ JkMount /servlet/* jsp-hostname
+ JkMount /examples/* jsp-hostname
+</IfModule>
diff --git a/www/mod_jk2/files/patch-configure.in b/www/mod_jk2/files/patch-configure.in
new file mode 100644
index 000000000000..67a42809dd45
--- /dev/null
+++ b/www/mod_jk2/files/patch-configure.in
@@ -0,0 +1,11 @@
+--- configure.in.orig Tue Dec 17 05:20:55 2002
++++ configure.in Thu Apr 10 13:18:40 2003
+@@ -102,7 +102,7 @@
+ WEBSERVER="apache-2.0"
+ APXSCFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CFLAGS`"
+ APXSCPPFLAGS="`${APXS} -q EXTRA_CPPFLAGS`"
+- APACHE_CONFIG_VARS=${apache_dir}/build/config_vars.mk
++ APACHE_CONFIG_VARS=${prefix}/share/apache2/build/config_vars.mk
+ fi
+ AC_MSG_RESULT([building connector for \"$WEBSERVER\"])
+
diff --git a/www/mod_jk2/files/workers.properties.sample b/www/mod_jk2/files/workers.properties.sample
new file mode 100644
index 000000000000..a814538b44e6
--- /dev/null
+++ b/www/mod_jk2/files/workers.properties.sample
@@ -0,0 +1,12 @@
+# Incredibly simple workers.properties file, intended for connecting
+# to one host, via AJP13. See the tomcat documentation for
+# information on more exotic configuration options.
+#
+# Change jsp-hostname to the hostname of your JSP server.
+#
+worker.list=jsp-hostname
+
+worker.jsp-hostname.port=8009
+worker.jsp-hostname.host=jsp-hostname
+worker.jsp-hostname.type=ajp13
+worker.jsp-hostname.lbfactor=1
diff --git a/www/mod_jk2/pkg-descr b/www/mod_jk2/pkg-descr
new file mode 100644
index 000000000000..cb9f33bc8e2b
--- /dev/null
+++ b/www/mod_jk2/pkg-descr
@@ -0,0 +1,5 @@
+mod_jk is a replacement to the elderly mod_jserv. It is a completely
+new Tomcat-Apache plugin that handles the communication between
+Tomcat and Apache.
+
+WWW: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html
diff --git a/www/mod_jk2/pkg-message b/www/mod_jk2/pkg-message
new file mode 100644
index 000000000000..67c3bc631981
--- /dev/null
+++ b/www/mod_jk2/pkg-message
@@ -0,0 +1,5 @@
+*****************************************************************************
+Make sure mod_jk.so is enabled in ${PREFIX}/etc/apache2/httpd.conf and
+mod_jk is configured. Have a look at
+${PREFIX}/etc/apache2/mod_jk.conf.sample for an example.
+*****************************************************************************
diff --git a/www/mod_jk2/pkg-plist b/www/mod_jk2/pkg-plist
new file mode 100644
index 000000000000..c6d51bd088cd
--- /dev/null
+++ b/www/mod_jk2/pkg-plist
@@ -0,0 +1,5 @@
+etc/apache2/mod_jk.conf.sample
+etc/apache2/workers.properties.sample
+libexec/apache2/mod_jk.so
+@exec %D/sbin/apxs -e -A -n jk %f
+@unexec %D/sbin/apxs -e -A -n jk %f