pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/jsdk20 The distfile has moved. Tell the user to f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0977e569419c
branches:  trunk
changeset: 470343:0977e569419c
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Mon Mar 08 15:35:17 2004 +0000

description:
The distfile has moved.  Tell the user to fetch it from the new
location (the automatic fetch has been removed, because Sun want
the user to click "accept" to a license agreement before downloading).

diffstat:

 www/jsdk20/Makefile |  42 ++++++++++++++----------------------------
 1 files changed, 14 insertions(+), 28 deletions(-)

diffs (64 lines):

diff -r 2d4ff1a2bfcc -r 0977e569419c www/jsdk20/Makefile
--- a/www/jsdk20/Makefile       Mon Mar 08 15:24:40 2004 +0000
+++ b/www/jsdk20/Makefile       Mon Mar 08 15:35:17 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2004/01/20 12:27:59 agc Exp $
+# $NetBSD: Makefile,v 1.24 2004/03/08 15:35:17 kristerw 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 @@
 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
+ARCHIVE=       http://java.sun.com/products/servlet/archive.html
 
 LICENSE=       sun-jsdk20-license
 USE_JAVA=      run
@@ -31,33 +31,19 @@
 NO_BIN_ON_FTP=         ${RESTRICTED}
 NO_BIN_ON_CDROM=       ${RESTRICTED}
 
-.include "../../mk/bsd.prefs.mk"
-
-TEMPDIR?=      /tmp
-TEMPFILE!=     echo ${TEMPDIR}/jsdk20.location.$$$$
-URLGET?=       ${LOCALBASE}/bin/urlget
-
-pre-fetch:
-       @if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then        \
-               if [ ! -x ${URLGET} ]; then                             \
-                       ${MAKE} install-depends DEPENDS=;               \
-               fi;                                                     \
-       fi
+_FETCH_MESSAGE=                                                        \
+       ${ECHO} "======================================================================"; \
+       ${ECHO} ;                                                       \
+       ${ECHO} " The file ${DISTNAME}${EXTRACT_SUFX} containing";      \
+       ${ECHO} " ${COMMENT} must be fetched";                          \
+       ${ECHO} " into:";                                               \
+       ${ECHO} "       ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}";         \
+       ${ECHO} " from:";                                               \
+       ${ECHO} "       ${ARCHIVE}";                                    \
+       ${ECHO} ;                                                       \
+       ${ECHO} "======================================================================"
 
-do-fetch:
-       -@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
+.include "../../mk/bsd.prefs.mk"
 
 do-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/lib/java



Home | Main Index | Thread Index | Old Index