pkgsrc/www/jakarta-tomcat4/Makefile

60 lines
1.5 KiB
Makefile
Raw Normal View History

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
PKGNAME= jakarta-tomcat4-${TOMCAT_VERSION}
DISTNAME= jakarta-tomcat-${TOMCAT_VERSION}
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
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
USE_TOOLS+= pax
TOMCAT_LIB= ${PREFIX}/tomcat4
2004-04-29 17:08:06 +02:00
SAMPLECONFDIR= ${TOMCAT_LIB}/conf
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
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"