2009-07-07 21:07:35 +02:00
|
|
|
# $NetBSD: Makefile,v 1.14 2009/07/07 19:09:45 joerg Exp $
|
2004-04-29 17:08:06 +02:00
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
PKGNAME= jakarta-tomcat4-${TOMCAT_VERSION}
|
|
|
|
DISTNAME= jakarta-tomcat-${TOMCAT_VERSION}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2004-04-29 17:08:06 +02:00
|
|
|
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
|
2006-10-04 23:59:34 +02:00
|
|
|
HOMEPAGE= http://tomcat.apache.org/
|
2004-04-29 17:08:06 +02:00
|
|
|
COMMENT= The Apache Project's Java Servlet 2.3 and JSP 1.2 server
|
|
|
|
|
2009-07-07 21:07:35 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2004-04-29 17:08:06 +02:00
|
|
|
TOMCAT_VERSION= 4.1.30
|
|
|
|
|
|
|
|
# This needs java 1.4 or higher.
|
|
|
|
USE_JAVA=run
|
|
|
|
USE_JAVA2=yes
|
|
|
|
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= pax
|
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
TOMCAT_LIB= ${PREFIX}/tomcat4
|
2004-04-29 17:08:06 +02:00
|
|
|
|
|
|
|
SAMPLECONFDIR= ${TOMCAT_LIB}/conf
|
2004-04-29 18:03:59 +02:00
|
|
|
PKG_SYSCONFDIR.jakarta-tomcat4= ${SAMPLECONFDIR}
|
2004-04-29 17:08:06 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME:Q} TOMCAT_LIB=${TOMCAT_LIB:Q}
|
2004-04-29 17:08:06 +02:00
|
|
|
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
.for FILE in ${CFILES}
|
|
|
|
${MV} -f ${WRKSRC}/conf/${FILE} ${WRKSRC}/conf/${FILE}.default
|
|
|
|
.endfor
|
|
|
|
|
2009-07-07 21:07:35 +02:00
|
|
|
INSTALLATION_DIRS= ${TOMCAT_LIB}
|
|
|
|
|
2004-04-29 17:08:06 +02:00
|
|
|
do-install:
|
2009-07-07 21:07:35 +02:00
|
|
|
cd ${WRKSRC} && pax -rw -pm . ${DESTDIR}${TOMCAT_LIB}
|
|
|
|
@${FIND} ${DESTDIR}${TOMCAT_LIB} -type f -print \
|
2004-04-29 17:08:06 +02:00
|
|
|
| ${XARGS} ${CHMOD} a+r
|
2009-07-07 21:07:35 +02:00
|
|
|
@${FIND} ${DESTDIR}${TOMCAT_LIB} \( -type f -o -perm -u+x \) -print \
|
2004-04-29 17:08:06 +02:00
|
|
|
| ${XARGS} ${CHMOD} a+rx
|
2009-07-07 21:07:35 +02:00
|
|
|
@${FIND} ${DESTDIR}${TOMCAT_LIB} -type d -print \
|
2004-04-29 17:08:06 +02:00
|
|
|
| ${XARGS} ${CHMOD} a+rx
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|