e9e8f2e1b4
Various bugs fixed, some added and renamed jar files. Changelog available at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html
68 lines
1.9 KiB
Makefile
68 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.47 2004/07/22 21:30:30 erh Exp $
|
|
|
|
DISTNAME= jakarta-tomcat-${TOMCAT_VERSION}
|
|
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.
|
|
DYNAMIC_MASTER_SITES=1
|
|
|
|
MAINTAINER= erh@NetBSD.org
|
|
HOMEPAGE= http://jakarta.apache.org/tomcat/
|
|
COMMENT= The Apache Project's Java Servlet 2.4 and JSP 2.0 server
|
|
|
|
TOMCAT_VERSION= 5.0.27
|
|
|
|
# This needs java 1.4 or higher.
|
|
USE_JAVA2= yes
|
|
USE_BUILDLINK3= yes
|
|
|
|
TOMCAT_LIB= ${PREFIX}/tomcat
|
|
CATALINA_DIR= Catalina/localhost
|
|
|
|
EGDIR= ${TOMCAT_LIB}/share/examples/${PKGBASE}
|
|
EGDIR2= ${EGDIR}/${CATALINA_DIR}
|
|
|
|
PKG_SYSCONFDIR.jakarta-tomcat= ${TOMCAT_LIB}/conf
|
|
MAKE_DIRS= ${PKG_SYSCONFDIR.jakarta-tomcat}/${CATALINA_DIR}
|
|
|
|
USE_PKGINSTALL= yes
|
|
RCD_SCRIPTS= tomcat
|
|
CFILES= server.xml web.xml tomcat-users.xml
|
|
CFILES+= catalina.policy catalina.properties jk2.properties
|
|
CF2FILES= admin.xml balancer.xml manager.xml
|
|
|
|
CONF_FILES= # empty
|
|
.for f in ${CFILES}
|
|
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
|
|
.endfor
|
|
.undef f
|
|
.for f in ${CF2FILES}
|
|
CONF_FILES+= ${EGDIR2}/${f} ${PKG_SYSCONFDIR}/${CATALINA_DIR}/${f}
|
|
.endfor
|
|
.undef f
|
|
|
|
FILES_SUBST+= JAVA_HOME=${PKG_JVM_HOME} TOMCAT_LIB=${TOMCAT_LIB}
|
|
|
|
do-build:
|
|
@${MV} ${WRKSRC}/conf ${WRKDIR}
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${EGDIR2}
|
|
.for f in ${CFILES}
|
|
${INSTALL_DATA} ${WRKDIR}/conf/${f} ${EGDIR}
|
|
.endfor
|
|
.undef f
|
|
.for f in ${CF2FILES}
|
|
${INSTALL_DATA} ${WRKDIR}/conf/${CATALINA_DIR}/${f} ${EGDIR2}
|
|
.endfor
|
|
.undef f
|
|
${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; \
|
|
${FIND} ${TOMCAT_LIB} -type f -name \*.bat -print | \
|
|
${XARGS} rm -f)
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|