ca4bae8577
- don't change SYSCONFDIR, use CONFDIR/SUBST_VARS instead and if neccessary use "CONFIGURE_STYLE=gnu old" and explicitly set --sysconfdir=${CONFDIR} a few more to come...
57 lines
1.8 KiB
Makefile
57 lines
1.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.9 2003/05/12 18:02:45 sturm Exp $
|
|
|
|
COMMENT= "Java servlet 2.3 and Java server pages 1.2 server"
|
|
|
|
# Requires a JVM
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
V= 4.0.6
|
|
DISTNAME= jakarta-tomcat-${V}
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v${V}/bin/
|
|
EXTRACT_SUFX= .zip
|
|
|
|
HOMEPAGE= http://jakarta.apache.org/
|
|
|
|
MAINTAINER= Reinhard J. Sammer <reinhard@openbsd.org>
|
|
|
|
JDK_VERSION= 1.3.1-linux
|
|
JAVA_HOME= ${LOCALBASE}/jdk${JDK_VERSION}
|
|
RUN_DEPENDS= :jdk-linux->1.3:devel/jdk/1.3-linux
|
|
|
|
# Apache Software License
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
NO_BUILD= Yes
|
|
NO_REGRESS= Yes
|
|
|
|
CONF_FILES=catalina.policy server-noexamples.xml.config server.xml \
|
|
tomcat-users.xml web.xml
|
|
CONFDIR= ${SYSCONFDIR}/tomcat
|
|
DIRS= bin classes common conf lib server webapps
|
|
DOCS=LICENSE RELEASE-NOTES-4.0-B1.txt RELEASE-NOTES-4.0-B2.txt \
|
|
RELEASE-NOTES-4.0-B3.txt RELEASE-NOTES-4.0-B4.txt RELEASE-NOTES-4.0-B5.txt \
|
|
RELEASE-NOTES-4.0-B6.txt RELEASE-NOTES-4.0-B7.txt RELEASE-NOTES-4.0-RC1.txt \
|
|
RELEASE-NOTES-4.0-RC2.txt RELEASE-NOTES-4.0.1-B1.txt RELEASE-NOTES-4.0.1.txt \
|
|
RELEASE-NOTES-4.0.txt RELEASE-PLAN-4.0.1.txt RELEASE-PLAN-4.0.txt RUNNING.txt
|
|
TOMCATDIR= /var/tomcat
|
|
SUBST_VARS= TOMCATDIR CONFDIR DISTNAME
|
|
|
|
post-patch:
|
|
@cd ${WRKDIST}/conf && perl -pi -e 's,\r,,g' ${CONF_FILES}
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${DISTNAME}
|
|
cd ${WRKDIST} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/${DISTNAME}
|
|
cd ${WRKDIST}/bin && chmod +x *.sh # for .zip file
|
|
cd ${WRKDIST} && \
|
|
tar cf - ${DIRS} | (cd ${PREFIX}/${DISTNAME} && tar -xf -)
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/${DISTNAME}/conf
|
|
rm -f ${PREFIX}/${DISTNAME}/bin/catalina.sh.orig \
|
|
${PREFIX}/${DISTNAME}/conf/server.xml.orig
|
|
|
|
.include "bsd.port.mk"
|