diff options
author | Joshua Nichols <nichoj@gentoo.org> | 2006-09-03 01:30:10 +0000 |
---|---|---|
committer | Joshua Nichols <nichoj@gentoo.org> | 2006-09-03 01:30:10 +0000 |
commit | d222df90c392ca8e8c819a4f0002d7039999b568 (patch) | |
tree | c53bff154361781ae9dceba2eddf7cb181e84d21 /dev-java | |
parent | Removing versions that have known security issues, bug #140495. (diff) | |
download | gentoo-2-d222df90c392ca8e8c819a4f0002d7039999b568.tar.gz gentoo-2-d222df90c392ca8e8c819a4f0002d7039999b568.tar.bz2 gentoo-2-d222df90c392ca8e8c819a4f0002d7039999b568.zip |
Removing versions that have known security issues, bug #140495.
(Portage version: 2.1.1_rc1)
(Unsigned Manifest commit)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/sun-jdk/Manifest | 31 | ||||
-rw-r--r-- | dev-java/sun-jdk/files/digest-sun-jdk-1.2.2.017 | 1 | ||||
-rw-r--r-- | dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.17 | 3 | ||||
-rw-r--r-- | dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.17-r10 | 3 | ||||
-rw-r--r-- | dev-java/sun-jdk/sun-jdk-1.2.2.017.ebuild | 87 | ||||
-rw-r--r-- | dev-java/sun-jdk/sun-jdk-1.3.1.17-r10.ebuild | 150 | ||||
-rw-r--r-- | dev-java/sun-jdk/sun-jdk-1.3.1.17.ebuild | 159 |
7 files changed, 4 insertions, 430 deletions
diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest index cad55e08e88e..0fdca7c56d90 100644 --- a/dev-java/sun-jdk/Manifest +++ b/dev-java/sun-jdk/Manifest @@ -22,25 +22,11 @@ AUX sun-jdk-1.5.env 925 RMD160 6042c2849330d0a7b7ef87f2680209a27707a370 SHA1 d93 MD5 9b9e4337c1fb2f73b1adad1db1e01325 files/sun-jdk-1.5.env 925 RMD160 6042c2849330d0a7b7ef87f2680209a27707a370 files/sun-jdk-1.5.env 925 SHA256 9faf2bfbdec7fd92e6fc3509a22ae8ec9a3527d850f9763cef42575e0dec13fe files/sun-jdk-1.5.env 925 -DIST j2sdk-1_3_1_17-linux-i586.bin 26660449 RMD160 6bdcc5d60ef9c06125de965dae34b324d0f8ab90 SHA1 e8b6240ee618b20dd86a938998476d7007a0085d SHA256 86146f9a0e1aa1fb8a57fb58d4b0b1251380f3864cba6b20d73645ef06cb5ae5 DIST j2sdk-1_4_2_10-linux-i586.bin 36446523 RMD160 c7e65c19747d549a06530af9baba2ef0b52cb152 SHA1 bbbd7a44f8642adf56b77fe2755b1c7caad94c91 SHA256 193051a8b365325c3736838e580eafa036e82100f04ae12ffbe70f3cbf2173bc DIST j2sdk-1_4_2_12-linux-i586.bin 36337163 RMD160 6b1499cf3bd46158293506b8a0d701ec52b78ef3 SHA1 74f88c386985ba01b7c574e441f3f479b4a3b549 SHA256 ab7f5285993d71dc692625bed4d11557048ef3a4be6c51941c507cef26025531 DIST jce_policy-1_4_2.zip 12195 RMD160 323340fa8a96f315a35b0ebc918731e6fe56c370 SHA1 ea17b649ebcaaf4246e9dd28dbc77926176c64ee SHA256 7bf6d683602686321affc0071ad2fc3890c19cf5bb5cc16a963052e17588c097 -DIST jdk-1_2_2_017-linux-i586.tar.gz 21192620 DIST jdk-1_5_0_08-dlj-linux-amd64.bin 43854617 RMD160 c6669cba980b9097c6921041ee3af8753587ea37 SHA1 f43776629e50834be1f25060bcbe7f8ee0483173 SHA256 a4a4baa5488c7be8b109ed6c1f460a8b30861ae546c050c319de41e987bc857f DIST jdk-1_5_0_08-dlj-linux-i586.bin 49498712 RMD160 11c01f6391cec0476a3d96306a7bee7ec82d8425 SHA1 e7bc2da45219c54f9ac0dcbe6b3b8bf7ead3cc4e SHA256 e96ebeefb5116182c01f6e3fb306d24f1b81ba6849b76b0d4705051b01647ce8 -EBUILD sun-jdk-1.2.2.017.ebuild 2835 RMD160 73d7f35c406fbdec4e6c239fc92f110d2628313c SHA1 7360b846a27140f7e3f9f133a4ccf8eefceca18c SHA256 5be327926910e2644f9f6b401b89d5d40922191fafb07bd30130a8956ff312d0 -MD5 e083c0431fc9a62245d3b7bd193047b7 sun-jdk-1.2.2.017.ebuild 2835 -RMD160 73d7f35c406fbdec4e6c239fc92f110d2628313c sun-jdk-1.2.2.017.ebuild 2835 -SHA256 5be327926910e2644f9f6b401b89d5d40922191fafb07bd30130a8956ff312d0 sun-jdk-1.2.2.017.ebuild 2835 -EBUILD sun-jdk-1.3.1.17-r10.ebuild 4122 RMD160 f4ed759721f716aa6d78c67b9308927fb82ba627 SHA1 0a7d170c1eedaff6095c7eb6485b3b605f443055 SHA256 d1901b8b4d38cdf529d75e50e6123a64d9db035c0db1a51ce202dd21e91a941e -MD5 766109bab6398be02d58f17d94729eee sun-jdk-1.3.1.17-r10.ebuild 4122 -RMD160 f4ed759721f716aa6d78c67b9308927fb82ba627 sun-jdk-1.3.1.17-r10.ebuild 4122 -SHA256 d1901b8b4d38cdf529d75e50e6123a64d9db035c0db1a51ce202dd21e91a941e sun-jdk-1.3.1.17-r10.ebuild 4122 -EBUILD sun-jdk-1.3.1.17.ebuild 4686 RMD160 dd9418bde1982fe8e94aca4c9472475f20d9f163 SHA1 fef761a8c88d6720bac8c54e88be969e65388164 SHA256 d202bf5a68844d479340106704e22711406e7b0fbae59ed8ac2a18ac507ee94f -MD5 8297bf10ac8a02769a26a8ce7b6bb2a5 sun-jdk-1.3.1.17.ebuild 4686 -RMD160 dd9418bde1982fe8e94aca4c9472475f20d9f163 sun-jdk-1.3.1.17.ebuild 4686 -SHA256 d202bf5a68844d479340106704e22711406e7b0fbae59ed8ac2a18ac507ee94f sun-jdk-1.3.1.17.ebuild 4686 EBUILD sun-jdk-1.4.2.10-r2.ebuild 6837 RMD160 34df484c28ba65310da371fd86e3529f5991aef7 SHA1 ef5aeb4171697a19195e91bac2c257682e56002a SHA256 00782b5d79982d32118667afdfccc02fe802fee016ae1f28d5a7b4eb207e2755 MD5 c06729b2fa9df8291b94ba74c2fdf7a4 sun-jdk-1.4.2.10-r2.ebuild 6837 RMD160 34df484c28ba65310da371fd86e3529f5991aef7 sun-jdk-1.4.2.10-r2.ebuild 6837 @@ -57,23 +43,14 @@ EBUILD sun-jdk-1.5.0.08.ebuild 5627 RMD160 1097272e20f6d7b35f7026e353db05707a792 MD5 11f06f343ed6843e5d44a529f145ad93 sun-jdk-1.5.0.08.ebuild 5627 RMD160 1097272e20f6d7b35f7026e353db05707a7920fb sun-jdk-1.5.0.08.ebuild 5627 SHA256 7ce8112fdc5e5979d1041be2a8e607fe1865f583db7cfc6554d27933fd073f89 sun-jdk-1.5.0.08.ebuild 5627 -MISC ChangeLog 32110 RMD160 67a4e8a2977b90c9782f1636246f6554bb43f82a SHA1 4621f714a07a438b420811f23e1b86f7e23bbca8 SHA256 0f90170ea743cc50896cf49447f2b80f96d0c92c8990f5e969879bb34583f65d -MD5 2fad0aadbba6f81dad3cfd241d5d991c ChangeLog 32110 -RMD160 67a4e8a2977b90c9782f1636246f6554bb43f82a ChangeLog 32110 -SHA256 0f90170ea743cc50896cf49447f2b80f96d0c92c8990f5e969879bb34583f65d ChangeLog 32110 +MISC ChangeLog 32312 RMD160 8fc9f7da3252c99f2ea1092e42c02c3590ce1a2b SHA1 f6f7230072e4049ca3a7fc4c3c9bfabd5f955ed2 SHA256 0e009414f6084e8f1efef2c47bfcb2634044e1781c1278731c7ca21771f67de2 +MD5 3a213abb1f97b892ac929065cf118cc3 ChangeLog 32312 +RMD160 8fc9f7da3252c99f2ea1092e42c02c3590ce1a2b ChangeLog 32312 +SHA256 0e009414f6084e8f1efef2c47bfcb2634044e1781c1278731c7ca21771f67de2 ChangeLog 32312 MISC metadata.xml 239 RMD160 98d688f78b8fae2a2d23e610af86e822832a8402 SHA1 6d20154bac8f6c9bdde74156e48932cd8cc52f06 SHA256 b21519a40c89110e6d2ce7d214e849e2e808ebbb3a338e833b622b9f150f97a3 MD5 16c9e337522b7e477aece60ff98dde54 metadata.xml 239 RMD160 98d688f78b8fae2a2d23e610af86e822832a8402 metadata.xml 239 SHA256 b21519a40c89110e6d2ce7d214e849e2e808ebbb3a338e833b622b9f150f97a3 metadata.xml 239 -MD5 92fc551c12c9a260dd9ced69d15cf0f3 files/digest-sun-jdk-1.2.2.017 78 -RMD160 e3f6ac5817a4908a5d22eef2a71dbcdc8c4a6378 files/digest-sun-jdk-1.2.2.017 78 -SHA256 b3f73173a7dfbf7dc57b1b87aa7a79dd353d2273e741879a7e6a3c5624cf4f80 files/digest-sun-jdk-1.2.2.017 78 -MD5 b92a79d4efac287a5a49adaa380feb8e files/digest-sun-jdk-1.3.1.17 274 -RMD160 9452ffad7fdff6e63d556315a2b705c1a2182286 files/digest-sun-jdk-1.3.1.17 274 -SHA256 a39ba28e046f6376c9f52954d455c867ea5efbc7f834325564b932755e459463 files/digest-sun-jdk-1.3.1.17 274 -MD5 b92a79d4efac287a5a49adaa380feb8e files/digest-sun-jdk-1.3.1.17-r10 274 -RMD160 9452ffad7fdff6e63d556315a2b705c1a2182286 files/digest-sun-jdk-1.3.1.17-r10 274 -SHA256 a39ba28e046f6376c9f52954d455c867ea5efbc7f834325564b932755e459463 files/digest-sun-jdk-1.3.1.17-r10 274 MD5 f3c6393ae0a7058cb3a54964e77595ba files/digest-sun-jdk-1.4.2.10-r2 512 RMD160 f068fb0982dbcf4d51a5ce6549f8a626f915db29 files/digest-sun-jdk-1.4.2.10-r2 512 SHA256 71254adf5144bb3aa90fa60263e19c8a63f5cc536470d0084b9a26ee0a380eda files/digest-sun-jdk-1.4.2.10-r2 512 diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.2.2.017 b/dev-java/sun-jdk/files/digest-sun-jdk-1.2.2.017 deleted file mode 100644 index 0e9c938b079d..000000000000 --- a/dev-java/sun-jdk/files/digest-sun-jdk-1.2.2.017 +++ /dev/null @@ -1 +0,0 @@ -MD5 31b43e0da46d0d7f2b04d2d78f21a8cc jdk-1_2_2_017-linux-i586.tar.gz 21192620 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 deleted file mode 100644 index f80e9f451899..000000000000 --- a/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.17 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 cf2de94fb5437473da035470ef496fe7 j2sdk-1_3_1_17-linux-i586.bin 26660449 -RMD160 6bdcc5d60ef9c06125de965dae34b324d0f8ab90 j2sdk-1_3_1_17-linux-i586.bin 26660449 -SHA256 86146f9a0e1aa1fb8a57fb58d4b0b1251380f3864cba6b20d73645ef06cb5ae5 j2sdk-1_3_1_17-linux-i586.bin 26660449 diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.17-r10 b/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.17-r10 deleted file mode 100644 index f80e9f451899..000000000000 --- a/dev-java/sun-jdk/files/digest-sun-jdk-1.3.1.17-r10 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 cf2de94fb5437473da035470ef496fe7 j2sdk-1_3_1_17-linux-i586.bin 26660449 -RMD160 6bdcc5d60ef9c06125de965dae34b324d0f8ab90 j2sdk-1_3_1_17-linux-i586.bin 26660449 -SHA256 86146f9a0e1aa1fb8a57fb58d4b0b1251380f3864cba6b20d73645ef06cb5ae5 j2sdk-1_3_1_17-linux-i586.bin 26660449 diff --git a/dev-java/sun-jdk/sun-jdk-1.2.2.017.ebuild b/dev-java/sun-jdk/sun-jdk-1.2.2.017.ebuild deleted file mode 100644 index bd9700d0353d..000000000000 --- a/dev-java/sun-jdk/sun-jdk-1.2.2.017.ebuild +++ /dev/null @@ -1,87 +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.2.2.017.ebuild,v 1.10 2006/07/06 10:46:51 nelchael Exp $ - -inherit java - -At="jdk-1_2_2_017-linux-i586.tar.gz" -S="${WORKDIR}/jdk1.2.2" -SRC_URI="${At}" -DESCRIPTION="Sun Java Development" -HOMEPAGE="http://java.sun.com/products/archive/" -LICENSE="sun-bcla-java-vm-1.2" -SLOT="1.2" -KEYWORDS="~x86 -*" -RESTRICT="fetch stricter" -IUSE="doc X" -# NOTE: Sun's JDK also requires the XFree86 be installed to use the graphical -# libraries. Even some non-graphical libraries (such as JavaMail) have bizarre -# dependencies on windowing toolkits. -DEPEND=" - doc? ( =dev-java/java-sdk-docs-1.2.2* )" -RDEPEND="sys-libs/lib-compat" - -DOWNLOAD_URL="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=7740-j2sdk-1.2.2_017-oth-JPR&SiteId=JSC&TransactionId=noreg" - -pkg_nofetch() { - einfo "Please download ${At} from:" - einfo ${DOWNLOAD_URL} - einfo "(Java(TM) 2 SDK, Standard Edition 1.2.2_017, Linux Platform)" - einfo "and move it to ${DISTDIR}" -} - -pkg_setup() { - # Issue a warning that this product has been marked as End-of-Life. - ewarn "BEWARE" - ewarn "Sun's JDK 1.2.2 has completed the Sun End of Life (EOL) process." - ewarn "This version is no longer supported by Sun" - ewarn "Sun is advising users to move to more recent JDK versions." - echo - ewarn "Currently this works fine with the x86 glibc version, but break" - ewarn "with the ~x86 versions, there is bug open on the compatibility" - ewarn "issue, so i'm hoping it will still work on upcoming versions of" - ewarn "x86 glibc, so be warned if it doesn't work" - echo -} - -src_install() { - # Make the root directory for the installation. - dodir /opt/${P} - - # Copy each of the directories over. - local dirs="bin include include-old jre lib" - for i in $dirs ; do - cp -dPR $i ${D}/opt/${P}/ - done - - # Copy the documentation to Gentoo's documentation directory. - dodoc CHANGES COPYRIGHT README LICENSE - dohtml README.html - - # Copy the demo and the source jar to a share directory - dodir /opt/${P}/share/ - cp -dPR demo src.jar ${D}/opt/${P}/share/ - - # Symlink to maintain the directory structure - dosym /opt/${P}/share/demo /opt/${P} - dosym /opt/${P}/share/src.jar /opt/${P} - - # From Mozilla's release notes for 1.x: - # "Java J2SE releases previous to 1.3.0_01 will not work with Mozilla" - # In Mozilla 1.2.x and higher, they go on to strongly recommend JDK 1.4.x - # only. - - set_java_env ${FILESDIR}/${VMHANDLE} || die -} - -pkg_postinst() { - # Set as default VM if none exists - java_pkg_postinst - - # Warn the user if they don't appear to have XFree86 installed. - if ! use X ; then - echo - ewarn "Some parts of Sun's JDK require XFree86 to be installed." - ewarn "Be careful which Java libraries you attempt to use." - fi -} diff --git a/dev-java/sun-jdk/sun-jdk-1.3.1.17-r10.ebuild b/dev-java/sun-jdk/sun-jdk-1.3.1.17-r10.ebuild deleted file mode 100644 index 9658ffdbd9f8..000000000000 --- a/dev-java/sun-jdk/sun-jdk-1.3.1.17-r10.ebuild +++ /dev/null @@ -1,150 +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.3.1.17-r10.ebuild,v 1.4 2006/09/01 01:02:13 nichoj Exp $ - -JAVA_SUPPORTS_GENERATION_1="true" -inherit java-vm-2 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=" - 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+ ) - X? ( || ( ( - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXp - x11-libs/libXt - x11-libs/libXtst - ) - virtual/x11 - ) - )" - -LICENSE="sun-bcla-java-vm" -SLOT="1.3" -KEYWORDS="-* ~x86" -RESTRICT="fetch stricter" - -IUSE="X doc nsplugin" -# 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; then - install_mozilla_plugin ${javaplugin} - else - rm "${D}/${javaplugin}" || die "Removing javaplugin failed." - fi - - set_java_env -} - -pkg_postinst () { - # Set as default VM if none exists - java_pkg_postinst - - if use nsplugin; 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 - ewarn "Some parts of Sun's JDK require X11 to be installed." - ewarn "Be careful which Java libraries you attempt to use." - fi -} 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 deleted file mode 100644 index a76315de1eec..000000000000 --- a/dev-java/sun-jdk/sun-jdk-1.3.1.17.ebuild +++ /dev/null @@ -1,159 +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.3.1.17.ebuild,v 1.6 2006/07/06 10:46:51 nelchael 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="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 - ) - )" - -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 - ewarn "Some parts of Sun's JDK require X11 to be installed." - ewarn "Be careful which Java libraries you attempt to use." - fi -} |