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