blob: fb06087dbffc133fec998557f9d13ba120a1483c (
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
45
46
47
48
49
50
51
52
53
54
|
# 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.6
PORTEPOCH?= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= tomcat-connectors/jk/source
DISTNAME= jakarta-tomcat-connectors-jk-${PORTVERSION}-src
MAINTAINER?= girgen@FreeBSD.org
COMMENT?= Apache JK module for connecting to Tomcat using AJP1X
USE_APACHE= YES
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/apache2/apr.h)
WITH_APACHE2= YES
.endif
.if defined(WITH_APACHE2)
APACHE_VER= 2.0
APACHE2= 2
PLIST_SUB= APACHE2=2
PKGNAMESUFFIX= -apache2
.else
APACHE_VER= 1.3
APACHE2=
PLIST_SUB= APACHE2=
.endif
APACHE_CONF= ${LOCALBASE}/etc/apache${APACHE2}
WRKSRC= ${WRKDIR}/jakarta-tomcat-connectors-jk-${PORTVERSION}-src/jk/native
USE_GMAKE= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-apxs=${APXS}
do-install:
${APXS} -i -A -n jk ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
${SED} -e "s#%%APACHE_CONF%%#${APACHE_CONF}#g" ${FILESDIR}/mod_jk.conf.sample > ${WRKDIR}/mod_jk.conf.sample
${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"
.include <bsd.port.post.mk>
|