Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/acroread: acroread-9.4.0.ebuild ChangeLog
Date: Fri, 08 Oct 2010 14:02:53
Message-Id: 20101008132112.67A0320051@flycatcher.gentoo.org
1 scarabeus 10/10/08 13:21:12
2
3 Modified: ChangeLog
4 Added: acroread-9.4.0.ebuild
5 Log:
6 Version bump. Fixes 23 security vulnerabilities. CVE-2010-2883, CVE-2010-2884, CVE-2010-2887, CVE-2010-2888, CVE-2010-2889, CVE-2010-2890, CVE-2010-3619, CVE-2010-3620, CVE-2010-3621, CVE-2010-3622, CVE-2010-3623, CVE-2010-3624, CVE-2010-3625, CVE-2010-3626, CVE-2010-3627, CVE-2010-3628, CVE-2010-3629, CVE-2010-3630, CVE-2010-3631, CVE-2010-3632, CVE-2010-3656, CVE-2010-3657, and CVE-2010-3658.
7
8 (Portage version: 2.2_rc91/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.156 app-text/acroread/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/ChangeLog?rev=1.156&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/ChangeLog?rev=1.156&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/ChangeLog?r1=1.155&r2=1.156
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v
20 retrieving revision 1.155
21 retrieving revision 1.156
22 diff -u -r1.155 -r1.156
23 --- ChangeLog 24 Sep 2010 08:03:16 -0000 1.155
24 +++ ChangeLog 8 Oct 2010 13:21:12 -0000 1.156
25 @@ -1,6 +1,17 @@
26 # ChangeLog for app-text/acroread
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.155 2010/09/24 08:03:16 zmedico Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.156 2010/10/08 13:21:12 scarabeus Exp $
30 +
31 +*acroread-9.4.0 (08 Oct 2010)
32 +
33 + 08 Oct 2010; Tomáš Chvátal <scarabeus@g.o>
34 + +acroread-9.4.0.ebuild:
35 + Version bump. Fixes 23 security vulnerabilities. CVE-2010-2883,
36 + CVE-2010-2884, CVE-2010-2887, CVE-2010-2888, CVE-2010-2889, CVE-2010-2890,
37 + CVE-2010-3619, CVE-2010-3620, CVE-2010-3621, CVE-2010-3622, CVE-2010-3623,
38 + CVE-2010-3624, CVE-2010-3625, CVE-2010-3626, CVE-2010-3627, CVE-2010-3628,
39 + CVE-2010-3629, CVE-2010-3630, CVE-2010-3631, CVE-2010-3632, CVE-2010-3656,
40 + CVE-2010-3657, and CVE-2010-3658.
41
42 24 Sep 2010; Zac Medico <zmedico@g.o> acroread-9.3.3.ebuild,
43 acroread-9.3.4.ebuild:
44
45
46
47 1.1 app-text/acroread/acroread-9.4.0.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/acroread-9.4.0.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/acroread/acroread-9.4.0.ebuild?rev=1.1&content-type=text/plain
51
52 Index: acroread-9.4.0.ebuild
53 ===================================================================
54 # Copyright 1999-2010 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.0.ebuild,v 1.1 2010/10/08 13:21:12 scarabeus Exp $
57
58 inherit eutils gnome2-utils nsplugins versionator
59
60 DESCRIPTION="Adobe's PDF reader"
61 HOMEPAGE="http://www.adobe.com/products/reader/"
62 IUSE="cups ldap minimal nsplugin"
63
64 SRC_HEAD="ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/${PV}"
65 SRC_FOOT=".tar.bz2"
66
67 # languages not available yet: it:ita es:esp pt:ptb sv:sve zh_CN:chs zh_TW:cht fi:suo nb:nor nl:nld ko:kor da:dan
68 LINGUA_LIST="de:deu en:enu fr:fra ja:jpn"
69 # idiots, seriously...
70 FIX_PV=$(get_version_component_range 1-2)
71 DEFAULT_URI="${SRC_HEAD}/enu/AdbeRdr${FIX_PV}-1_i486linux_enu${SRC_FOOT}"
72 for ll in ${LINGUA_LIST} ; do
73 iuse_l="linguas_${ll/:*}"
74 src_l=${ll/*:}
75 IUSE="${IUSE} ${iuse_l}"
76 DEFAULT_URI="!${iuse_l}? ( ${DEFAULT_URI} )"
77 SRC_URI="${SRC_URI}
78 ${iuse_l}? ( ${SRC_HEAD}/${src_l}/AdbeRdr${FIX_PV}-1_i486linux_${src_l}${SRC_FOOT} )"
79 done
80 SRC_URI="${SRC_URI}
81 ${DEFAULT_URI}"
82
83 LICENSE="Adobe"
84 SLOT="0"
85 KEYWORDS="-* ~amd64 ~x86"
86 RESTRICT="strip mirror"
87
88 # mozilla-firefox-bin won't work because it doesn't have gtkembedmoz.so
89 RDEPEND="media-libs/fontconfig
90 x86? ( =dev-libs/openssl-0.9.8* )
91 cups? ( net-print/cups )
92 x86? ( >=x11-libs/gtk+-2.0
93 ldap? ( net-nds/openldap )
94 !minimal? ( || ( net-libs/xulrunner
95 www-client/mozilla-firefox
96 www-client/seamonkey ) ) )
97 amd64? ( app-emulation/emul-linux-x86-gtklibs )"
98
99 QA_EXECSTACK="opt/Adobe/Reader9/Reader/intellinux/bin/acroread
100 opt/Adobe/Reader9/Reader/intellinux/lib/libauthplay.so.0.0.0
101 opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so
102 opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8
103 opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api"
104
105 INSTALLDIR=/opt
106
107 S="${WORKDIR}/AdobeReader"
108
109 # Actually, ahv segfaults when run standalone so presumably
110 # it isn't intended for direct use - so the only launcher is
111 # acroread after all.
112 LAUNCHERS="Adobe/Reader9/bin/acroread"
113 # Adobe/HelpViewer/1.0/intellinux/bin/ahv"
114
115 pkg_setup() {
116 # x86 binary package, ABI=x86
117 has_multilib_profile && ABI="x86"
118 }
119
120 # Determine lingua from filename
121 acroread_get_ll() {
122 local f_src_l ll lingua src_l
123 f_src_l=${1/${SRC_FOOT}}
124 f_src_l=${f_src_l/*_}
125 for ll in ${LINGUA_LIST} ; do
126 lingua=${ll/:*}
127 src_l=${ll/*:}
128 if [[ ${src_l} == ${f_src_l} ]] ; then
129 echo ${lingua}
130 return
131 fi
132 done
133 die "Failed to match file $1 to a LINGUA; please report."
134 }
135
136 src_unpack() {
137 local ll linguas fl launcher
138 # Unpack all into the same place; overwrite common files.
139 fl=""
140 for pkg in ${A} ; do
141 cd "${WORKDIR}"
142 unpack ${pkg}
143 cd "${S}"
144 tar xf ILINXR.TAR || die "Failed to unpack ILINXR.TAR."
145 tar xf COMMON.TAR || die "Failed to unpack COMMON.TAR."
146 ll=$(acroread_get_ll ${pkg})
147 for launcher in ${LAUNCHERS} ; do
148 mv ${launcher} ${launcher}.${ll}
149 done
150 if [[ -z ${fl} ]] ; then
151 fl=${ll}
152 linguas="${ll}"
153 else
154 linguas="${linguas} ${ll}"
155 fi
156 done
157 if [[ ${linguas} == ${fl} ]] ; then
158 # Only one lingua selected - skip building the wrappers
159 for launcher in ${LAUNCHERS} ; do
160 mv ${launcher}.${fl} ${launcher} ||
161 die "Failed to put ${launcher}.${fl} back to ${launcher}; please report."
162 done
163 else
164 # Build wrappers. Launch the acroread for the environment variable
165 # LANG (matched with a trailing * so that for example 'de_DE' matches
166 # 'de', 'en_GB' matches 'en' etc).
167 #
168 # HelpViewer is new - We don't know if Adobe are likely to
169 # internationalize it or not.
170 for launcher in ${LAUNCHERS} ; do
171 cat > ${launcher} <<-EOF
172 #!/bin/bash
173 # Copyright 1999-2009 Gentoo Foundation
174 # Distributed under the terms of the GNU General Public License v2
175 #
176 # Automatically generated by ${CATEGORY}/${PF}
177
178 # Exec the acroread script for the language chosen in
179 # LC_ALL/LC_MESSAGES/LANG (first found takes precedence, as in glibc)
180 L=\${LC_ALL}
181 L=\${L:-\${LC_MESSAGES}}
182 L=\${L:-\${LANG}}
183 case \${L} in
184 EOF
185 for ll in ${linguas} ; do
186 echo "${ll}*) exec ${INSTALLDIR}/${launcher}.${ll} \"\$@\";;" >> ${launcher}
187 done
188 # default to English (in particular for LANG=C)
189 cat >> ${launcher} <<-EOF
190 *) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";;
191 esac
192 EOF
193 chmod 755 ${launcher}
194 done
195 fi
196
197 # remove cruft
198 rm "${S}"/Adobe/Reader9/bin/UNINSTALL
199 rm "${S}"/Adobe/Reader9/Browser/install_browser_plugin
200 rm "${S}"/Adobe/Reader9/Resource/Support/vnd.*.desktop
201
202 # replace some configuration sections
203 for binfile in "${S}"/Adobe/Reader9/bin/* ; do
204 sed -i -e '/Font-config/,+9d' \
205 -e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \
206 "${binfile}" || die "sed configuration settings failed."
207 done
208 }
209
210 src_install() {
211 # Install desktop files
212 domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop || die "Installing desktop files failed."
213
214 # Install commonly used icon sizes
215 for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do
216 insinto /usr/share/icons/hicolor/${res}/apps
217 doins Adobe/Reader9/Resource/Icons/${res}/* || die "Installing icons failed."
218 done
219
220 dodir /opt || die "Creating directory failed."
221 chown -R --dereference -L root:0 Adobe
222 cp -dpR Adobe "${D}"opt/
223
224 doman Adobe/Reader9/Resource/Shell/acroread.1.gz || die "Installing manpage failed."
225
226 if use nsplugin ; then
227 exeinto /opt/netscape/plugins
228 doexe Adobe/Reader9/Browser/intellinux/nppdf.so || die "Installing the browser plugin failed."
229 inst_plugin /opt/netscape/plugins/nppdf.so
230 fi
231
232 dodir /opt/bin || die "Creating directory failed."
233 for launcher in ${LAUNCHERS} ; do
234 dosym /opt/${launcher} /opt/bin/${launcher/*bin\/} || die "Installing launcher symlinks failed."
235 done
236
237 # We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since
238 # they don't install a configuration file for libgtkembedmoz.so
239 # detection in /etc/gre.d/ like xulrunner does.
240 if ! use minimal ; then
241 if use x86 ; then
242 for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do
243 if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
244 echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config
245 elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on"
246 elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config."
247 break # don't search any more libraries
248 fi
249 done
250 fi
251 fi
252 }
253
254 pkg_preinst() {
255 gnome2_icon_savelist
256 }
257
258 pkg_postinst () {
259 local ll lc
260 lc=0
261 for ll in ${LINGUA_LIST} ; do
262 use linguas_${ll/:*} && (( lc = ${lc} + 1 ))
263 done
264 if [[ ${lc} > 1 ]] ; then
265 echo
266 elog "Multiple languages have been installed, selected via a wrapper script."
267 elog "The language is selected according to the LANG environment variable"
268 elog "(defaulting to English if LANG is not set, or no matching language"
269 elog "version is installed). Users may need to remove their preferences in"
270 elog "~/.adobe to switch languages."
271 echo
272 fi
273
274 if use minimal ; then
275 echo
276 ewarn "If you want html support and/or view the Adobe Reader help you have"
277 ewarn "to re-emerge acroread with USE=\"-minimal\"."
278 echo
279 fi
280
281 if use nsplugin ; then
282 echo
283 elog "If you're running a 64bit browser you may also want to install"
284 elog "\"www-plugins/nspluginwrapper\" to be able to use the Adobe Reader"
285 elog "browser plugin."
286 echo
287 fi
288
289 gnome2_icon_cache_update
290 }
291
292 pkg_postrm() {
293 gnome2_icon_cache_update
294 }