Gentoo Archives: gentoo-commits

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