View | Details | Raw Unified | Return to bug 52776
Collapse All | Expand All

(-)Makefile (-29 / +28 lines)
Lines 6-51 Link Here
6
#
6
#
7
7
8
PORTNAME=	mod_jk
8
PORTNAME=	mod_jk
9
PORTVERSION=	3.3.1
9
PORTVERSION=	1.2.3
10
PORTREVISION=	2
10
PORTEPOCH=	1
11
CATEGORIES=	www
11
CATEGORIES=	www
12
MASTER_SITES=	http://jakarta.apache.org/builds/jakarta-tomcat/release/v${PORTVERSION}/src/ \
12
MASTER_SITES=	${MASTER_SITE_APACHE_JAKARTA}
13
		http://www.metaverse.nl/~ernst/ \
13
MASTER_SITE_SUBDIR=	jakarta-tomcat-connectors/jk/release/v${PORTVERSION}/src
14
		${MASTER_SITE_LOCAL}
14
DISTNAME=	jakarta-tomcat-connectors-jk-${PORTVERSION}-src
15
MASTER_SITE_SUBDIR=	znerd
16
DISTNAME=	jakarta-tomcat-${PORTVERSION}-src
17
15
18
MAINTAINER=	znerd@FreeBSD.org
16
MAINTAINER=	znerd@FreeBSD.org
19
COMMENT=	Apache module for Tomcat 3
17
COMMENT=	Apache JK module for Tomcat
20
21
BROKEN=		"Broken dependency"
22
18
23
BUILD_DEPENDS=	${APXS}:${APACHE_PORT}
19
BUILD_DEPENDS=	${APXS}:${APACHE_PORT}
24
RUN_DEPENDS=	${APXS}:${APACHE_PORT} \
20
RUN_DEPENDS=	${APXS}:${APACHE_PORT}
25
		${TOMCAT_HOME}/lib/tomcat.jar:${PORTSDIR}/www/jakarta-tomcat3
26
27
USE_GMAKE=	YES
28
USE_JAVA=	1.2+
29
MAKEFILE=	Makefile.freebsd
30
WRKSRC=		${WRKDIR}/jakarta-tomcat-${PORTVERSION}-src/src/native/mod_jk/apache1.3
31
21
32
APXS?=		${LOCALBASE}/sbin/apxs
22
APXS=		${LOCALBASE}/sbin/apxs
33
APACHE_PORT?=	${PORTSDIR}/www/apache13
23
APACHE_PORT?=	${PORTSDIR}/www/apache13
34
TOMCAT_HOME?=	${LOCALBASE}/jakarta-tomcat${PORTVERSION}
24
APACHE_CONF=	${LOCALBASE}/etc/apache${APACHE2}
25
WRKSRC=		${WRKDIR}/jakarta-tomcat-connectors-jk-${PORTVERSION}-src/jk/native
35
26
36
post-extract:
27
USE_GMAKE=	YES
37
	${MV} ${WRKSRC}/Makefile.freebsd ${WRKSRC}/Makefile.freebsd.orig
28
USE_LIBTOOL=	YES
29
USE_AUTOCONF_VER= 253
30
USE_AUTOMAKE_VER= 15
31
AUTOMAKE_ARGS=	--add-missing
32
GNU_CONFIGURE=	YES
33
CONFIGURE_ARGS+= --with-apxs=${APXS}
34
APACHE2?=
35
APACHE_VER?=	1.3
36
PLIST_SUB=	APACHE2=${APACHE2}
38
37
39
post-patch:
38
post-patch:
40
	${SED} \
39
	cd ${WRKSRC}; ${ACLOCAL}; ${LOCALBASE}/bin/libtoolize
41
	-e "s#%%APXS%%#${APXS}#g" \
42
	-e "s#%%JAVA_HOME%%#${JAVA_HOME}#g" \
43
	${FILESDIR}/Makefile.freebsd \
44
	> ${WRKSRC}/Makefile.freebsd
45
40
46
do-install:
41
do-install:
47
	${APXS} -i -A -n jk ${WRKSRC}/mod_jk.so
42
	${APXS} -i -A -n jk ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
48
	${SED} -e "s#%%TOMCAT_HOME%%#${TOMCAT_HOME}#g" ${FILESDIR}/mod_jk.conf > ${WRKDIR}/mod_jk.conf
43
	${SED} -e "s#%%APACHE_CONF%%#${APACHE_CONF}#g" ${FILESDIR}/mod_jk.conf.sample > ${WRKDIR}/mod_jk.conf.sample
49
	${INSTALL_DATA} ${WRKDIR}/mod_jk.conf ${PREFIX}/etc/apache
44
	${INSTALL_DATA} ${WRKDIR}/mod_jk.conf.sample ${APACHE_CONF}
45
	${INSTALL_DATA} ${FILESDIR}/workers.properties.sample ${APACHE_CONF}
46
47
post-install:
48
	${CAT} ${PKGMESSAGE} | ${SED} "s|/usr/local|${PREFIX}|g"
50
49
51
.include <bsd.port.mk>
50
.include <bsd.port.mk>
(-)distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (jakarta-tomcat-3.3.1-src.tar.gz) = 7f472a332d098a3591a3ce861747e995
1
MD5 (jakarta-tomcat-connectors-jk-1.2.3-src.tar.gz) = 4c2c2a4e6a6ad8a912afaffbff173227
(-)pkg-descr (-1 / +1 lines)
Lines 2-5 Link Here
2
new Tomcat-Apache plugin that handles the communication between
2
new Tomcat-Apache plugin that handles the communication between
3
Tomcat and Apache.
3
Tomcat and Apache.
4
4
5
WWW: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html
5
WWW: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html
(-)pkg-message (-3 / +3 lines)
Lines 1-5 Link Here
1
*****************************************************************************
1
*****************************************************************************
2
Make sure mod_jk.so is enabled in ${PREFIX}/etc/apache/httpd.conf
2
Make sure mod_jk.so is enabled in /usr/local/etc/apache/httpd.conf and
3
and mod_jk is configured. Have a look at ${PREFIX}/etc/apache/mod_jk.conf
3
mod_jk is configured.  Have a look at
4
for an example.
4
/usr/local/etc/apache/mod_jk.conf.sample for an example.
5
*****************************************************************************
5
*****************************************************************************
(-)pkg-plist (-2 / +3 lines)
Lines 1-4 Link Here
1
etc/apache/mod_jk.conf
1
etc/apache%%APACHE2%%/mod_jk.conf.sample
2
libexec/apache/mod_jk.so
2
etc/apache%%APACHE2%%/workers.properties.sample
3
libexec/apache%%APACHE2%%/mod_jk.so
3
@exec %D/sbin/apxs -e -A -n jk %f
4
@exec %D/sbin/apxs -e -A -n jk %f
4
@unexec %D/sbin/apxs -e -A -n jk %f
5
@unexec %D/sbin/apxs -e -A -n jk %f
(-)files/patch-configure.in (+11 lines)
Added Link Here
1
--- configure.in.orig	Tue Dec 17 05:20:55 2002
2
+++ configure.in	Thu Apr 10 13:18:40 2003
3
@@ -102,7 +102,7 @@
4
                 WEBSERVER="apache-2.0"
5
               	APXSCFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CFLAGS`"
6
               	APXSCPPFLAGS="`${APXS} -q EXTRA_CPPFLAGS`"
7
-                APACHE_CONFIG_VARS=${apache_dir}/build/config_vars.mk
8
+                APACHE_CONFIG_VARS=${prefix}/share/apache2/build/config_vars.mk
9
             fi
10
             AC_MSG_RESULT([building connector for \"$WEBSERVER\"])
11
     
(-)files/workers.properties.sample (+12 lines)
Added Link Here
1
# Incredibly simple workers.properties file, intended for connecting
2
# to one host, via AJP13.  See the tomcat documentation for
3
# information on more exotic configuration options.
4
#
5
# Change jsp-hostname to the hostname of your JSP server.
6
#
7
worker.list=jsp-hostname
8
9
worker.jsp-hostname.port=8009
10
worker.jsp-hostname.host=jsp-hostname
11
worker.jsp-hostname.type=ajp13
12
worker.jsp-hostname.lbfactor=1
(-)files/mod_jk.conf.sample (+14 lines)
Added Link Here
1
# Replace jsp-hostname with the hostname of your JSP server, as
2
# specified in workers.properties.
3
#
4
<IfModule mod_jk.c>
5
	JkWorkersFile %%APACHE_CONF%%/workers.properties
6
	JkLogFile  logs/jk.log
7
	JkLogLevel warn
8
9
	# Sample JkMounts.  Replace these with the paths you would
10
	# like to mount from your JSP server.
11
	JkMount /*.jsp jsp-hostname
12
	JkMount /servlet/* jsp-hostname
13
	JkMount /examples/* jsp-hostname
14
</IfModule>

Return to bug 52776