summaryrefslogtreecommitdiff
path: root/java/jdk15/files
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-12-10 17:18:32 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-12-10 17:18:32 +0000
commitb1ccabf65df39e4ab553f6c4734942b9f89992b1 (patch)
treeca639d8654f8695791fbdb4960934e6598682543 /java/jdk15/files
parent- Update to 5.2.4 (diff)
Decommissioning java 1.5 (EOLed since October 2009):
removal of the different 1.5 jre and jdk vendors Removing outdated jdk16 vendors: removing all the bsdjava and freebsd vendors, consider using openjdk6 or openjsk7 instead. Discussed with: java (glarkin)
Notes
Notes: svn path=/head/; revision=308619
Diffstat (limited to 'java/jdk15/files')
-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
16 files changed, 0 insertions, 570 deletions
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;
-}