Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/emul-linux-x86-java: ChangeLog emul-linux-x86-java-1.4.2.16.ebuild emul-linux-x86-java-1.6.0.02.ebuild emul-linux-x86-java-1.5.0.12.ebuild
Date: Sat, 03 Nov 2007 15:47:58
Message-Id: E1IoLDw-0006qw-3a@stork.gentoo.org
1 caster 07/11/03 15:47:48
2
3 Modified: ChangeLog
4 Added: emul-linux-x86-java-1.4.2.16.ebuild
5 Removed: emul-linux-x86-java-1.6.0.02.ebuild
6 emul-linux-x86-java-1.5.0.12.ebuild
7 Log:
8 Version bump, security bug #178962 use Sun JRE instead of blackdown, change slot from 1.4.2 to 1.4 to follow sun-jre-bin. Cleanup unused versions.
9 (Portage version: 2.1.3.16)
10
11 Revision Changes Path
12 1.42 app-emulation/emul-linux-x86-java/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?rev=1.42&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?rev=1.42&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?r1=1.41&r2=1.42
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v
21 retrieving revision 1.41
22 retrieving revision 1.42
23 diff -u -r1.41 -r1.42
24 --- ChangeLog 12 Oct 2007 00:22:07 -0000 1.41
25 +++ ChangeLog 3 Nov 2007 15:47:47 -0000 1.42
26 @@ -1,6 +1,15 @@
27 # ChangeLog for app-emulation/emul-linux-x86-java
28 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v 1.41 2007/10/12 00:22:07 wltjr Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v 1.42 2007/11/03 15:47:47 caster Exp $
31 +
32 +*emul-linux-x86-java-1.4.2.16 (03 Nov 2007)
33 +
34 + 03 Nov 2007; Vlastimil Babka <caster@g.o>
35 + +files/emul-linux-x86-java-1.4.env, +emul-linux-x86-java-1.4.2.16.ebuild,
36 + -emul-linux-x86-java-1.5.0.12.ebuild,
37 + -emul-linux-x86-java-1.6.0.02.ebuild:
38 + Version bump, security bug #178962 use Sun JRE instead of blackdown, change
39 + slot from 1.4.2 to 1.4 to follow sun-jre-bin. Cleanup unused versions.
40
41 12 Oct 2007; William L. Thomson Jr. <wltjr@g.o>
42 emul-linux-x86-java-1.4.2.03-r2.ebuild,
43
44
45
46 1.1 app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.4.2.16.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.4.2.16.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.4.2.16.ebuild?rev=1.1&content-type=text/plain
50
51 Index: emul-linux-x86-java-1.4.2.16.ebuild
52 ===================================================================
53 # Copyright 1999-2007 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.4.2.16.ebuild,v 1.1 2007/11/03 15:47:47 caster Exp $
56
57 inherit multilib eutils pax-utils java-vm-2
58
59 MY_PV=${PV%.*}_${PV##*.}
60 MY_PV2=${PV//./_}
61 At="j2re-${MY_PV2}-linux-i586.bin"
62
63 S="${WORKDIR}/j2re${MY_PV}"
64 DESCRIPTION="Sun's JRE (32bit)"
65 HOMEPAGE="http://java.sun.com/j2se/1.4.2/"
66 SRC_URI=${At}
67 SLOT="1.4"
68 LICENSE="sun-bcla-java-vm-1.4.2"
69 KEYWORDS="-* ~amd64"
70 # pre stripped
71 RESTRICT="fetch strip"
72 IUSE="X alsa nsplugin"
73
74 DEPEND=""
75
76 RDEPEND="alsa? ( app-emulation/emul-linux-x86-soundlibs )
77 X? ( app-emulation/emul-linux-x86-xlibs )"
78
79 DOWNLOAD_URL="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2re-${MY_PV}-oth-JPR&SiteId=JSC&TransactionId=noreg"
80
81 QA_TEXTRELS_amd64="opt/${P}/lib/i386/libawt.so
82 opt/${P}/plugin/i386/ns4/libjavaplugin.so
83 opt/${P}/plugin/i386/ns610/libjavaplugin_oji.so
84 opt/${P}/plugin/i386/ns610-gcc32/libjavaplugin_oji.so"
85
86 pkg_nofetch() {
87 einfo "Please download ${At} from:"
88 einfo ${DOWNLOAD_URL}
89 einfo "(accept the license, then click on 'self-extracting file' under 'Linux Platform')"
90 einfo "and move it to ${DISTDIR}"
91 }
92
93 src_unpack() {
94 if [ ! -r ${DISTDIR}/${At} ]; then
95 eerror "cannot read ${At}. Please check the permission and try again."
96 die
97 fi
98 #Search for the ELF Header
99 testExp=$(echo -e '\0177\0105\0114\0106\0001\0001\0001')
100 startAt=`grep -aonm 1 ${testExp} ${DISTDIR}/${At} | cut -d: -f1`
101 tail -n +${startAt} ${DISTDIR}/${At} > install.sfx
102 chmod +x install.sfx
103 ./install.sfx || die
104 rm install.sfx
105
106 if [ -f "${S}"/lib/unpack ]; then
107 UNPACK_CMD="${S}"/lib/unpack
108 chmod +x $UNPACK_CMD
109 sed -i 's#/tmp/unpack.log#/dev/null\x00\x00\x00\x00\x00\x00#g' $UNPACK_CMD
110 local PACKED_JARS="lib/rt.jar lib/jsse.jar lib/charsets.jar \
111 lib/ext/localedata.jar lib/plugin.jar javaws/javaws.jar"
112 for i in $PACKED_JARS; do
113 PACK_FILE=${S}/`dirname $i`/`basename $i .jar`.pack
114 if [ -f ${PACK_FILE} ]; then
115 echo " unpacking: $i"
116 $UNPACK_CMD ${PACK_FILE} "${S}"/$i
117 rm -f ${PACK_FILE}
118 fi
119 done
120 fi
121 }
122
123 src_install() {
124 local dirs="bin lib man javaws plugin"
125 dodir /opt/${P}
126
127 cp -pPR ${dirs} "${D}/opt/${P}/"
128
129 pax-mark srpm $(list-paxables "${D}"/opt/${P}/bin/*)
130
131 dodoc CHANGES COPYRIGHT README LICENSE THIRDPARTYLICENSEREADME.txt || die
132 dohtml Welcome.html ControlPanel.html || die
133
134 if use nsplugin; then
135 local plugin_dir="ns610"
136 if has_version '>=sys-devel/gcc-3.2' ; then
137 plugin_dir="ns610-gcc32"
138 fi
139 install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so
140 fi
141
142 # bug #147259
143 dosym ../javaws/javaws /opt/${P}/bin/javaws
144
145 # create dir for system preferences
146 dodir /opt/${P}/.systemPrefs
147
148 # create dir for system preferences
149 dodir /opt/${P}/.systemPrefs
150 # Create files used as storage for system preferences.
151 touch "${D}/opt/${P}/.systemPrefs/.system.lock"
152 chmod 644 "${D}/opt/${P}/.systemPrefs/.system.lock"
153 touch "${D}/opt/${P}/.systemPrefs/.systemRootModFile"
154 chmod 644 "${D}/opt/${P}/.systemPrefs/.systemRootModFile"
155
156
157 # FIXME figure out how to handle the control pannel conflict with
158 # sun-jdk-bin
159
160 # install control panel for Gnome/KDE
161 # sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}/" \
162 # -e "s/\(Name=Java\)/\1 Control Panel/" \
163 # "${D}/opt/${P}/plugin/desktop/sun_java.desktop" > \
164 # "${T}/sun_java-jre.desktop"
165 # domenu "${T}/sun_java-jre.desktop"
166
167 set_java_env
168 }
169
170 pkg_postinst () {
171 # Set as default VM if none exists
172 java-vm-2_pkg_postinst
173
174 if ! use X; then
175 echo
176 ewarn "Some parts of Sun's JDK require X11 libraries to be installed."
177 ewarn "Be careful which Java libraries you attempt to use."
178 fi
179 }
180
181
182
183 --
184 gentoo-commits@g.o mailing list