pkgsrc/lang/sun-jdk13/Makefile
tron 9234c060b2 Update "sun-jre13" and "sun-jdk13" packages to version 1.3.1.0.2. The
update fixes an bug in the Bytecode Verifier which may be exploited by an
untrusted applet to escalate privileges.
2002-03-19 16:33:58 +00:00

69 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2002/03/19 16:33:58 tron Exp $
# MASTER_SITES is very special, and must end in "=":
DISTNAME= j2sdk-1_3_1_02-linux-i386
PKGNAME= sun-jdk-1.3.1.0.2
CATEGORIES= lang
MASTER_SITES= http://java.sun.com/Download4?config-file=j2sdk-1_3_1_02.config&platform=linux-i386&protocol=HTTP+download&download-name=
EXTRACT_SUFX= .bin
MAINTAINER= tv@netbsd.org
HOMEPAGE= http://java.sun.com/
COMMENT= Sun's Java(tm) Development Kit 1.3.1
DEPENDS= sun-jre-1.3.1.0.2:../../lang/sun-jre13
CONFLICTS= jdk-[0-9]* blackdown-j*
FETCH_BEFORE_ARGS=-o ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_CMD= ${ECHO} yes | ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} >/dev/null
WRKSRC= ${WRKDIR}/jdk1.3.1_02
LICENSE= jdk13-license
RESTRICTED= "Redistribution of repackaged binaries not permitted"
NO_SRC_ON_CDROM=${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
.include "../../mk/bsd.prefs.mk"
.if !defined(JDK_HOME)
JDK_HOME:= ${LOCALBASE}/java
.endif
NO_BUILD= yes
# since we change PREFIX:
NO_MTREE= yes
ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i[3-6]86
LDD= ${TRUE}
post-fetch:
@${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
post-extract:
@${RM} -rf ${WRKSRC}/jre ${WRKSRC}/bin/java
post-patch:
@${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
# This is ugly. The chown should happen after copying, ot tar should have
# a way to override permissions.
do-install:
${INSTALL_PROGRAM_DIR} ${PREFIX}
${CHOWN} -hR ${BINOWN}:${BINGRP} ${WRKSRC}
${GTAR} -C ${WRKSRC} -cf- . | ${GTAR} -C ${PREFIX} -xpf-
.include "../../mk/bsd.pkg.mk"
# These need to be after bsd.pkg.mk
.if ${OPSYS} == "Linux"
# No patches on linux
PATCHDIR= ${WRKDIR}/.patches
pre-patch:
${MKDIR} ${PATCHDIR}
.endif
PREFIX:= ${JDK_HOME}