From owner-freebsd-java@FreeBSD.ORG Wed Apr 23 10:42:50 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3F6437B405 for ; Wed, 23 Apr 2003 10:42:49 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0009043F75 for ; Wed, 23 Apr 2003 10:42:43 -0700 (PDT) (envelope-from freebsd-java@m.gmane.org) Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 198OEY-0004M7-00 for ; Wed, 23 Apr 2003 19:40:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-java@freebsd.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 198MQM-0002I3-00 for ; Wed, 23 Apr 2003 17:44:42 +0200 From: Larry Lansing Date: Wed, 23 Apr 2003 11:43:43 -0400 Lines: 178 Message-ID: References: <04e401c30855$5a600370$0400a8c0@ss> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010307090600020405020502" X-Complaints-To: usenet@main.gmane.org User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4a) Gecko/20030418 X-Accept-Language: en-us, en In-Reply-To: <04e401c30855$5a600370$0400a8c0@ss> Sender: news Subject: Re: mod_jk2 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2003 17:42:50 -0000 This is a multi-part message in MIME format. --------------010307090600020405020502 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit stakys wrote: > I got apache2 and jakarta-tomcat41 and i want to install mod_jk2, how can i do that? Is there a port for it? Un-shar the attached file to /usr/ports/www/mod_jk2-apache2, and give it a try. It's still a work in progress. YMMV. There is also a mod_jk port, sitting in the PR system, waiting for some love. You can get it here: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/50828 --------------010307090600020405020502 Content-Type: text/plain; name="mod_jk2.shar" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mod_jk2.shar" # 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: # # /usr/ports/www/mod_jk2-apache2/ # /usr/ports/www/mod_jk2-apache2/files # /usr/ports/www/mod_jk2-apache2/files/mod_jk2.conf.sample # /usr/ports/www/mod_jk2-apache2/files/patch-server_Makefile.in # /usr/ports/www/mod_jk2-apache2/files/workers2.properties.sample # /usr/ports/www/mod_jk2-apache2/pkg-descr # /usr/ports/www/mod_jk2-apache2/pkg-message # /usr/ports/www/mod_jk2-apache2/pkg-plist # /usr/ports/www/mod_jk2-apache2/distinfo # /usr/ports/www/mod_jk2-apache2/Makefile # echo c - /usr/ports/www/mod_jk2-apache2/ mkdir -p /usr/ports/www/mod_jk2-apache2/ > /dev/null 2>&1 echo c - /usr/ports/www/mod_jk2-apache2/files mkdir -p /usr/ports/www/mod_jk2-apache2/files > /dev/null 2>&1 echo x - /usr/ports/www/mod_jk2-apache2/files/mod_jk2.conf.sample sed 's/^X//' >/usr/ports/www/mod_jk2-apache2/files/mod_jk2.conf.sample << 'END-of-/usr/ports/www/mod_jk2-apache2/files/mod_jk2.conf.sample' X# Replace jsp-hostname with the hostname of your JSP server, as X# specified in workers.properties. X# X X JkWorkersFile %%APACHE_CONF%%/workers2.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 END-of-/usr/ports/www/mod_jk2-apache2/files/mod_jk2.conf.sample echo x - /usr/ports/www/mod_jk2-apache2/files/patch-server_Makefile.in sed 's/^X//' >/usr/ports/www/mod_jk2-apache2/files/patch-server_Makefile.in << 'END-of-/usr/ports/www/mod_jk2-apache2/files/patch-server_Makefile.in' X--- server/apache2/Makefile.in Fri Oct 25 18:00:00 2002 X+++ server/apache2/Makefile.in Fri Apr 11 16:17:14 2003 X@@ -25,7 +25,7 @@ X # Yes, we use the same properties file as ant X #include ../../../build.properties X X-LIBTOOL=${APACHE2_HOME}/build/libtool X+LIBTOOL=${PREFIX}/share/apache2/build/libtool X X # It doesn't hurt if we include all X INCLUDES= -I${JK_DIR}/include \ END-of-/usr/ports/www/mod_jk2-apache2/files/patch-server_Makefile.in echo x - /usr/ports/www/mod_jk2-apache2/files/workers2.properties.sample sed 's/^X//' >/usr/ports/www/mod_jk2-apache2/files/workers2.properties.sample << 'END-of-/usr/ports/www/mod_jk2-apache2/files/workers2.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-/usr/ports/www/mod_jk2-apache2/files/workers2.properties.sample echo x - /usr/ports/www/mod_jk2-apache2/pkg-descr sed 's/^X//' >/usr/ports/www/mod_jk2-apache2/pkg-descr << 'END-of-/usr/ports/www/mod_jk2-apache2/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-/usr/ports/www/mod_jk2-apache2/pkg-descr echo x - /usr/ports/www/mod_jk2-apache2/pkg-message sed 's/^X//' >/usr/ports/www/mod_jk2-apache2/pkg-message << 'END-of-/usr/ports/www/mod_jk2-apache2/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-/usr/ports/www/mod_jk2-apache2/pkg-message echo x - /usr/ports/www/mod_jk2-apache2/pkg-plist sed 's/^X//' >/usr/ports/www/mod_jk2-apache2/pkg-plist << 'END-of-/usr/ports/www/mod_jk2-apache2/pkg-plist' Xetc/apache2/mod_jk2.conf.sample Xetc/apache2/workers2.properties.sample Xlibexec/apache2/jkjni.so Xlibexec/apache2/mod_jk2.so X@exec %D/sbin/apxs -e -A -n jk %f X@unexec %D/sbin/apxs -e -A -n jk %f END-of-/usr/ports/www/mod_jk2-apache2/pkg-plist echo x - /usr/ports/www/mod_jk2-apache2/distinfo sed 's/^X//' >/usr/ports/www/mod_jk2-apache2/distinfo << 'END-of-/usr/ports/www/mod_jk2-apache2/distinfo' XMD5 (jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz) = c75bd11d96324356b0ffaed2b5bf7fc4 END-of-/usr/ports/www/mod_jk2-apache2/distinfo echo x - /usr/ports/www/mod_jk2-apache2/Makefile sed 's/^X//' >/usr/ports/www/mod_jk2-apache2/Makefile << 'END-of-/usr/ports/www/mod_jk2-apache2/Makefile' X# New ports collection makefile for: mod_jk2 X# Date created: Thu Apr 10 15:14:37 EDT 2003 X# Whom: Larry Lansing X# X# $FreeBSD$ X# X XPORTNAME= mod_jk2 XPORTVERSION= 2.0.2 XCATEGORIES= www XMASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA} XMASTER_SITE_SUBDIR= jakarta-tomcat-connectors/jk2/release/v${PORTVERSION}/src XPKGNAMESUFFIX= -apache2 XDISTNAME= jakarta-tomcat-connectors-jk2-${PORTVERSION}-src X XMAINTAINER= lansil@fuzzynerd.com XCOMMENT= Apache 2.0 module for Tomcat X XBUILD_DEPENDS= ${APXS}:${APACHE_PORT} \ X ${NONEXISTENT}:${PORTSDIR}/www/apache2:extract XRUN_DEPENDS= ${APXS}:${APACHE_PORT} X#TODO: add APR port dependency. X XAPXS?= ${PREFIX}/sbin/apxs XAPACHE_PORT?= ${PORTSDIR}/www/apache2 XAPACHE_CONF= ${PREFIX}/etc/apache2 XWRKSRC= ${WRKDIR}/${DISTNAME}/jk/native2 X XUSE_GMAKE= YES XUSE_LIBTOOL= YES XUSE_AUTOCONF= YES XWANT_AUTOCONF_VER= 253 XUSE_AUTOMAKE= YES XGNU_CONFIGURE= YES XHAS_CONFIGURE= YES X XAPR_LIB?= ${LOCALBASE}/lib/apache2/ XAPR_INCLUDE?= ${LOCALBASE}/include/apache2/ X XCONFIGURE_ARGS+= --with-apxs=${APXS} XCONFIGURE_ARGS+= --with-apr-lib=${APR_LIB} XCONFIGURE_ARGS+= --with-apr-include=${APR_INCLUDE} X Xdo-install: X ${APXS} -i -A -n jk ${WRKSRC}/../build/jk2/apache2/mod_jk2.so X ${APXS} -i -n jkjni ${WRKSRC}/../build/jk2/apache2/jkjni.so X ${SED} -e "s#%%APACHE_CONF%%#${APACHE_CONF}#g" ${FILESDIR}/mod_jk2.conf.sample > ${WRKDIR}/mod_jk2.conf.sample X ${INSTALL_DATA} ${WRKDIR}/mod_jk2.conf.sample ${APACHE_CONF} X ${INSTALL_DATA} ${FILESDIR}/workers2.properties.sample ${APACHE_CONF} X X.include END-of-/usr/ports/www/mod_jk2-apache2/Makefile exit --------------010307090600020405020502--