diff options
author | jwise <jwise@pkgsrc.org> | 2000-01-16 21:41:08 +0000 |
---|---|---|
committer | jwise <jwise@pkgsrc.org> | 2000-01-16 21:41:08 +0000 |
commit | b21fd297197aef2da3793c660c6f25866975dc78 (patch) | |
tree | a1ccb3ed4001d7a0f894ddb35f1977e92ff8e424 /www/jakarta-tomcat/Makefile | |
parent | 69b28afa112ff98f5a9f3e61cc50873dadfda029 (diff) | |
download | pkgsrc-b21fd297197aef2da3793c660c6f25866975dc78.tar.gz |
Patch the sample Apache Server configuration file fragment that comes with
Tomcat so that it works out of the box with our Apache Server config.
Diffstat (limited to 'www/jakarta-tomcat/Makefile')
-rw-r--r-- | www/jakarta-tomcat/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/www/jakarta-tomcat/Makefile b/www/jakarta-tomcat/Makefile index d93ef0b6ec1..4190d038252 100644 --- a/www/jakarta-tomcat/Makefile +++ b/www/jakarta-tomcat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2000/01/13 22:14:53 jwise Exp $ +# $NetBSD: Makefile,v 1.6 2000/01/16 21:41:08 jwise Exp $ DISTNAME= jakarta-tomcat.src PKGNAME= jakarta-tomcat-3.0 @@ -21,6 +21,8 @@ NO_MTREE= JAKARTA_HOME?= ${JAVA_HOME}/jakarta MAKE_ENV+= JAVA_HOME=${JAVA_HOME} +MESSAGE_FILE= ${WRKDIR}/MESSAGE + post-extract: .for x in ${DISTFILES} cd ${WRKDIR} && ${EXTRACTOR} ${DISTDIR}/$x @@ -28,12 +30,19 @@ post-extract: post-patch: ${SED} -e s,@TOMCAT_HOME@,${JAKARTA_HOME}/tomcat,g \ - < ${WRKSRC}/build.xml > ${WRKSRC}/build.xml.tmp - ${MV} ${WRKSRC}/build.xml.tmp ${WRKSRC}/build.xml + < ${WRKSRC}/build.xml > ${WRKSRC}/build.tmp + ${MV} ${WRKSRC}/build.tmp ${WRKSRC}/build.xml + ${SED} -e s,@LOCALBASE@,${LOCALBASE},g \ + < ${WRKSRC}/src/etc/tomcat.conf > ${WRKSRC}/src/etc/tomcat.tmp + ${MV} ${WRKSRC}/src/etc/tomcat.tmp ${WRKSRC}/src/etc/tomcat.conf do-build: cd ${WRKSRC} && ${SH} ./build.sh +post-build: + ${SED} 's,@TOMCAT_HOME@,${JAKARTA_HOME}/tomcat,g' \ + < ${PKGDIR}/MESSAGE > ${WRKDIR}/MESSAGE + do-install: ${MKDIR} ${JAKARTA_HOME}/tomcat cd ${WRKSRC} && ${SH} ./build.sh dist |