File:  [cvs.NetBSD.org] / pkgsrc / www / jakarta-tomcat4 / Attic / Makefile
Revision 1.12: download - view: text, annotated - select for diffs
Thu Feb 22 19:27:20 2007 UTC (17 years, 9 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, HEAD
Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.

# $NetBSD: Makefile,v 1.12 2007/02/22 19:27:20 wiz Exp $

PKGNAME=	jakarta-tomcat4-${TOMCAT_VERSION}
DISTNAME=	jakarta-tomcat-${TOMCAT_VERSION}
PKGREVISION=			2
WRKSRC=		${WRKDIR}/${DISTNAME}
CATEGORIES=	www java
# The list of sites to download is generated by a jakarta website.
# The getsite.sh script parses the HTML and extracts the urls.

MAINTAINER=	erh@NetBSD.org
HOMEPAGE=	http://tomcat.apache.org/
COMMENT=	The Apache Project's Java Servlet 2.3 and JSP 1.2 server

TOMCAT_VERSION=	4.1.30

# This needs java 1.4 or higher.
USE_JAVA=run
USE_JAVA2=yes

TOMCAT_LIB=	${PREFIX}/tomcat4

SAMPLECONFDIR=			${TOMCAT_LIB}/conf
PKG_SYSCONFDIR.jakarta-tomcat4=	${SAMPLECONFDIR}

CFILES=		server.xml web.xml tomcat-users.xml
CFILES+=	catalina.policy jk2.properties

CONF_FILES=	# empty
.for FILE in ${CFILES}
CONF_FILES+=	${SAMPLECONFDIR}/${FILE}.default ${PKG_SYSCONFDIR}/${FILE}
.endfor
RCD_SCRIPTS=	tomcat4

FILES_SUBST+=	JAVA_HOME=${PKG_JAVA_HOME:Q} TOMCAT_LIB=${TOMCAT_LIB:Q}

.include "../../mk/java-vm.mk"

do-build:
.for FILE in ${CFILES}
	${MV} -f ${WRKSRC}/conf/${FILE} ${WRKSRC}/conf/${FILE}.default
.endfor

do-install:
	${INSTALL_DATA_DIR} ${TOMCAT_LIB}
	cd ${WRKSRC} && ${PAX} -rw -pm . ${TOMCAT_LIB}
	@${FIND} ${TOMCAT_LIB} -type f -print \
		| ${XARGS} ${CHMOD} a+r
	@${FIND} ${TOMCAT_LIB} \( -type f -o -perm -u+x \) -print \
		| ${XARGS} ${CHMOD} a+rx
	@${FIND} ${TOMCAT_LIB} -type d -print \
		| ${XARGS} ${CHMOD} a+rx

.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>