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: ChangeLog acroread-8.1.2-r3.ebuild acroread-8.1.2-r1.ebuild acroread-8.1.2.ebuild
Date: Fri, 01 Aug 2008 18:06:51
Message-Id: E1KOz1c-00082i-GD@stork.gentoo.org
1 tgurr 08/08/01 18:06:48
2
3 Modified: ChangeLog
4 Added: acroread-8.1.2-r3.ebuild
5 Removed: acroread-8.1.2-r1.ebuild acroread-8.1.2.ebuild
6 Log:
7 Bump for Adobe Reader 8.1.2 Security Update 1, fixing security issue CVE-2008-2641 bug #233383. Remove older versions.
8 (Portage version: 2.2_rc6/cvs/Linux 2.6.25-gentoo-r5 x86_64)
9
10 Revision Changes Path
11 1.116 app-text/acroread/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/ChangeLog?rev=1.116&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/ChangeLog?rev=1.116&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/ChangeLog?r1=1.115&r2=1.116
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v
20 retrieving revision 1.115
21 retrieving revision 1.116
22 diff -u -r1.115 -r1.116
23 --- ChangeLog 27 Apr 2008 13:56:39 -0000 1.115
24 +++ ChangeLog 1 Aug 2008 18:06:47 -0000 1.116
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-text/acroread
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.115 2008/04/27 13:56:39 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.116 2008/08/01 18:06:47 tgurr Exp $
30 +
31 +*acroread-8.1.2-r3 (01 Aug 2008)
32 +
33 + 01 Aug 2008; Timo Gurr <tgurr@g.o> -acroread-8.1.2.ebuild,
34 + -acroread-8.1.2-r1.ebuild, +acroread-8.1.2-r3.ebuild:
35 + Bump for Adobe Reader 8.1.2 Security Update 1, fixing security issue
36 + CVE-2008-2641 bug #233383. Remove older versions.
37
38 27 Apr 2008; Markus Meier <maekke@g.o> acroread-8.1.2-r2.ebuild:
39 amd64/x86 stable, bug #219207
40
41
42
43 1.1 app-text/acroread/acroread-8.1.2-r3.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/acroread-8.1.2-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/acroread/acroread-8.1.2-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: acroread-8.1.2-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-8.1.2-r3.ebuild,v 1.1 2008/08/01 18:06:47 tgurr Exp $
53
54 inherit eutils nsplugins
55
56 DESCRIPTION="Adobe's PDF reader"
57 HOMEPAGE="http://www.adobe.com/products/acrobat/"
58 IUSE="cups ldap minimal nsplugin"
59
60 SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/${PV}"
61 SRC_FOOT="-${PV}_SU1-1.i486.tar.bz2"
62
63 LINGUA_LIST="da:dan de:deu en:enu es:esp fi:suo fr:fra it:ita ja:jpn ko:kor nb:nor nl:nld pt:ptb sv:sve zh_CN:chs zh_TW:cht"
64 DEFAULT_URI="${SRC_HEAD}/enu/AdobeReader_enu${SRC_FOOT}"
65 for ll in ${LINGUA_LIST} ; do
66 iuse_l="linguas_${ll/:*}"
67 src_l=${ll/*:}
68 IUSE="${IUSE} ${iuse_l}"
69 DEFAULT_URI="!${iuse_l}? ( ${DEFAULT_URI} )"
70 SRC_URI="${SRC_URI}
71 ${iuse_l}? ( ${SRC_HEAD}/${src_l}/AdobeReader_${src_l}${SRC_FOOT} )"
72 done
73 SRC_URI="${SRC_URI}
74 ${DEFAULT_URI}"
75
76 LICENSE="Adobe"
77 SLOT="0"
78 KEYWORDS="-* ~amd64 ~x86"
79 RESTRICT="strip mirror"
80
81 RDEPEND="media-libs/fontconfig
82 cups? ( net-print/cups )
83 x86? ( >=x11-libs/gtk+-2.0
84 ldap? ( net-nds/openldap )
85 !minimal? ( || ( net-libs/xulrunner
86 net-libs/xulrunner-bin
87 www-client/mozilla-firefox
88 www-client/seamonkey
89 www-client/seamonkey-bin ) ) )
90 amd64? ( >=app-emulation/emul-linux-x86-baselibs-2.4.2
91 >=app-emulation/emul-linux-x86-gtklibs-2.0
92 !minimal? ( || ( net-libs/xulrunner-bin
93 www-client/seamonkey-bin ) ) )"
94 QA_TEXTRELS="opt/Adobe/Reader8/Reader/intellinux/plug_ins/PPKLite.api
95 opt/Adobe/Reader8/Browser/intellinux/nppdf.so
96 opt/netscape/plugins/nppdf.so"
97 QA_EXECSTACK="opt/Adobe/Reader8/Reader/intellinux/plug_ins/Annots.api
98 opt/Adobe/Reader8/Reader/intellinux/plug_ins/PPKLite.api
99 opt/Adobe/Reader8/Reader/intellinux/bin/acroread
100 opt/Adobe/Reader8/Reader/intellinux/bin/SynchronizerApp-binary
101 opt/Adobe/Reader8/Reader/intellinux/lib/libsccore.so
102 opt/Adobe/Reader8/Reader/intellinux/lib/libcrypto.so.0.9.7"
103
104 INSTALLDIR=/opt
105
106 S="${WORKDIR}/AdobeReader"
107
108 # Actually, ahv segfaults when run standalone so presumably
109 # it isn't intended for direct use - so the only launcher is
110 # acroread after all.
111 LAUNCHERS="Adobe/Reader8/bin/acroread"
112 # Adobe/HelpViewer/1.0/intellinux/bin/ahv"
113
114 pkg_setup() {
115 # x86 binary package, ABI=x86
116 # Danny van Dyk <kugelfang@g.o> 2005/03/25
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 if [[ ${pkg} =~ ^AdobeReader_ ]] ; then
145 tar xf ILINXR.TAR ||
146 die "Failed to unpack ILINXR.TAR; is distfile corrupt?"
147 tar xf COMMON.TAR ||
148 die "Failed to unpack COMMON.TAR; is distfile corrupt?"
149 ll=$(acroread_get_ll ${pkg})
150 for launcher in ${LAUNCHERS} ; do
151 mv ${launcher} ${launcher}.${ll}
152 done
153 if [[ -z ${fl} ]] ; then
154 fl=${ll}
155 linguas="${ll}"
156 else
157 linguas="${linguas} ${ll}"
158 fi
159 fi
160 done
161 if [[ ${linguas} == ${fl} ]] ; then
162 # Only one lingua selected - skip building the wrappers
163 for launcher in ${LAUNCHERS} ; do
164 mv ${launcher}.${fl} ${launcher} ||
165 die "Failed to put ${launcher}.${fl} back to ${launcher}; please report."
166 done
167 else
168 # Build wrappers. Launch the acroread for the environment variable
169 # LANG (matched with a trailing * so that for example 'de_DE' matches
170 # 'de', 'en_GB' matches 'en' etc).
171 #
172 # HelpViewer is new - We don't know if Adobe are likely to
173 # internationalize it or not.
174 for launcher in ${LAUNCHERS} ; do
175 cat > ${launcher} <<-EOF
176 #!/bin/bash
177 # Copyright 1999-2008 Gentoo Foundation
178 # Distributed under the terms of the GNU General Public License v2
179 #
180 # Automatically generated by ${CATEGORY}/${PF}
181
182 # Exec the acroread script for the language chosen in
183 # LC_ALL/LC_MESSAGES/LANG (first found takes precedence, as in glibc)
184 L=\${LC_ALL}
185 L=\${L:-\${LC_MESSAGES}}
186 L=\${L:-\${LANG}}
187 case \${L} in
188 EOF
189 for ll in ${linguas} ; do
190 echo "${ll}*) exec ${INSTALLDIR}/${launcher}.${ll} \"\$@\";;" >> ${launcher}
191 done
192 # default to English (in particular for LANG=C)
193 cat >> ${launcher} <<-EOF
194 *) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";;
195 esac
196 EOF
197 chmod 755 ${launcher}
198 done
199 fi
200
201 # remove cruft
202 rm "${S}"/Adobe/Reader8/bin/UNINSTALL
203 rm "${S}"/Adobe/Reader8/Resource/Support/vnd.*.desktop
204
205 # replace some configuration sections
206 for binfile in "${S}"/Adobe/Reader8/bin/* ; do
207 sed -i -e '/Font-config/,+10d' \
208 -e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \
209 "${binfile}" || die "sed failed"
210 done
211 }
212
213 src_install() {
214 local dir
215
216 # Install desktop files
217 domenu Adobe/Reader8/Resource/Support
218 # Install Icons - choose 48x48 since that's what the previous versions
219 # supplied.
220 doicon Adobe/Reader8/Resource/Icons/48x48
221
222 dodir /opt
223 chown -R --dereference -L root:0 Adobe
224 cp -dpR Adobe "${D}"opt/
225
226 # The Browser_Plugin_HowTo.txt is now in a subdirectory, which
227 # is named according to the language the user is using.
228 # Ie. for German, it is in a DEU directory. See bug #118015
229 dodoc Adobe/Reader8/Browser/HowTo/*/Browser_Plugin_HowTo.txt
230
231 if use nsplugin ; then
232 exeinto /opt/netscape/plugins
233 doexe Adobe/Reader8/Browser/intellinux/nppdf.so
234 inst_plugin /opt/netscape/plugins/nppdf.so
235 fi
236
237 if ! use ldap ; then
238 rm "${D}"${INSTALLDIR}/Adobe/Reader8/Reader/intellinux/plug_ins/PPKLite.api
239 fi
240
241 dodir /opt/bin
242 for launcher in ${LAUNCHERS} ; do
243 dosym /opt/${launcher} /opt/bin/${launcher/*bin\/}
244 done
245
246 # We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since
247 # they don't install a configuration file for libgtkembedmoz.so
248 # detection in /etc/gre.d/ like xulrunner does.
249 if ! use minimal ; then
250 if use x86 ; then
251 for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do
252 if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
253 echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader8/Reader/GlobalPrefs/mozilla_config
254 elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on"
255 elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader8/Reader/GlobalPrefs/mozilla_config."
256 break # don't search any more libraries
257 fi
258 done
259 fi
260 if use amd64 ; then
261 for lib in /opt/seamonkey ; do
262 if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
263 echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader8/Reader/GlobalPrefs/mozilla_config
264 elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on"
265 elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader8/Reader/GlobalPrefs/mozilla_config."
266 break # don't search any more libraries
267 fi
268 done
269 fi
270 fi
271 }
272
273 pkg_postinst () {
274 use ldap ||
275 elog "The Adobe Reader security plugin can be enabled with USE=\"ldap\"."
276
277 use nsplugin ||
278 elog "The Adobe Reader browser plugin can be enabled with USE=\"nsplugin\"."
279
280 local ll lc
281 lc=0
282 for ll in ${LINGUA_LIST} ; do
283 use linguas_${ll/:*} && (( lc = ${lc} + 1 ))
284 done
285 if [[ ${lc} > 1 ]] ; then
286 elog "Multiple languages have been installed, selected via a wrapper script."
287 elog "The language is selected according to the LANG environment variable"
288 elog "(defaulting to English if LANG is not set, or no matching language"
289 elog "version is installed). Users may need to remove their preferences in"
290 elog "~/.adobe to switch languages."
291 fi
292
293 if use minimal ; then
294 ewarn "If you want html support and/or view the Adobe Reader help you have"
295 ewarn "to re-emerge acroread with USE=\"-minimal\"."
296 fi
297 }