1 |
axs 12/10/31 19:26:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: firefox-bin-10.0.10.ebuild |
5 |
Log: |
6 |
ESR bump for security bug 439960 |
7 |
|
8 |
(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED) |
9 |
|
10 |
Revision Changes Path |
11 |
1.124 www-client/firefox-bin/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.124&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.124&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?r1=1.123&r2=1.124 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v |
20 |
retrieving revision 1.123 |
21 |
retrieving revision 1.124 |
22 |
diff -u -r1.123 -r1.124 |
23 |
--- ChangeLog 31 Oct 2012 18:17:49 -0000 1.123 |
24 |
+++ ChangeLog 31 Oct 2012 19:26:52 -0000 1.124 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-client/firefox-bin |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.123 2012/10/31 18:17:49 axs Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.124 2012/10/31 19:26:52 axs Exp $ |
30 |
+ |
31 |
+*firefox-bin-10.0.10 (31 Oct 2012) |
32 |
+ |
33 |
+ 31 Oct 2012; Ian Stakenvicius <axs@g.o> +firefox-bin-10.0.10.ebuild: |
34 |
+ ESR bump for security bug 439960 |
35 |
|
36 |
31 Oct 2012; Ian Stakenvicius <axs@g.o> firefox-bin-15.0.1.ebuild, |
37 |
firefox-bin-16.0.2.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/firefox-bin/firefox-bin-10.0.10.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-10.0.10.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-10.0.10.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: firefox-bin-10.0.10.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-10.0.10.ebuild,v 1.1 2012/10/31 19:26:52 axs Exp $ |
51 |
|
52 |
EAPI="4" |
53 |
MOZ_ESR="1" |
54 |
|
55 |
# Can be updated using scripts/get_langs.sh from mozilla overlay |
56 |
MOZ_LANGS=(af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en |
57 |
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 |
58 |
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 |
59 |
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 |
60 |
te th tr uk vi zh-CN zh-TW zu) |
61 |
|
62 |
# Convert the ebuild version to the upstream mozilla version, used by mozlinguas |
63 |
MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI |
64 |
MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI |
65 |
MOZ_PN="${PN/-bin}" |
66 |
|
67 |
if [[ ${MOZ_ESR} == 1 ]]; then |
68 |
# ESR releases have slightly version numbers |
69 |
MOZ_PV="${MOZ_PV}esr" |
70 |
fi |
71 |
|
72 |
MOZ_P="${MOZ_PN}-${MOZ_PV}" |
73 |
|
74 |
# Upstream ftp release URI that's used by mozlinguas.eclass |
75 |
# We don't use the http mirror because it deletes old tarballs. |
76 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" |
77 |
|
78 |
inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins |
79 |
|
80 |
DESCRIPTION="Firefox Web Browser" |
81 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases" |
82 |
SRC_URI="${SRC_URI} |
83 |
amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) |
84 |
x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" |
85 |
HOMEPAGE="http://www.mozilla.com/firefox" |
86 |
RESTRICT="strip mirror binchecks" |
87 |
|
88 |
KEYWORDS="-* ~amd64 ~x86" |
89 |
SLOT="0" |
90 |
LICENSE="MPL-1.1 GPL-2 LGPL-2.1" |
91 |
IUSE="startup-notification" |
92 |
|
93 |
DEPEND="app-arch/unzip" |
94 |
RDEPEND="dev-libs/dbus-glib |
95 |
virtual/freedesktop-icon-theme |
96 |
x11-libs/libXrender |
97 |
x11-libs/libXt |
98 |
x11-libs/libXmu |
99 |
|
100 |
>=x11-libs/gtk+-2.2:2 |
101 |
>=media-libs/alsa-lib-1.0.16 |
102 |
" |
103 |
|
104 |
S="${WORKDIR}/${MOZ_PN}" |
105 |
|
106 |
src_unpack() { |
107 |
unpack ${A} |
108 |
|
109 |
# Unpack language packs |
110 |
mozlinguas_src_unpack |
111 |
} |
112 |
|
113 |
src_install() { |
114 |
declare MOZILLA_FIVE_HOME=/opt/${MOZ_PN} |
115 |
|
116 |
# Install icon and .desktop for menu entry |
117 |
newicon "${S}"/chrome/icons/default/default48.png ${PN}-icon.png |
118 |
domenu "${FILESDIR}"/${PN}.desktop |
119 |
|
120 |
# Add StartupNotify=true bug 237317 |
121 |
if use startup-notification; then |
122 |
echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop |
123 |
fi |
124 |
|
125 |
# Install firefox in /opt |
126 |
dodir ${MOZILLA_FIVE_HOME%/*} |
127 |
mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die |
128 |
|
129 |
# Fix prefs that make no sense for a system-wide install |
130 |
insinto ${MOZILLA_FIVE_HOME}/defaults/pref/ |
131 |
doins "${FILESDIR}"/${PN}-prefs.js || die |
132 |
|
133 |
# Install language packs |
134 |
mozlinguas_src_install |
135 |
|
136 |
local LANG=${linguas%% *} |
137 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
138 |
elog "Setting default locale to ${LANG}" |
139 |
echo "pref(\"general.useragent.locale\", \"${LANG}\");" \ |
140 |
>> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \ |
141 |
die "sed failed to change locale" |
142 |
fi |
143 |
|
144 |
# Create /usr/bin/firefox-bin |
145 |
dodir /usr/bin/ |
146 |
cat <<-EOF >"${D}"/usr/bin/${PN} |
147 |
#!/bin/sh |
148 |
unset LD_PRELOAD |
149 |
LD_LIBRARY_PATH="/opt/firefox/" |
150 |
GTK_PATH=/usr/lib/gtk-2.0/ |
151 |
exec /opt/${MOZ_PN}/${MOZ_PN} "\$@" |
152 |
EOF |
153 |
fperms 0755 /usr/bin/${PN} |
154 |
|
155 |
# revdep-rebuild entry |
156 |
insinto /etc/revdep-rebuild |
157 |
doins "${FILESDIR}"/10${PN} || die |
158 |
|
159 |
# Plugins dir |
160 |
share_plugins_dir |
161 |
|
162 |
# Required in order to use plugins and even run firefox on hardened. |
163 |
pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} |
164 |
} |
165 |
|
166 |
pkg_preinst() { |
167 |
gnome2_icon_savelist |
168 |
} |
169 |
|
170 |
pkg_postinst() { |
171 |
if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ |
172 |
|| ! has_version 'net-misc/curl'; then |
173 |
einfo |
174 |
einfo "For using the crashreporter, you need gnome-base/gconf," |
175 |
einfo "gnome-base/orbit and net-misc/curl emerged." |
176 |
einfo |
177 |
fi |
178 |
# Drop requirement of curl not built with nss as it's not necessary anymore |
179 |
#if has_version 'net-misc/curl[nss]'; then |
180 |
# einfo |
181 |
# einfo "Crashreporter won't be able to send reports" |
182 |
# einfo "if you have curl emerged with the nss USE-flag" |
183 |
# einfo |
184 |
#fi |
185 |
|
186 |
# Update mimedb for the new .desktop file |
187 |
fdo-mime_desktop_database_update |
188 |
gnome2_icon_cache_update |
189 |
} |
190 |
|
191 |
pkg_postrm() { |
192 |
gnome2_icon_cache_update |
193 |
} |