1 |
polynomial-c 14/02/07 14:11:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: firefox-bin-24.3.0.ebuild firefox-bin-27.0.ebuild |
5 |
Removed: firefox-bin-25.0.ebuild |
6 |
Log: |
7 |
Security bump (bug #500320). Removed old. |
8 |
|
9 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
10 |
|
11 |
Revision Changes Path |
12 |
1.175 www-client/firefox-bin/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.175&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.175&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?r1=1.174&r2=1.175 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v |
21 |
retrieving revision 1.174 |
22 |
retrieving revision 1.175 |
23 |
diff -u -r1.174 -r1.175 |
24 |
--- ChangeLog 13 Dec 2013 06:08:22 -0000 1.174 |
25 |
+++ ChangeLog 7 Feb 2014 14:11:02 -0000 1.175 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for www-client/firefox-bin |
28 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.174 2013/12/13 06:08:22 jdhore Exp $ |
30 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.175 2014/02/07 14:11:02 polynomial-c Exp $ |
32 |
+ |
33 |
+*firefox-bin-27.0 (07 Feb 2014) |
34 |
+*firefox-bin-24.3.0 (07 Feb 2014) |
35 |
+ |
36 |
+ 07 Feb 2014; Lars Wendler <polynomial-c@g.o> |
37 |
+ +firefox-bin-24.3.0.ebuild, -firefox-bin-25.0.ebuild, |
38 |
+ +firefox-bin-27.0.ebuild: |
39 |
+ Security bump (bug #500320). Removed old. |
40 |
|
41 |
*firefox-bin-26.0 (13 Dec 2013) |
42 |
*firefox-bin-24.2.0 (13 Dec 2013) |
43 |
|
44 |
|
45 |
|
46 |
1.1 www-client/firefox-bin/firefox-bin-24.3.0.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-24.3.0.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-24.3.0.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: firefox-bin-24.3.0.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2014 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-24.3.0.ebuild,v 1.1 2014/02/07 14:11:02 polynomial-c Exp $ |
56 |
|
57 |
EAPI="5" |
58 |
MOZ_ESR="1" |
59 |
|
60 |
# Can be updated using scripts/get_langs.sh from mozilla overlay |
61 |
MOZ_LANGS=(af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en |
62 |
en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl |
63 |
gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO |
64 |
nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK |
65 |
te th tr uk vi zh-CN zh-TW zu) |
66 |
|
67 |
# Convert the ebuild version to the upstream mozilla version, used by mozlinguas |
68 |
MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI |
69 |
MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI |
70 |
MOZ_PN="${PN/-bin}" |
71 |
MOZ_P="${MOZ_PN}-${MOZ_PV}" |
72 |
|
73 |
if [[ ${MOZ_ESR} == 1 ]]; then |
74 |
# ESR releases have slightly version numbers |
75 |
MOZ_PV="${MOZ_PV}esr" |
76 |
fi |
77 |
MOZ_P="${MOZ_PN}-${MOZ_PV}" |
78 |
|
79 |
# Upstream ftp release URI that's used by mozlinguas.eclass |
80 |
# We don't use the http mirror because it deletes old tarballs. |
81 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" |
82 |
|
83 |
inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins |
84 |
|
85 |
DESCRIPTION="Firefox Web Browser" |
86 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases" |
87 |
SRC_URI="${SRC_URI} |
88 |
amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) |
89 |
x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" |
90 |
HOMEPAGE="http://www.mozilla.com/firefox" |
91 |
RESTRICT="strip mirror" |
92 |
|
93 |
KEYWORDS="-* ~amd64 ~x86" |
94 |
SLOT="0" |
95 |
LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
96 |
IUSE="startup-notification" |
97 |
|
98 |
DEPEND="app-arch/unzip" |
99 |
RDEPEND="dev-libs/dbus-glib |
100 |
virtual/freedesktop-icon-theme |
101 |
x11-libs/libXrender |
102 |
x11-libs/libXt |
103 |
x11-libs/libXmu |
104 |
|
105 |
>=x11-libs/gtk+-2.2:2 |
106 |
>=media-libs/alsa-lib-1.0.16 |
107 |
|
108 |
!net-libs/libproxy[spidermonkey] |
109 |
" |
110 |
|
111 |
QA_PREBUILT=" |
112 |
opt/${MOZ_PN}/*.so |
113 |
opt/${MOZ_PN}/${MOZ_PN} |
114 |
opt/${MOZ_PN}/${PN} |
115 |
opt/${MOZ_PN}/crashreporter |
116 |
opt/${MOZ_PN}/webapprt-stub |
117 |
opt/${MOZ_PN}/plugin-container |
118 |
opt/${MOZ_PN}/mozilla-xremote-client |
119 |
opt/${MOZ_PN}/updater |
120 |
" |
121 |
|
122 |
S="${WORKDIR}/${MOZ_PN}" |
123 |
|
124 |
src_unpack() { |
125 |
unpack ${A} |
126 |
|
127 |
# Unpack language packs |
128 |
mozlinguas_src_unpack |
129 |
} |
130 |
|
131 |
src_install() { |
132 |
declare MOZILLA_FIVE_HOME=/opt/${MOZ_PN} |
133 |
|
134 |
local size sizes icon_path icon name |
135 |
sizes="16 32 48" |
136 |
icon_path="${S}/browser/chrome/icons/default" |
137 |
icon="${PN}" |
138 |
name="Mozilla Firefox" |
139 |
|
140 |
# Install icons and .desktop for menu entry |
141 |
for size in ${sizes}; do |
142 |
insinto "/usr/share/icons/hicolor/${size}x${size}/apps" |
143 |
newins "${icon_path}/default${size}.png" "${icon}.png" || die |
144 |
done |
145 |
# The 128x128 icon has a different name |
146 |
insinto "/usr/share/icons/hicolor/128x128/apps" |
147 |
newins "${icon_path}/../../../icons/mozicon128.png" "${icon}.png" || die |
148 |
# Install a 48x48 icon into /usr/share/pixmaps for legacy DEs |
149 |
newicon "${S}"/browser/chrome/icons/default/default48.png ${PN}-icon.png |
150 |
domenu "${FILESDIR}"/${PN}.desktop |
151 |
sed -i -e "s:@NAME@:${name}:" -e "s:@ICON@:${icon}:" \ |
152 |
"${ED}/usr/share/applications/${PN}.desktop" || die |
153 |
|
154 |
# Add StartupNotify=true bug 237317 |
155 |
if use startup-notification; then |
156 |
echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop |
157 |
fi |
158 |
|
159 |
# Install firefox in /opt |
160 |
dodir ${MOZILLA_FIVE_HOME%/*} |
161 |
mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die |
162 |
|
163 |
# Fix prefs that make no sense for a system-wide install |
164 |
insinto ${MOZILLA_FIVE_HOME}/defaults/pref/ |
165 |
doins "${FILESDIR}"/local-settings.js |
166 |
insinto ${MOZILLA_FIVE_HOME}/ |
167 |
doins "${FILESDIR}"/all-gentoo.js |
168 |
|
169 |
# Install language packs |
170 |
mozlinguas_src_install |
171 |
|
172 |
local LANG=${linguas%% *} |
173 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
174 |
elog "Setting default locale to ${LANG}" |
175 |
echo "pref(\"general.useragent.locale\", \"${LANG}\");" \ |
176 |
>> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \ |
177 |
die "sed failed to change locale" |
178 |
fi |
179 |
|
180 |
# Create /usr/bin/firefox-bin |
181 |
dodir /usr/bin/ |
182 |
cat <<-EOF >"${D}"/usr/bin/${PN} |
183 |
#!/bin/sh |
184 |
unset LD_PRELOAD |
185 |
LD_LIBRARY_PATH="/opt/firefox/" |
186 |
GTK_PATH=/usr/lib/gtk-2.0/ |
187 |
exec /opt/${MOZ_PN}/${MOZ_PN} "\$@" |
188 |
EOF |
189 |
fperms 0755 /usr/bin/${PN} |
190 |
|
191 |
# revdep-rebuild entry |
192 |
insinto /etc/revdep-rebuild |
193 |
doins "${FILESDIR}"/10${PN} || die |
194 |
|
195 |
# Plugins dir |
196 |
share_plugins_dir |
197 |
|
198 |
# Required in order to use plugins and even run firefox on hardened. |
199 |
pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} |
200 |
} |
201 |
|
202 |
pkg_preinst() { |
203 |
gnome2_icon_savelist |
204 |
} |
205 |
|
206 |
pkg_postinst() { |
207 |
if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ |
208 |
|| ! has_version 'net-misc/curl'; then |
209 |
einfo |
210 |
einfo "For using the crashreporter, you need gnome-base/gconf," |
211 |
einfo "gnome-base/orbit and net-misc/curl emerged." |
212 |
einfo |
213 |
fi |
214 |
# Drop requirement of curl not built with nss as it's not necessary anymore |
215 |
#if has_version 'net-misc/curl[nss]'; then |
216 |
# einfo |
217 |
# einfo "Crashreporter won't be able to send reports" |
218 |
# einfo "if you have curl emerged with the nss USE-flag" |
219 |
# einfo |
220 |
#fi |
221 |
|
222 |
# Update mimedb for the new .desktop file |
223 |
fdo-mime_desktop_database_update |
224 |
gnome2_icon_cache_update |
225 |
} |
226 |
|
227 |
pkg_postrm() { |
228 |
gnome2_icon_cache_update |
229 |
} |
230 |
|
231 |
|
232 |
|
233 |
1.1 www-client/firefox-bin/firefox-bin-27.0.ebuild |
234 |
|
235 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-27.0.ebuild?rev=1.1&view=markup |
236 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-27.0.ebuild?rev=1.1&content-type=text/plain |
237 |
|
238 |
Index: firefox-bin-27.0.ebuild |
239 |
=================================================================== |
240 |
# Copyright 1999-2014 Gentoo Foundation |
241 |
# Distributed under the terms of the GNU General Public License v2 |
242 |
# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-27.0.ebuild,v 1.1 2014/02/07 14:11:02 polynomial-c Exp $ |
243 |
|
244 |
EAPI="5" |
245 |
|
246 |
# Can be updated using scripts/get_langs.sh from mozilla overlay |
247 |
MOZ_LANGS=(af ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en |
248 |
en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl |
249 |
gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lt lv mai mk ml mr nb-NO |
250 |
nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta |
251 |
te tr uk vi zh-CN zh-TW zu) |
252 |
|
253 |
# Convert the ebuild version to the upstream mozilla version, used by mozlinguas |
254 |
MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI |
255 |
MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI |
256 |
MOZ_PN="${PN/-bin}" |
257 |
MOZ_P="${MOZ_PN}-${MOZ_PV}" |
258 |
|
259 |
# Upstream ftp release URI that's used by mozlinguas.eclass |
260 |
# We don't use the http mirror because it deletes old tarballs. |
261 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" |
262 |
|
263 |
inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins |
264 |
|
265 |
DESCRIPTION="Firefox Web Browser" |
266 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases" |
267 |
SRC_URI="${SRC_URI} |
268 |
amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) |
269 |
x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" |
270 |
HOMEPAGE="http://www.mozilla.com/firefox" |
271 |
RESTRICT="strip mirror" |
272 |
|
273 |
KEYWORDS="-* ~amd64 ~x86" |
274 |
SLOT="0" |
275 |
LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
276 |
IUSE="startup-notification" |
277 |
|
278 |
DEPEND="app-arch/unzip" |
279 |
RDEPEND="dev-libs/dbus-glib |
280 |
virtual/freedesktop-icon-theme |
281 |
x11-libs/libXrender |
282 |
x11-libs/libXt |
283 |
x11-libs/libXmu |
284 |
|
285 |
>=x11-libs/gtk+-2.2:2 |
286 |
>=media-libs/alsa-lib-1.0.16 |
287 |
|
288 |
!net-libs/libproxy[spidermonkey] |
289 |
" |
290 |
|
291 |
QA_PREBUILT=" |
292 |
opt/${MOZ_PN}/*.so |
293 |
opt/${MOZ_PN}/${MOZ_PN} |
294 |
opt/${MOZ_PN}/${PN} |
295 |
opt/${MOZ_PN}/crashreporter |
296 |
opt/${MOZ_PN}/webapprt-stub |
297 |
opt/${MOZ_PN}/plugin-container |
298 |
opt/${MOZ_PN}/mozilla-xremote-client |
299 |
opt/${MOZ_PN}/updater |
300 |
" |
301 |
|
302 |
S="${WORKDIR}/${MOZ_PN}" |
303 |
|
304 |
src_unpack() { |
305 |
unpack ${A} |
306 |
|
307 |
# Unpack language packs |
308 |
mozlinguas_src_unpack |
309 |
} |
310 |
|
311 |
src_install() { |
312 |
declare MOZILLA_FIVE_HOME=/opt/${MOZ_PN} |
313 |
|
314 |
local size sizes icon_path icon name |
315 |
sizes="16 32 48" |
316 |
icon_path="${S}/browser/chrome/icons/default" |
317 |
icon="${PN}" |
318 |
name="Mozilla Firefox" |
319 |
|
320 |
# Install icons and .desktop for menu entry |
321 |
for size in ${sizes}; do |
322 |
insinto "/usr/share/icons/hicolor/${size}x${size}/apps" |
323 |
newins "${icon_path}/default${size}.png" "${icon}.png" || die |
324 |
done |
325 |
# The 128x128 icon has a different name |
326 |
insinto "/usr/share/icons/hicolor/128x128/apps" |
327 |
newins "${icon_path}/../../../icons/mozicon128.png" "${icon}.png" || die |
328 |
# Install a 48x48 icon into /usr/share/pixmaps for legacy DEs |
329 |
newicon "${S}"/browser/chrome/icons/default/default48.png ${PN}-icon.png |
330 |
domenu "${FILESDIR}"/${PN}.desktop |
331 |
sed -i -e "s:@NAME@:${name}:" -e "s:@ICON@:${icon}:" \ |
332 |
"${ED}/usr/share/applications/${PN}.desktop" || die |
333 |
|
334 |
# Add StartupNotify=true bug 237317 |
335 |
if use startup-notification; then |
336 |
echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop |
337 |
fi |
338 |
|
339 |
# Install firefox in /opt |
340 |
dodir ${MOZILLA_FIVE_HOME%/*} |
341 |
mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die |
342 |
|
343 |
# Fix prefs that make no sense for a system-wide install |
344 |
insinto ${MOZILLA_FIVE_HOME}/defaults/pref/ |
345 |
doins "${FILESDIR}"/local-settings.js |
346 |
insinto ${MOZILLA_FIVE_HOME}/ |
347 |
doins "${FILESDIR}"/all-gentoo.js |
348 |
|
349 |
# Install language packs |
350 |
mozlinguas_src_install |
351 |
|
352 |
local LANG=${linguas%% *} |
353 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
354 |
elog "Setting default locale to ${LANG}" |
355 |
echo "pref(\"general.useragent.locale\", \"${LANG}\");" \ |
356 |
>> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \ |
357 |
die "sed failed to change locale" |
358 |
fi |
359 |
|
360 |
# Create /usr/bin/firefox-bin |
361 |
dodir /usr/bin/ |
362 |
cat <<-EOF >"${D}"/usr/bin/${PN} |
363 |
#!/bin/sh |
364 |
unset LD_PRELOAD |
365 |
LD_LIBRARY_PATH="/opt/firefox/" |
366 |
GTK_PATH=/usr/lib/gtk-2.0/ |
367 |
exec /opt/${MOZ_PN}/${MOZ_PN} "\$@" |
368 |
EOF |
369 |
fperms 0755 /usr/bin/${PN} |
370 |
|
371 |
# revdep-rebuild entry |
372 |
insinto /etc/revdep-rebuild |
373 |
doins "${FILESDIR}"/10${PN} || die |
374 |
|
375 |
# Plugins dir |
376 |
share_plugins_dir |
377 |
|
378 |
# Required in order to use plugins and even run firefox on hardened. |
379 |
pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} |
380 |
} |
381 |
|
382 |
pkg_preinst() { |
383 |
gnome2_icon_savelist |
384 |
} |
385 |
|
386 |
pkg_postinst() { |
387 |
if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ |
388 |
|| ! has_version 'net-misc/curl'; then |
389 |
einfo |
390 |
einfo "For using the crashreporter, you need gnome-base/gconf," |
391 |
einfo "gnome-base/orbit and net-misc/curl emerged." |
392 |
einfo |
393 |
fi |
394 |
# Drop requirement of curl not built with nss as it's not necessary anymore |
395 |
#if has_version 'net-misc/curl[nss]'; then |
396 |
# einfo |
397 |
# einfo "Crashreporter won't be able to send reports" |
398 |
# einfo "if you have curl emerged with the nss USE-flag" |
399 |
# einfo |
400 |
#fi |
401 |
|
402 |
# Update mimedb for the new .desktop file |
403 |
fdo-mime_desktop_database_update |
404 |
gnome2_icon_cache_update |
405 |
} |
406 |
|
407 |
pkg_postrm() { |
408 |
gnome2_icon_cache_update |
409 |
} |