2001-05-20 14:00:25 +00:00
|
|
|
# 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
|
2002-04-03 21:10:59 +00:00
|
|
|
PORTVERSION= 3.3.1
|
2002-04-16 19:27:50 +00:00
|
|
|
PORTREVISION= 2
|
2001-05-20 14:00:25 +00:00
|
|
|
CATEGORIES= www
|
2002-08-10 09:16:08 +00:00
|
|
|
MASTER_SITES= http://jakarta.apache.org/builds/jakarta-tomcat/release/v${PORTVERSION}/src/ \
|
2002-02-22 08:23:53 +00:00
|
|
|
http://www.metaverse.nl/~ernst/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= znerd
|
2001-08-05 09:39:59 +00:00
|
|
|
DISTNAME= jakarta-tomcat-${PORTVERSION}-src
|
2001-05-20 14:00:25 +00:00
|
|
|
|
2002-02-12 22:25:18 +00:00
|
|
|
MAINTAINER= znerd@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Apache module for Tomcat 3
|
2001-05-20 14:00:25 +00:00
|
|
|
|
2002-04-16 19:27:50 +00:00
|
|
|
BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
|
|
|
|
RUN_DEPENDS= ${APXS}:${APACHE_PORT} \
|
|
|
|
${TOMCAT_HOME}/lib/tomcat.jar:${PORTSDIR}/www/jakarta-tomcat3
|
2001-05-20 14:00:25 +00:00
|
|
|
|
2002-02-22 08:23:53 +00:00
|
|
|
USE_GMAKE= YES
|
2002-04-16 19:27:50 +00:00
|
|
|
USE_JAVA= 1.2+
|
2001-05-20 14:00:25 +00:00
|
|
|
MAKEFILE= Makefile.freebsd
|
2002-04-03 21:10:59 +00:00
|
|
|
WRKSRC= ${WRKDIR}/jakarta-tomcat-${PORTVERSION}-src/src/native/mod_jk/apache1.3
|
2001-05-20 14:00:25 +00:00
|
|
|
|
|
|
|
APXS?= ${LOCALBASE}/sbin/apxs
|
2002-02-22 10:09:30 +00:00
|
|
|
APACHE_PORT?= ${PORTSDIR}/www/apache13
|
|
|
|
TOMCAT_HOME?= ${LOCALBASE}/jakarta-tomcat${PORTVERSION}
|
|
|
|
|
2002-04-03 21:10:59 +00:00
|
|
|
post-extract:
|
|
|
|
${MV} ${WRKSRC}/Makefile.freebsd ${WRKSRC}/Makefile.freebsd.orig
|
2002-04-16 19:27:50 +00:00
|
|
|
|
|
|
|
post-patch:
|
2002-02-22 10:09:30 +00:00
|
|
|
${SED} \
|
|
|
|
-e "s#%%APXS%%#${APXS}#g" \
|
|
|
|
-e "s#%%JAVA_HOME%%#${JAVA_HOME}#g" \
|
|
|
|
${FILESDIR}/Makefile.freebsd \
|
2002-04-03 21:10:59 +00:00
|
|
|
> ${WRKSRC}/Makefile.freebsd
|
2001-05-20 14:00:25 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${APXS} -i -A -n jk ${WRKSRC}/mod_jk.so
|
2002-02-22 10:09:30 +00:00
|
|
|
${SED} -e "s#%%TOMCAT_HOME%%#${TOMCAT_HOME}#g" ${FILESDIR}/mod_jk.conf > ${WRKDIR}/mod_jk.conf
|
2001-05-20 14:00:25 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/mod_jk.conf ${PREFIX}/etc/apache
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|