summaryrefslogtreecommitdiff
path: root/www/mod_jk/Makefile
blob: 26ca71b9f508aa634277806bcabd70879e873bbd (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
# 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
PORTVERSION=	1.2.37
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

MAKE_JOBS_SAFE=	yes

USE_APACHE?=	22+
APACHE_VER=	2.0

.include <bsd.port.pre.mk>

WRKSRC=		${WRKDIR}/tomcat-connectors-${PORTVERSION}-src/native

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--with-apxs=${APXS}

SUB_FILES+=	mod_jk.conf.sample pkg-message

do-install:
	${APXS} -i -n jk ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
	- ${APXS} -e -A -n jk ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
	${INSTALL_DATA} ${WRKDIR}/mod_jk.conf.sample ${LOCALBASE}/${APACHEETCDIR}
	${INSTALL_DATA} ${FILESDIR}/workers.properties.sample ${LOCALBASE}/${APACHEETCDIR}

post-install:
	${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>