summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul de Vrieze <pauldv@gentoo.org>2007-02-02 20:51:44 +0000
committerPaul de Vrieze <pauldv@gentoo.org>2007-02-02 20:51:44 +0000
commit1752a79ea8ae3bba0965bab30a534b8dd15499a4 (patch)
treed0bf9f7c45be6184008509888c5044349d83ac1b /dev-java
parentNew upstream version (diff)
downloadpauldv-1752a79ea8ae3bba0965bab30a534b8dd15499a4.tar.gz
pauldv-1752a79ea8ae3bba0965bab30a534b8dd15499a4.tar.bz2
pauldv-1752a79ea8ae3bba0965bab30a534b8dd15499a4.zip
There is a real 1.6 jdk in the tree now
svn path=/trunk/overlay/; revision=27
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/sun-jdk/Manifest12
-rw-r--r--dev-java/sun-jdk/files/digest-sun-jdk-1.6.0.0_beta933
-rw-r--r--dev-java/sun-jdk/files/sun-jdk-1.6.env17
-rw-r--r--dev-java/sun-jdk/sun-jdk-1.6.0.0_beta93.ebuild176
4 files changed, 0 insertions, 208 deletions
diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest
deleted file mode 100644
index 0c329fe..0000000
--- a/dev-java/sun-jdk/Manifest
+++ /dev/null
@@ -1,12 +0,0 @@
-AUX sun-jdk-1.6.env 925 RMD160 addfe5f88916dd01b36ed9ffbdb70edf45db7af7 SHA1 6cce3e81e6f23236d3b563ff8746bd4b144554d1 SHA256 1b8d64c945cbb6b6847a6cac6d7f3e17a1ea3c280aab5da1ea11a9aebcb57009
-MD5 6304b2fe34394d6214e48cbbe7389772 files/sun-jdk-1.6.env 925
-RMD160 addfe5f88916dd01b36ed9ffbdb70edf45db7af7 files/sun-jdk-1.6.env 925
-SHA256 1b8d64c945cbb6b6847a6cac6d7f3e17a1ea3c280aab5da1ea11a9aebcb57009 files/sun-jdk-1.6.env 925
-DIST jdk-6-rc-bin-b93-linux-i586-27_jul_2006.bin 61639044 RMD160 4a56fc67152bfb82c07c0e961c0c767f38a88751 SHA1 c0e9f1c008803cddd36737cac1b5261607416431 SHA256 585d526e49bd08d4ebf088a9345d776081f7bbeb2f069483c7f8565e0d73b2d2
-EBUILD sun-jdk-1.6.0.0_beta93.ebuild 5094 RMD160 77a9d77b5841055055602e3109fa7733e63077ac SHA1 3351f46dac719043360900b4f2f9de76c330c296 SHA256 5bd676a827d79a7d5643e7745863e1e8fd1cd0cba33d0be4abe4a40938b1a408
-MD5 c7883a53d36af3e8bfa8179f8eb8d1fc sun-jdk-1.6.0.0_beta93.ebuild 5094
-RMD160 77a9d77b5841055055602e3109fa7733e63077ac sun-jdk-1.6.0.0_beta93.ebuild 5094
-SHA256 5bd676a827d79a7d5643e7745863e1e8fd1cd0cba33d0be4abe4a40938b1a408 sun-jdk-1.6.0.0_beta93.ebuild 5094
-MD5 8614c4fb2788de18638307ba8236cdcc files/digest-sun-jdk-1.6.0.0_beta93 316
-RMD160 42fae190548c7c8add67abd29a7407a926daaefd files/digest-sun-jdk-1.6.0.0_beta93 316
-SHA256 f2747ab836993019568b364707bb03bc90971db3c679423dda4ba211fd657972 files/digest-sun-jdk-1.6.0.0_beta93 316
diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.6.0.0_beta93 b/dev-java/sun-jdk/files/digest-sun-jdk-1.6.0.0_beta93
deleted file mode 100644
index 79efc5e..0000000
--- a/dev-java/sun-jdk/files/digest-sun-jdk-1.6.0.0_beta93
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 0932c55b2086af36ddf18c88cb249aa0 jdk-6-rc-bin-b93-linux-i586-27_jul_2006.bin 61639044
-RMD160 4a56fc67152bfb82c07c0e961c0c767f38a88751 jdk-6-rc-bin-b93-linux-i586-27_jul_2006.bin 61639044
-SHA256 585d526e49bd08d4ebf088a9345d776081f7bbeb2f069483c7f8565e0d73b2d2 jdk-6-rc-bin-b93-linux-i586-27_jul_2006.bin 61639044
diff --git a/dev-java/sun-jdk/files/sun-jdk-1.6.env b/dev-java/sun-jdk/files/sun-jdk-1.6.env
deleted file mode 100644
index 8a938d3..0000000
--- a/dev-java/sun-jdk/files/sun-jdk-1.6.env
+++ /dev/null
@@ -1,17 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/files/sun-jdk-1.5.env,v 1.1 2006/06/25 20:06:24 nichoj Exp $
-
-VERSION="Sun JDK @PV@"
-JAVA_HOME=/opt/@P@
-JDK_HOME=/opt/@P@
-JAVAC=${JAVA_HOME}/bin/javac
-PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
-ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
-LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/jre/lib/@PLATFORM@/xawt/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"
-MANPATH="/opt/@P@/man"
-PROVIDES_TYPE="JDK JRE"
-PROVIDES_VERSION="1.6"
-BOOTCLASSPATH="${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/i18n.jar:${JAVA_HOME}/jre/lib/sunrsasign.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar"
-GENERATION="2"
-ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
diff --git a/dev-java/sun-jdk/sun-jdk-1.6.0.0_beta93.ebuild b/dev-java/sun-jdk/sun-jdk-1.6.0.0_beta93.ebuild
deleted file mode 100644
index 176a80f..0000000
--- a/dev-java/sun-jdk/sun-jdk-1.6.0.0_beta93.ebuild
+++ /dev/null
@@ -1,176 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.5.0.05.ebuild,v 1.2 2005/10/10 16:23:12 betelgeuse Exp $
-
-inherit java-vm-2 eutils
-
-MY_PV=${PV/_beta*/}
-MY_PVL=${MY_PV%.*}_${MY_PV##*.}
-MY_PVA=${MY_PV//./_}
-BETA=${PV#*_beta}
-DATE="27_jul_2006"
-MY_RPV=${MY_PV%.*}
-
-
-BASE_URL="http://download.java.net/jdk6/binaries/"
-x86file="jdk-6-rc-bin-b${BETA}-linux-i586-${DATE}.bin"
-
-At=${x86file}
-
-S="${WORKDIR}/jdk${MY_RPV}"
-DESCRIPTION="Sun's Java Development Kit"
-HOMEPAGE="https://mustang.dev.java.net"
-SRC_URI="x86? ( ${BASE_URL}/$x86file )"
-SLOT="1.6"
-LICENSE="sun-prerelease"
-KEYWORDS="~x86 -*"
-#KEYWORDS="-*"
-RESTRICT="nostrip fetch"
-IUSE="doc nsplugin examples"
-
-JAVA_VM_NO_GENERATION1=true
-
-#
-DEPEND="
- sys-apps/sed
- doc? ( =dev-java/java-sdk-docs-1.5.0* )"
-
-RDEPEND="x86? ( sys-libs/lib-compat )
- doc? ( =dev-java/java-sdk-docs-1.5.0* )"
-
-PROVIDE="virtual/jre
- virtual/jdk"
-JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
-
-PACKED_JARS="lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/charsets.jar jre/lib/ext/localedata.jar jre/lib/plugin.jar jre/lib/javaws.jar jre/lib/deploy.jar"
-
-# this is needed for proper operating under a PaX kernel without activated grsecurity acl
-CHPAX_CONSERVATIVE_FLAGS="pemsv"
-
-pkg_nofetch() {
- einfo "Please download:"
- if use x86; then
- einfo "${BASE_URL}${x86file}"
- elif use amd64; then
- einfo "${BASE_URL}${amd64file}"
- fi
- einfo "Then place it in ${DISTDIR}"
-
- ewarn "By downloading and installing, you are agreeing to the terms"
- ewarn "of Sun's prerelease license."
-}
-
-src_unpack() {
- # Do a little voodoo to extract the distfile
- # Find the ELF in the script
- testExp=$(echo -e "\105\114\106")
- startAt=$(grep -aonm 1 ${testExp} ${DISTDIR}/${At} | cut -d: -f1)
- # Extract and run it
- tail -n +${startAt} ${DISTDIR}/${At} > install.sfx
- chmod +x install.sfx
- ./install.sfx >/dev/null || die
- rm install.sfx
-
- if [ -f ${S}/bin/unpack200 ]; then
- UNPACK_CMD=${S}/bin/unpack200
- chmod +x $UNPACK_CMD
- sed -i 's#/tmp/unpack.log#/dev/null\x00\x00\x00\x00\x00\x00#g' $UNPACK_CMD
- for i in $PACKED_JARS; do
- PACK_FILE=${S}/$(dirname $i)/$(basename $i .jar).pack
- if [ -f ${PACK_FILE} ]; then
- echo " unpacking: $i"
- $UNPACK_CMD ${PACK_FILE} ${S}/$i
- rm -f ${PACK_FILE}
- fi
- done
- rm -f ${UNPACK_CMD}
- else
- die "unpack not found"
- fi
- ${S}/bin/java -client -Xshare:dump
-}
-
-src_install() {
- local dirs="bin include jre lib man"
- dodir /opt/${P}
-
- for i in $dirs ; do
- cp -pPR $i ${D}/opt/${P}/ || die "failed to copy"
- done
- dodoc COPYRIGHT LICENSE README.html
- dohtml README.html
- dodir /opt/${P}/share/
-
- if use examples; then
- cp -pPR demo sample ${D}/opt/${P}/share/
- fi
- cp -pPR src.zip ${D}/opt/${P}/share/
-
-
- if use nsplugin; then
- local plugin_dir="ns7-gcc29"
- if has_version '>=sys-devel/gcc-3' ; then
- plugin_dir="ns7"
- fi
-
- if use x86 ; then
- install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
- else
- eerror "No plugin available for amd64 arch"
- fi
- fi
-
- # create dir for system preferences
- dodir /opt/${P}/jre/.systemPrefs
- # Create files used as storage for system preferences.
- touch ${D}/opt/${P}/jre/.systemPrefs/.system.lock
- chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.system.lock
- touch ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile
- chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile
-
- # install control panel for Gnome/KDE
- sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \
- -e "s/\(Name=Java\)/\1 Control Panel/" \
- ${D}/opt/${P}/jre/plugin/desktop/sun_java.desktop > \
- ${T}/sun_java.desktop
-
- domenu ${T}/sun_java.desktop
-
- set_java_env
-}
-
-pkg_postinst() {
- # Set as default VM if none exists
- java-vm-2_pkg_postinst
-
- # if chpax is on the target system, set the appropriate PaX flags
- # this will not hurt the binary, it modifies only unused ELF bits
- # but may confuse things like AV scanners and automatic tripwire
- if has_version sys-apps/chpax; then
- echo
- einfo "setting up conservative PaX flags for jar, javac and java"
-
- for paxkills in "jar" "javac" "java" "javah" "javadoc"; do
- chpax -${CHPAX_CONSERVATIVE_FLAGS} /opt/${P}/bin/$paxkills
- done
-
- chpax -${CHPAX_CONSERVATIVE_FLAGS} /opt/${P}/jre/bin/java_vm
-
- einfo "you should have seen lots of chpax output above now"
- ewarn "make sure the grsec ACL contains those entries also"
- ewarn "because enabling it will override the chpax setting"
- ewarn "on the physical files - help for PaX and grsecurity"
- ewarn "can be given by #gentoo-hardened + hardened@gentoo.org"
- fi
-
- echo
- ewarn "Some parts of Sun's JDK require virtual/x11 and/or virtual/lpr to be installed."
- ewarn "Be careful which Java libraries you attempt to use."
-
- echo
- einfo " Be careful: ${P}'s Java compiler uses"
- einfo " '-source 1.6' as default. This means that some keywords "
- einfo " such as 'enum' are not valid identifiers any more in that mode,"
- einfo " which can cause incompatibility with certain sources."
- einfo " Additionally, some API changes may cause some breakages."
-}