summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2005-10-13 09:50:50 +0000
committerThomas Matthijs <axxo@gentoo.org>2005-10-13 09:50:50 +0000
commit0171d060dcbc66d0749549eceb48d75d0f841ff9 (patch)
treea020874385da10948f302ae977d2560eeac39f28 /dev-java/sun-jdk
parentUpdated to latest version. (diff)
downloadgentoo-2-0171d060dcbc66d0749549eceb48d75d0f841ff9.tar.gz
gentoo-2-0171d060dcbc66d0749549eceb48d75d0f841ff9.tar.bz2
gentoo-2-0171d060dcbc66d0749549eceb48d75d0f841ff9.zip
version bump #109103
(Portage version: 2.0.53_rc5)
Diffstat (limited to 'dev-java/sun-jdk')
-rw-r--r--dev-java/sun-jdk/ChangeLog8
-rw-r--r--dev-java/sun-jdk/Manifest12
-rw-r--r--dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.161
-rw-r--r--dev-java/sun-jdk/files/sun-jdk-1.3.1.1612
-rw-r--r--dev-java/sun-jdk/sun-jdk-1.3.1.16.ebuild127
5 files changed, 149 insertions, 11 deletions
diff --git a/dev-java/sun-jdk/ChangeLog b/dev-java/sun-jdk/ChangeLog
index 00c7028e89f9..fa745cb362d0 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-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.122 2005/09/30 15:34:19 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.123 2005/10/13 09:50:49 axxo Exp $
+
+*sun-jdk-1.3.1.16 (13 Oct 2005)
+
+ 13 Oct 2005; Thomas Matthijs <axxo@gentoo.org> +files/sun-jdk-1.3.1.16,
+ +sun-jdk-1.3.1.16.ebuild:
+ version bump #109103
30 Sep 2005; Thomas Matthijs <axxo@gentoo.org> sun-jdk-1.4.2.08.ebuild,
sun-jdk-1.4.2.08-r1.ebuild, sun-jdk-1.4.2.09.ebuild:
diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest
index c6c336a809d4..cb3bb016a50d 100644
--- a/dev-java/sun-jdk/Manifest
+++ b/dev-java/sun-jdk/Manifest
@@ -1,9 +1,7 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 4ead8a5aaaaaeaf1683faa01b02fd366 ChangeLog 25200
MD5 92fc551c12c9a260dd9ced69d15cf0f3 files/digest-sun-jdk-1.2.2.017 78
MD5 d1e29e8acce3cfec9912e23aa366478a files/digest-sun-jdk-1.3.1.13 76
+MD5 7339eea38c2cfdfdc4cd777a02c4cbc1 files/digest-sun-jdk-1.3.1.16 76
MD5 49cf0d15bb5d59149d1828735355d139 files/digest-sun-jdk-1.4.2.08 140
MD5 49cf0d15bb5d59149d1828735355d139 files/digest-sun-jdk-1.4.2.08-r1 140
MD5 ce8f1c0c94a74aadae5d58b68c254161 files/digest-sun-jdk-1.4.2.09 140
@@ -19,15 +17,9 @@ MD5 50d600429785f626eef0bb4048cbc009 files/sun-jdk-1.5.0.05 613
MD5 16c9e337522b7e477aece60ff98dde54 metadata.xml 239
MD5 6e6334f4e89e27aca419bc2dea752336 sun-jdk-1.2.2.017.ebuild 2898
MD5 5213a160fff46bbc88446cb67f44bf1e sun-jdk-1.3.1.13.ebuild 3729
+MD5 5213a160fff46bbc88446cb67f44bf1e sun-jdk-1.3.1.16.ebuild 3729
MD5 3a0cb65b1b04ec878b9c96908ed5149a sun-jdk-1.4.2.08-r1.ebuild 6786
MD5 704f374a634a0fcfc7ec341421a028e8 sun-jdk-1.4.2.08.ebuild 6485
MD5 c7ea8614185f77bd8657b327b5a70cf9 sun-jdk-1.4.2.09.ebuild 6784
MD5 5d49aa4b2d517a27f6a7ff6c4d1e0e4b sun-jdk-1.5.0.04.ebuild 7206
MD5 7c61488980355e42c6c9ba1513efaf48 sun-jdk-1.5.0.05.ebuild 7277
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFDSpWdQiJ/wx066S4RAml1AJ9dpqOZCcOETTVP1KILL6EkYkcmWwCeM5gh
-JWcB/dvrlm0pSBEhabsvdZs=
-=Q4ls
------END PGP SIGNATURE-----
diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.16 b/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.16
new file mode 100644
index 000000000000..f3ce49ea75e3
--- /dev/null
+++ b/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.16
@@ -0,0 +1 @@
+MD5 a90ca5f7a48277af5750a6c21cdd0c12 j2sdk-1_3_1_16-linux-i586.bin 26660278
diff --git a/dev-java/sun-jdk/files/sun-jdk-1.3.1.16 b/dev-java/sun-jdk/files/sun-jdk-1.3.1.16
new file mode 100644
index 000000000000..1a9f7e010924
--- /dev/null
+++ b/dev-java/sun-jdk/files/sun-jdk-1.3.1.16
@@ -0,0 +1,12 @@
+# Copyright 1999-2004 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.3.1.16,v 1.1 2005/10/13 09:50:50 axxo Exp $
+
+VERSION="Sun JDK @PV@"
+JAVA_HOME=/opt/@P@
+JDK_HOME=/opt/@P@
+JAVAC=${JAVA_HOME}/bin/javac
+ADDPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
+ADDLDPATH="/opt/@P@/jre/lib"
+MANPATH="/opt/@P@/man"
+ENV_VARS="JAVA_HOME JDK_HOME JAVAC ADDPATH ADDLDPATH MANPATH"
diff --git a/dev-java/sun-jdk/sun-jdk-1.3.1.16.ebuild b/dev-java/sun-jdk/sun-jdk-1.3.1.16.ebuild
new file mode 100644
index 000000000000..c7661ea2cf1e
--- /dev/null
+++ b/dev-java/sun-jdk/sun-jdk-1.3.1.16.ebuild
@@ -0,0 +1,127 @@
+# 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/sun-jdk-1.3.1.16.ebuild,v 1.1 2005/10/13 09:50:49 axxo Exp $
+
+inherit java eutils
+
+MY_PV=${PV%.*}_${PV##*.}
+MY_P=jdk${MY_PV}
+MY_PVB=${PV%.*}
+
+At="j2sdk-${PV//./_}-linux-i586.bin"
+S="${WORKDIR}/${MY_P}"
+SRC_URI="${At}"
+DESCRIPTION="Sun Java Development Kit"
+HOMEPAGE="http://java.sun.com/j2se/1.3/"
+DEPEND="virtual/libc
+ >=dev-java/java-config-0.2.7
+ doc? ( =dev-java/java-sdk-docs-1.3.1* )"
+RDEPEND="sys-libs/lib-compat"
+PROVIDE="virtual/jre
+ virtual/jdk"
+LICENSE="sun-bcla-java-vm"
+SLOT="1.3"
+KEYWORDS="x86 -*"
+RESTRICT="fetch"
+
+IUSE="doc browserplugin mozilla"
+# this is needed for proper operating under a PaX kernel without activated grsecurity acl
+CHPAX_CONSERVATIVE_FLAGS="pemsv"
+
+DOWNLOAD_URL="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2sdk-${MY_PV}-oth-JPR&SiteId=JSC&TransactionId=noreg"
+
+pkg_nofetch() {
+ einfo "Please download ${At} from:"
+ einfo ${DOWNLOAD_URL}
+ einfo "(SDK 32-bit/64-bit for Windows/Linux/Solaris SPARC 32-bit for Solaris x86, then select download Linux Self-extracting."
+ 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
+ rm install.sfx
+
+ sed "s/head -1/head -n 1/" -i ${MY_P}/bin/.java_wrapper
+}
+
+src_install() {
+ local dirs="bin include include-old jre lib man"
+ dodir /opt/${P}
+
+ for i in ${dirs} ; do
+ if [ "${i}" == "bin" ] ; then
+ dodir /opt/${P}/${i}
+ cp -dPR ${i}/.java_wrapper ${D}/opt/${P}/bin/
+ cp -dPR ${i}/* ${D}/opt/${P}/bin/
+ elif [ "${i}" == "jre" ] ; then
+ dodir /opt/${P}/${i}
+ dodir /opt/${P}/${i}/bin
+ cp -dPR ${i}/bin/.java_wrapper ${D}/opt/${P}/${i}/bin/
+ cp -dPR ${i}/bin/* ${D}/opt/${P}/${i}/bin/
+ cp -dPR ${i}/CHANGES \
+ ${i}/COPYRIGHT \
+ ${i}/ControlPanel.html \
+ ${i}/LICENSE \
+ ${i}/README \
+ ${i}/Welcome.html \
+ ${i}/lib \
+ ${i}/plugin \
+ ${D}/opt/${P}/${i}/
+ else
+ cp -dPR ${i} ${D}/opt/${P}/
+ fi
+ done
+
+ dodoc COPYRIGHT README LICENSE
+ dohtml README.html
+
+ dodir /opt/${P}/share/
+ cp -a demo src.jar ${D}/opt/${P}/share/
+
+ if use browserplugin || use mozilla; then
+ install_mozilla_plugin /opt/${P}/jre/plugin/i386/ns600/libjavaplugin_oji.so
+ fi
+
+ set_java_env ${FILESDIR}/${VMHANDLE} || die
+}
+
+pkg_postinst () {
+ # Set as default VM if none exists
+ java_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
+
+ # /opt/sun-jdk-1.3.1.09/jre/bin/java_vm
+ 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
+ eerror "Some parts of Sun's JDK require X11 to be installed."
+ eerror "Be careful which Java libraries you attempt to use."
+}