summaryrefslogtreecommitdiff
path: root/www/apache-tomcat55
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-01-21 18:57:40 +0000
committerjlam <jlam@pkgsrc.org>2006-01-21 18:57:40 +0000
commit758d912e338f2060213377f59a7f58ced9eeab24 (patch)
tree505836e71024eea9e19676a0f20b017dda96b7a3 /www/apache-tomcat55
parentd9e6b299d6df27e4615b1691c89bc1c67cf4e5f1 (diff)
downloadpkgsrc-758d912e338f2060213377f59a7f58ced9eeab24.tar.gz
Update package Makefile now that bsd.pkg.extract.mk is using the
"extract" script for extraction. Many cases where a custom EXTRACT_CMD simply copied the distfile into the work directory are no longer needed. The extract script also hides differences between pax and tar behind a common command-line interface, so we no longer need code that's conditional on whether EXTRACT_USING is tar or pax.
Diffstat (limited to 'www/apache-tomcat55')
-rw-r--r--www/apache-tomcat55/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/www/apache-tomcat55/Makefile b/www/apache-tomcat55/Makefile
index 7365a35b56c..0e5d75a7e03 100644
--- a/www/apache-tomcat55/Makefile
+++ b/www/apache-tomcat55/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/01/03 18:12:37 abs Exp $
+# $NetBSD: Makefile,v 1.2 2006/01/21 18:57:42 jlam Exp $
DISTNAME= apache-tomcat-${TOMCAT_VERSION}
CATEGORIES= www java
@@ -21,11 +21,12 @@ CATALINA_DIR= Catalina/localhost
EGDIR= ${TOMCAT_LIB}/share/examples/apache-tomcat
EGDIR2= ${EGDIR}/${CATALINA_DIR}
-USE_TOOLS+= gunzip tar
+.include "../../mk/bsd.prefs.mk"
-# Work around a horrible interaction with the gzip in NetBSD 2.0 (at least RC4)
-# If gzip is used in a pipeline the tarfile fails to extract. PR bin/27228
-EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKDIR}/tar.gz && ${GUNZIP_CMD} ${WRKDIR}/tar.gz && ${TAR} xf ${WRKDIR}/tar
+# Work around a bug in NetBSD 2.0's pax-as-tar (bin/27228)
+.if !empty(MACHINE_PLATFORM:MNetBSD-2.0*)
+EXTRACT_USING= gtar
+.endif
PKG_SYSCONFDIR.apache-tomcat= ${TOMCAT_LIB}/conf
MAKE_DIRS= ${PKG_SYSCONFDIR.apache-tomcat}/${CATALINA_DIR}