1 |
lack 11/02/10 21:07:04 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: adobe-flash-10.2.152.27.ebuild |
5 |
adobe-flash-10.2.152.27_p201011173.ebuild |
6 |
Removed: adobe-flash-10.2.161.23_pre20100927.ebuild |
7 |
adobe-flash-10.2.161.23_pre20101117.ebuild |
8 |
Log: |
9 |
Version 10.2.152.27 is released (Security bug #354207) |
10 |
|
11 |
(Portage version: 2.1.9.34/cvs/Linux i686) |
12 |
|
13 |
Revision Changes Path |
14 |
1.4 www-plugins/adobe-flash/metadata.xml |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/metadata.xml?rev=1.4&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/metadata.xml?rev=1.4&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/metadata.xml?r1=1.3&r2=1.4 |
19 |
|
20 |
Index: metadata.xml |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/metadata.xml,v |
23 |
retrieving revision 1.3 |
24 |
retrieving revision 1.4 |
25 |
diff -u -r1.3 -r1.4 |
26 |
--- metadata.xml 12 Aug 2010 12:36:51 -0000 1.3 |
27 |
+++ metadata.xml 10 Feb 2011 21:07:04 -0000 1.4 |
28 |
@@ -16,5 +16,8 @@ |
29 |
<flag name='nspluginwrapper'>For amd64-multilib, installs |
30 |
<pkg>www-plugins/nspluginwrapper</pkg> to allow use in a 64-bit |
31 |
browser. (Not recommended, see http://bugs.gentoo.org/324365)</flag> |
32 |
+ |
33 |
+ <flag name='vdpau'>Enables VDPAU support to offload video processing |
34 |
+ (32-bit flash player only)</flag> |
35 |
</use> |
36 |
</pkgmetadata> |
37 |
|
38 |
|
39 |
|
40 |
1.60 www-plugins/adobe-flash/ChangeLog |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?rev=1.60&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?rev=1.60&content-type=text/plain |
44 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?r1=1.59&r2=1.60 |
45 |
|
46 |
Index: ChangeLog |
47 |
=================================================================== |
48 |
RCS file: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v |
49 |
retrieving revision 1.59 |
50 |
retrieving revision 1.60 |
51 |
diff -u -r1.59 -r1.60 |
52 |
--- ChangeLog 1 Dec 2010 13:51:02 -0000 1.59 |
53 |
+++ ChangeLog 10 Feb 2011 21:07:04 -0000 1.60 |
54 |
@@ -1,6 +1,27 @@ |
55 |
# ChangeLog for www-plugins/adobe-flash |
56 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
57 |
-# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.59 2010/12/01 13:51:02 lack Exp $ |
58 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
59 |
+# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.60 2011/02/10 21:07:04 lack Exp $ |
60 |
+ |
61 |
+*adobe-flash-10.2.152.27_p201011173 (10 Feb 2011) |
62 |
+*adobe-flash-10.2.152.27 (10 Feb 2011) |
63 |
+ |
64 |
+ 10 Feb 2011; Jim Ramsay <lack@g.o> +adobe-flash-10.2.152.27.ebuild, |
65 |
+ +adobe-flash-10.2.152.27_p201011173.ebuild, |
66 |
+ -adobe-flash-10.2.161.23_pre20100927.ebuild, |
67 |
+ -adobe-flash-10.2.161.23_pre20101117.ebuild, metadata.xml: |
68 |
+ Version 10.2.152.27 is released (Security bug #354207) |
69 |
+ |
70 |
+ Note: This also does a bit of a shuffle in where you may expect to see the |
71 |
+ 64-bit beta "square" release. Though the version number of the 64-bit plugin |
72 |
+ is technically 10.3.162.29, this is part of the ebuild named |
73 |
+ "adobe-flash-10.2.152.27_p201011173" This is mostly due to the fact that Adobe |
74 |
+ does not have a corresponding 32-bit 10.3 beta release at this time, so I have |
75 |
+ decided that until they do the main version number will correspond to the |
76 |
+ 32-bit release and the "patchlevel" will correspond to the date-tag of the |
77 |
+ square beta release. |
78 |
+ |
79 |
+ So while this may *look* like a downgrade, it's really an upgrade of the |
80 |
+ 32-bit plugin and a no-op for the 64-bit plugin. |
81 |
|
82 |
*adobe-flash-10.2.161.23_pre20101117 (01 Dec 2010) |
83 |
|
84 |
|
85 |
|
86 |
|
87 |
1.1 www-plugins/adobe-flash/adobe-flash-10.2.152.27.ebuild |
88 |
|
89 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.152.27.ebuild?rev=1.1&view=markup |
90 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.152.27.ebuild?rev=1.1&content-type=text/plain |
91 |
|
92 |
Index: adobe-flash-10.2.152.27.ebuild |
93 |
=================================================================== |
94 |
# Copyright 1999-2011 Gentoo Foundation |
95 |
# Distributed under the terms of the GNU General Public License v2 |
96 |
# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.152.27.ebuild,v 1.1 2011/02/10 21:07:04 lack Exp $ |
97 |
|
98 |
EAPI=1 |
99 |
inherit nsplugins rpm multilib toolchain-funcs |
100 |
|
101 |
MY_32B_URI="http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-${PV}-release.i386.rpm" |
102 |
|
103 |
DESCRIPTION="Adobe Flash Player" |
104 |
SRC_URI="${MY_32B_URI}" |
105 |
HOMEPAGE="http://www.adobe.com/" |
106 |
IUSE="multilib nspluginwrapper vdpau" |
107 |
SLOT="0" |
108 |
|
109 |
KEYWORDS="-* ~amd64 ~x86" |
110 |
LICENSE="AdobeFlash-10.1" |
111 |
RESTRICT="strip mirror" |
112 |
|
113 |
S="${WORKDIR}" |
114 |
|
115 |
NATIVE_DEPS="x11-libs/gtk+:2 |
116 |
media-libs/fontconfig |
117 |
dev-libs/nss |
118 |
net-misc/curl |
119 |
vdpau? ( x11-libs/libvdpau ) |
120 |
>=sys-libs/glibc-2.4" |
121 |
|
122 |
EMUL_DEPS="vdpau? ( >=app-emulation/emul-linux-x86-xlibs-20110129 ) |
123 |
>=app-emulation/emul-linux-x86-gtklibs-20100409-r1 |
124 |
app-emulation/emul-linux-x86-soundlibs" |
125 |
|
126 |
DEPEND="amd64? ( nspluginwrapper? ( www-plugins/nspluginwrapper ) )" |
127 |
RDEPEND="x86? ( $NATIVE_DEPS ) |
128 |
amd64? ( $EMUL_DEPS ) |
129 |
|| ( media-fonts/liberation-fonts media-fonts/corefonts ) |
130 |
${DEPEND}" |
131 |
|
132 |
# Where should this all go? (Bug #328639) |
133 |
INSTALL_BASE="opt/Adobe/flash-player" |
134 |
|
135 |
# Ignore QA warnings in these binary closed-source libraries, since we can't fix |
136 |
# them: |
137 |
QA_EXECSTACK="${INSTALL_BASE}32/libflashplayer.so |
138 |
${INSTALL_BASE}/libflashplayer.so" |
139 |
|
140 |
QA_DT_HASH="${INSTALL_BASE}32/libflashplayer.so |
141 |
${INSTALL_BASE}/libflashplayer.so" |
142 |
|
143 |
pkg_setup() { |
144 |
if use x86; then |
145 |
export native_install=1 |
146 |
elif use amd64; then |
147 |
# As of 10.1, no more native 64b version *grumble grumble* |
148 |
unset native_install |
149 |
unset need_lahf_wrapper |
150 |
export amd64_32bit=1 |
151 |
fi |
152 |
} |
153 |
|
154 |
src_compile() { |
155 |
if [[ $need_lahf_wrapper ]]; then |
156 |
# This experimental wrapper, from Maks Verver via bug #268336 should |
157 |
# emulate the missing lahf instruction affected platforms. |
158 |
$(tc-getCC) -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so \ |
159 |
"${FILESDIR}/flashplugin-lahf-fix.c" \ |
160 |
|| die "Compile of flashplugin-lahf-fix.so failed" |
161 |
fi |
162 |
} |
163 |
|
164 |
src_install() { |
165 |
if [[ $native_install ]]; then |
166 |
# 32b RPM has things hidden in funny places |
167 |
use x86 && pushd "${S}/usr/lib/flash-plugin" |
168 |
|
169 |
exeinto /${INSTALL_BASE} |
170 |
doexe libflashplayer.so |
171 |
inst_plugin /${INSTALL_BASE}/libflashplayer.so |
172 |
|
173 |
use x86 && popd |
174 |
|
175 |
# 64b tarball has no readme file. |
176 |
use x86 && dodoc "${S}/usr/share/doc/flash-plugin-${PV}/readme.txt" |
177 |
fi |
178 |
|
179 |
if [[ $need_lahf_wrapper ]]; then |
180 |
# This experimental wrapper, from Maks Verver via bug #268336 should |
181 |
# emulate the missing lahf instruction affected platforms. |
182 |
exeinto /${INSTALL_BASE} |
183 |
doexe flashplugin-lahf-fix.so |
184 |
inst_plugin /${INSTALL_BASE}/flashplugin-lahf-fix.so |
185 |
fi |
186 |
|
187 |
if [[ $amd64_32bit ]]; then |
188 |
local oldabi="${ABI}" |
189 |
ABI="x86" |
190 |
|
191 |
# 32b plugin |
192 |
pushd "${S}/usr/lib/flash-plugin" |
193 |
exeinto /${INSTALL_BASE}32 |
194 |
doexe libflashplayer.so |
195 |
inst_plugin /${INSTALL_BASE}32/libflashplayer.so |
196 |
dodoc "${S}/usr/share/doc/flash-plugin-${PV}/readme.txt" |
197 |
popd |
198 |
|
199 |
ABI="${oldabi}" |
200 |
fi |
201 |
|
202 |
# The magic config file! |
203 |
insinto "/etc/adobe" |
204 |
doins "${FILESDIR}/mms.cfg" |
205 |
} |
206 |
|
207 |
pkg_postinst() { |
208 |
if use amd64; then |
209 |
elog "Adobe has released 10.1 in only a 32-bit version and upgrading" |
210 |
elog "is required to close a major security vulnerability:" |
211 |
elog " http://bugs.gentoo.org/322855" |
212 |
elog |
213 |
if has_version 'www-plugins/nspluginwrapper'; then |
214 |
if [[ $native_install ]]; then |
215 |
# Note: This code branch is dead (no native 64-bit flash player |
216 |
# available yet for 10.1), but I'm keeping it around in the hope |
217 |
# that some day it will be back... |
218 |
# - Jim Ramsay <lack@g.o> |
219 |
|
220 |
# TODO: Perhaps parse the output of 'nspluginwrapper -l' |
221 |
# However, the 64b flash plugin makes |
222 |
# 'nspluginwrapper -l' segfault. |
223 |
local FLASH_WRAPPER="${ROOT}/usr/lib64/nsbrowser/plugins/npwrapper.libflashplayer.so" |
224 |
if [[ -f ${FLASH_WRAPPER} ]]; then |
225 |
einfo "Removing duplicate 32-bit plugin wrapper: Native 64-bit plugin installed" |
226 |
nspluginwrapper -r "${FLASH_WRAPPER}" |
227 |
fi |
228 |
if [[ $need_lahf_wrapper ]]; then |
229 |
ewarn "Your processor does not support the 'lahf' instruction which is used" |
230 |
ewarn "by Adobe's 64-bit flash binary. We have installed a wrapper which" |
231 |
ewarn "should allow this plugin to run. If you encounter problems, please" |
232 |
ewarn "adjust your USE flags to install only the 32-bit version and reinstall:" |
233 |
ewarn " ${CATEGORY}/$PN[+32bit -64bit]" |
234 |
elog |
235 |
fi |
236 |
else |
237 |
einfo "nspluginwrapper detected: Installing plugin wrapper" |
238 |
local oldabi="${ABI}" |
239 |
ABI="x86" |
240 |
local FLASH_SOURCE="${ROOT}/${INSTALL_BASE}32/libflashplayer.so" |
241 |
nspluginwrapper -i "${FLASH_SOURCE}" |
242 |
ABI="${oldabi}" |
243 |
ewarn "Using adobe-flash-10.1 in a 64-bit browser is unstable:" |
244 |
ewarn " http://bugs.gentoo.org/324365" |
245 |
ewarn "The recommended configuration is to use the 32-bit plugin" |
246 |
ewarn "in a 32-bit browser such as www-client/firefox-bin" |
247 |
elog |
248 |
fi |
249 |
elif [[ ! $native_install ]]; then |
250 |
elog "To use the 32-bit flash player in a native 64-bit firefox," |
251 |
elog "you must install www-plugins/nspluginwrapper, though this" |
252 |
elog "configuration is not recommended:" |
253 |
elog " http://bugs.gentoo.org/324365" |
254 |
elog |
255 |
fi |
256 |
fi |
257 |
|
258 |
ewarn "Flash player is closed-source, with a long history of security" |
259 |
ewarn "issues. Please consider only running flash applets you know to" |
260 |
ewarn "be safe. The 'flashblock' extension may help for mozilla users:" |
261 |
ewarn " https://addons.mozilla.org/en-US/firefox/addon/433" |
262 |
} |
263 |
|
264 |
|
265 |
|
266 |
1.1 www-plugins/adobe-flash/adobe-flash-10.2.152.27_p201011173.ebuild |
267 |
|
268 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.152.27_p201011173.ebuild?rev=1.1&view=markup |
269 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.152.27_p201011173.ebuild?rev=1.1&content-type=text/plain |
270 |
|
271 |
Index: adobe-flash-10.2.152.27_p201011173.ebuild |
272 |
=================================================================== |
273 |
# Copyright 1999-2011 Gentoo Foundation |
274 |
# Distributed under the terms of the GNU General Public License v2 |
275 |
# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.152.27_p201011173.ebuild,v 1.1 2011/02/10 21:07:04 lack Exp $ |
276 |
|
277 |
EAPI=3 |
278 |
inherit nsplugins multilib toolchain-funcs versionator |
279 |
|
280 |
# Note: There is no "square" for 32-bit! Just use the current 32-bit release: |
281 |
PV_REL=$(get_version_component_range 1-4) |
282 |
MY_32B_URI="http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-${PV_REL}-release.i386.rpm" |
283 |
|
284 |
# Specal version parsing for date-based 'square' releases |
285 |
# For proper date ordering in the ebuild we are using CCYYMMDD, whereas Adobe |
286 |
# uses MMDDYY in their filename. Plus we tack on the release number, too. |
287 |
EBUILD_DATE=$(get_version_component_range $(get_version_component_count)) |
288 |
DATE_SUFFIX=${EBUILD_DATE: -5:4}${EBUILD_DATE:3:2} |
289 |
REL_SUFFIX=${EBUILD_DATE: -1} |
290 |
MY_64B_URI="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p${REL_SUFFIX}_64bit_linux_${DATE_SUFFIX}.tar.gz" |
291 |
|
292 |
DESCRIPTION="Adobe Flash Player" |
293 |
SRC_URI="x86? ( ${MY_32B_URI} ) |
294 |
amd64? ( |
295 |
multilib? ( |
296 |
32bit? ( ${MY_32B_URI} ) |
297 |
64bit? ( ${MY_64B_URI} ) |
298 |
) |
299 |
!multilib? ( ${MY_64B_URI} ) |
300 |
)" |
301 |
#HOMEPAGE="http://www.adobe.com/" |
302 |
HOMEPAGE="http://labs.adobe.com/technologies/flashplayer10/" |
303 |
IUSE="multilib nspluginwrapper +32bit +64bit vdpau" |
304 |
SLOT="0" |
305 |
|
306 |
KEYWORDS="-* ~amd64 ~x86" |
307 |
LICENSE="AdobeFlash-10.1" |
308 |
RESTRICT="strip mirror" |
309 |
|
310 |
S="${WORKDIR}" |
311 |
|
312 |
NATIVE_DEPS="x11-libs/gtk+:2 |
313 |
media-libs/fontconfig |
314 |
dev-libs/nss |
315 |
net-misc/curl |
316 |
32bit? ( vdpau? ( x11-libs/libvdpau ) ) |
317 |
>=sys-libs/glibc-2.4" |
318 |
|
319 |
EMUL_DEPS="vdpau? ( >=app-emulation/emul-linux-x86-xlibs-20110129 ) |
320 |
>=app-emulation/emul-linux-x86-gtklibs-20100409-r1 |
321 |
app-emulation/emul-linux-x86-soundlibs" |
322 |
|
323 |
DEPEND="amd64? ( multilib? ( 32bit? ( nspluginwrapper? ( |
324 |
www-plugins/nspluginwrapper ) ) ) )" |
325 |
RDEPEND="x86? ( $NATIVE_DEPS ) |
326 |
amd64? ( |
327 |
multilib? ( |
328 |
64bit? ( $NATIVE_DEPS ) |
329 |
32bit? ( $EMUL_DEPS ) |
330 |
) |
331 |
!multilib? ( $NATIVE_DEPS ) |
332 |
) |
333 |
|| ( media-fonts/liberation-fonts media-fonts/corefonts ) |
334 |
${DEPEND}" |
335 |
|
336 |
# Where should this all go? (Bug #328639) |
337 |
INSTALL_BASE="opt/Adobe/flash-player" |
338 |
|
339 |
# Ignore QA warnings in these binary closed-source libraries, since we can't fix |
340 |
# them: |
341 |
QA_EXECSTACK="${INSTALL_BASE}32/libflashplayer.so |
342 |
${INSTALL_BASE}/libflashplayer.so" |
343 |
|
344 |
QA_DT_HASH="${INSTALL_BASE}32/libflashplayer.so |
345 |
${INSTALL_BASE}/libflashplayer.so" |
346 |
|
347 |
pkg_setup() { |
348 |
einfo "Date is $EBUILD_DATE suffix is $DATE_SUFFIX" |
349 |
if use x86; then |
350 |
export native_install=1 |
351 |
elif use amd64; then |
352 |
# amd64 users may unselect the native 64bit binary, if they choose |
353 |
if ! use multilib || use 64bit; then |
354 |
export native_install=1 |
355 |
else |
356 |
unset native_install |
357 |
fi |
358 |
|
359 |
if use multilib && use 32bit; then |
360 |
export amd64_32bit=1 |
361 |
else |
362 |
unset amd64_32bit |
363 |
fi |
364 |
|
365 |
if use multilib && ! use 32bit && ! use 64bit; then |
366 |
eerror "You must select at least one architecture USE flag (32bit or 64bit)" |
367 |
die "No library version selected [-32bit -64bit]" |
368 |
fi |
369 |
|
370 |
unset need_lahf_wrapper |
371 |
if [[ $native_install ]]; then |
372 |
# 64bit flash requires the 'lahf' instruction (bug #268336) |
373 |
# Also, check if *any* of the processors are affected (bug #286159) |
374 |
if grep '^flags' /proc/cpuinfo | grep -qv 'lahf_lm'; then |
375 |
export need_lahf_wrapper=1 |
376 |
fi |
377 |
|
378 |
if use vdpau; then |
379 |
ewarn "You have tried to enable VDPAU acceleration, but this is only" |
380 |
ewarn "available for the 32-bit flash plugin at this time." |
381 |
ewarn "Continuing with an unaccelerated 64-bit plugin." |
382 |
if [[ $amd64_32bit ]]; then |
383 |
ewarn "The 32-bit plugin will be accelerated." |
384 |
fi |
385 |
fi |
386 |
fi |
387 |
fi |
388 |
} |
389 |
|
390 |
src_unpack() { |
391 |
# In this pre-release version, both tarballs have just 'libflashplayer.so' |
392 |
# and no prefix directory, so put the 32-bit one somewhere else. |
393 |
if [[ $amd64_32bit ]]; then |
394 |
mkdir 32bit |
395 |
pushd "${S}/32bit" |
396 |
unpack $(basename $MY_32B_URI) |
397 |
popd |
398 |
unpack $(basename $MY_64B_URI) |
399 |
else |
400 |
default_src_unpack |
401 |
fi |
402 |
} |
403 |
|
404 |
src_compile() { |
405 |
if [[ $need_lahf_wrapper ]]; then |
406 |
# This experimental wrapper, from Maks Verver via bug #268336 should |
407 |
# emulate the missing lahf instruction affected platforms. |
408 |
$(tc-getCC) -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so \ |
409 |
"${FILESDIR}/flashplugin-lahf-fix.c" \ |
410 |
|| die "Compile of flashplugin-lahf-fix.so failed" |
411 |
fi |
412 |
} |
413 |
|
414 |
src_install() { |
415 |
if [[ $native_install ]]; then |
416 |
exeinto /${INSTALL_BASE} |
417 |
doexe libflashplayer.so |
418 |
inst_plugin /${INSTALL_BASE}/libflashplayer.so |
419 |
fi |
420 |
|
421 |
if [[ $need_lahf_wrapper ]]; then |
422 |
# This experimental wrapper, from Maks Verver via bug #268336 should |
423 |
# emulate the missing lahf instruction affected platforms. |
424 |
exeinto /${INSTALL_BASE} |
425 |
doexe flashplugin-lahf-fix.so |
426 |
inst_plugin /${INSTALL_BASE}/flashplugin-lahf-fix.so |
427 |
fi |
428 |
|
429 |
if [[ $amd64_32bit ]]; then |
430 |
local oldabi="${ABI}" |
431 |
ABI="x86" |
432 |
|
433 |
# 32b plugin |
434 |
pushd "${S}/32bit" |
435 |
exeinto /${INSTALL_BASE}32 |
436 |
doexe libflashplayer.so |
437 |
inst_plugin /${INSTALL_BASE}32/libflashplayer.so |
438 |
popd |
439 |
|
440 |
ABI="${oldabi}" |
441 |
fi |
442 |
|
443 |
# The magic config file! |
444 |
insinto "/etc/adobe" |
445 |
doins "${FILESDIR}/mms.cfg" |
446 |
} |
447 |
|
448 |
pkg_postinst() { |
449 |
if use amd64; then |
450 |
if [[ $need_lahf_wrapper ]]; then |
451 |
ewarn "Your processor does not support the 'lahf' instruction which is used" |
452 |
ewarn "by Adobe's 64-bit flash binary. We have installed a wrapper which" |
453 |
ewarn "should allow this plugin to run. If you encounter problems, please" |
454 |
ewarn "adjust your USE flags to install only the 32-bit version and reinstall:" |
455 |
ewarn " ${CATEGORY}/$PN[+32bit -64bit]" |
456 |
elog |
457 |
fi |
458 |
if has_version 'www-plugins/nspluginwrapper'; then |
459 |
if [[ $native_install ]]; then |
460 |
# TODO: Perhaps parse the output of 'nspluginwrapper -l' |
461 |
# However, the 64b flash plugin makes |
462 |
# 'nspluginwrapper -l' segfault. |
463 |
local FLASH_WRAPPER="${ROOT}/usr/lib64/nsbrowser/plugins/npwrapper.libflashplayer.so" |
464 |
if [[ -f ${FLASH_WRAPPER} ]]; then |
465 |
einfo "Removing duplicate 32-bit plugin wrapper: Native 64-bit plugin installed" |
466 |
nspluginwrapper -r "${FLASH_WRAPPER}" |
467 |
fi |
468 |
else |
469 |
einfo "nspluginwrapper detected: Installing plugin wrapper" |
470 |
local oldabi="${ABI}" |
471 |
ABI="x86" |
472 |
local FLASH_SOURCE="${ROOT}/${INSTALL_BASE}32/libflashplayer.so" |
473 |
nspluginwrapper -i "${FLASH_SOURCE}" |
474 |
ABI="${oldabi}" |
475 |
fi |
476 |
elif [[ ! $native_install ]]; then |
477 |
elog "To use the 32-bit flash player in a native 64-bit browser," |
478 |
elog "you must install www-plugins/nspluginwrapper" |
479 |
fi |
480 |
fi |
481 |
|
482 |
ewarn "Flash player is closed-source, with a long history of security" |
483 |
ewarn "issues. Please consider only running flash applets you know to" |
484 |
ewarn "be safe. The 'flashblock' extension may help for mozilla users:" |
485 |
ewarn " https://addons.mozilla.org/en-US/firefox/addon/433" |
486 |
} |