From 3b520c6be874aeedc075cd7660222cf6927ac131 Mon Sep 17 00:00:00 2001 From: Vlastimil Babka Date: Wed, 10 Jan 2007 00:18:51 +0000 Subject: [PATCH] Remove versions vulnerable to bug #158659. Remove amd64 keyword from 1.4.2.13 which was added by mistake. Package-Manager: portage-2.1.2_rc4-r7 --- dev-java/sun-jdk/Manifest | 33 +-- .../sun-jdk/files/digest-sun-jdk-1.4.2.12-r2 | 6 - .../sun-jdk/files/digest-sun-jdk-1.5.0.08 | 6 - dev-java/sun-jdk/sun-jdk-1.4.2.12-r2.ebuild | 200 ------------------ dev-java/sun-jdk/sun-jdk-1.5.0.08.ebuild | 178 ---------------- dev-java/sun-jre-bin/Manifest | 33 +-- .../files/digest-sun-jre-bin-1.4.2.12-r2 | 3 - .../files/digest-sun-jre-bin-1.5.0.08-r1 | 6 - .../sun-jre-bin-1.4.2.12-r2.ebuild | 160 -------------- .../sun-jre-bin-1.5.0.08-r1.ebuild | 152 ------------- 10 files changed, 16 insertions(+), 761 deletions(-) delete mode 100644 dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.12-r2 delete mode 100644 dev-java/sun-jdk/files/digest-sun-jdk-1.5.0.08 delete mode 100644 dev-java/sun-jdk/sun-jdk-1.4.2.12-r2.ebuild delete mode 100644 dev-java/sun-jdk/sun-jdk-1.5.0.08.ebuild delete mode 100644 dev-java/sun-jre-bin/files/digest-sun-jre-bin-1.4.2.12-r2 delete mode 100644 dev-java/sun-jre-bin/files/digest-sun-jre-bin-1.5.0.08-r1 delete mode 100644 dev-java/sun-jre-bin/sun-jre-bin-1.4.2.12-r2.ebuild delete mode 100644 dev-java/sun-jre-bin/sun-jre-bin-1.5.0.08-r1.ebuild diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest index 1d47bdf83ca4..56c6570c14b2 100644 --- a/dev-java/sun-jdk/Manifest +++ b/dev-java/sun-jdk/Manifest @@ -14,29 +14,18 @@ AUX sun-jdk-1.6.env 925 RMD160 cac1306ba6dd05dcf74fb2e536bf40bd3f03bee1 SHA1 025 MD5 f356c5b7e3ccb4243bac775c0286c4fb files/sun-jdk-1.6.env 925 RMD160 cac1306ba6dd05dcf74fb2e536bf40bd3f03bee1 files/sun-jdk-1.6.env 925 SHA256 8fd2d12405a41b923b3c64d56b9e42a89d2479323fd78703f2b065fb0ee7ec2b files/sun-jdk-1.6.env 925 -DIST j2sdk-1_4_2_12-linux-i586.bin 36337163 RMD160 6b1499cf3bd46158293506b8a0d701ec52b78ef3 SHA1 74f88c386985ba01b7c574e441f3f479b4a3b549 SHA256 ab7f5285993d71dc692625bed4d11557048ef3a4be6c51941c507cef26025531 DIST j2sdk-1_4_2_13-linux-i586.bin 36361814 RMD160 cefb731ae6740f36a17242aa79b36d79dda2e102 SHA1 12c679cfa2e212bfa90ae6ef6ad6c477e427bbba SHA256 f5dd8045fe791bd5c52bddf33a1cf65968ee03981e0663f75cd97a942daa24e2 DIST jce_policy-1_4_2.zip 12195 RMD160 323340fa8a96f315a35b0ebc918731e6fe56c370 SHA1 ea17b649ebcaaf4246e9dd28dbc77926176c64ee SHA256 7bf6d683602686321affc0071ad2fc3890c19cf5bb5cc16a963052e17588c097 -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 DIST jdk-1_5_0_09-dlj-linux-amd64.bin 43863154 RMD160 c7f4310ff6714d5dd33c10398c6615689f5523ff SHA1 b3cd93b445ce68b8d4b88c4afa9a177473adf3f7 SHA256 3f7f21671ebcb9c849b02d668d85cf6f161870c45f5bf82f5e3fed2a026f7f35 DIST jdk-1_5_0_09-dlj-linux-i586.bin 49504315 RMD160 8e4bc83d553bd0e92607bd2e03451ec879d5928e SHA1 36a065b72af226804ff0b64b9c40859c7a879b6f SHA256 3318644bdcd1a1de4ea122b03a4607de16f30603e7f6c291c33575cbbc254f85 DIST jdk-1_5_0_10-dlj-linux-amd64.bin 43906073 RMD160 2d13d637b6d7351410f9e18d581206a05091effe SHA1 b0c4440f7059b2d477a437e5c58f135820e86326 SHA256 5bbac3fb78db48f7f996e412d45229db3a0b759886f360504cca61c93d4b5f61 DIST jdk-1_5_0_10-dlj-linux-i586.bin 49553457 RMD160 8aa7b53064831d800b8aeae67ffd3f5e4e2e3155 SHA1 fc4883d6da60940cbe4b6c2575478cead26313ff SHA256 e4300d88ae630f02132a4ce23afbdc40f994de91b37d4b64cb1da0b58df678fa DIST jdk-6-dlj-linux-amd64.bin 56347832 RMD160 b4d12bf55ea6baa465c227cff2d314d26de4876e SHA1 d51a60c80ac1a8173c53b9a389377b2774a50e92 SHA256 f1f35d331809487bb922bbd3ca46de4abc3e45c482f94127f4ac8f3c8b3321c3 DIST jdk-6-dlj-linux-i586.bin 62718862 RMD160 4ff9f1f82b20f0dbd792e6765c02d87749e00aac SHA1 bc7a56952b362e472a0ec179e0852ca7bf0c0507 SHA256 1c4f98edb6c1b379807d9dab61971c0271b2b4cf1f1be914cc85354744408467 -EBUILD sun-jdk-1.4.2.12-r2.ebuild 6295 RMD160 169f60bb6d88164d5f4c867766a9651a93bb7457 SHA1 5a386fadb3a76080fbfd81f847ef3f4dce84fe73 SHA256 d2ca54862998c72351c6fa09f2c87c71b705c42df41468a2cb8e51cf394be058 -MD5 47e6303ad612a0b25879b412e5f7bc32 sun-jdk-1.4.2.12-r2.ebuild 6295 -RMD160 169f60bb6d88164d5f4c867766a9651a93bb7457 sun-jdk-1.4.2.12-r2.ebuild 6295 -SHA256 d2ca54862998c72351c6fa09f2c87c71b705c42df41468a2cb8e51cf394be058 sun-jdk-1.4.2.12-r2.ebuild 6295 -EBUILD sun-jdk-1.4.2.13.ebuild 6314 RMD160 f009244b7f6023c69cc3fdff7dbcb115dc944e3f SHA1 863af32c0b8cbdbfef2d96ef92a6a41e43d75452 SHA256 2c9970d23be609d6b3a0f15d1a6928773ff13edfbfdec71ebf0922b69d12595b -MD5 24d7fdcd272195f28ade676da4d34c19 sun-jdk-1.4.2.13.ebuild 6314 -RMD160 f009244b7f6023c69cc3fdff7dbcb115dc944e3f sun-jdk-1.4.2.13.ebuild 6314 -SHA256 2c9970d23be609d6b3a0f15d1a6928773ff13edfbfdec71ebf0922b69d12595b sun-jdk-1.4.2.13.ebuild 6314 -EBUILD sun-jdk-1.5.0.08.ebuild 5581 RMD160 b235335dea339580c285d6f9dbc36a287befeb03 SHA1 1c8c01def9a8d4284feae3504b026c7098b9b2d3 SHA256 8b3a0d3f41de745580458f1d8cdbfcb1ea42c5c2a2af340aa45cca64ffb5aef0 -MD5 82543cb482d94c5b45c8b5d84fb83bbe sun-jdk-1.5.0.08.ebuild 5581 -RMD160 b235335dea339580c285d6f9dbc36a287befeb03 sun-jdk-1.5.0.08.ebuild 5581 -SHA256 8b3a0d3f41de745580458f1d8cdbfcb1ea42c5c2a2af340aa45cca64ffb5aef0 sun-jdk-1.5.0.08.ebuild 5581 +EBUILD sun-jdk-1.4.2.13.ebuild 6310 RMD160 c05da39110b45b95820b4e47575f672f29c1f3db SHA1 7b28a74828fb683e84389ec9e245c0c73aa084af SHA256 7ff87aa6eaec9342d1a690e75a3ef4c94f2bf6b6a1f0265fb2e3b9bd9d2be47d +MD5 f40a87fe0d39910fa54dfa7bf7ddaa31 sun-jdk-1.4.2.13.ebuild 6310 +RMD160 c05da39110b45b95820b4e47575f672f29c1f3db sun-jdk-1.4.2.13.ebuild 6310 +SHA256 7ff87aa6eaec9342d1a690e75a3ef4c94f2bf6b6a1f0265fb2e3b9bd9d2be47d sun-jdk-1.4.2.13.ebuild 6310 EBUILD sun-jdk-1.5.0.09-r1.ebuild 5231 RMD160 b35a3b02d08d5ee8e40f2bbfa360d8c5990cd315 SHA1 a01cc4592139ae819ef96303c2a8da5f1066e3fb SHA256 4e24ab7bb8c7dc6c42cca935531456673dc9e23dd5d70c7aa0b06a568827f011 MD5 a763353a5d95665a495aa3b4b7339a43 sun-jdk-1.5.0.09-r1.ebuild 5231 RMD160 b35a3b02d08d5ee8e40f2bbfa360d8c5990cd315 sun-jdk-1.5.0.09-r1.ebuild 5231 @@ -57,23 +46,17 @@ EBUILD sun-jdk-1.6.0.ebuild 4631 RMD160 0cb09d8a889fef8d20f5f8a1da1830cbfc78a2b3 MD5 d72a0e789e04a3f5f960e8ae37103aaa sun-jdk-1.6.0.ebuild 4631 RMD160 0cb09d8a889fef8d20f5f8a1da1830cbfc78a2b3 sun-jdk-1.6.0.ebuild 4631 SHA256 6ea733df558f7504ce3ee7759481fac2e456a7e5ee947316bb66925b60fc3c23 sun-jdk-1.6.0.ebuild 4631 -MISC ChangeLog 35246 RMD160 e5e7d7c2f2956d1129b6c85da2206be7ee921c5c SHA1 b0b03abac0268bb0192c6f76c35641644dc229fa SHA256 1de5e8c79408bfd6aefbf9d80e74e571b04db4fe1a99375e17dfcfd2136c9342 -MD5 6c58ab01bc9015f03e6de76ac9e808c3 ChangeLog 35246 -RMD160 e5e7d7c2f2956d1129b6c85da2206be7ee921c5c ChangeLog 35246 -SHA256 1de5e8c79408bfd6aefbf9d80e74e571b04db4fe1a99375e17dfcfd2136c9342 ChangeLog 35246 +MISC ChangeLog 35494 RMD160 bb7409bc6627a1f68376dac98a23ac823ec96100 SHA1 a75be3022cad4707911976b1f75c51ac2a5e9b6d SHA256 4b6319508a6b7feee8c73e68783bb1820ce079d3189c2c1acfd9c311dfc9fd1e +MD5 b1eae6334893b67eb2536511be93ad77 ChangeLog 35494 +RMD160 bb7409bc6627a1f68376dac98a23ac823ec96100 ChangeLog 35494 +SHA256 4b6319508a6b7feee8c73e68783bb1820ce079d3189c2c1acfd9c311dfc9fd1e ChangeLog 35494 MISC metadata.xml 237 RMD160 e2fa73e8b206c77bc262fd54691289bf05696668 SHA1 47fb9d11272aa2245df406c2156c2482e166a1c3 SHA256 3e53f0c8fb262a6751adb4c188e045e0be6de8739c02ec1af079cba5512e696d MD5 2f36c2b94fc9625e5c96d8e558f6ffba metadata.xml 237 RMD160 e2fa73e8b206c77bc262fd54691289bf05696668 metadata.xml 237 SHA256 3e53f0c8fb262a6751adb4c188e045e0be6de8739c02ec1af079cba5512e696d metadata.xml 237 -MD5 5bec2db22a35d2dab4b65c6c5ac4a5ad files/digest-sun-jdk-1.4.2.12-r2 512 -RMD160 84b4872443740be6f65e43bd92830b1a2f72eedd files/digest-sun-jdk-1.4.2.12-r2 512 -SHA256 80412544ff068c961ad5d3022215e34877cfa22118e1f68768e8d768ebe8687b files/digest-sun-jdk-1.4.2.12-r2 512 MD5 4551e92262ffc2bc93ba3941a5f49f30 files/digest-sun-jdk-1.4.2.13 512 RMD160 6c0a27d829f9b9b868feedd086b0929f015e48a2 files/digest-sun-jdk-1.4.2.13 512 SHA256 c4db2c43fa08b705c1e9ba316c8cecbcd2d3a7be5d3014cf4bf02e53b214b155 files/digest-sun-jdk-1.4.2.13 512 -MD5 20fa891f2c9e4953c1da7d1c318d3216 files/digest-sun-jdk-1.5.0.08 563 -RMD160 59f63ab1ef5f3a40c10ccd954d1cfa2ca47f4e15 files/digest-sun-jdk-1.5.0.08 563 -SHA256 36ee47fae9d203d6e249bd407da3fd700d2d4f672a258285010f1a44f38ea0b8 files/digest-sun-jdk-1.5.0.08 563 MD5 8409e421272b316b007ee383c1d8508b files/digest-sun-jdk-1.5.0.09 563 RMD160 93a25e28b116cacea4f5295169e9bb091b46575b files/digest-sun-jdk-1.5.0.09 563 SHA256 659534b6f9466273b0a3523c862d3272fe23191edcec6bb3044b536c9d9a8d4c files/digest-sun-jdk-1.5.0.09 563 diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.12-r2 b/dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.12-r2 deleted file mode 100644 index b31a40f251e8..000000000000 --- a/dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.12-r2 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 587a9fba08f1c0cfd2207c27abcbca5f j2sdk-1_4_2_12-linux-i586.bin 36337163 -RMD160 6b1499cf3bd46158293506b8a0d701ec52b78ef3 j2sdk-1_4_2_12-linux-i586.bin 36337163 -SHA256 ab7f5285993d71dc692625bed4d11557048ef3a4be6c51941c507cef26025531 j2sdk-1_4_2_12-linux-i586.bin 36337163 -MD5 ff961c5f5326191c5ac2e4624d756f7e jce_policy-1_4_2.zip 12195 -RMD160 323340fa8a96f315a35b0ebc918731e6fe56c370 jce_policy-1_4_2.zip 12195 -SHA256 7bf6d683602686321affc0071ad2fc3890c19cf5bb5cc16a963052e17588c097 jce_policy-1_4_2.zip 12195 diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.5.0.08 b/dev-java/sun-jdk/files/digest-sun-jdk-1.5.0.08 deleted file mode 100644 index 89b29a996b47..000000000000 --- a/dev-java/sun-jdk/files/digest-sun-jdk-1.5.0.08 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 e6388e30448ffd7ccaaca3cfc0708e44 jdk-1_5_0_08-dlj-linux-amd64.bin 43854617 -RMD160 c6669cba980b9097c6921041ee3af8753587ea37 jdk-1_5_0_08-dlj-linux-amd64.bin 43854617 -SHA256 a4a4baa5488c7be8b109ed6c1f460a8b30861ae546c050c319de41e987bc857f jdk-1_5_0_08-dlj-linux-amd64.bin 43854617 -MD5 3e2935cca24ceb54dd2181892a3d5456 jdk-1_5_0_08-dlj-linux-i586.bin 49498712 -RMD160 11c01f6391cec0476a3d96306a7bee7ec82d8425 jdk-1_5_0_08-dlj-linux-i586.bin 49498712 -SHA256 e96ebeefb5116182c01f6e3fb306d24f1b81ba6849b76b0d4705051b01647ce8 jdk-1_5_0_08-dlj-linux-i586.bin 49498712 diff --git a/dev-java/sun-jdk/sun-jdk-1.4.2.12-r2.ebuild b/dev-java/sun-jdk/sun-jdk-1.4.2.12-r2.ebuild deleted file mode 100644 index db336c2a0609..000000000000 --- a/dev-java/sun-jdk/sun-jdk-1.4.2.12-r2.ebuild +++ /dev/null @@ -1,200 +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.4.2.12-r2.ebuild,v 1.3 2006/11/21 21:53:45 nichoj Exp $ - -JAVA_SUPPORTS_GENERATION_1="true" -inherit java-vm-2 eutils - -MY_PV=${PV%.*}_${PV##*.} -MY_P=j2sdk${MY_PV} -MY_PVB=${PV%.*} - -At="j2sdk-${PV//./_}-linux-i586.bin" -jce_policy="jce_policy-${MY_PVB//./_}.zip" - -S="${WORKDIR}/${MY_P}" -DESCRIPTION="Sun's J2SE Development Kit" -HOMEPAGE="http://java.sun.com/j2se/1.4.2/" -SRC_URI="${At} - jce? ( ${jce_policy} )" -SLOT="1.4" -LICENSE="sun-bcla-java-vm" -KEYWORDS="-* x86" -RESTRICT="fetch" -IUSE="X alsa doc examples nsplugin jce" - -DEPEND="sys-apps/sed - app-arch/unzip" - -RDEPEND="alsa? ( media-libs/alsa-lib ) - doc? ( =dev-java/java-sdk-docs-1.4.2* ) - X? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/libXext - x11-libs/libXi - x11-libs/libXp - x11-libs/libXt - x11-libs/libXtst - )" - -JAVA_PROVIDE="jdbc-stdext" - -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="pemrsv" - -DOWNLOAD_URL="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2sdk-${MY_PV}-oth-JPR&SiteId=JSC&TransactionId=noreg" -DOWNLOAD_URL_JCE="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=7503-jce-${MY_PVB}-oth-JPR&SiteId=JSC&TransactionId=noreg" - -QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/libawt.so - opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so - opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so - opt/${P}/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so" - -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}" - if use jce; then - echo - einfo "Also download ${jce_policy} from:" - einfo ${DOWNLOAD_URL_JCE} - einfo "Java(TM) Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files" - einfo "and move it to ${DISTDIR}" - fi -} - -src_unpack() { - if [ ! -r ${DISTDIR}/${At} ]; then - die "cannot read ${At}.bin. Please check the permission and try again." - fi - if use jce; then - if [ ! -r ${DISTDIR}/${jce_policy} ]; then - die "cannot read ${jce_policy}. Please check the permission and try again." - fi - fi - #Search for the ELF Header - testExp=$'\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 - sed -i 's#/tmp/unpack.log#/dev/null\x00\x00\x00\x00\x00\x00#g' $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 -dPR $i ${D}/opt/${P}/ - done - - dodoc COPYRIGHT README LICENSE THIRDPARTYLICENSEREADME.txt - dohtml README.html - dodir /opt/${P}/share/ - if use examples; then - cp -pPR demo ${D}/opt/${P}/share/ - fi - cp -pPR src.zip ${D}/opt/${P}/share/ - - if use jce ; then - # Using unlimited jce while still retaining the strong jce - # May have repercussions when you find you cannot symlink libraries - # in classpaths. - cd ${D}/opt/${P}/jre/lib/security - unzip ${DISTDIR}/${jce_policy} - mv jce unlimited-jce - dodir /opt/${P}/jre/lib/security/strong-jce - mv ${D}/opt/${P}/jre/lib/security/US_export_policy.jar ${D}/opt/${P}/jre/lib/security/strong-jce - mv ${D}/opt/${P}/jre/lib/security/local_policy.jar ${D}/opt/${P}/jre/lib/security/strong-jce - dosym /opt/${P}/jre/lib/security/unlimited-jce/US_export_policy.jar /opt/${P}/jre/lib/security/ - dosym /opt/${P}/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/ - fi - - if use nsplugin; then - local plugin_dir="ns610" - if has_version '>=sys-devel/gcc-3.2' ; then - plugin_dir="ns610-gcc32" - fi - - install_mozilla_plugin /opt/${P}/jre/plugin/i386/${plugin_dir}/libjavaplugin_oji.so - fi - - # bug #147259 - dosym ../jre/javaws/javaws /opt/${P}/bin/javaws - dosym ../javaws/javaws /opt/${P}/jre/bin/javaws - - # create dir for system preferences - dodir /opt/${P}/.systemPrefs - # Create files used as storage for system preferences. - touch ${D}/opt/${P}/.systemPrefs/.system.lock - chmod 644 ${D}/opt/${P}/.systemPrefs/.system.lock - touch ${D}/opt/${P}/.systemPrefs/.systemRootModFile - chmod 644 ${D}/opt/${P}/.systemPrefs/.systemRootModFile - - # install control panel for Gnome/KDE - sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \ - -e "s/\(Name=Java\)/\1 Control Panel ${SLOT}/" \ - ${D}/opt/${P}/jre/plugin/desktop/sun_java.desktop > \ - ${T}/sun_java-${SLOT}.desktop - - domenu ${T}/sun_java-${SLOT}.desktop - - set_java_env -} - -pkg_postinst() { - # Set as default VM if none exists - java-vm-2_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.4.2.03/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 virtual/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.5.0.08.ebuild b/dev-java/sun-jdk/sun-jdk-1.5.0.08.ebuild deleted file mode 100644 index 2c5be119305e..000000000000 --- a/dev-java/sun-jdk/sun-jdk-1.5.0.08.ebuild +++ /dev/null @@ -1,178 +0,0 @@ -# Copyright 1999-2007 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.5.0.08.ebuild,v 1.7 2007/01/05 23:43:09 caster Exp $ - -inherit java-vm-2 eutils - -MY_PVL=${PV%.*}_${PV##*.} -MY_PVA=${PV//./_} -S="${WORKDIR}/jdk${MY_PVL}" - -X86_AT="jdk-${MY_PVA}-dlj-linux-i586.bin" -AMD64_AT="jdk-${MY_PVA}-dlj-linux-amd64.bin" -if use x86; then - At=${X86_AT} -elif use amd64; then - At=${AMD64_AT} -fi -DESCRIPTION="Sun's J2SE Development Kit, version ${PV}" -HOMEPAGE="http://java.sun.com/j2se/1.5.0/" -SRC_URI="x86? ( http://download.java.net/dlj/binaries/${X86_AT} ) - amd64? ( http://download.java.net/dlj/binaries/${AMD64_AT} )" -SLOT="1.5" -LICENSE="dlj-1.1" -KEYWORDS="-* amd64 x86" -RESTRICT="nostrip" -IUSE="X alsa doc examples jce nsplugin" - -QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/motif21/libmawt.so opt/${P}/jre/lib/i386/libdeploy.so" - -DEPEND=" - doc? ( =dev-java/java-sdk-docs-1.5.0* ) - jce? ( =dev-java/sun-jce-bin-1.5.0* )" - -RDEPEND="alsa? ( media-libs/alsa-lib ) - doc? ( =dev-java/java-sdk-docs-1.5.0* ) - X? ( || ( ( x11-libs/libICE - x11-libs/libSM - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/libXext - x11-libs/libXi - x11-libs/libXp - x11-libs/libXt - x11-libs/libXtst - ) - virtual/x11 - ) - )" - -JAVA_PROVIDE="jdbc-stdext jdbc-rowset" - -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/lib/javaws.jar jre/lib/deploy.jar" - -# this is needed for proper operating under a PaX kernel without activated grsecurity acl -CHPAX_CONSERVATIVE_FLAGS="pemsv" - -#FETCH_SDK="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=jdk-${MY_PVL}-oth-JPR&SiteId=JSC&TransactionId=noreg" -#FETCH_JCE="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=jce_policy-${PV%.*}-oth-JPR&SiteId=JSC&TransactionId=noreg" - - -src_unpack() { - if [ ! -r ${DISTDIR}/${At} ]; then - die "cannot read ${At}. Please check the permission and try again." - fi -# if use jce; then -# if [ ! -r ${DISTDIR}/${jcefile} ]; then -# die "cannot read ${jcefile}. Please check the permission and try again." -# fi -# fi - - sh ${DISTDIR}/${At} --accept-license --unpack || die "Failed to unpack" - - ${S}/bin/java -client -Xshare:dump -} - -src_install() { - local dirs="bin include jre lib man" - dodir /opt/${P} - - for i in $dirs ; do - cp -pPR $i ${D}/opt/${P}/ || die "failed to copy" - done - dodoc COPYRIGHT README.html - dohtml README.html - dodir /opt/${P}/share/ - - cp -pPR src.zip ${D}/opt/${P}/share/ - - if use examples; then - cp -pPR demo ${D}/opt/${P}/share/ - if ( use x86 || use amd64 ); then - cp -pPR sample ${D}/opt/${P}/share/ - fi - fi - - if use jce; then - cd ${D}/opt/${P}/jre/lib/security - dodir /opt/${P}/jre/lib/security/strong-jce - mv ${D}/opt/${P}/jre/lib/security/US_export_policy.jar ${D}/opt/${P}/jre/lib/security/strong-jce - mv ${D}/opt/${P}/jre/lib/security/local_policy.jar ${D}/opt/${P}/jre/lib/security/strong-jce - dosym /opt/sun-jce-bin-1.5.0/jre/lib/security/unlimited-jce/US_export_policy.jar /opt/${P}/jre/lib/security/ - dosym /opt/sun-jce-bin-1.5.0/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/ - fi - - if use nsplugin; then - local plugin_dir="ns7-gcc29" - if has_version '>=sys-devel/gcc-3' ; then - plugin_dir="ns7" - fi - - if use x86 ; then - install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so - else - eerror "No plugin available for amd64 arch" - fi - fi - - # create dir for system preferences - dodir /opt/${P}/jre/.systemPrefs - # Create files used as storage for system preferences. - touch ${D}/opt/${P}/jre/.systemPrefs/.system.lock - chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.system.lock - touch ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile - chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile - - # install control panel for Gnome/KDE - sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \ - -e "s/\(Name=Java\)/\1 Control Panel ${SLOT}/" \ - ${D}/opt/${P}/jre/plugin/desktop/sun_java.desktop > \ - ${T}/sun_java-${SLOT}.desktop - - domenu ${T}/sun_java-${SLOT}.desktop - - set_java_env -} - -pkg_postinst() { - # Set as default VM if none exists - java-vm-2_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/$VM/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 - local xwarn="virtual/x11 and/or" - fi - - echo - ewarn "Some parts of Sun's JDK require ${xwarn} virtual/lpr to be installed." - ewarn "Be careful which Java libraries you attempt to use." - - echo - elog " Be careful: ${P}'s Java compiler uses" - elog " '-source 1.5' as default. Some keywords such as 'enum'" - elog " are not valid identifiers any more in that mode," - elog " which can cause incompatibility with certain sources." -} diff --git a/dev-java/sun-jre-bin/Manifest b/dev-java/sun-jre-bin/Manifest index 2379c123c0e0..53b34593583d 100644 --- a/dev-java/sun-jre-bin/Manifest +++ b/dev-java/sun-jre-bin/Manifest @@ -22,28 +22,17 @@ AUX sun-jre-bin-1.6.env 852 RMD160 ee3b29a24da833b3a4e19d55153ce8aa6cde02cc SHA1 MD5 7eb33864659e555b9520aaaece4f8ba5 files/sun-jre-bin-1.6.env 852 RMD160 ee3b29a24da833b3a4e19d55153ce8aa6cde02cc files/sun-jre-bin-1.6.env 852 SHA256 aa0a81aa290b056981bf7b8a5e585bb9d735be225ac11c3b29d9c9d99e095a79 files/sun-jre-bin-1.6.env 852 -DIST j2re-1_4_2_12-linux-i586.bin 14339018 RMD160 a63313d5a57f770ec6cd6c89c56b101f7a77f964 SHA1 18631914aeff51fcd89d226dbe3396ea91d21408 SHA256 b80403dc39008f53e50c47a04322a2046b257654653ef41a05aca29b3636fb2f DIST j2re-1_4_2_13-linux-i586.bin 14363192 RMD160 ebe620a4a9ab5cd168345e5a26a58a759798854b SHA1 dded54dd6f926adf3aa17fe774ab5ae890f8313a SHA256 faaf24745233ef8cc112c848fb507b4aa1a274dd1f2adf6613bea2b6f60c79f2 -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 DIST jdk-1_5_0_09-dlj-linux-amd64.bin 43863154 RMD160 c7f4310ff6714d5dd33c10398c6615689f5523ff SHA1 b3cd93b445ce68b8d4b88c4afa9a177473adf3f7 SHA256 3f7f21671ebcb9c849b02d668d85cf6f161870c45f5bf82f5e3fed2a026f7f35 DIST jdk-1_5_0_09-dlj-linux-i586.bin 49504315 RMD160 8e4bc83d553bd0e92607bd2e03451ec879d5928e SHA1 36a065b72af226804ff0b64b9c40859c7a879b6f SHA256 3318644bdcd1a1de4ea122b03a4607de16f30603e7f6c291c33575cbbc254f85 DIST jdk-1_5_0_10-dlj-linux-amd64.bin 43906073 RMD160 2d13d637b6d7351410f9e18d581206a05091effe SHA1 b0c4440f7059b2d477a437e5c58f135820e86326 SHA256 5bbac3fb78db48f7f996e412d45229db3a0b759886f360504cca61c93d4b5f61 DIST jdk-1_5_0_10-dlj-linux-i586.bin 49553457 RMD160 8aa7b53064831d800b8aeae67ffd3f5e4e2e3155 SHA1 fc4883d6da60940cbe4b6c2575478cead26313ff SHA256 e4300d88ae630f02132a4ce23afbdc40f994de91b37d4b64cb1da0b58df678fa DIST jdk-6-dlj-linux-amd64.bin 56347832 RMD160 b4d12bf55ea6baa465c227cff2d314d26de4876e SHA1 d51a60c80ac1a8173c53b9a389377b2774a50e92 SHA256 f1f35d331809487bb922bbd3ca46de4abc3e45c482f94127f4ac8f3c8b3321c3 DIST jdk-6-dlj-linux-i586.bin 62718862 RMD160 4ff9f1f82b20f0dbd792e6765c02d87749e00aac SHA1 bc7a56952b362e472a0ec179e0852ca7bf0c0507 SHA256 1c4f98edb6c1b379807d9dab61971c0271b2b4cf1f1be914cc85354744408467 -EBUILD sun-jre-bin-1.4.2.12-r2.ebuild 4608 RMD160 e6891977904969bddbea013b8f46fb0ae0da1263 SHA1 a384cfc5f10c28512b3aed25256cbdb8683db5c4 SHA256 eb93119c3ccec0d85f0578441b467aeba4a68229df21c620e501a3addb23f4b2 -MD5 e304bb1cc98f7f73fb6c74db329784b9 sun-jre-bin-1.4.2.12-r2.ebuild 4608 -RMD160 e6891977904969bddbea013b8f46fb0ae0da1263 sun-jre-bin-1.4.2.12-r2.ebuild 4608 -SHA256 eb93119c3ccec0d85f0578441b467aeba4a68229df21c620e501a3addb23f4b2 sun-jre-bin-1.4.2.12-r2.ebuild 4608 -EBUILD sun-jre-bin-1.4.2.13.ebuild 4622 RMD160 2ad19ea7a0f05a25d71ef4c75bffad65b0fe92d7 SHA1 9ad913f61f776fb0acab57b983dc19653c08fd20 SHA256 322b9e0d8946bfd5bd8f6f6cb6c25ddf94f29d2eadc294971dba6fc850b889c1 -MD5 824dc730b52332bb42c9bb2e5233af4e sun-jre-bin-1.4.2.13.ebuild 4622 -RMD160 2ad19ea7a0f05a25d71ef4c75bffad65b0fe92d7 sun-jre-bin-1.4.2.13.ebuild 4622 -SHA256 322b9e0d8946bfd5bd8f6f6cb6c25ddf94f29d2eadc294971dba6fc850b889c1 sun-jre-bin-1.4.2.13.ebuild 4622 -EBUILD sun-jre-bin-1.5.0.08-r1.ebuild 4329 RMD160 ebec6553b8c9b00884bff862c657dbe57f0c7a12 SHA1 771b221a861b954b2daaf6d2bcfa4dbff461c5ea SHA256 1eedf693f64280492818f76d829339db9c8234928b1d3823abbe06d6f6e8066f -MD5 dc874e52a08e18f4f8796e87fdba9388 sun-jre-bin-1.5.0.08-r1.ebuild 4329 -RMD160 ebec6553b8c9b00884bff862c657dbe57f0c7a12 sun-jre-bin-1.5.0.08-r1.ebuild 4329 -SHA256 1eedf693f64280492818f76d829339db9c8234928b1d3823abbe06d6f6e8066f sun-jre-bin-1.5.0.08-r1.ebuild 4329 +EBUILD sun-jre-bin-1.4.2.13.ebuild 4618 RMD160 823867881b009f6ad46305d7e66636bb9b8bff65 SHA1 2ecb4097c1fff4bf9966aecdc326e03dd0e82ccc SHA256 64f8f7110279949bc0790855c224ac054e8f4dd8875140c89a5d873d1a65a2c0 +MD5 2973338ad006f24e6bc408b979064f94 sun-jre-bin-1.4.2.13.ebuild 4618 +RMD160 823867881b009f6ad46305d7e66636bb9b8bff65 sun-jre-bin-1.4.2.13.ebuild 4618 +SHA256 64f8f7110279949bc0790855c224ac054e8f4dd8875140c89a5d873d1a65a2c0 sun-jre-bin-1.4.2.13.ebuild 4618 EBUILD sun-jre-bin-1.5.0.09-r1.ebuild 4406 RMD160 532d41a48781e1639e1e95172bb0625125a7e375 SHA1 58138c9b2b5aeff807b557f4b8ab8caaab87d0c1 SHA256 81594da0818e32c0b4e50cb36415243f294ec9fe94cfeef75fafad01b3b06886 MD5 0d659228436067fff57df52b10862225 sun-jre-bin-1.5.0.09-r1.ebuild 4406 RMD160 532d41a48781e1639e1e95172bb0625125a7e375 sun-jre-bin-1.5.0.09-r1.ebuild 4406 @@ -64,23 +53,17 @@ EBUILD sun-jre-bin-1.6.0.ebuild 3882 RMD160 967b27493f5dade14bccee0a626c5f70cd2d MD5 eaabfc7a033301ed532b757f6d8f8c35 sun-jre-bin-1.6.0.ebuild 3882 RMD160 967b27493f5dade14bccee0a626c5f70cd2d4e72 sun-jre-bin-1.6.0.ebuild 3882 SHA256 dc9b72020dbd0084421564773c733a104845f4d4f94ad872af2c1f82a2bea4cc sun-jre-bin-1.6.0.ebuild 3882 -MISC ChangeLog 14095 RMD160 de043703dc568c2d77e5c83382df1fb118907c7b SHA1 403826d7dfea9cfdfa7c37bbc8ad84318b9025a0 SHA256 4e7154cce1789dce81ba8842e01dcde848563c180114b70c4efb0b82577312cb -MD5 e477ff03a8f4dc5854487e0aa22dc949 ChangeLog 14095 -RMD160 de043703dc568c2d77e5c83382df1fb118907c7b ChangeLog 14095 -SHA256 4e7154cce1789dce81ba8842e01dcde848563c180114b70c4efb0b82577312cb ChangeLog 14095 +MISC ChangeLog 14358 RMD160 0c62a93bcbb327da4e844ef732152f6f21618f95 SHA1 cb9ec77f6604c615e49196f342b723852d3e3e92 SHA256 a5104240e90317c7489792ffa4733f6241041854c74597fc32aafcefe7f22a78 +MD5 a8d92340d40d694fbe64ca335e3c926b ChangeLog 14358 +RMD160 0c62a93bcbb327da4e844ef732152f6f21618f95 ChangeLog 14358 +SHA256 a5104240e90317c7489792ffa4733f6241041854c74597fc32aafcefe7f22a78 ChangeLog 14358 MISC metadata.xml 240 RMD160 8c29e03b578ddd40c82afe82d42498d4c855e745 SHA1 9d97dffe17dd3ea241edafeb9a12479d4e0bc17f SHA256 3736870ea8f5be547aa7555022da8690eba4e4c1cdfeac21a6cba84a7d1cc07f MD5 c7683734eb61c03c450e551efa7b4d5a metadata.xml 240 RMD160 8c29e03b578ddd40c82afe82d42498d4c855e745 metadata.xml 240 SHA256 3736870ea8f5be547aa7555022da8690eba4e4c1cdfeac21a6cba84a7d1cc07f metadata.xml 240 -MD5 85b90dc2d065efaee3065eebe6814224 files/digest-sun-jre-bin-1.4.2.12-r2 271 -RMD160 9428423bb0e74bcacee9428aac0436b67438c429 files/digest-sun-jre-bin-1.4.2.12-r2 271 -SHA256 3e71d56840f86073ed25b7d52c9f1afb8bd0f1c13d04f20efd53803ef670cb76 files/digest-sun-jre-bin-1.4.2.12-r2 271 MD5 164ca1935f8e5fde76df8f7fe7f85200 files/digest-sun-jre-bin-1.4.2.13 271 RMD160 3b26ac8471bcd7d76f0c6ccd5c9dc7b762670863 files/digest-sun-jre-bin-1.4.2.13 271 SHA256 9a8ab82dadb094b1989330c320f789b97a576e08a21bc5e139f1428b8a2b582b files/digest-sun-jre-bin-1.4.2.13 271 -MD5 20fa891f2c9e4953c1da7d1c318d3216 files/digest-sun-jre-bin-1.5.0.08-r1 563 -RMD160 59f63ab1ef5f3a40c10ccd954d1cfa2ca47f4e15 files/digest-sun-jre-bin-1.5.0.08-r1 563 -SHA256 36ee47fae9d203d6e249bd407da3fd700d2d4f672a258285010f1a44f38ea0b8 files/digest-sun-jre-bin-1.5.0.08-r1 563 MD5 8409e421272b316b007ee383c1d8508b files/digest-sun-jre-bin-1.5.0.09 563 RMD160 93a25e28b116cacea4f5295169e9bb091b46575b files/digest-sun-jre-bin-1.5.0.09 563 SHA256 659534b6f9466273b0a3523c862d3272fe23191edcec6bb3044b536c9d9a8d4c files/digest-sun-jre-bin-1.5.0.09 563 diff --git a/dev-java/sun-jre-bin/files/digest-sun-jre-bin-1.4.2.12-r2 b/dev-java/sun-jre-bin/files/digest-sun-jre-bin-1.4.2.12-r2 deleted file mode 100644 index ac6c67dd2472..000000000000 --- a/dev-java/sun-jre-bin/files/digest-sun-jre-bin-1.4.2.12-r2 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 1df6655d341c736d8e3845d920612420 j2re-1_4_2_12-linux-i586.bin 14339018 -RMD160 a63313d5a57f770ec6cd6c89c56b101f7a77f964 j2re-1_4_2_12-linux-i586.bin 14339018 -SHA256 b80403dc39008f53e50c47a04322a2046b257654653ef41a05aca29b3636fb2f j2re-1_4_2_12-linux-i586.bin 14339018 diff --git a/dev-java/sun-jre-bin/files/digest-sun-jre-bin-1.5.0.08-r1 b/dev-java/sun-jre-bin/files/digest-sun-jre-bin-1.5.0.08-r1 deleted file mode 100644 index 89b29a996b47..000000000000 --- a/dev-java/sun-jre-bin/files/digest-sun-jre-bin-1.5.0.08-r1 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 e6388e30448ffd7ccaaca3cfc0708e44 jdk-1_5_0_08-dlj-linux-amd64.bin 43854617 -RMD160 c6669cba980b9097c6921041ee3af8753587ea37 jdk-1_5_0_08-dlj-linux-amd64.bin 43854617 -SHA256 a4a4baa5488c7be8b109ed6c1f460a8b30861ae546c050c319de41e987bc857f jdk-1_5_0_08-dlj-linux-amd64.bin 43854617 -MD5 3e2935cca24ceb54dd2181892a3d5456 jdk-1_5_0_08-dlj-linux-i586.bin 49498712 -RMD160 11c01f6391cec0476a3d96306a7bee7ec82d8425 jdk-1_5_0_08-dlj-linux-i586.bin 49498712 -SHA256 e96ebeefb5116182c01f6e3fb306d24f1b81ba6849b76b0d4705051b01647ce8 jdk-1_5_0_08-dlj-linux-i586.bin 49498712 diff --git a/dev-java/sun-jre-bin/sun-jre-bin-1.4.2.12-r2.ebuild b/dev-java/sun-jre-bin/sun-jre-bin-1.4.2.12-r2.ebuild deleted file mode 100644 index 024413b7b8cd..000000000000 --- a/dev-java/sun-jre-bin/sun-jre-bin-1.4.2.12-r2.ebuild +++ /dev/null @@ -1,160 +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-jre-bin/sun-jre-bin-1.4.2.12-r2.ebuild,v 1.2 2006/10/14 01:49:58 tsunam Exp $ - -inherit java-vm-2 eutils - -MY_PV=${PV%.*}_${PV##*.} -MY_PV2=${PV//./_} -At="j2re-${MY_PV2}-linux-i586.bin" -S="${WORKDIR}/j2re${MY_PV}" -DESCRIPTION="Sun's J2SE Platform" -HOMEPAGE="http://java.sun.com/j2se/1.4.2/" -SRC_URI=${At} -SLOT="1.4" -LICENSE="sun-bcla-java-vm-1.4.2" -KEYWORDS="-* x86" -RESTRICT="fetch" -IUSE="X alsa nsplugin" - -DEPEND="sys-apps/sed" - -RDEPEND="alsa? ( media-libs/alsa-lib ) - X? ( - x11-libs/libICE - x11-libs/libSM - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/libXext - x11-libs/libXi - x11-libs/libXp - x11-libs/libXt - x11-libs/libXtst - )" - - -PACKED_JARS="lib/rt.jar lib/jsse.jar lib/charsets.jar -lib/ext/localedata.jar lib/plugin.jar javaws/javaws.jar" - -# 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=j2re-${MY_PV}-oth-JPR&SiteId=JSC&TransactionId=noreg" - -QA_TEXTRELS_x86="opt/${P}/lib/i386/libawt.so - opt/${P}/plugin/i386/ns4/libjavaplugin.so - opt/${P}/plugin/i386/ns610/libjavaplugin_oji.so - opt/${P}/plugin/i386/ns610-gcc32/libjavaplugin_oji.so" - -pkg_nofetch() { - einfo "Please download ${At} from:" - einfo ${DOWNLOAD_URL} - einfo "(select the \"Linux self-extracting file\" package format of the JRE" - 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 - sed -i 's#/tmp/unpack.log#/dev/null\x00\x00\x00\x00\x00\x00#g' $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 lib man javaws plugin" - dodir /opt/${P} - - for i in $dirs ; do - cp -pPR $i ${D}/opt/${P}/ - done - - dodoc CHANGES COPYRIGHT README LICENSE THIRDPARTYLICENSEREADME.txt - dohtml Welcome.html ControlPanel.html - - if use nsplugin; then - local plugin_dir="ns610" - if has_version '>=sys-devel/gcc-3.2' ; then - plugin_dir="ns610-gcc32" - fi - install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so - fi - - # bug #147259 - dosym ../javaws/javaws /opt/${P}/bin/javaws - - # create dir for system preferences - dodir /opt/${P}/.systemPrefs - - # create dir for system preferences - dodir /opt/${P}/.systemPrefs - # Create files used as storage for system preferences. - touch ${D}/opt/${P}/.systemPrefs/.system.lock - chmod 644 ${D}/opt/${P}/.systemPrefs/.system.lock - touch ${D}/opt/${P}/.systemPrefs/.systemRootModFile - chmod 644 ${D}/opt/${P}/.systemPrefs/.systemRootModFile - - # install control panel for Gnome/KDE - sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}/" \ - -e "s/\(Name=Java\)/\1 Control Panel/" \ - ${D}/opt/${P}/plugin/desktop/sun_java.desktop > \ - ${T}/sun_java-jre.desktop - domenu ${T}/sun_java-jre.desktop - - set_java_env -} - -pkg_postinst () { - # Set as default VM if none exists - java-vm-2_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 "java" - do - chpax -${CHPAX_CONSERVATIVE_FLAGS} /opt/${P}/bin/$paxkills - done - - # /opt/sun-jdk-1.4.2.03/bin/java_vm - chpax -${CHPAX_CONSERVATIVE_FLAGS} /opt/${P}/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 virtual/x11 to be installed." - ewarn "Be careful which Java libraries you attempt to use." - fi -} diff --git a/dev-java/sun-jre-bin/sun-jre-bin-1.5.0.08-r1.ebuild b/dev-java/sun-jre-bin/sun-jre-bin-1.5.0.08-r1.ebuild deleted file mode 100644 index 77fd6abb6d22..000000000000 --- a/dev-java/sun-jre-bin/sun-jre-bin-1.5.0.08-r1.ebuild +++ /dev/null @@ -1,152 +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-jre-bin/sun-jre-bin-1.5.0.08-r1.ebuild,v 1.6 2006/10/14 15:48:42 nichoj Exp $ - -inherit java-vm-2 eutils - -MY_PVL=${PV%.*}_${PV##*.} -MY_PVA=${PV//./_} -#S="${WORKDIR}/jdk${MY_PVL}" - -X86_AT="jdk-${MY_PVA}-dlj-linux-i586.bin" -AMD64_AT="jdk-${MY_PVA}-dlj-linux-amd64.bin" -if use x86; then - At=${X86_AT} -elif use amd64; then - At=${AMD64_AT} -fi -DESCRIPTION="Sun's J2SE Development Kit, version ${PV}" -HOMEPAGE="http://java.sun.com/j2se/1.5.0/" -SRC_URI="x86? ( http://download.java.net/dlj/binaries/${X86_AT} ) - amd64? ( http://download.java.net/dlj/binaries/${AMD64_AT} )" -SLOT="1.5" -LICENSE="dlj-1.1" -KEYWORDS="-* amd64 x86" -RESTRICT="nostrip" -IUSE="X alsa nsplugin" - -RDEPEND="alsa? ( media-libs/alsa-lib ) - X? ( || ( ( x11-libs/libICE - x11-libs/libSM - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/libXext - x11-libs/libXi - x11-libs/libXp - x11-libs/libXt - x11-libs/libXtst - ) - virtual/x11 - ) - )" - -JAVA_PROVIDE="jdbc-stdext jdbc-rowset" - -PACKED_JARS="lib/rt.jar lib/jsse.jar lib/charsets.jar lib/ext/localedata.jar lib/plugin.jar lib/javaws.jar lib/deploy.jar" - -# this is needed for proper operating under a PaX kernel without activated grsecurity acl -CHPAX_CONSERVATIVE_FLAGS="pemsv" - -QA_TEXTRELS_x86="opt/${P}/lib/i386/motif21/libmawt.so - opt/${P}/lib/i386/libdeploy.so" - -src_unpack() { - if [ ! -r ${DISTDIR}/${At} ]; then - die "cannot read ${At}. Please check the permission and try again." - fi - - mkdir bundled-jdk - cd bundled-jdk - sh ${DISTDIR}/${At} --accept-license --unpack || die "Failed to unpack" - - cd .. - bash ${FILESDIR}/construct.sh bundled-jdk sun-jdk-${PV} ${P} || die "construct.sh failed" - - ${S}/bin/java -client -Xshare:dump -} - -src_install() { - local dirs="bin lib man" - # only X86 has the plugin and javaws - use x86 && dirs="${dirs} javaws plugin" - dodir /opt/${P} - - for i in $dirs ; do - cp -pPR $i ${D}/opt/${P}/ || die "failed to copy" - done - dodoc CHANGES README THIRDPARTYLICENSEREADME.txt - dohtml Welcome.html - dodir /opt/${P}/share/ - - if use nsplugin; then - local plugin_dir="ns7-gcc29" - if has_version '>=sys-devel/gcc-3' ; then - plugin_dir="ns7" - fi - - if use x86 ; then - install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so - else - eerror "No plugin available for amd64 arch" - fi - fi - - # TODO Don't think we still needs these -nichoj - # create dir for system preferences - #dodir /opt/${P}/jre/.systemPrefs - # Create files used as storage for system preferences. - #touch ${D}/opt/${P}/jre/.systemPrefs/.system.lock - #chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.system.lock - #touch ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile - #chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile - - # FIXME figure out how to handle the control pannel conflict with - # sun-jdk-bin - - # install control panel for Gnome/KDE -# sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \ -# -e "s/\(Name=Java\)/\1 Control Panel ${SLOT}/" \ -# ${D}/opt/${P}/plugin/desktop/sun_java.desktop > \ -# ${T}/sun_java-${SLOT}.desktop - -# domenu ${T}/sun_java-${SLOT}.desktop - - set_java_env -} - -pkg_postinst() { - # Set as default VM if none exists - java-vm-2_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 java" - - for paxkills in "java" - do - chpax -${CHPAX_CONSERVATIVE_FLAGS} /opt/${P}/bin/$paxkills - done - - # /opt/$VM/jre/bin/java_vm - chpax -${CHPAX_CONSERVATIVE_FLAGS} /opt/${P}/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 - local xwarn="virtual/x11 and/or" - fi - - echo - ewarn "Some parts of Sun's JDK require ${xwarn} virtual/lpr to be installed." - ewarn "Be careful which Java libraries you attempt to use." -} -- 2.26.2