Date: Fri, 11 Apr 2003 11:58:40 -0400 (EDT) From: Larry Lansing <lansil@fuzzilicious.fuzzynerd.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/50828: New port: mod_jk for apache2 Message-ID: <200304111558.h3BFweVE058302@fuzzilicious.fuzzynerd.com> Resent-Message-ID: <200304111610.h3BGAC1B030465@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 50828 >Category: ports >Synopsis: New port: mod_jk for apache2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Apr 11 09:10:12 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Larry Lansing >Release: FreeBSD 5.0-CURRENT i386 >Organization: Rensselaer Polytechnic Institute >Environment: System: FreeBSD fuzzilicious.fuzzynerd.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Apr 1 11:50:43 EST 2003 root@fuzzilicious.fuzzynerd.com:/usr/obj/usr/src/sys/FUZZILICIOUS i386 >Description: 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. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # . # ./files # ./files/workers.properties.sample # ./files/patch-configure.in # ./files/mod_jk.conf.sample # ./pkg-descr # ./pkg-message # ./pkg-plist # ./distinfo # ./Makefile # echo c - . mkdir -p . > /dev/null 2>&1 echo c - ./files mkdir -p ./files > /dev/null 2>&1 echo x - ./files/workers.properties.sample sed 's/^X//' >./files/workers.properties.sample << 'END-of-./files/workers.properties.sample' X# Incredibly simple workers.properties file, intended for connecting X# to one host, via AJP13. See the tomcat documentation for X# information on more exotic configuration options. X# X# Change jsp-hostname to the hostname of your JSP server. X# Xworker.list=jsp-hostname X Xworker.jsp-hostname.port=8009 Xworker.jsp-hostname.host=jsp-hostname Xworker.jsp-hostname.type=ajp13 Xworker.jsp-hostname.lbfactor=1 END-of-./files/workers.properties.sample echo x - ./files/patch-configure.in sed 's/^X//' >./files/patch-configure.in << 'END-of-./files/patch-configure.in' X--- configure.in.orig Tue Dec 17 05:20:55 2002 X+++ configure.in Thu Apr 10 13:18:40 2003 X@@ -102,7 +102,7 @@ X WEBSERVER="apache-2.0" X APXSCFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CFLAGS`" X APXSCPPFLAGS="`${APXS} -q EXTRA_CPPFLAGS`" X- APACHE_CONFIG_VARS=${apache_dir}/build/config_vars.mk X+ APACHE_CONFIG_VARS=${prefix}/share/apache2/build/config_vars.mk X fi X AC_MSG_RESULT([building connector for \"$WEBSERVER\"]) X END-of-./files/patch-configure.in echo x - ./files/mod_jk.conf.sample sed 's/^X//' >./files/mod_jk.conf.sample << 'END-of-./files/mod_jk.conf.sample' X# Replace jsp-hostname with the hostname of your JSP server, as X# specified in workers.properties. X# X<IfModule mod_jk.c> X JkWorkersFile %%APACHE_CONF%%/workers.properties X JkLogFile logs/jk.log X JkLogLevel warn X X # Sample JkMounts. Replace these with the paths you would X # like to mount from your JSP server. X JkMount /*.jsp jsp-hostname X JkMount /servlet/* jsp-hostname X JkMount /examples/* jsp-hostname X</IfModule> END-of-./files/mod_jk.conf.sample echo x - ./pkg-descr sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr' Xmod_jk is a replacement to the elderly mod_jserv. It is a completely Xnew Tomcat-Apache plugin that handles the communication between XTomcat and Apache. X XWWW: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html END-of-./pkg-descr echo x - ./pkg-message sed 's/^X//' >./pkg-message << 'END-of-./pkg-message' X***************************************************************************** XMake sure mod_jk.so is enabled in ${PREFIX}/etc/apache2/httpd.conf and Xmod_jk is configured. Have a look at X${PREFIX}/etc/apache2/mod_jk.conf.sample for an example. X***************************************************************************** END-of-./pkg-message echo x - ./pkg-plist sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist' Xetc/apache2/mod_jk.conf.sample Xetc/apache2/workers.properties.sample Xlibexec/apache2/mod_jk.so X@exec %D/sbin/apxs -e -A -n jk %f X@unexec %D/sbin/apxs -e -A -n jk %f END-of-./pkg-plist echo x - ./distinfo sed 's/^X//' >./distinfo << 'END-of-./distinfo' XMD5 (jakarta-tomcat-connectors-jk-1.2.2-src.tar.gz) = 5e9e76f538d2dbd28d4e1d4f42145ab9 END-of-./distinfo echo x - ./Makefile sed 's/^X//' >./Makefile << 'END-of-./Makefile' X# New ports collection makefile for: mod_jk X# Date created: Thu Apr 10 15:14:37 EDT 2003 X# Whom: Larry Lansing <lansil@fuzzynerd.com> X# X# $FreeBSD: ports/www/mod_jk/Makefile,v 1.11 2003/03/07 06:12:44 ade Exp $ X# X XPORTNAME= mod_jk XPORTVERSION= 1.2.2 XCATEGORIES= www XMASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA} XMASTER_SITE_SUBDIR= jakarta-tomcat-connectors/jk/release/v${PORTVERSION}/src XPKGNAMESUFFIX= -apache2 XDISTNAME= jakarta-tomcat-connectors-jk-${PORTVERSION}-src X XMAINTAINER= lansil@fuzzynerd.com XCOMMENT= Apache 2.0 module for Tomcat X XBUILD_DEPENDS= ${APXS}:${APACHE_PORT} XRUN_DEPENDS= ${APXS}:${APACHE_PORT} X XAPXS?= ${PREFIX}/sbin/apxs XAPACHE_PORT?= ${PORTSDIR}/www/apache2 XAPACHE_CONF= ${PREFIX}/etc/apache2 XWRKSRC= ${WRKDIR}/jakarta-tomcat-connectors-jk-${PORTVERSION}-src/jk/native X XUSE_GMAKE= YES XUSE_LIBTOOL= YES XUSE_AUTOCONF= YES XUSE_AUTOMAKE= YES XHAS_CONFIGURE= YES XCONFIGURE_ARGS+= --with-apxs=${APXS} X Xdo-install: X ${APXS} -i -A -n jk ${WRKSRC}/apache-2.0/mod_jk.so X ${SED} -e "s#%%APACHE_CONF%%#${APACHE_CONF}#g" ${FILESDIR}/mod_jk.conf.sample > ${WRKDIR}/mod_jk.conf.sample X ${INSTALL_DATA} ${WRKDIR}/mod_jk.conf.sample ${APACHE_CONF} X ${INSTALL_DATA} ${FILESDIR}/workers.properties.sample ${APACHE_CONF} X X.include <bsd.port.mk> END-of-./Makefile exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304111558.h3BFweVE058302>