summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-09-27 20:27:32 +0000
committerjlam <jlam@pkgsrc.org>2001-09-27 20:27:32 +0000
commit0312b354c0bf1dbe27e66082d54d7d2e24ab107f (patch)
tree0ba9173abaede90790813c6ef3d8cb9c1a8f93f2 /www
parente34e9c5b2766369054c5bb1e5b7675a8bbdc60c2 (diff)
downloadpkgsrc-0312b354c0bf1dbe27e66082d54d7d2e24ab107f.tar.gz
Sun moved the distfiles, so fix the pre-fetch and do-fetch targets. Also
add a check for the distfile before descending into the urlget directory and making urlget. This fixes the problem with abusing BUILD_DEPENDS to ensure that urlget is installed prior to fetching the distfiles, noted in pkg/13410 by Bernd Ernesti <bernd@arresum.inka.de>.
Diffstat (limited to 'www')
-rw-r--r--www/jsdk20/Makefile37
1 files changed, 21 insertions, 16 deletions
diff --git a/www/jsdk20/Makefile b/www/jsdk20/Makefile
index e9dfc46788f..0bfba18707a 100644
--- a/www/jsdk20/Makefile
+++ b/www/jsdk20/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2001/04/05 19:27:41 jwise Exp $
+# $NetBSD: Makefile,v 1.16 2001/09/27 20:27:32 jlam Exp $
# STOP! Don't update this to a later version of this software.
# The JSDK and Apache Jakarta projects have merged, making the
# jakarta-tomcat package the current version of this software.
@@ -15,7 +15,7 @@ MAINTAINER= jwise@netbsd.org
HOMEPAGE= http://java.sun.com/products/servlet/index.html
COMMENT= Sun's Java Servlet Development Kit, version 2.0
-BUILD_DEPENDS+= urlget-1.3:../../www/urlget
+BUILD_DEPENDS+= urlget>=1.3:../../www/urlget
LICENSE= sun-jsdk20-license
USE_JAVA= yes
@@ -35,24 +35,29 @@ NO_BIN_ON_CDROM= ${RESTRICTED}
.include "../../mk/bsd.prefs.mk"
TEMPDIR?= /tmp
-TEMPFILE!=echo ${TEMPDIR}/jsdk20.location.$$$$
+TEMPFILE!= echo ${TEMPDIR}/jsdk20.location.$$$$
+URLGET?= ${LOCALBASE}/bin/urlget
pre-fetch:
- ${MAKE} install-depends DEPENDS=
+ @if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
+ if [ ! -x ${URLGET} ]; then \
+ ${MAKE} install-depends DEPENDS=; \
+ fi; \
+ fi
do-fetch:
- -if [ ! -f ${DISTDIR}/${DISTFILES} ] ; \
- then \
- ${LOCALBASE}/bin/urlget -p http://java.sun.com/cgi-bin/download2.cgi \
- referer=http://java.sun.com/products/servlet/download.html \
- protocol="FTP Download" \
- download-name=jsdk20-solaris2-sparc.tar.Z \
- config-file=jsdk20.config \
- platform=solaris2-sparc \
- domain-checked= \
- > ${TEMPFILE} ; \
- ${FETCH_CMD} -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} `${GREP} ftp:// ${TEMPFILE} | \
- ${SED} -e 's|.*\(ftp://.*.tar.Z\).*|\1|'` ;\
+ -@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
+ ${URLGET} -p http://java.sun.com/cgi-bin/download2.cgi \
+ referer= \
+ protocol="FTP Download" \
+ download-name=${DISTNAME}${EXTRACT_SUFX} \
+ config-file=jsdk20.config \
+ platform=solaris2-sparc \
+ domain-checked= \
+ > ${TEMPFILE}; \
+ ${FETCH_CMD} -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
+ `${GREP} ftp:// ${TEMPFILE} | \
+ ${SED} -e 's|.*\(ftp://.*.tar.Z\).*|\1|'`; \
fi
do-install: