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