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