summaryrefslogtreecommitdiffstats
path: root/www/mod_jk/Makefile
blob: c4b71866d3b3133376638715f71ad69d81116707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Created by: Dirk Froemberg <dirk@FreeBSD.org>
# $FreeBSD$

PORTNAME=	mod_jk
PORTVERSION=	1.2.40
PORTEPOCH?=	1
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR=	tomcat/tomcat-connectors/jk/
PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
DISTNAME=	tomcat-connectors-${PORTVERSION}-src

MAINTAINER?=	girgen@FreeBSD.org
COMMENT?=	Apache JK module for connecting to Tomcat using AJP1X

USES=	gmake
USE_APACHE?=	22+
APACHE_VER=	2.0
GNU_CONFIGURE=	yes

CONFIGURE_ARGS+=	--with-apxs=${APXS}
WRKSRC=		${WRKDIR}/tomcat-connectors-${PORTVERSION}-src/native

SUB_FILES=	mod_jk.conf.sample pkg-message

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
	${APXS} -i -n jk -S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR} ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
	${MKDIR} ${STAGEDIR}${LOCALBASE}/${APACHEETCDIR}
	${INSTALL_DATA} ${WRKDIR}/mod_jk.conf.sample ${STAGEDIR}${LOCALBASE}/${APACHEETCDIR}
	${INSTALL_DATA} ${FILESDIR}/workers.properties.sample ${STAGEDIR}${LOCALBASE}/${APACHEETCDIR}
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_jk.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud