summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2005-12-28 20:51:11 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2005-12-28 20:51:11 +0000
commitf9434093078b945ce6a5b7000eb3761f6964c363 (patch)
treeb26e07e6298e3261d18a2275200d13443433212d
parentVersion bump #116979 by Michael Cramer and fix init.d script for cdrom device... (diff)
downloadhistorical-f9434093078b945ce6a5b7000eb3761f6964c363.tar.gz
historical-f9434093078b945ce6a5b7000eb3761f6964c363.tar.bz2
historical-f9434093078b945ce6a5b7000eb3761f6964c363.zip
Version bump and added proper dependencies. Fixes bug #115738.
Package-Manager: portage-2.1_pre2
-rw-r--r--dev-java/sun-jdk/ChangeLog8
-rw-r--r--dev-java/sun-jdk/Manifest10
-rw-r--r--dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.171
-rw-r--r--dev-java/sun-jdk/files/sun-jdk-1.3.1.1712
-rw-r--r--dev-java/sun-jdk/sun-jdk-1.3.1.17.ebuild163
5 files changed, 193 insertions, 1 deletions
diff --git a/dev-java/sun-jdk/ChangeLog b/dev-java/sun-jdk/ChangeLog
index 611b7cbe3216..207fc5025250 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.132 2005/12/16 15:30:30 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.133 2005/12/28 20:51:11 betelgeuse Exp $
+
+*sun-jdk-1.3.1.17 (28 Dec 2005)
+
+ 28 Dec 2005; Petteri Räty <betelgeuse@gentoo.org>
+ +files/sun-jdk-1.3.1.17, +sun-jdk-1.3.1.17.ebuild:
+ Version bump and added proper dependencies. Fixes bug #115738.
16 Dec 2005; Thomas Matthijs <axxo@gentoo.org> sun-jdk-1.4.2.10.ebuild:
No longer needs the javaws hack, was fixed upstream #115772
diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest
index 9ac648e5f2b6..280de3296231 100644
--- a/dev-java/sun-jdk/Manifest
+++ b/dev-java/sun-jdk/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
MD5 1c15124ddb050a1cd5edbca992237271 ChangeLog 27326
MD5 92fc551c12c9a260dd9ced69d15cf0f3 files/digest-sun-jdk-1.2.2.017 78
MD5 7339eea38c2cfdfdc4cd777a02c4cbc1 files/digest-sun-jdk-1.3.1.16 76
@@ -22,3 +25,10 @@ MD5 668a0b7c052c6d32ec1183e8beef1d09 sun-jdk-1.4.2.09.ebuild 6866
MD5 83dc22985f33cfd084346449b3d209d8 sun-jdk-1.4.2.10.ebuild 6773
MD5 881e1d3c90a77528a35f1953302c7450 sun-jdk-1.5.0.05.ebuild 7350
MD5 9cf8a3a0a1c35e6357d42f00c73c5328 sun-jdk-1.5.0.06.ebuild 7600
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFDsvrOQiJ/wx066S4RAuyyAJ0Wcth4LTYUbc+3+G5VkqzVr+2LGwCfd4Gj
+SAWXgubZfzxImAOHE6sY/tA=
+=gyEb
+-----END PGP SIGNATURE-----
diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.17 b/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.17
new file mode 100644
index 000000000000..5bd82d282211
--- /dev/null
+++ b/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.17
@@ -0,0 +1 @@
+MD5 cf2de94fb5437473da035470ef496fe7 j2sdk-1_3_1_17-linux-i586.bin 26660449
diff --git a/dev-java/sun-jdk/files/sun-jdk-1.3.1.17 b/dev-java/sun-jdk/files/sun-jdk-1.3.1.17
new file mode 100644
index 000000000000..f2fc442d8a72
--- /dev/null
+++ b/dev-java/sun-jdk/files/sun-jdk-1.3.1.17
@@ -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.17,v 1.1 2005/12/28 20:51:11 betelgeuse 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.17.ebuild b/dev-java/sun-jdk/sun-jdk-1.3.1.17.ebuild
new file mode 100644
index 000000000000..c579e3202daf
--- /dev/null
+++ b/dev-java/sun-jdk/sun-jdk-1.3.1.17.ebuild
@@ -0,0 +1,163 @@
+# 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.17.ebuild,v 1.1 2005/12/28 20:51:11 betelgeuse 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
+ doc? ( =dev-java/java-sdk-docs-1.3.1* )
+ nsplugin? ( dev-libs/glib x11-libs/gtk+ )
+ browserplugin? ( dev-libs/glib x11-libs/gtk+ )
+ mozilla? ( dev-libs/glib x11-libs/gtk+ )
+ X? ( || ( (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXp
+ x11-libs/libXt
+ x11-libs/libXtst
+ )
+ virtual/x11
+ )
+ )"
+
+PROVIDE="virtual/jre
+ virtual/jdk"
+LICENSE="sun-bcla-java-vm"
+SLOT="1.3"
+KEYWORDS="-* ~x86"
+RESTRICT="fetch stricter"
+
+IUSE="X doc browserplugin nsplugin 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/
+
+ local javaplugin="/opt/${P}/jre/plugin/i386/ns600/libjavaplugin_oji.so"
+
+ if use nsplugin || # global useflag for netscape-compat plugins
+ use browserplugin || # deprecated but honor for now
+ use mozilla; then # wrong but used to honor it
+ install_mozilla_plugin ${javaplugin}
+ else
+ rm "${D}/${javaplugin}" || die "Removing javaplugin failed."
+ fi
+
+ set_java_env ${FILESDIR}/${VMHANDLE} || die
+}
+
+pkg_postinst () {
+ # Set as default VM if none exists
+ java_pkg_postinst
+
+ if ! use nsplugin && ( use browserplugin || use mozilla ); then
+ echo
+ ewarn "The 'browserplugin' and 'mozilla' useflags will not be honored in"
+ ewarn "future jdk/jre ebuilds for plugin installation. Please"
+ ewarn "update your USE to include 'nsplugin'."
+ fi
+
+ if use nsplugin || use browserplugin || use mozilla; then
+ echo
+ ewarn "The javaplugin in this version does not work with"
+ ewarn "Firefox 1.5."
+ 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
+ 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
+
+ if ! use X; then
+ echo
+ eerror "Some parts of Sun's JDK require X11 to be installed."
+ eerror "Be careful which Java libraries you attempt to use."
+ fi
+}