1 |
lack 10/11/05 17:35:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: adobe-flash-10.1.102.64.ebuild |
5 |
Log: |
6 |
Version bump: adobe-flash-10.1.102.64 is released (Security Bug #343089) |
7 |
|
8 |
(Portage version: 2.1.9.14/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.55 www-plugins/adobe-flash/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?rev=1.55&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?rev=1.55&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/ChangeLog?r1=1.54&r2=1.55 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v |
20 |
retrieving revision 1.54 |
21 |
retrieving revision 1.55 |
22 |
diff -u -r1.54 -r1.55 |
23 |
--- ChangeLog 13 Oct 2010 16:44:36 -0000 1.54 |
24 |
+++ ChangeLog 5 Nov 2010 17:35:06 -0000 1.55 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-plugins/adobe-flash |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.54 2010/10/13 16:44:36 lack Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/ChangeLog,v 1.55 2010/11/05 17:35:06 lack Exp $ |
30 |
+ |
31 |
+*adobe-flash-10.1.102.64 (05 Nov 2010) |
32 |
+ |
33 |
+ 05 Nov 2010; Jim Ramsay <lack@g.o> +adobe-flash-10.1.102.64.ebuild: |
34 |
+ Version bump: adobe-flash-10.1.102.64 is released (Security Bug #343089) |
35 |
|
36 |
13 Oct 2010; Jim Ramsay <lack@g.o> |
37 |
adobe-flash-10.1.85.3.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-plugins/adobe-flash/adobe-flash-10.1.102.64.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.1.102.64.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.1.102.64.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: adobe-flash-10.1.102.64.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.1.102.64.ebuild,v 1.1 2010/11/05 17:35:06 lack Exp $ |
51 |
|
52 |
EAPI=1 |
53 |
inherit nsplugins rpm multilib toolchain-funcs |
54 |
|
55 |
MY_32B_URI="http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-${PV}-release.i386.rpm" |
56 |
|
57 |
DESCRIPTION="Adobe Flash Player" |
58 |
SRC_URI="${MY_32B_URI}" |
59 |
HOMEPAGE="http://www.adobe.com/" |
60 |
IUSE="multilib nspluginwrapper" |
61 |
SLOT="0" |
62 |
|
63 |
KEYWORDS="-* ~amd64 ~x86" |
64 |
LICENSE="AdobeFlash-10.1" |
65 |
RESTRICT="strip mirror" |
66 |
|
67 |
S="${WORKDIR}" |
68 |
|
69 |
NATIVE_DEPS="x11-libs/gtk+:2 |
70 |
media-libs/fontconfig |
71 |
dev-libs/nss |
72 |
net-misc/curl |
73 |
>=sys-libs/glibc-2.4" |
74 |
|
75 |
EMUL_DEPS=">=app-emulation/emul-linux-x86-gtklibs-20100409-r1 |
76 |
app-emulation/emul-linux-x86-soundlibs" |
77 |
|
78 |
DEPEND="nspluginwrapper? ( www-plugins/nspluginwrapper )" |
79 |
RDEPEND="x86? ( $NATIVE_DEPS ) |
80 |
amd64? ( $EMUL_DEPS ) |
81 |
|| ( media-fonts/liberation-fonts media-fonts/corefonts ) |
82 |
${DEPEND}" |
83 |
|
84 |
# Where should this all go? (Bug #328639) |
85 |
INSTALL_BASE="opt/Adobe/flash-player" |
86 |
|
87 |
# Ignore QA warnings in these binary closed-source libraries, since we can't fix |
88 |
# them: |
89 |
QA_EXECSTACK="${INSTALL_BASE}32/libflashplayer.so |
90 |
${INSTALL_BASE}/libflashplayer.so" |
91 |
|
92 |
QA_DT_HASH="${INSTALL_BASE}32/libflashplayer.so |
93 |
${INSTALL_BASE}/libflashplayer.so" |
94 |
|
95 |
pkg_setup() { |
96 |
if use x86; then |
97 |
export native_install=1 |
98 |
elif use amd64; then |
99 |
# As of 10.1, no more native 64b version *grumble grumble* |
100 |
unset native_install |
101 |
unset need_lahf_wrapper |
102 |
export amd64_32bit=1 |
103 |
fi |
104 |
} |
105 |
|
106 |
src_compile() { |
107 |
if [[ $need_lahf_wrapper ]]; then |
108 |
# This experimental wrapper, from Maks Verver via bug #268336 should |
109 |
# emulate the missing lahf instruction affected platforms. |
110 |
$(tc-getCC) -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so \ |
111 |
"${FILESDIR}/flashplugin-lahf-fix.c" \ |
112 |
|| die "Compile of flashplugin-lahf-fix.so failed" |
113 |
fi |
114 |
} |
115 |
|
116 |
src_install() { |
117 |
if [[ $native_install ]]; then |
118 |
# 32b RPM has things hidden in funny places |
119 |
use x86 && pushd "${S}/usr/lib/flash-plugin" |
120 |
|
121 |
exeinto /${INSTALL_BASE} |
122 |
doexe libflashplayer.so |
123 |
inst_plugin /${INSTALL_BASE}/libflashplayer.so |
124 |
|
125 |
use x86 && popd |
126 |
|
127 |
# 64b tarball has no readme file. |
128 |
use x86 && dodoc "${S}/usr/share/doc/flash-plugin-${PV}/readme.txt" |
129 |
fi |
130 |
|
131 |
if [[ $need_lahf_wrapper ]]; then |
132 |
# This experimental wrapper, from Maks Verver via bug #268336 should |
133 |
# emulate the missing lahf instruction affected platforms. |
134 |
exeinto /${INSTALL_BASE} |
135 |
doexe flashplugin-lahf-fix.so |
136 |
inst_plugin /${INSTALL_BASE}/flashplugin-lahf-fix.so |
137 |
fi |
138 |
|
139 |
if [[ $amd64_32bit ]]; then |
140 |
local oldabi="${ABI}" |
141 |
ABI="x86" |
142 |
|
143 |
# 32b plugin |
144 |
pushd "${S}/usr/lib/flash-plugin" |
145 |
exeinto /${INSTALL_BASE}32 |
146 |
doexe libflashplayer.so |
147 |
inst_plugin /${INSTALL_BASE}32/libflashplayer.so |
148 |
dodoc "${S}/usr/share/doc/flash-plugin-${PV}/readme.txt" |
149 |
popd |
150 |
|
151 |
ABI="${oldabi}" |
152 |
fi |
153 |
|
154 |
# The magic config file! |
155 |
insinto "/etc/adobe" |
156 |
doins "${FILESDIR}/mms.cfg" |
157 |
} |
158 |
|
159 |
pkg_postinst() { |
160 |
if use amd64; then |
161 |
elog "Adobe has released 10.1 in only a 32-bit version and upgrading" |
162 |
elog "is required to close a major security vulnerability:" |
163 |
elog " http://bugs.gentoo.org/322855" |
164 |
elog |
165 |
if has_version 'www-plugins/nspluginwrapper'; then |
166 |
if [[ $native_install ]]; then |
167 |
# Note: This code branch is dead (no native 64-bit flash player |
168 |
# available yet for 10.1), but I'm keeping it around in the hope |
169 |
# that some day it will be back... |
170 |
# - Jim Ramsay <lack@g.o> |
171 |
|
172 |
# TODO: Perhaps parse the output of 'nspluginwrapper -l' |
173 |
# However, the 64b flash plugin makes |
174 |
# 'nspluginwrapper -l' segfault. |
175 |
local FLASH_WRAPPER="${ROOT}/usr/lib64/nsbrowser/plugins/npwrapper.libflashplayer.so" |
176 |
if [[ -f ${FLASH_WRAPPER} ]]; then |
177 |
einfo "Removing duplicate 32-bit plugin wrapper: Native 64-bit plugin installed" |
178 |
nspluginwrapper -r "${FLASH_WRAPPER}" |
179 |
fi |
180 |
if [[ $need_lahf_wrapper ]]; then |
181 |
ewarn "Your processor does not support the 'lahf' instruction which is used" |
182 |
ewarn "by Adobe's 64-bit flash binary. We have installed a wrapper which" |
183 |
ewarn "should allow this plugin to run. If you encounter problems, please" |
184 |
ewarn "adjust your USE flags to install only the 32-bit version and reinstall:" |
185 |
ewarn " ${CATEGORY}/$PN[+32bit -64bit]" |
186 |
elog |
187 |
fi |
188 |
else |
189 |
einfo "nspluginwrapper detected: Installing plugin wrapper" |
190 |
local oldabi="${ABI}" |
191 |
ABI="x86" |
192 |
local FLASH_SOURCE="${ROOT}/${INSTALL_BASE}32/libflashplayer.so" |
193 |
nspluginwrapper -i "${FLASH_SOURCE}" |
194 |
ABI="${oldabi}" |
195 |
ewarn "Using adobe-flash-10.1 in a 64-bit browser is unstable:" |
196 |
ewarn " http://bugs.gentoo.org/324365" |
197 |
ewarn "The recommended configuration is to use the 32-bit plugin" |
198 |
ewarn "in a 32-bit browser such as www-client/firefox-bin" |
199 |
elog |
200 |
fi |
201 |
elif [[ ! $native_install ]]; then |
202 |
elog "To use the 32-bit flash player in a native 64-bit firefox," |
203 |
elog "you must install www-plugins/nspluginwrapper, though this" |
204 |
elog "configuration is not recommended:" |
205 |
elog " http://bugs.gentoo.org/324365" |
206 |
elog |
207 |
fi |
208 |
fi |
209 |
|
210 |
ewarn "Flash player is closed-source, with a long history of security" |
211 |
ewarn "issues. Please consider only running flash applets you know to" |
212 |
ewarn "be safe. The 'flashblock' extension may help for mozilla users:" |
213 |
ewarn " https://addons.mozilla.org/en-US/firefox/addon/433" |
214 |
} |