summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Almenar <strider@gentoo.org>2004-01-10 19:24:05 +0000
committerAdrian Almenar <strider@gentoo.org>2004-01-10 19:24:05 +0000
commitffa9e4ad0433848c1bb1ce0744fd52b62a263c3d (patch)
treeef0611e3a0170431265fd72f2f7978f2159b734f /dev-java
parent_beta was not captured by last mask. (diff)
downloadgentoo-2-ffa9e4ad0433848c1bb1ce0744fd52b62a263c3d.tar.gz
gentoo-2-ffa9e4ad0433848c1bb1ce0744fd52b62a263c3d.tar.bz2
gentoo-2-ffa9e4ad0433848c1bb1ce0744fd52b62a263c3d.zip
Added beta version of sun-jdk.
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/sun-jdk/ChangeLog8
-rw-r--r--dev-java/sun-jdk/Manifest3
-rw-r--r--dev-java/sun-jdk/files/digest-sun-jdk-1.5.0_beta11
-rw-r--r--dev-java/sun-jdk/files/sun-jdk-1.5.0_beta113
-rw-r--r--dev-java/sun-jdk/sun-jdk-1.5.0_beta1.ebuild184
5 files changed, 208 insertions, 1 deletions
diff --git a/dev-java/sun-jdk/ChangeLog b/dev-java/sun-jdk/ChangeLog
index 64968374ebd7..65d335f679e9 100644
--- a/dev-java/sun-jdk/ChangeLog
+++ b/dev-java/sun-jdk/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/sun-jdk
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.62 2004/01/10 18:26:13 strider Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.63 2004/01/10 19:24:05 strider Exp $
+
+*sun-jdk-1.5.0_beta1 (10 Jan 2004)
+
+ 10 Jan 2004; Adrian Almenar <strider@gentoo.org> sun-jdk-1.5.0_beta1.ebuild,
+ files/sun-jdk-1.5.0_beta1:
+ Added beta version of sun-jdk.
10 Jan 2004; Adrian Almenar <strider@gentoo.org> sun-jdk-1.4.2.03.ebuild:
Moving to stable.
diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest
index 5ee6323ca7bf..1a128ee8c442 100644
--- a/dev-java/sun-jdk/Manifest
+++ b/dev-java/sun-jdk/Manifest
@@ -1,4 +1,5 @@
MD5 07dda41c52c978d75d1375cd4bc527af sun-jdk-1.3.1.09.ebuild 4462
+MD5 9d0b5bcddfa71dd3dfe44a87f3527878 sun-jdk-1.5.0_beta1.ebuild 6005
MD5 26f9e7e0cc1fc4b56a93d012bd611bb6 sun-jdk-1.4.2.03.ebuild 5970
MD5 a2a9345a7a339c63d4010eb1590b68a1 sun-jdk-1.4.1.06.ebuild 3330
MD5 7d0642f1041901577f53135cf3fd64ee ChangeLog 13891
@@ -10,6 +11,8 @@ MD5 23ca5a0105772f176633ba85c292ef97 files/sun-jdk-1.4.1.05 465
MD5 23ca5a0105772f176633ba85c292ef97 files/sun-jdk-1.4.1.06 465
MD5 ccd9bd0dbf7649c2e5681e9cda01f99c files/sun-jdk-1.4.2.02 519
MD5 ccd9bd0dbf7649c2e5681e9cda01f99c files/sun-jdk-1.4.2.03 519
+MD5 ccd9bd0dbf7649c2e5681e9cda01f99c files/sun-jdk-1.5.0 519
+MD5 b0a5cd2bff8f98cd4e8535bb0a327ba5 files/digest-sun-jdk-1.5.0_beta1 98
MD5 951b3321a6c971e8af7c5b12816f3db0 files/digest-sun-jdk-1.3.1.09 76
MD5 c79470c52b4a6023145cc947d213b59b files/digest-sun-jdk-1.4.1.05 76
MD5 758406756bec272a9edfb8f09979c1f9 files/digest-sun-jdk-1.4.1.06 76
diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.5.0_beta1 b/dev-java/sun-jdk/files/digest-sun-jdk-1.5.0_beta1
new file mode 100644
index 000000000000..c0ef508e4234
--- /dev/null
+++ b/dev-java/sun-jdk/files/digest-sun-jdk-1.5.0_beta1
@@ -0,0 +1 @@
+MD5 ee03c299e1d6a402908a23f7897abc47 j2sdk-1_5_0-beta-bin-b31-linux-i586-11_dec_2003.bin 37714818
diff --git a/dev-java/sun-jdk/files/sun-jdk-1.5.0_beta1 b/dev-java/sun-jdk/files/sun-jdk-1.5.0_beta1
new file mode 100644
index 000000000000..ea03125e02f4
--- /dev/null
+++ b/dev-java/sun-jdk/files/sun-jdk-1.5.0_beta1
@@ -0,0 +1,13 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author: Karl Trygve Kalleberg
+
+VERSION="Sun JDK @PV@"
+JAVA_HOME=/opt/@P@
+CLASSPATH=.:/opt/@P@/jre/lib:/opt/@P@/lib/tools.jar:/opt/@P@/jre/lib/rt.jar
+JDK_HOME=/opt/@P@
+JAVAC=${JAVA_HOME}/bin/javac
+ADDPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin:${JAVA_HOME}/jre/javaws"
+ADDLDPATH="/opt/@P@/jre/lib"
+MANPATH="/opt/@P@/man"
+ENV_VARS="JAVA_HOME CLASSPATH JDK_HOME JAVAC ADDPATH ADDLDPATH MANPATH"
diff --git a/dev-java/sun-jdk/sun-jdk-1.5.0_beta1.ebuild b/dev-java/sun-jdk/sun-jdk-1.5.0_beta1.ebuild
new file mode 100644
index 000000000000..365e2d1cae42
--- /dev/null
+++ b/dev-java/sun-jdk/sun-jdk-1.5.0_beta1.ebuild
@@ -0,0 +1,184 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# 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_beta1.ebuild,v 1.1 2004/01/10 19:24:05 strider Exp $
+
+IUSE="doc gnome kde mozilla"
+
+inherit java nsplugins
+
+At="j2sdk-1_5_0-beta-bin-b31-linux-i586-11_dec_2003.bin"
+S="${WORKDIR}/j2sdk1.5.0"
+DESCRIPTION="Sun's J2SE Development Kit, version ${PV}"
+HOMEPAGE="http://jsecom16.sun.com/ECom/EComActionServlet?StoreId=22&PartDetailId=j2sdk-1.5.0-beta-b31-oth-JPR"
+SRC_URI=${At}
+SLOT="1.5"
+LICENSE="sun-bcla-java-vm"
+KEYWORDS="x86"
+RESTRICT="fetch"
+
+DEPEND=">=dev-java/java-config-1.1.5
+ sys-apps/sed
+ doc? ( =dev-java/java-sdk-docs-1.4.2* )"
+
+RDEPEND="sys-libs/lib-compat"
+
+PROVIDE="virtual/jre-1.4.2
+ virtual/jdk-1.4.2
+ virtual/java-scheme-2"
+
+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/javaws/javaws.jar"
+
+# this is needed for proper operating under a PaX kernel without activated grsecurity acl
+CHPAX_CONSERVATIVE_FLAGS="pemsv"
+
+pkg_nofetch() {
+ einfo "Please download ${At} from:"
+ einfo ${HOMEPAGE}
+ einfo "(select the \"Linux self-extracting file\" package format of the SDK)"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_unpack() {
+ if [ ! -r ${DISTDIR}/${At} ]; then
+ eerror "cannot read ${At}. Please check the permission and try again."
+ die
+ fi
+ #Search for the ELF Header
+ testExp=`echo -e "\177\105\114\106\001\001\001"`
+ startAt=`grep -aonm 1 ${testExp} ${DISTDIR}/${At} | cut -d: -f1`
+ tail -n +${startAt} ${DISTDIR}/${At} > install.sfx
+ chmod +x install.sfx
+ ./install.sfx || die
+ rm install.sfx
+
+ if [ -f ${S}/lib/unpack ]; then
+ UNPACK_CMD=${S}/lib/unpack
+ chmod +x $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
+ fi
+}
+
+src_install () {
+ local dirs="bin include jre lib man"
+ dodir /opt/${P}
+
+ for i in $dirs ; do
+ cp -a $i ${D}/opt/${P}/
+ done
+
+ dodoc COPYRIGHT LICENSE
+ dohtml README.html
+ dodir /opt/${P}/share/
+ cp -a demo src.zip ${D}/opt/${P}/share/
+
+ local plugin_dir="ns7-gcc29"
+ if has_version '>=gcc-3.2*' ; then
+ plugin_dir="ns7"
+ fi
+ if [ "`use mozilla`" ] ; then
+ install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
+ fi
+ inst_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
+
+ # create dir for system preferences
+ dodir /opt/${P}/.systemPrefs
+
+ # 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
+
+ if use gnome ; then
+ #TODO check this on Gnome
+ dodir /usr/share/gnome/apps/Internet
+ insinto /usr/share/gnome/apps/Internet
+ doins ${T}/sun_java.desktop
+ fi
+ if use kde ; then
+ dodir $KDEDIR/share/applnk/Internet
+ insinto $KDEDIR/share/applnk/Internet
+ doins ${T}/sun_java.desktop
+ fi
+
+ set_java_env ${FILESDIR}/${VMHANDLE}
+
+ # TODO prepman "fixes" symlink ja -> ja__JP.eucJP in 'man' directory,
+ # creating ja.gz -> ja_JP.eucJP.gz. This is broken as ja_JP.eucJP
+ # is a directory and will not be gzipped ;)
+}
+
+pkg_postinst () {
+ # Create files used as storage for system preferences.
+ touch /opt/${P}/.systemPrefs/.system.lock
+ chmod 644 /opt/${P}/.systemPrefs/.system.lock
+ touch /opt/${P}/.systemPrefs/.systemRootModFile
+ chmod 644 /opt/${P}/.systemPrefs/.systemRootModFile
+
+ # Set as default VM if none exists
+ java_pkg_postinst
+
+ #Show info about netscape
+ if has_version '>=netscape-navigator-4.79-r1' || has_version '>=netscape-communicator-4.79-r1' ; then
+ einfo "********************************************************"
+ einfo "If you want to install the plugin for Netscape 4.x, type"
+ einfo
+ einfo " cd /usr/lib/nsbrowser/plugins/"
+ einfo " ln -sf /opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so"
+ einfo "********************************************************"
+ echo
+ fi
+
+ # 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
+ einfo "setting up conservative PaX flags for jar, javac and java"
+
+ for paxkills in "jar" "javac" "java"
+ do
+ chpax -${CHPAX_CONSERVATIVE_FLAGS} /opt/${PN}-${PV}/bin/$paxkills
+ done
+
+ # /opt/sun-jdk-1.4.2.03/jre/bin/java_vm
+ chpax -${CHPAX_CONSERVATIVE_FLAGS} /opt/${PN}-${PV}/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 + pappy@gentoo.org"
+ fi
+
+ #Thanks to Douglas Pollock <douglas.pollock@magma.ca> for this
+ #comment found on the sun-jdk 1.2.2 ebuild that he sent.
+ einfo "*********************************************************"
+ eerror "Some parts of Sun's JDK require XFree86 to be installed."
+ eerror "Be careful which Java libraries you attempt to use."
+ einfo "*********************************************************"
+ echo
+
+ einfo "******************************************************"
+ einfo " After installing ${P} this"
+ einfo " was set as the default JVM to run."
+ einfo " When finished please run the following so your"
+ einfo " enviroment gets updated."
+ eerror " /usr/sbin/env-update && source /etc/profile"
+ einfo " Or use java-config program to set your preferred VM"
+ einfo "******************************************************"
+
+ echo -ne "\a" ; sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null
+ echo -ne "\a" ; sleep 1
+ echo -ne "\a" ; sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null
+ echo -ne "\a" ; sleep 1
+ sleep 8
+
+}