summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-09-23 16:51:23 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-09-23 16:51:23 +0000
commitd9d25310bff59550f27580c1604d5b05a9348302 (patch)
tree2c4da300c4897c7f9915dd0a075f5e202220b3a6 /dev-java
parentprune older (Manifest recommit) (diff)
downloadgentoo-2-d9d25310bff59550f27580c1604d5b05a9348302.tar.gz
gentoo-2-d9d25310bff59550f27580c1604d5b05a9348302.tar.bz2
gentoo-2-d9d25310bff59550f27580c1604d5b05a9348302.zip
accidently deleted this
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/sun-jdk/ChangeLog7
-rw-r--r--dev-java/sun-jdk/Manifest12
-rw-r--r--dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.131
-rw-r--r--dev-java/sun-jdk/sun-jdk-1.3.1.13.ebuild146
4 files changed, 155 insertions, 11 deletions
diff --git a/dev-java/sun-jdk/ChangeLog b/dev-java/sun-jdk/ChangeLog
index 3936dfebe81a..e47807d56163 100644
--- a/dev-java/sun-jdk/ChangeLog
+++ b/dev-java/sun-jdk/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/sun-jdk
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.88 2004/09/23 16:47:35 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.89 2004/09/23 16:51:23 axxo Exp $
+
+*sun-jdk-1.3.1.13 (23 Sep 2004)
+
+ 23 Sep 2004; Thomas Matthijs <axxo@gentoo.org> +sun-jdk-1.3.1.13.ebuild:
+ version bump
23 Sep 2004; Thomas Matthijs <axxo@gentoo.org> -files/sun-jdk-1.3.1.09,
-files/sun-jdk-1.3.1.10, -files/sun-jdk-1.3.1.12, +files/sun-jdk-1.3.1.13,
diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest
index a05deb3eea9b..9de0ac6b3889 100644
--- a/dev-java/sun-jdk/Manifest
+++ b/dev-java/sun-jdk/Manifest
@@ -1,6 +1,4 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+MD5 5abfe018be32b68adf43fb0352801380 sun-jdk-1.3.1.13.ebuild 4590
MD5 82846148787c925ae230ec788adca411 sun-jdk-1.2.2.017.ebuild 3158
MD5 7dfced90cf06b1c1f70f0925afc3fbcf sun-jdk-1.4.2.05.ebuild 7327
MD5 4122e7126ef58c0853e911c9de723bff ChangeLog 19125
@@ -10,13 +8,7 @@ MD5 57ce5cdf2473dfb4c1516c4374bf5050 files/sun-jdk-1.3.1.13 479
MD5 23b60f3127f8ba04b0945493a0c3eba4 files/sun-jdk-1.4.2.05 503
MD5 8a86d872624397dc0644912c790f6f42 files/sun-jdk-1.2.2.017 336
MD5 92fc551c12c9a260dd9ced69d15cf0f3 files/digest-sun-jdk-1.2.2.017 78
+MD5 d1e29e8acce3cfec9912e23aa366478a files/digest-sun-jdk-1.3.1.13 76
MD5 dbb142ea361e1f8ac87d899f62f66c89 files/digest-sun-jdk-1.4.2.05 140
MD5 55ccaaf7a2d90163835659383f84e8a0 files/sun-jdk-1.5.0_rc1 474
MD5 db074c663081fb462975f1fdce2602e4 files/digest-sun-jdk-1.5.0_rc1 215
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFBUv5P/rLF9B432nYRAlzqAJ9MPtodrI2ru2Doso1CDWIOnvN9AQCgn5KJ
-SCTxPOlfLURzsgwde4tpQkc=
-=3RiM
------END PGP SIGNATURE-----
diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.13 b/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.13
new file mode 100644
index 000000000000..94ef211bc746
--- /dev/null
+++ b/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.13
@@ -0,0 +1 @@
+MD5 347800af175681c7d707c45cce16bf5b j2sdk-1_3_1_13-linux-i586.bin 26653147
diff --git a/dev-java/sun-jdk/sun-jdk-1.3.1.13.ebuild b/dev-java/sun-jdk/sun-jdk-1.3.1.13.ebuild
new file mode 100644
index 000000000000..c4ac133d57b6
--- /dev/null
+++ b/dev-java/sun-jdk/sun-jdk-1.3.1.13.ebuild
@@ -0,0 +1,146 @@
+# 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/sun-jdk-1.3.1.13.ebuild,v 1.1 2004/09/23 16:51:23 axxo Exp $
+
+IUSE="doc mozilla"
+
+inherit java nsplugins 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-1.3.1
+ virtual/jdk-1.3.1
+ virtual/java-scheme-2"
+LICENSE="sun-bcla-java-vm"
+SLOT="1.3"
+KEYWORDS="~x86 -ppc -sparc -alpha -mips -hppa"
+RESTRICT="fetch"
+
+# 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 mozilla ; then
+ dodir /usr/lib/mozilla/plugins
+ dosym /opt/${P}/jre/plugin/i386/ns600/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
+ fi
+
+ set_java_env ${FILESDIR}/${VMHANDLE} || die
+}
+
+pkg_postinst () {
+ # Set as default VM if none exists
+ java_pkg_postinst
+ inst_plugin /opt/${P}/jre/plugin/i386/mozilla/libjavaplugin_oji.so
+
+ # 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.3.1.09/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 "******************************************************"
+
+ ebeep 5
+ epause 8
+}