diff options
author | jwise <jwise> | 2000-09-11 15:39:10 +0000 |
---|---|---|
committer | jwise <jwise> | 2000-09-11 15:39:10 +0000 |
commit | 10fa58ff1d033d747a38f54ef841165a41fdebb1 (patch) | |
tree | 799fa695ab9bd7071a886ddaaf2b36b6d48205de /www/jsdk20 | |
parent | 78ed2917950e72dd73eec2554ad18f6491f15b70 (diff) | |
download | pkgsrc-10fa58ff1d033d747a38f54ef841165a41fdebb1.tar.gz |
Add a pre-fetch: target to install the urlget package, and a do-fetch:
target to actually go out and fetch the jsdk distribution by using urlget
to navigate Sun's web forms.
Make this behavior depend on the value sun-jsdk20-license being in
ACCEPTABLE_LICENSES.
Diffstat (limited to 'www/jsdk20')
-rw-r--r-- | www/jsdk20/Makefile | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/www/jsdk20/Makefile b/www/jsdk20/Makefile index 4696ba178b5..ba774b85ace 100644 --- a/www/jsdk20/Makefile +++ b/www/jsdk20/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2000/08/18 22:46:51 hubertf Exp $ +# $NetBSD: Makefile,v 1.8 2000/09/11 15:39:10 jwise 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. @@ -11,6 +11,7 @@ CATEGORIES= www MASTER_SITES= # none EXTRACT_SUFX= .tar.Z +LICENSE= sun-jsdk20-license MAINTAINER= jwise@netbsd.org HOMEPAGE= http://java.sun.com/products/servlet/index.html @@ -30,14 +31,29 @@ NO_BIN_ON_CDROM= ${RESTRICTED} .include "../../mk/bsd.prefs.mk" +TEMPDIR?= /tmp +TEMPFILE!=echo ${TEMPDIR}/jsdk20.location.$$$$ + +pre-fetch: + @if [ ! -x ${LOCALBASE}/bin/urlget ];\ + then \ + ${ECHO} '==> Installing urlget to fetch swing' ; \ + (cd ../../www/urlget && make install) ; \ + fi + do-fetch: - @if [ ! -f ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ - ${ECHO_MSG} "==============================================================="; \ - ${ECHO_MSG} " For licensing reasons, the JSDK 2.0 distribution must be"; \ - ${ECHO_MSG} " fetched manually into \"${DISTDIR}/${DIST_SUBDIR}\" from"; \ - ${ECHO_MSG} " http://java.sun.com/products/servlet/download.html"; \ - ${ECHO_MSG} "==============================================================="; \ - ${FALSE}; \ + -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|'` ;\ fi do-install: |