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
|
2005-07-26 21:46:33 +00:00
|
|
|
PORTVERSION= 1.2.14.1
|
2005-07-27 02:47:35 +00:00
|
|
|
PORTREVISION= 1
|
2004-02-26 00:26:55 +00:00
|
|
|
PORTEPOCH?= 1
|
2001-05-20 14:00:25 +00:00
|
|
|
CATEGORIES= www
|
2003-06-11 10:30:58 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
|
2005-07-26 21:46:33 +00:00
|
|
|
MASTER_SITE_SUBDIR= tomcat-connectors/jk/source/jk-${PORTVERSION:S/.1$//}
|
|
|
|
DISTNAME= jakarta-tomcat-connectors-${PORTVERSION}-src
|
2001-05-20 14:00:25 +00:00
|
|
|
|
2004-12-06 03:59:56 +00:00
|
|
|
MAINTAINER?= girgen@FreeBSD.org
|
2004-02-26 00:26:55 +00:00
|
|
|
COMMENT?= Apache JK module for connecting to Tomcat using AJP1X
|
2003-09-24 08:55:01 +00:00
|
|
|
|
2003-11-20 23:41:09 +00:00
|
|
|
USE_APACHE= YES
|
|
|
|
|
2003-09-24 08:55:01 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/include/apache2/apr.h)
|
2003-11-20 23:41:09 +00:00
|
|
|
WITH_APACHE2= YES
|
2003-09-24 08:55:01 +00:00
|
|
|
.endif
|
|
|
|
|
2003-11-20 23:41:09 +00:00
|
|
|
.if defined(WITH_APACHE2)
|
2003-09-24 08:55:01 +00:00
|
|
|
APACHE_VER= 2.0
|
|
|
|
APACHE2= 2
|
|
|
|
PLIST_SUB= APACHE2=2
|
|
|
|
PKGNAMESUFFIX= -apache2
|
|
|
|
.else
|
|
|
|
APACHE_VER= 1.3
|
|
|
|
APACHE2=
|
|
|
|
PLIST_SUB= APACHE2=
|
|
|
|
.endif
|
2003-05-06 21:26:23 +00:00
|
|
|
|
2003-06-11 10:30:58 +00:00
|
|
|
APACHE_CONF= ${LOCALBASE}/etc/apache${APACHE2}
|
2005-07-26 21:46:33 +00:00
|
|
|
WRKSRC= ${WRKDIR}/jakarta-tomcat-connectors-${PORTVERSION}-src/jk/native
|
2002-02-22 10:09:30 +00:00
|
|
|
|
2003-06-11 10:30:58 +00:00
|
|
|
USE_GMAKE= YES
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS+= --with-apxs=${APXS}
|
2003-09-24 08:55:01 +00:00
|
|
|
|
2001-05-20 14:00:25 +00:00
|
|
|
do-install:
|
2005-07-26 21:46:33 +00:00
|
|
|
${APXS} -i -n jk ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
|
|
|
|
- ${APXS} -e -A -n jk ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
|
2005-07-27 02:23:40 +00:00
|
|
|
${SED} -e "s#%%APACHE_CONF%%#${APACHE_CONF}#g" ${FILESDIR}/mod_jk.conf.sample \
|
|
|
|
> ${WRKDIR}/mod_jk.conf.sample
|
2003-06-11 10:30:58 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/mod_jk.conf.sample ${APACHE_CONF}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/workers.properties.sample ${APACHE_CONF}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${CAT} ${PKGMESSAGE} | ${SED} "s|/usr/local|${PREFIX}|g"
|
2001-05-20 14:00:25 +00:00
|
|
|
|
2003-09-24 08:55:01 +00:00
|
|
|
.include <bsd.port.post.mk>
|