diff options
author | dirk <dirk@FreeBSD.org> | 2001-05-20 22:00:25 +0800 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2001-05-20 22:00:25 +0800 |
commit | aa2792059367856195e7d6af5fb62dba695f8abf (patch) | |
tree | e74c747b8f3a4354aed71db7d91c27c248976086 /www/mod_jk | |
parent | ea6f42ebbe3b551978e469d6edbdc3cbf4a06aaf (diff) | |
download | freebsd-ports-gnome-aa2792059367856195e7d6af5fb62dba695f8abf.tar.gz freebsd-ports-gnome-aa2792059367856195e7d6af5fb62dba695f8abf.tar.zst freebsd-ports-gnome-aa2792059367856195e7d6af5fb62dba695f8abf.zip |
Initial import mod_jk supplied with jakarta-tomcat 3.2.1:
Apache module for jakarta-tomcat connection.
Diffstat (limited to 'www/mod_jk')
-rw-r--r-- | www/mod_jk/Makefile | 34 | ||||
-rw-r--r-- | www/mod_jk/distinfo | 1 | ||||
-rw-r--r-- | www/mod_jk/files/mod_jk.conf | 8 | ||||
-rw-r--r-- | www/mod_jk/files/patch-aa | 35 | ||||
-rw-r--r-- | www/mod_jk/pkg-comment | 1 | ||||
-rw-r--r-- | www/mod_jk/pkg-descr | 5 | ||||
-rw-r--r-- | www/mod_jk/pkg-message | 5 | ||||
-rw-r--r-- | www/mod_jk/pkg-plist | 4 |
8 files changed, 93 insertions, 0 deletions
diff --git a/www/mod_jk/Makefile b/www/mod_jk/Makefile new file mode 100644 index 000000000000..a6c976a6f19b --- /dev/null +++ b/www/mod_jk/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: mod_jk +# Date created: Sun May 20 12:58:02 CEST 2001 +# Whom: Dirk Froemberg <dirk@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= mod_jk +PORTVERSION= 3.2.1 +CATEGORIES= www +MASTER_SITES= http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/src/ +DISTNAME= jakarta-tomcat-3.2.1-src + +MAINTAINER= dirk@FreeBSD.org + +BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 \ + ${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk +RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 \ + ${LOCALBASE}/tomcat/lib/webserver.jar:${PORTSDIR}/www/jakarta-tomcat + +USE_GMAKE= yes +MAKEFILE= Makefile.freebsd +WRKSRC= ${WRKDIR}/jakarta-tomcat-3.2.1-src/src/native/apache1.3 + +APXS?= ${LOCALBASE}/sbin/apxs + +do-install: + ${APXS} -i -A -n jk ${WRKSRC}/mod_jk.so + ${SED} -e "s#%%PREFIX%%#${PREFIX}#g" ${FILESDIR}/mod_jk.conf > ${WRKDIR}/mod_jk.conf + ${INSTALL_DATA} ${WRKDIR}/mod_jk.conf ${PREFIX}/etc/apache + + @${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/mod_jk/distinfo b/www/mod_jk/distinfo new file mode 100644 index 000000000000..6b0f3d9d2eb4 --- /dev/null +++ b/www/mod_jk/distinfo @@ -0,0 +1 @@ +MD5 (jakarta-tomcat-3.2.1-src.tar.gz) = ca0307722836c778392a17b2c6c9a598 diff --git a/www/mod_jk/files/mod_jk.conf b/www/mod_jk/files/mod_jk.conf new file mode 100644 index 000000000000..a1da11d0d62a --- /dev/null +++ b/www/mod_jk/files/mod_jk.conf @@ -0,0 +1,8 @@ +<IfModule mod_jk.c> + JkWorkersFile %%PREFIX%%/tomcat/conf/workers.properties + JkLogFile logs/jk.log + JkLogLevel warn + JkMount /*.jsp ajp12 + JkMount /servlet/* ajp12 + JkMount /examples/* ajp12 +</IfModule> diff --git a/www/mod_jk/files/patch-aa b/www/mod_jk/files/patch-aa new file mode 100644 index 000000000000..e315e0d2d9a6 --- /dev/null +++ b/www/mod_jk/files/patch-aa @@ -0,0 +1,35 @@ +--- Makefile.freebsd.orig Tue Dec 12 23:51:55 2000 ++++ Makefile.freebsd Sun May 20 15:50:41 2001 +@@ -1,18 +1,18 @@ + ## You need to edit this file - configure later :-) + +-APACHE_HOME=/usr/local/apache + OS=freebsd +-APXS=${APACHE_HOME}/bin/apxs ++APXS=${PREFIX}/sbin/apxs + +-A13_FLAGS=-I${APACHE_HOME}/include ++A13_FLAGS=-I${PREFIX}/include/apache + + ## I assume this one is set up already +-# JAVA_HOME= ++JAVA_HOME=${PREFIX}/jdk1.1.8 + + JAVA_INCL=-I${JAVA_HOME}/include -I${JAVA_HOME}/include/${OS} + JAVA_LIB=-L${JAVA_HOME}/jre/lib/${ARCH} -L${JAVA_HOME}/lib/${ARCH}/native_threads + +-CFLAGS=-DHAVE_CONFIG_H -g -fpic -DSHARED_MODULE -O2 -D_REENTRANT -pthread -DLINUX -Wall ++XCFLAGS=${CFLAGS} ++CFLAGS=-DHAVE_CONFIG_H -fpic -DSHARED_MODULE -DFREEBSD -Wall + + JK=../jk/ + SRCS=jk_ajp12_worker.c jk_connect.c jk_msg_buff.c jk_util.c jk_ajp13.c \ +@@ -23,7 +23,7 @@ + OBJS=${patsubst %.c,%.o,${SRCS}} + + %.o: ../jk/%.c +- ${CC} -c ${CFLAGS} ${JAVA_INCL} ${A13_FLAGS} $< -o $@ ++ ${CC} -c ${XCFLAGS} ${CFLAGS} ${JAVA_INCL} ${A13_FLAGS} $< -o $@ + + .c.o: + ${APXS} -c ${JAVA_INCL} -DFREEBSD ${A13_FLAGS} -I../jk $< diff --git a/www/mod_jk/pkg-comment b/www/mod_jk/pkg-comment new file mode 100644 index 000000000000..58445959f552 --- /dev/null +++ b/www/mod_jk/pkg-comment @@ -0,0 +1 @@ +Apache module for jakarta-tomcat connection diff --git a/www/mod_jk/pkg-descr b/www/mod_jk/pkg-descr new file mode 100644 index 000000000000..97595fd81d27 --- /dev/null +++ b/www/mod_jk/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/jakarta-tomcat/src/doc/mod_jk-howto.html diff --git a/www/mod_jk/pkg-message b/www/mod_jk/pkg-message new file mode 100644 index 000000000000..f7ff3221bc4a --- /dev/null +++ b/www/mod_jk/pkg-message @@ -0,0 +1,5 @@ +***************************************************************************** +Make sure mod_jk.so is enabled in /usr/local/etc/apache/httpd.conf +and mod_jk is configured. Have a look at /usr/local/etc/apache/mod_jk.conf +for an example. +***************************************************************************** diff --git a/www/mod_jk/pkg-plist b/www/mod_jk/pkg-plist new file mode 100644 index 000000000000..de0f9ff2ed7a --- /dev/null +++ b/www/mod_jk/pkg-plist @@ -0,0 +1,4 @@ +etc/apache/mod_jk.conf +libexec/apache/mod_jk.so +@exec %D/sbin/apxs -e -A -n jk %f +@unexec %D/sbin/apxs -e -A -n jk %f |