2004-04-18 12:33:14 +02:00
|
|
|
# New ports collection makefile for: mod_jk2
|
|
|
|
# Date created: Thu May 29 01:24:15 CEST 2003
|
|
|
|
# Whom: Palle Girgensohn <girgen@pingpong.net>
|
2003-06-06 14:59:19 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-04-18 12:33:14 +02:00
|
|
|
PORTNAME= mod_jk2
|
2005-07-27 03:59:42 +02:00
|
|
|
PORTVERSION= 2.0.4
|
2003-06-06 14:59:19 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
|
2004-04-18 12:33:14 +02:00
|
|
|
MASTER_SITE_SUBDIR= tomcat-connectors/jk2/source
|
|
|
|
DISTNAME= jakarta-tomcat-connectors-jk2-${PORTVERSION}-src
|
2003-06-06 14:59:19 +02:00
|
|
|
|
2004-12-06 04:59:56 +01:00
|
|
|
MAINTAINER?= girgen@FreeBSD.org
|
2004-04-18 12:36:55 +02:00
|
|
|
COMMENT?= Apache JK2 module for connecting to Tomcat using AJP1X
|
2003-06-06 14:59:19 +02:00
|
|
|
|
2005-07-27 03:59:42 +02:00
|
|
|
DEPRECATED= "JK2 is officially unsupported, no further development will take place."
|
|
|
|
|
2003-11-07 10:12:58 +01:00
|
|
|
USE_APACHE= yes
|
2004-04-18 12:33:14 +02:00
|
|
|
USE_GMAKE= YES
|
|
|
|
GNU_CONFIGURE= YES
|
2005-07-27 03:59:42 +02:00
|
|
|
CONFIGURE_ARGS= --with-apxs${APACHE2}=${APXS}
|
|
|
|
|
2004-04-18 12:33:14 +02:00
|
|
|
ALL_TARGET= jk2-build-apxs
|
2005-07-27 03:59:42 +02:00
|
|
|
INSTALL_TARGET= jk2-install-apxs
|
2004-04-18 12:33:14 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/jakarta-tomcat-connectors-jk2-${PORTVERSION}-src/jk/native2
|
|
|
|
|
2005-07-27 03:59:42 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/.pkg-message
|
|
|
|
|
2004-04-18 12:33:14 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/include/apache2/apr.h)
|
2003-11-07 10:12:58 +01:00
|
|
|
WITH_APACHE2= yes
|
2004-04-18 12:33:14 +02:00
|
|
|
.endif
|
2003-06-06 14:59:19 +02:00
|
|
|
|
2005-05-21 20:17:12 +02:00
|
|
|
.if ${ARCH} == "alpha"
|
|
|
|
BROKEN= "Does not compile on alpha"
|
|
|
|
.endif
|
|
|
|
|
2005-04-10 23:07:07 +02:00
|
|
|
.if ${ARCH} == "sparc64" && !defined(WITH_APACHE2)
|
|
|
|
BROKEN= "Fails to link on sparc64"
|
|
|
|
.endif
|
|
|
|
|
2004-04-18 12:33:14 +02:00
|
|
|
.if defined(WITH_APACHE2)
|
|
|
|
APACHE2= 2
|
|
|
|
PLIST_SUB= APACHE2=2
|
|
|
|
PKGNAMESUFFIX= -apache2
|
|
|
|
APACHE= apache2
|
|
|
|
.else
|
|
|
|
APACHE2=
|
|
|
|
PLIST_SUB= APACHE2=
|
|
|
|
APACHE= apache13
|
2005-07-27 03:59:42 +02:00
|
|
|
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/devel/apr:patch
|
|
|
|
APR_DIR= `cd ${PORTSDIR}/devel/apr && make -V WRKDIR`
|
|
|
|
APR_VERSION= `cd ${PORTSDIR}/devel/apr && make -V PORTVERSION`
|
|
|
|
CONFIGURE_ARGS+=--with-apr=${APR_DIR}/apr-${APR_VERSION} \
|
|
|
|
--with-apr-util=${APR_DIR}/apr-util-${APR_VERSION}
|
2004-04-18 12:33:14 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2005-07-27 03:59:42 +02:00
|
|
|
@ ${SED} "s|/usr/local|${PREFIX}|g" \
|
|
|
|
< ${MASTERDIR}/pkg-message \
|
|
|
|
> ${PKGMESSAGE}
|
2003-06-06 14:59:19 +02:00
|
|
|
|
2005-07-27 03:59:42 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../conf/workers2.properties \
|
|
|
|
${PREFIX}/etc/apache${APACHE2}/workers2.properties.sample
|
|
|
|
- ${APXS} -e -A -n jk2 mod_jk2.so
|
|
|
|
${CAT} ${PKGMESSAGE}
|
2003-06-06 14:59:19 +02:00
|
|
|
|
2004-04-18 12:33:14 +02:00
|
|
|
.include <bsd.port.post.mk>
|