aboutsummaryrefslogtreecommitdiffstats
path: root/www/jakarta-tomcat41/Makefile
blob: 8c2020ee724484d656cd9bd788a90f0f171789b1 (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
# New ports collection makefile for:    jakarta-tomcat
# Date created:     20 Oct 2000
# Whom:         des
#
# $FreeBSD$
#

PORTNAME=   jakarta-tomcat
PORTVERSION=    3.2.3
CATEGORIES= www
MASTER_SITES=   http://www.apache.org/dist/jakarta/jakarta-tomcat/release/v${PORTVERSION}/bin/
DIST_SUBDIR=    jakarta/tomcat/${PORTVERSION}

MAINTAINER= znerd@FreeBSD.org

BUILD_DEPENDS=  pinstall:${PORTSDIR}/devel/pinstall
RUN_DEPENDS=    ${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk

NO_BUILD=   yes

do-install:
    @/usr/bin/perl -i -pe "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/conf/workers.properties
    @${LN} -fs ${WRKSRC} ${WRKDIR}/tomcat
    @pinstall -v -d ${WRKDIR}
    @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/tomcat.sh > ${WRKDIR}/tomcat.sh
    @${INSTALL_SCRIPT} ${WRKDIR}/tomcat.sh /usr/local/etc/rc.d

post-install:
    @${ECHO_CMD} "etc/rc.d/tomcat.sh" >> ${TMPPLIST}

.include <bsd.port.mk>