summaryrefslogtreecommitdiff
path: root/java/jdk15
diff options
context:
space:
mode:
Diffstat (limited to 'java/jdk15')
-rw-r--r--java/jdk15/Makefile388
-rw-r--r--java/jdk15/distinfo8
-rw-r--r--java/jdk15/files/cacertsbin80122 -> 0 bytes
-rw-r--r--java/jdk15/files/license.sh194
-rw-r--r--java/jdk15/files/patch-FloatingDecimal.java11
-rw-r--r--java/jdk15/files/patch-deploy::controlpanel::sun_java.desktop13
-rw-r--r--java/jdk15/files/patch-j2se-motif21-Makefile15
-rw-r--r--java/jdk15/files/patch-j2se::awt::awt_GraphicsEnv.h15
-rw-r--r--java/jdk15/files/patch-j2se::common::Defs-bsd.gmk24
-rw-r--r--java/jdk15/files/patch-j2se::gtk::GTKLookAndFeel.java15
-rw-r--r--java/jdk15/files/patch-j2se::gtk::Metacity.java15
-rw-r--r--java/jdk15/files/patch-j2se::nio::genCharsetProvider.sh17
-rw-r--r--java/jdk15/files/patch-j2se::pkcs11::Makefile22
-rw-r--r--java/jdk15/files/patch-j2se::security::Makefile13
-rw-r--r--java/jdk15/files/patch-java_Makefile11
-rw-r--r--java/jdk15/files/pkg-deinstall.in31
-rw-r--r--java/jdk15/files/pkg-install.in57
-rw-r--r--java/jdk15/files/x_x2zip.c117
-rw-r--r--java/jdk15/pkg-descr11
19 files changed, 0 insertions, 977 deletions
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile
deleted file mode 100644
index 6f63b8e2b653..000000000000
--- a/java/jdk15/Makefile
+++ /dev/null
@@ -1,388 +0,0 @@
-# Created by: Alexey Zelkin <phantom@FreeBSD.org>
-# $FreeBSD$
-
-PORTNAME= jdk
-PORTVERSION= ${JDK_VERSION}.${JDK_UPDATE_VERSION}p${JDK_PATCHSET_VERSION}
-PORTREVISION= 19
-PORTEPOCH= 1
-CATEGORIES= java devel
-MASTER_SITES= # http://download.java.net/tiger/
-# http://www.eyesbeyond.com/freebsddom/java/jdk15.html
-# http://java.sun.com/javase/downloads/index.jsp
-DISTFILES= ${JRL_SRCFILE} ${JRL_BINFILE} ${PATCHSETFILE}
-EXTRACT_ONLY= ${JRL_SRCFILE} ${JRL_BINFILE}
-
-MAINTAINER= glewis@FreeBSD.org
-COMMENT= Java Development Kit 1.5.0
-
-DEPRECATED= EOLed upstream since october 2009
-EXPIRATION_DATE= 2012-11-27
-
-BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
- zip:${PORTSDIR}/archivers/zip \
- ${LOCALBASE}/lib/libXm.so:${PORTSDIR}/x11-toolkits/open-motif
-RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
-
-OPTIONS= DEBUG "Enable debugging support" off \
- IPV6 "Enable IPv6 support" off \
- WEB "Enable the browser plugin and Java Web Start" on \
- POLICY "Install the Unlimited Strength Policy Files" off \
- TZUPDATE "Update the time zone data" on \
- JAIL "Port is being built within a jail" off
-
-WANT_GNOME= yes
-PKGINSTALL= ${WRKDIR}/pkg-install
-PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
-SUB_FILES+= pkg-install \
- pkg-deinstall
-SUB_LIST+= JRE_HOME=${PREFIX}/jdk${JDK_VERSION}/jre \
- ARCH=${MACHINE_ARCH}
-
-WRKSRC= ${WRKDIR}/control/make
-
-USE_ZIP= yes
-MAKE_JOBS_UNSAFE= yes
-IS_INTERACTIVE= yes
-
-JRL_SRCFILE= jdk-${JDK_VERSION:S/./_/g}_${JDK_UPDATE_VERSION}-fcs-src-b${JDK_BUILD_NUMBER}-jrl-${JDK_BUILD_DATE}.jar
-JRL_BINFILE= jdk-${JDK_VERSION:S/./_/g}_${JDK_UPDATE_VERSION}-fcs-bin-b${JDK_BUILD_NUMBER}-jrl-${JDK_BUILD_DATE}.jar
-PATCHSETFILE= bsd-jdk15-patches-${JDK_PATCHSET_VERSION}.tar.bz2
-POLICYFILE= jce_policy-${JDK_VERSION:S/./_/g}.zip
-
-JDK_VERSION= 1.5.0
-JDK_UPDATE_VERSION= 16
-JDK_PATCHSET_VERSION= 9
-JDK_BUILD_NUMBER= 02
-JDK_BUILD_DATE= 28_may_2008
-LATEST_LINK= jdk15
-
-.include <bsd.port.pre.mk>
-
-.if !defined(WITH_LINUX_BOOTSTRAP)
-NATIVE_BOOTSTRAP_JDKS= ${LOCALBASE}/diablo-jdk1.6.0 \
- ${LOCALBASE}/diablo-jdk1.5.0 \
- ${LOCALBASE}/jdk1.5.0 \
- ${LOCALBASE}/jdk1.6.0 \
- ${LOCALBASE}/jdk1.4.2
-.endif
-
-LINUX_BOOTSTRAP_JDKS= ${LOCALBASE}/linux-sun-jdk1.5.0 \
- ${LOCALBASE}/linux-sun-jdk1.6.0 \
- ${LOCALBASE}/linux-sun-jdk1.4.2
-
-.if defined(WITH_IPV6)
-CATEGORIES+= ipv6
-.endif
-
-.if defined(WITH_POLICY)
-DISTFILES+= ${POLICYFILE}
-EXTRACT_ONLY+= ${POLICYFILE}
-.endif
-
-.if defined(WITH_TZUPDATE)
-RUN_DEPENDS+= ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo
-.endif
-
-# do we have valid native jdk installed?
-.if !defined(WITH_LINUX_BOOTSTRAP)
-.for CJDK in ${NATIVE_BOOTSTRAP_JDKS}
-. if !defined(BOOTSTRAPJDKDIR) && exists(${CJDK}/bin/javac)
-BOOTSTRAPJDKDIR= ${CJDK}
-. endif
-.endfor
-.endif
-
-# do we have valid linux jdk installed?
-.if !defined(BOOTSTRAPJDKDIR)
-.for CJDK in ${LINUX_BOOTSTRAP_JDKS}
-. if !defined(BOOTSTRAPJDKDIR) && exists(${CJDK}/bin/javac)
-BOOTSTRAPJDKDIR= ${CJDK}
-WITH_LINUX_BOOTSTRAP= YES
-. endif
-.endfor
-.endif
-
-# if no valid jdk found, set dependency
-.if !defined(BOOTSTRAPJDKDIR) || !exists(${BOOTSTRAPJDKDIR}/bin/javac)
-BOOTSTRAPJDKDIR= ${LOCALBASE}/diablo-jdk1.6.0
-BUILD_DEPENDS+= ${BOOTSTRAPJDKDIR}/bin/javac:${PORTSDIR}/java/diablo-jdk16
-.endif
-
-.if defined(WITHOUT_WEB)
-MAKE_ENV+= DONT_BUILD_DEPLOY="YES"
-.else
-USE_GNOME= desktopfileutils
-LIB_DEPENDS= nspr4.1:$(PORTSDIR)/devel/nspr
-.endif
-
-ONLY_FOR_ARCHS= i386 amd64
-USE_GMAKE= YES
-USE_ICONV= YES
-USE_XORG+= x11 xext xi xmu xp xt xtst xft
-RESTRICTED= Redistribution of pre-compiled binaries is not permitted
-NO_CDROM= Redistribution of pre-compiled binaries is not permitted
-
-MAKE_ENV+= ALT_BOOTDIR="${BOOTSTRAPJDKDIR}" \
- ALT_MOTIF_DIR="${LOCALBASE}" \
- X11DIR="${LOCALBASE}" \
- LOCALDIR="${LOCALBASE}" \
- DEFAULT_LD_LIBRARY_PATH="/usr/lib:${LOCALBASE}/lib" \
- SYS_CFLAGS="${CFLAGS}" \
- LANG="C" \
- JAVA_HOME="" \
- CLASSPATH="" \
- LD_LIBRARY_PATH="" \
- MAKEFLAGS="" \
- SKIP_COMPARE_IMAGES="YES"
-.if !defined(WITH_IPV6)
-MAKE_ENV+= DONT_ENABLE_IPV6="YES"
-.endif
-
-.if !defined(DISABLE_MAKE_JOBS)
-.if defined(MAKE_JOBS_NUMBER)
-BUILD_JOBS_NUMBER= ${MAKE_JOBS_NUMBER}
-.else
-BUILD_JOBS_NUMBER= `${SYSCTL} -n kern.smp.cpus`
-.endif
-MAKE_ENV+= HOTSPOT_BUILD_JOBS=${BUILD_JOBS_NUMBER}
-.endif
-
-ALL_TARGET= all
-
-PLIST_FILES= jdk${JDK_VERSION}/jre/.systemPrefs/.system.lock \
- jdk${JDK_VERSION}/jre/.systemPrefs/.systemRootModFile
-.if !defined(WITHOUT_WEB)
-PLIST_FILES+= share/applications/sun_java15.desktop
-.endif
-PLIST_DIRS= jdk${JDK_VERSION}/jre/.systemPrefs
-
-.if (${ARCH} == amd64)
-HOTSPOTARCH=amd64
-.else
-HOTSPOTARCH=i586
-.endif
-
-JDKIMAGEDIR= ${WRKSRC}/../build/bsd-${HOTSPOTARCH}/j2sdk-image
-JDKIMAGEDIR_G= ${WRKSRC}/../build/bsd-${HOTSPOTARCH}/j2sdk-debug-image
-
-PTHREAD_FILES= ../../hotspot/build/bsd/makefiles/vm.make \
- ../../j2se/make/com/sun/java/pack/Makefile \
- ../../j2se/make/common/Defs.gmk \
- ../../j2se/make/common/Defs-bsd.gmk \
- ../../j2se/make/common/Program.gmk \
- ../../j2se/make/java/hpi/native/Makefile \
- ../../j2se/make/java/net/Makefile \
- ../../j2se/make/java/nio/Makefile \
- ../../j2se/make/jpda/transport/socket/Makefile \
- ../../j2se/make/sun/cmm/Makefile \
- ../../j2se/make/sun/xawt/Makefile
-X11_FILES= ../../j2se/make/sun/motif21/Makefile \
- ../../j2se/src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java \
- ../../j2se/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java
-
-# Check for JDK sources and patch file
-.if !defined(PACKAGE_BUILDING) && (!exists(${DISTDIR}/${JRL_SRCFILE}) || !exists(${DISTDIR}/${JRL_BINFILE}) || (defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE})) || !exists(${DISTDIR}/${PATCHSETFILE}))#{
-DISTFILE_INSTRUCTIONS=\n\
-Due to licensing restrictions, certain files must be fetched manually.\n\n
-.if !exists(${DISTDIR}/${JRL_SRCFILE}) || !exists(${DISTDIR}/${JRL_BINFILE})#{
-DISTFILE_INSTRUCTIONS += Please open http://download.java.net/tiger/\n\
-in a web browser. Download the\n
-.if !exists(${DISTDIR}/${JRL_SRCFILE})#{
-DISTFILE_INSTRUCTIONS += Update ${JDK_UPDATE_VERSION} Source, ${JRL_SRCFILE}
-.endif#}
-.if !exists(${DISTDIR}/${JRL_BINFILE})#{
-.if !exists(${DISTDIR}/${JRL_SRCFILE})#{
-DISTFILE_INSTRUCTIONS += and the\n
-.endif#}
-DISTFILE_INSTRUCTIONS += Source Binaries, ${JRL_BINFILE}
-.endif#}
-DISTFILE_INSTRUCTIONS += .\n\n
-.endif#}
-.if defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE})#{
-DISTFILE_INSTRUCTIONS += Please open http://www.oracle.com/technetwork/java/javase/downloads/index-jdk5-jsp-142662.html\n\
-in a web browser and follow the \"Download\" link for\n\
-\"Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy\n\
-Files 5.0\" to obtain the JCE policy file, ${POLICYFILE}.\n\n
-.endif#}
-.if !exists(${DISTDIR}/${PATCHSETFILE})#{
-DISTFILE_INSTRUCTIONS += Please download the patchset, ${PATCHSETFILE}, from\n\
-http://www.eyesbeyond.com/freebsddom/java/jdk15.html.\n\n
-.endif#}
-DISTFILE_INSTRUCTIONS += Please place the downloaded file(s) in ${DISTDIR}
-DISTFILE_INSTRUCTIONS += \n and restart the build.\n\n
-.endif#}
-
-pre-fetch:
- @${ECHO_MSG}
- @${ECHO_MSG} "IMPORTANT: To build the JDK 1.5.0 port, you should have at least"
- @${ECHO_MSG} "2.5Gb of free disk space in the build area!"
- @${ECHO_MSG}
-.if defined(WITH_LINUX_BOOTSTRAP)
- @${ECHO_MSG} "IMPORTANT: To build the JDK 1.5.0 port, you should have linux emulation"
- @${ECHO_MSG} "enabled in the kernel and the linux procfs (linprocfs) filesystem"
- @${ECHO_MSG} "mounted."
- @${ECHO_MSG}
-.endif
-.if defined(DISTFILE_INSTRUCTIONS)
- @${PRINTF} "${DISTFILE_INSTRUCTIONS}"
- @exit 1
-.endif
-
-# Get JRL agreement
-.if !defined(PACKAGE_BUILDING)
-pre-extract:
- ${SH} ${FILESDIR}/license.sh
-.endif
-
-# Extract the files
-do-extract:
- @${RM} -rf ${WRKDIR}
- @${MKDIR} ${WRKDIR}
- @${CC} ${CFLAGS} -o ${WRKDIR}/x_x2zip ${FILESDIR}/x_x2zip.c
- @for file in ${EXTRACT_ONLY}; do \
- if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} "${DISTDIR}/$$file" ${EXTRACT_AFTER_ARGS}); \
- then \
- exit 1; \
- fi; \
- if [ `basename $$file .jar` != $$file ]; \
- then \
- if ! (cd ${WRKDIR} && ${WRKDIR}/x_x2zip 'YES I ACCEPT THE CLICK THROUGH LICENSE. ' X_X && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKDIR}/X_X.zip ${EXTRACT_AFTER_ARGS}); \
- then \
- exit 1; \
- fi; \
- fi \
- done
-
-post-extract:
- cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
- j2se/make/tools/crypto/pkcs11/sunpkcs11_src.zip \
- ${EXTRACT_AFTER_ARGS}
- -${MKDIR} ${WRKDIR}/j2se/make/sun/security
- -${MKDIR} ${WRKDIR}/j2se/src/share/classes/sun/security
- -${MKDIR} ${WRKDIR}/j2se/src/share/native/sun/security
- -${MKDIR} ${WRKDIR}/j2se/src/solaris/native/sun/security
- ${MV} ${WRKDIR}/make/sun/security/pkcs11 \
- ${WRKDIR}/j2se/make/sun/security/pkcs11
- ${MV} ${WRKDIR}/src/share/classes/sun/security/pkcs11 \
- ${WRKDIR}/j2se/src/share/classes/sun/security/pkcs11
- ${MV} ${WRKDIR}/src/share/native/sun/security/pkcs11 \
- ${WRKDIR}/j2se/src/share/native/sun/security/pkcs11
- ${MV} ${WRKDIR}/src/solaris/native/sun/security/pkcs11 \
- ${WRKDIR}/j2se/src/solaris/native/sun/security/pkcs11
- cd ${WRKDIR} && ${RM} -rf src
-
-pre-patch:
- @cd ${WRKDIR} && \
- ${BZIP2_CMD} -dc ${DISTDIR}/${PATCHSETFILE} | ${TAR} -xf - && \
- ${CHMOD} -R u+w * && \
- ${PATCH} -p0 < ${WRKDIR}/jdk15.patches
-
-post-patch:
- @for file in ${PTHREAD_FILES}; do \
- ${REINPLACE_CMD} -e "s:-pthread:${PTHREAD_LIBS}:g" \
- ${WRKSRC}/$${file}; \
- done
- @for file in ${X11_FILES}; do \
- ${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" \
- ${WRKSRC}/$${file}; \
- done
- @${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" \
- -e "s:%%JDK_VERSION%%:${JDK_VERSION}:g"\
- ${WRKSRC}/../../deploy/src/plugin/solaris/controlpanel/sun_java.desktop
- @${REINPLACE_CMD} -e "s:%%OSVERSION%%:${OSVERSION}:g" \
- ${WRKSRC}/../../j2se/make/common/Defs-bsd.gmk
-
-.if defined(WITH_LINUX_BOOTSTRAP)
-pre-build:
- @if [ "$${WRKDIRPREFIX}" -a \
- -L "/compat/linux/$${WRKDIRPREFIX}" -a \
- x`${LS} -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | ${AWK} '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
- then \
- ${ECHO_MSG} "Please set WRKDIRPREFIX to something which doesn't"; \
- ${ECHO_MSG} "have a matching symbolic link in /compat/linux."; \
- ${ECHO_MSG} "This is known to cause problems during bootstrapping."; \
- exit 1; \
- fi
- @if [ `${SYSCTL} -n compat.linux.osname` != "Linux" ]; \
- then \
- ${ECHO_MSG} "Please set the value of the sysctl compat.linux.osname"; \
- ${ECHO_MSG} "to 'Linux' with the command:"; \
- ${ECHO_MSG} " ${SYSCTL} compat.linux.osname=Linux"; \
- ${ECHO_MSG} "Having it set to other values, such as 'FreeBSD',"; \
- ${ECHO_MSG} "is known to cause problems during bootstrapping."; \
- exit 1; \
- fi
-.if !defined(WITH_JAIL)#{
- @if [ "`/sbin/mount | ${GREP} ^linprocfs`" = "" ]; \
- then \
- ${ECHO_MSG} "ERROR: You must have LINPROCFS mounted before" ; \
- ${ECHO_MSG} "starting to build the native JDK 1.5.0." ; \
- ${ECHO_MSG} "" ; \
- ${ECHO_MSG} "You may do it with the following commands:" ; \
- ${ECHO_MSG} "" ; \
- ${ECHO_MSG} "# kldload linprocfs" ; \
- ${ECHO_MSG} "" ; \
- ${ECHO_MSG} "and" ; \
- ${ECHO_MSG} "" ; \
- ${ECHO_MSG} "# mount -t linprocfs linprocfs /compat/linux/proc" ; \
- ${ECHO_MSG} "" ; \
- exit 1 ; \
- fi
-.endif#}
-.endif
-
-do-build:
- # Start of jdk build
- @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
-
-post-build:
- @# XXX don't install japanese manpages
- @${RM} -rf ${JDKIMAGEDIR}/man/ja
- @${RM} -rf ${JDKIMAGEDIR}/man/ja_JP.eucJP
-.if defined(WITH_TZUPDATE)
- @# Update time zones
- @${RM} -rf ${JDKIMAGEDIR}/jre/lib/zi
- @${LN} -s -f ${LOCALBASE}/share/java/zi ${JDKIMAGEDIR}/jre/lib
-.endif
-
-do-install:
- ${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
- cd ${JDKIMAGEDIR} && ${FIND} . \
- | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
-.if !defined(WITHOUT_WEB)
- ${INSTALL_DATA} ${JDKIMAGEDIR}/jre/plugin/desktop/sun_java.desktop \
- ${PREFIX}/share/applications/sun_java15.desktop
-.endif
- @${ECHO_MSG} "@unexec ${LOCALBASE}/bin/unregistervm ${PREFIX}/jdk${JDK_VERSION}/bin/java" >> ${TMPPLIST}
- @${FIND} -s ${JDKIMAGEDIR} -not -type d | \
- ${SED} -ne 's#^${JDKIMAGEDIR}#jdk${JDK_VERSION}#p' >> ${TMPPLIST}
-.if !defined(WITHOUT_WEB)
- @${ECHO_MSG} '@exec ${LOCALBASE}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${TMPPLIST}
-.endif
-.if defined(WITH_DEBUG)
- cd ${JDKIMAGEDIR_G} && ${FIND} . \
- | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
- @${FIND} -s ${JDKIMAGEDIR_G} -not -type d | \
- ${SED} -ne 's#^${JDKIMAGEDIR_G}#jdk${JDK_VERSION}#p' >> ${TMPPLIST}
-.endif
- ${INSTALL_DATA} ${FILESDIR}/cacerts \
- ${PREFIX}/jdk${JDK_VERSION}/jre/lib/security/cacerts
-.if defined(WITH_POLICY)
- ${INSTALL_DATA} ${WRKDIR}/jce/*.jar ${PREFIX}/jdk${JDK_VERSION}/jre/lib/security
-.endif
- @${FIND} -s -d ${PREFIX}/jdk${JDK_VERSION} -type d | \
- ${SED} -ne 's#^${PREFIX}/#@dirrm #p' >> ${TMPPLIST}
- @${ECHO_MSG} "@exec ${LOCALBASE}/bin/registervm ${PREFIX}/jdk${JDK_VERSION}/bin/java # FREEBSD-JDK${JDK_VERSION}" >> ${TMPPLIST}
-.if !defined(WITHOUT_WEB)
- @${ECHO_MSG} '@unexec ${LOCALBASE}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${TMPPLIST}
-.endif
-
-# XXX: put unregistervm into install script ?
-post-install:
- @${LOCALBASE}/bin/registervm "${PREFIX}/jdk${JDK_VERSION}/bin/java # FREEBSD-JDK${JDK_VERSION}"
-.if !defined(WITHOUT_WEB)
- @-update-desktop-database
-.endif
- @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-
-.include <bsd.port.post.mk>
diff --git a/java/jdk15/distinfo b/java/jdk15/distinfo
deleted file mode 100644
index d2df67fd69d6..000000000000
--- a/java/jdk15/distinfo
+++ /dev/null
@@ -1,8 +0,0 @@
-SHA256 (jdk-1_5_0_16-fcs-src-b02-jrl-28_may_2008.jar) = bef122a1b972b5a7a3866be5410f16e6c82333cffb9d804e9011fa0c3a5f1041
-SIZE (jdk-1_5_0_16-fcs-src-b02-jrl-28_may_2008.jar) = 58024248
-SHA256 (jdk-1_5_0_16-fcs-bin-b02-jrl-28_may_2008.jar) = cec915f68ba7b5ef9c61e1f86a29ce721d76c6be51f7d1dd12d8f302e444e6c9
-SIZE (jdk-1_5_0_16-fcs-bin-b02-jrl-28_may_2008.jar) = 2211548
-SHA256 (bsd-jdk15-patches-9.tar.bz2) = f197da850f02456c5ca4f7593401ee6afaf02fa1ddfacee61499e97be80dbd9f
-SIZE (bsd-jdk15-patches-9.tar.bz2) = 802562
-SHA256 (jce_policy-1_5_0.zip) = 4de78da737c6d66b74eb6caebf6bdb0648825a95e2909e815678a0d306bf6d8b
-SIZE (jce_policy-1_5_0.zip) = 8826
diff --git a/java/jdk15/files/cacerts b/java/jdk15/files/cacerts
deleted file mode 100644
index 12d3aa1b024a..000000000000
--- a/java/jdk15/files/cacerts
+++ /dev/null
Binary files differ
diff --git a/java/jdk15/files/license.sh b/java/jdk15/files/license.sh
deleted file mode 100644
index 5f39fb918f59..000000000000
--- a/java/jdk15/files/license.sh
+++ /dev/null
@@ -1,194 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-# License agreement
-more << EOF_LICENSE
-JAVA RESEARCH LICENSE
-Version 1.6
-
-
-I. DEFINITIONS.
-
-"Licensee" means You and any other party that has entered into and has
-in effect a version of this License.
-
-"Modifications" means any change or addition to the Technology.
-
-"Sun" means Sun Microsystems, Inc. and its successors and assignees.
-
-"Research Use" means research, evaluation, or development for the
-purpose of advancing knowledge, teaching, learning, or customizing the
-Technology or Modifications for personal use. Research Use expressly
-excludes use or distribution for direct or indirect commercial
-(including strategic) gain or advantage.
-
-"Technology" means the source code and object code of the technology
-made available by Sun pursuant to this License.
-
-"Technology Site" means the website designated by Sun for accessing
-the Technology.
-
-"You" means the individual executing this License or the legal entity
-or entities represented by the individual executing this License.
-
-II. PURPOSE.
-
-Sun is licensing the Technology under this Java Research License (the
-"License") to promote research, education, innovation, and development
-using the Technology. This License is not intended to permit or
-enable access to the Technology for active consultation as part of
-creating an independent implementation of the Technology.
-
-COMMERCIAL USE AND DISTRIBUTION OF TECHNOLOGY AND MODIFICATIONS IS
-PERMITTED ONLY UNDER A SUN COMMERCIAL LICENSE.
-
-III. RESEARCH USE RIGHTS.
-
-A. License Grant. Subject to the conditions contained herein, Sun
-grants to You a non-exclusive, non-transferable, worldwide, and
-royalty-free license to do the following for Your Research Use only:
-
-1. Reproduce, create Modifications of, and use the Technology
-alone, or with Modifications;
-
-2. Share source code of the Technology alone, or with
-Modifications, with other Licensees; and
-
-3. Distribute object code of the Technology, alone, or with
-Modifications, to any third parties for Research Use only, under a
-license of Your choice that is consistent with this License; and
-publish papers and books discussing the Technology which may include
-relevant excerpts that do not in the aggregate constitute a
-significant portion of the Technology.
-
-B. Residual Rights. If You examine the Technology after accepting
-this License and remember anything about it later, You are not
-"tainted" in a way that would prevent You from creating or
-contributing to an independent implementation, but this License grants
-You no rights to Sun's copyrights or patents for use in such an
-implementation.
-
-C. No Implied Licenses. Other than the rights granted herein, Sun
-retains all rights, title, and interest in Technology, and You retain
-all rights, title, and interest in Your Modifications and associated
-specifications, subject to the terms of this License.
-
-D. Third Party Software. Portions of the Technology may be
-provided with licenses or other notices from third parties that govern
-the use of those portions. Any licenses granted hereunder do not alter
-any rights and obligations You may have under such licenses, however,
-the disclaimer of warranty and limitation of liability provisions in
-this License will apply to all Technology in this distribution.
-
-IV. INTELLECTUAL PROPERTY REQUIREMENTS
-
-As a condition to Your License, You agree to comply with the following
-restrictions and responsibilities:
-
-A. License and Copyright Notices. You must include a copy of this
-Java Research License in a Readme file for any Technology or
-Modifications you distribute. You must also include the following
-statement, "Use and distribution of this technology is subject to the
-Java Research License included herein", (a) once prominently in the
-source code tree and/or specifications for Your source code
-distributions, and (b) once in the same file as Your copyright or
-proprietary notices for Your binary code distributions. You must cause
-any files containing Your Modification to carry prominent notice
-stating that You changed the files. You must not remove or alter any
-copyright or other proprietary notices in the Technology.
-
-B. Licensee Exchanges. Any Technology and Modifications You
-receive from any Licensee are governed by this License.
-
-V. GENERAL TERMS.
-
-A. Disclaimer Of Warranties.
-
-THE TECHNOLOGY IS PROVIDED "AS IS", WITHOUT WARRANTIES OF ANY KIND,
-EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, WARRANTIES
-THAT THE TECHNOLOGY IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A
-PARTICULAR PURPOSE, OR NON-INFRINGING OF THIRD PARTY RIGHTS. YOU
-AGREE THAT YOU BEAR THE ENTIRE RISK IN CONNECTION WITH YOUR USE AND
-DISTRIBUTION OF ANY AND ALL TECHNOLOGY UNDER THIS LICENSE.
-
-B. Infringement; Limitation Of Liability.
-
-1. If any portion of, or functionality implemented by, the
-Technology becomes the subject of a claim or threatened claim of
-infringement ("Affected Materials"), Sun may, in its unrestricted
-discretion, suspend Your rights to use and distribute the Affected
-Materials under this License. Such suspension of rights will be
-effective immediately upon Sun's posting of notice of suspension on
-the Technology Site.
-
-2. IN NO EVENT WILL SUN BE LIABLE FOR ANY DIRECT, INDIRECT,
-PUNITIVE, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES IN CONNECTION
-WITH OR ARISING OUT OF THIS LICENSE (INCLUDING, WITHOUT LIMITATION,
-LOSS OF PROFITS, USE, DATA, OR ECONOMIC ADVANTAGE OF ANY SORT),
-HOWEVER IT ARISES AND ON ANY THEORY OF LIABILITY (including
-negligence), WHETHER OR NOT SUN HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGE. LIABILITY UNDER THIS SECTION V.B.2 SHALL BE SO LIMITED
-AND EXCLUDED, NOTWITHSTANDING FAILURE OF THE ESSENTIAL PURPOSE OF ANY
-REMEDY.
-
-C. Termination.
-
-1. You may terminate this License at any time by notifying Sun in a
-writing addressed to Sun Microsystems, Inc., 4150 Network Circle,
-Santa Clara, California 95054, Attn.: Legal Department/Products and
-Technology Law.
-
-2. All Your rights will terminate under this License if You fail to
-comply with any of its material terms or conditions and do not cure
-such failure within thirty (30) days after becoming aware of such
-noncompliance.
-
-3. Upon termination, You must discontinue all uses and distribution
-under this agreement, and all provisions of this Section V ("General
-Terms") shall survive termination.
-
-D. Miscellaneous.
-
-
-1. Trademark. You agree to comply with Sun's Trademark & Logo
-Usage Requirements, as modified from time to time, available at
-http://www.sun.com/policies/trademarks/. Except as expressly provided
-in this License, You are granted no rights in or to any Sun trademarks
-now or hereafter used or licensed by Sun.
-
-2. Integration. This License represents the complete agreement of
-the parties concerning the subject matter hereof.
-
-3. Severability. If any provision of this License is held
-unenforceable, such provision shall be reformed to the extent
-necessary to make it enforceable unless to do so would defeat the
-intent of the parties, in which case, this License shall terminate.
-
-4. Governing Law. This License is governed by the laws of the
-United States and the State of California, as applied to contracts
-entered into and performed in California between California residents.
-In no event shall this License be construed against the drafter.
-
-5. Export Control. As further described at
-http://www.sun.com/its, you agree to comply with the U.S. export
-controls and trade laws of other countries that apply to Technology
-and Modifications.
-
-EOF_LICENSE
-
-agreed=
-while [ x$agreed = x ]; do
- echo
- echo "Do you agree to the above license terms? [yes or no] "
- read reply leftover
- case $reply in
- y* | Y*)
- agreed=1
- ;;
- n* | n*)
- echo
- echo "If you don't agree to the license you can't build this software"
- exit 1
- ;;
- esac
-done
diff --git a/java/jdk15/files/patch-FloatingDecimal.java b/java/jdk15/files/patch-FloatingDecimal.java
deleted file mode 100644
index 6141b18cb7eb..000000000000
--- a/java/jdk15/files/patch-FloatingDecimal.java
+++ /dev/null
@@ -1,11 +0,0 @@
---- ../../j2se/src/share/classes/sun/misc/FloatingDecimal.java.orig 2011-02-08 21:47:56.000000000 -0800
-+++ ../../j2se/src/share/classes/sun/misc/FloatingDecimal.java 2011-02-08 21:48:18.000000000 -0800
-@@ -1529,7 +1529,7 @@
- if ( (cmpResult = bigB.cmp( bigD ) ) > 0 ){
- overvalue = true; // our candidate is too big.
- diff = bigB.sub( bigD );
-- if ( (bigIntNBits == 1) && (bigIntExp > -expBias) ){
-+ if ( (bigIntNBits == 1) && (bigIntExp > -expBias+1) ){
- // candidate is a normalized exact power of 2 and
- // is too big. We will be subtracting.
- // For our purposes, ulp is the ulp of the
diff --git a/java/jdk15/files/patch-deploy::controlpanel::sun_java.desktop b/java/jdk15/files/patch-deploy::controlpanel::sun_java.desktop
deleted file mode 100644
index 898893707989..000000000000
--- a/java/jdk15/files/patch-deploy::controlpanel::sun_java.desktop
+++ /dev/null
@@ -1,13 +0,0 @@
---- ../../deploy/src/plugin/solaris/controlpanel/sun_java.desktop.orig Sat Oct 1 20:14:45 2005
-+++ ../../deploy/src/plugin/solaris/controlpanel/sun_java.desktop Sat Oct 1 20:16:12 2005
-@@ -1,8 +1,8 @@
- [Desktop Entry]
- Name=Java
- Comment=Java Control Panel
--Exec=INSTALL_DIR/JRE_NAME_VERSION/bin/ControlPanel
--Icon=INSTALL_DIR/JRE_NAME_VERSION/plugin/desktop/sun_java.png
-+Exec=%%PREFIX%%/jdk%%JDK_VERSION%%/bin/ControlPanel
-+Icon=%%PREFIX%%/jdk%%JDK_VERSION%%/jre/plugin/desktop/sun_java.png
- Terminal=0
- Type=Application
- Categories=Application;Settings;X-Sun-Supported;X-Red-Hat-Base;
diff --git a/java/jdk15/files/patch-j2se-motif21-Makefile b/java/jdk15/files/patch-j2se-motif21-Makefile
deleted file mode 100644
index bcbe5f6c81d7..000000000000
--- a/java/jdk15/files/patch-j2se-motif21-Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-$FreeBSD$
-
---- ../../j2se/make/sun/motif21/Makefile.orig 2008-05-28 00:06:43.000000000 -0700
-+++ ../../j2se/make/sun/motif21/Makefile 2011-05-08 23:39:31.000000000 -0700
-@@ -19,6 +19,10 @@
-
- ifdef BUILD_MOTIF21
- include $(BUILDDIR)/sun/awt/mawt.gmk
-+
-+ ifeq ($(PLATFORM), bsd)
-+ OTHER_INCLUDES += -I%%LOCALBASE%%/include/freetype2
-+ endif
- else
- all optimized debug clean clobber ::
- # do nothing case if older OS and new motif 2.1 not found in the boot dir
diff --git a/java/jdk15/files/patch-j2se::awt::awt_GraphicsEnv.h b/java/jdk15/files/patch-j2se::awt::awt_GraphicsEnv.h
deleted file mode 100644
index a66dbdfa1c6f..000000000000
--- a/java/jdk15/files/patch-j2se::awt::awt_GraphicsEnv.h
+++ /dev/null
@@ -1,15 +0,0 @@
-$FreeBSD: /tmp/pcvs/ports/java/jdk15/files/patch-j2se::awt::awt_GraphicsEnv.h,v 1.1 2010-04-20 02:55:16 glewis Exp $
-
---- ../../j2se/src/solaris/native/sun/awt/awt_GraphicsEnv.h.orig 2010-04-16 21:28:02.000000000 +1100
-+++ ../../j2se/src/solaris/native/sun/awt/awt_GraphicsEnv.h 2010-04-16 21:39:52.635333540 +1100
-@@ -24,6 +24,10 @@
- #include <sys/ipc.h>
- #include <sys/shm.h>
- #include <X11/extensions/XShm.h>
-+#ifndef X_ShmAttach
-+#include <X11/Xmd.h>
-+#include <X11/extensions/shmproto.h>
-+#endif
-
- extern int XShmQueryExtension();
-
diff --git a/java/jdk15/files/patch-j2se::common::Defs-bsd.gmk b/java/jdk15/files/patch-j2se::common::Defs-bsd.gmk
deleted file mode 100644
index 4fbf7360cea4..000000000000
--- a/java/jdk15/files/patch-j2se::common::Defs-bsd.gmk
+++ /dev/null
@@ -1,24 +0,0 @@
-$FreeBSD$
-
---- ../../j2se/make/common/Defs-bsd.gmk 2010-02-14 14:16:23.000000000 -0800
-+++ ../../j2se/make/common/Defs-bsd.gmk 2010-02-14 14:19:21.000000000 -0800
-@@ -420,9 +420,19 @@
- override HAVE_GETHRVTIME = false
- ifeq ($(TRUE_PLATFORM), NetBSD)
- override HAVE_SIGIGNORE = true
-+endif
-+ifeq ($(TRUE_PLATFORM),FreeBSD)
-+OS_RELDATE := %%OSVERSION%%
-+HAS_SIGIGNORE := $(shell if [ $(OS_RELDATE) -ge 800502 -a $(OS_RELDATE) -lt 900000 -o $(OS_RELDATE) -ge 900003 ]; then echo "1"; fi)
-+ifeq ($(HAS_SIGIGNORE),1)
-+override HAVE_SIGIGNORE = true
- else
- override HAVE_SIGIGNORE = false
- endif
-+endif
-+ifeq ($(TRUE_PLATFORM), OpenBSD)
-+override HAVE_SIGIGNORE = false
-+endif
- override LEX_LIBRARY = -lfl
- ifeq ($(STATIC_CXX),true)
- override LIBCXX = -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic
diff --git a/java/jdk15/files/patch-j2se::gtk::GTKLookAndFeel.java b/java/jdk15/files/patch-j2se::gtk::GTKLookAndFeel.java
deleted file mode 100644
index 198a71a256bc..000000000000
--- a/java/jdk15/files/patch-j2se::gtk::GTKLookAndFeel.java
+++ /dev/null
@@ -1,15 +0,0 @@
-$FreeBSD$
-
---- ../../j2se/src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java.orig Sun Dec 10 21:53:38 2006
-+++ ../../j2se/src/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java Sun Dec 10 21:54:16 2006
-@@ -1387,8 +1387,8 @@
- String[] dirs = new String[] {
- userHome + "/.themes",
- System.getProperty("swing.gtkthemedir"),
-- "/usr/X11R6/share/gnome/themes", // FreeBSD
-- "/usr/X11R6/share/themes", // FreeBSD
-+ "%%LOCALBASE%%/share/gnome/themes", // FreeBSD
-+ "%%LOCALBASE%%/share/themes", // FreeBSD
- "/usr/share/themes" // Debian/Redhat/Solaris/SuSE
- };
-
diff --git a/java/jdk15/files/patch-j2se::gtk::Metacity.java b/java/jdk15/files/patch-j2se::gtk::Metacity.java
deleted file mode 100644
index 8f79c2119711..000000000000
--- a/java/jdk15/files/patch-j2se::gtk::Metacity.java
+++ /dev/null
@@ -1,15 +0,0 @@
-$FreeBSD$
-
---- ../../j2se/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java.orig Sun Dec 10 21:55:26 2006
-+++ ../../j2se/src/share/classes/com/sun/java/swing/plaf/gtk/Metacity.java Sun Dec 10 21:55:56 2006
-@@ -456,8 +456,8 @@
- String[] dirs = new String[] {
- userHome + sep + ".themes",
- System.getProperty("swing.metacitythemedir"),
-- "/usr/X11R6/share/themes",
-- "/usr/X11R6/share/gnome/themes",
-+ "%%LOCALBASE%%/share/themes",
-+ "%%LOCALBASE%%/share/gnome/themes",
- "/usr/share/themes",
- "/usr/gnome/share/themes", // Debian/Redhat/Solaris
- "/opt/gnome2/share/themes" // SuSE
diff --git a/java/jdk15/files/patch-j2se::nio::genCharsetProvider.sh b/java/jdk15/files/patch-j2se::nio::genCharsetProvider.sh
deleted file mode 100644
index abee9b6194fe..000000000000
--- a/java/jdk15/files/patch-j2se::nio::genCharsetProvider.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-$FreeBSD$
-
---- ../../j2se/make/java/nio/genCharsetProvider.sh 8 Nov 2004 22:27:03 -0000 1.1.1.1
-+++ ../../j2se/make/java/nio/genCharsetProvider.sh 24 Mar 2005 16:14:52 -0000
-@@ -94,9 +94,9 @@
- }
- '
-
--$JAVA -cp $NIO_TMPDIR Hasher -i Aliases <$NIO_TMPDIR/aliases >>$OUT
--$JAVA -cp $NIO_TMPDIR Hasher -i Classes <$NIO_TMPDIR/classes >>$OUT
--$JAVA -cp $NIO_TMPDIR Hasher -i -e Cache -t Charset <$NIO_TMPDIR/classes >>$OUT
-+$JAVA -cp $NIO_TMPDIR Hasher -i Aliases <$NIO_TMPDIR/aliases | egrep -v '^Java Hotspot' >>$OUT
-+$JAVA -cp $NIO_TMPDIR Hasher -i Classes <$NIO_TMPDIR/classes | egrep -v '^Java Hotspot' >>$OUT
-+$JAVA -cp $NIO_TMPDIR Hasher -i -e Cache -t Charset <$NIO_TMPDIR/classes | egrep -v '^Java Hotspot' >>$OUT
-
-
- # Constructor
diff --git a/java/jdk15/files/patch-j2se::pkcs11::Makefile b/java/jdk15/files/patch-j2se::pkcs11::Makefile
deleted file mode 100644
index 128681445d0c..000000000000
--- a/java/jdk15/files/patch-j2se::pkcs11::Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-$FreeBSD$
-
---- ../../j2se/make/sun/security/pkcs11/Makefile.orig Sun Jan 13 11:11:15 2008
-+++ ../../j2se/make/sun/security/pkcs11/Makefile Sun Jan 13 13:12:48 2008
-@@ -47,7 +47,7 @@
- #
- # Libraries to link
- #
--ifeq ($(PLATFORM), windows)
-+ifneq (,$(findstring $(PLATFORM), windows bsd))
- OTHER_LDLIBS = $(JVMLIB)
- else
- OTHER_LDLIBS = -ldl $(JVMLIB)
-@@ -62,7 +62,7 @@
-
- jar: classes
- -$(RM) $(PKCS11_JAR)
-- $(JAR) cf $(PKCS11_JAR) -C $(CLASSDESTDIR) sun/security/pkcs11 || exit 1
-+ $(CP) $(BUILDDIR)/tools/crypto/pkcs11/sunpkcs11.jar $(PKCS11_JAR) || exit 1
-
- # testing only
- KEY_LOCATION = /security/ws/JCE-tiger/src
diff --git a/java/jdk15/files/patch-j2se::security::Makefile b/java/jdk15/files/patch-j2se::security::Makefile
deleted file mode 100644
index 8bc91dd88ca5..000000000000
--- a/java/jdk15/files/patch-j2se::security::Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-$FreeBSD$
-
---- ../../j2se/make/sun/security/Makefile.orig Sat Jan 12 21:33:28 2008
-+++ ../../j2se/make/sun/security/Makefile Sat Jan 12 21:33:51 2008
-@@ -27,7 +27,7 @@
- endif # solaris
- endif
-
--SUBDIRS = acl action util x509 pkcs provider tools keytool jgss validator jca rsa timestamp $(TOOLS_SUBDIRS)
-+SUBDIRS = acl action util x509 pkcs pkcs11 provider tools keytool jgss validator jca rsa timestamp $(TOOLS_SUBDIRS)
-
- all optimized debug clean clobber ::
- @for i in $(SUBDIRS) ; do \
diff --git a/java/jdk15/files/patch-java_Makefile b/java/jdk15/files/patch-java_Makefile
deleted file mode 100644
index 60585c522db4..000000000000
--- a/java/jdk15/files/patch-java_Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- ../../j2se/make/java/java/Makefile.orig Mon Dec 13 12:38:14 2004
-+++ ../../j2se/make/java/java/Makefile Mon Dec 13 12:42:00 2004
-@@ -284,7 +284,7 @@
- $(RM) -r $(TMPDIR)/GenerateCurrencyData
- $(MKDIR) -p $(TMPDIR)/GenerateCurrencyData
- $(JAVAC_BOOT) -d $(TMPDIR)/GenerateCurrencyData $(BUILDDIR)/tools/GenerateCurrencyData/GenerateCurrencyData.java
-- $(JAVA_BOOT) -classpath $(TMPDIR)/GenerateCurrencyData GenerateCurrencyData < $(SHARE_SRC)/classes/java/util/CurrencyData.properties > $@
-+ $(JAVA_BOOT) -classpath $(TMPDIR)/GenerateCurrencyData GenerateCurrencyData < $(SHARE_SRC)/classes/java/util/CurrencyData.properties | egrep -v '^Java HotSpot' > $@
-
- clean::
- $(RM) $(GENSRCDIR)/java/util/CurrencyData.java
diff --git a/java/jdk15/files/pkg-deinstall.in b/java/jdk15/files/pkg-deinstall.in
deleted file mode 100644
index 167d5bd28893..000000000000
--- a/java/jdk15/files/pkg-deinstall.in
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-# Set up a standard path
-PATH=/usr/bin:/bin
-
-# Don't do anything during post-deinstall
-if [ "$2" = "POST-DEINSTALL" ]; then
- exit 0
-fi
-
-# Remove the plugin
-
-# Plugin location variables
-BROWSERPLUGINDIR="%%LOCALBASE%%/lib/browser_plugins"
-JAVAPLUGINDIR="%%JRE_HOME%%/plugin/%%ARCH%%/ns7"
-PLUGIN=libjavaplugin_oji.so
-
-# Check if the package includes the plugin
-if [ ! -e "${JAVAPLUGINDIR}/${PLUGIN}" ]; then
- exit 0
-fi
-
-# See if the browser plugin is a link to the package plugin and remove it if so.
-if [ -e "${BROWSERPLUGINDIR}/${PLUGIN}" -a \
- -L "${BROWSERPLUGINDIR}/${PLUGIN}" -a \
- x`ls -l "${BROWSERPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` = x"${JAVAPLUGINDIR}/${PLUGIN}" ]; then
- rm -f "${BROWSERPLUGINDIR}/${PLUGIN}"
-fi
-
-exit 0
diff --git a/java/jdk15/files/pkg-install.in b/java/jdk15/files/pkg-install.in
deleted file mode 100644
index c5f4a70db1df..000000000000
--- a/java/jdk15/files/pkg-install.in
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-# System preference location
-JRE_HOME=%%JRE_HOME%%
-
-# Post-install actions
-if [ "$2" = "POST-INSTALL" ]; then
- # Set up system preferences
- if [ ! -d "${JRE_HOME}/.systemPrefs" ] ; then
- mkdir -m 755 "${JRE_HOME}/.systemPrefs"
- fi
- if [ ! -f "${JRE_HOME}/.systemPrefs/.system.lock" ] ; then
- touch "${JRE_HOME}/.systemPrefs/.system.lock"
- chmod 644 "${JRE_HOME}/.systemPrefs/.system.lock"
- fi
- if [ ! -f "${JRE_HOME}/.systemPrefs/.systemRootModFile" ] ; then
- touch "${JRE_HOME}/.systemPrefs/.systemRootModFile"
- chmod 644 "${JRE_HOME}/.systemPrefs/.systemRootModFile"
- fi
-
- # Install the plugin
- BROWSERPLUGINDIR="%%LOCALBASE%%/lib/browser_plugins"
- JAVAPLUGINDIR="${JRE_HOME}/plugin/%%ARCH%%/ns7"
- PLUGIN=libjavaplugin_oji.so
-
- # Check if the browser plugin exists
- if [ ! -e "${JAVAPLUGINDIR}/${PLUGIN}" ]; then
- exit 0
- fi
-
- # Check if the plugin directory exists.
- if [ ! -d "${BROWSERPLUGINDIR}" ]; then
- exit 0
- fi
-
- # Check if the browser plugin currently exists
- if [ ! -e "${BROWSERPLUGINDIR}/${PLUGIN}" ]; then
- # Create symbolic link
- ln -sf "${JAVAPLUGINDIR}/${PLUGIN}" \
- "${BROWSERPLUGINDIR}/${PLUGIN}"
- exit 0
- fi
-
- # If the browser plugin exists and is a symlink, but the link
- # doesn't exist, then overwrite with our plugin.
- if [ -L "${BROWSERPLUGINDIR}/${PLUGIN}" ]; then
- # Check if the linked to file exists.
- if [ ! -e `ls -l "${BROWSERPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` ]; then
- ln -sf "${JAVAPLUGINDIR}/${PLUGIN}" \
- "${BROWSERPLUGINDIR}/${PLUGIN}"
- exit 0
- fi
- fi
-
- exit 0
-fi
diff --git a/java/jdk15/files/x_x2zip.c b/java/jdk15/files/x_x2zip.c
deleted file mode 100644
index a57be47fc9bf..000000000000
--- a/java/jdk15/files/x_x2zip.c
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * Copyright (C) 2007 Greg Lewis. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <sys/types.h>
-#include <err.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <unistd.h>
-
-#ifndef BUFSIZ
-#define BUFSIZ 0x10000
-#endif
-
-int
-main(int argc, char* argv[]) {
- char *key;
- char *oname;
- char buf[BUFSIZ];
- size_t keylen, olen;
- int ifd, ofd, i, fileoff = 0, bufoff = 0, buflen = 0, eof = 0;
- ssize_t bytes;
-
- if (argc < 3) {
- errx(1, "Usage: x_x2zip <key> <file>");
- }
-
- // Key
- key = argv[1];
- keylen = strlen(key);
-
- // Open input file
- if ((ifd = open(argv[2], O_RDONLY)) == -1) {
- err(1, "Can't open input file %s", argv[2]);
- }
-
- // Open output file
- olen = strlen(argv[2]) + 5;
- if ((oname = (char *) malloc(olen)) == NULL) {
- err(1, "Can't create output file name");
- }
- if (strlcpy(oname, argv[2], olen) >= olen) {
- err(1, "Can't create output file name");
- }
- if (strlcat(oname, ".zip", olen) >= olen) {
- err(1, "Can't create output file name");
- }
- if ((ofd = open(oname,
- O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR)) == -1) {
- err(1, "Can't open output file %s", oname);
- }
- free(oname);
-
- while (!eof) {
- // Read into the buffer
- bufoff = 0;
- buflen = 0;
- while (1) {
- if (buflen >= BUFSIZ) {
- break;
- }
- if ((bytes = read(ifd, buf, BUFSIZ - buflen)) == -1) {
- err(1, "Error reading input file");
- }
- if (!bytes) {
- eof = 1;
- break;
- }
- buflen += bytes;
- }
-
- // Decrypt
- for (i = 0; i < buflen; i++) {
- buf[i] = buf[i] ^ key[(fileoff + i) % keylen];
- }
-
- // Update file offset
- fileoff += buflen;
-
- // Output the buffer
- bufoff = 0;
- while (bufoff < buflen) {
- if ((bytes = write(ofd, buf + bufoff, buflen - bufoff)) == -1) {
- err(1, "Error writing output file");
- }
- bufoff += bytes;
- }
- }
-
- return 0;
-}
diff --git a/java/jdk15/pkg-descr b/java/jdk15/pkg-descr
deleted file mode 100644
index 9f83e1336535..000000000000
--- a/java/jdk15/pkg-descr
+++ /dev/null
@@ -1,11 +0,0 @@
-This is the latest JDK 1.5.0 patchset from the Java 2 FreeBSD porting
-project. This port allows you to easily build a native JDK1.5.0 for FreeBSD.
-
-Please note that due to the current Sun licensing policy the resulting binaries
-can't be distributed and you are only permitted to use/hack it personally.
-Due to the same reasons you have to manually fetch the source code and patchset
-for FreeBSD.
-
-WWW: http://www.freebsd.org/java/
- http://www.eyesbeyond.com/freebsddom/java/index.html
- http://www.sun.com/software/communitysource/java2/