1 |
pva 08/02/29 12:00:42 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ghostscript-esp-8.15.4-r1.ebuild |
5 |
Log: |
6 |
Fixed security issue (CVE-2008-0411), bug #208999, thank Robert Buchholz for report and coordination. |
7 |
(Portage version: 2.1.4.4, RepoMan options: --force) |
8 |
|
9 |
Revision Changes Path |
10 |
1.58 app-text/ghostscript-esp/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-esp/ChangeLog?rev=1.58&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-esp/ChangeLog?rev=1.58&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-esp/ChangeLog?r1=1.57&r2=1.58 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-esp/ChangeLog,v |
19 |
retrieving revision 1.57 |
20 |
retrieving revision 1.58 |
21 |
diff -u -r1.57 -r1.58 |
22 |
--- ChangeLog 9 Feb 2008 12:01:07 -0000 1.57 |
23 |
+++ ChangeLog 29 Feb 2008 12:00:42 -0000 1.58 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for app-text/ghostscript-esp |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-esp/ChangeLog,v 1.57 2008/02/09 12:01:07 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-esp/ChangeLog,v 1.58 2008/02/29 12:00:42 pva Exp $ |
29 |
+ |
30 |
+*ghostscript-esp-8.15.4-r1 (29 Feb 2008) |
31 |
+ |
32 |
+ 29 Feb 2008; <pva@g.o> +files/ghostscript-8.60-CVE-2008-0411.diff, |
33 |
+ +ghostscript-esp-8.15.4-r1.ebuild: |
34 |
+ Fixed security issue (CVE-2008-0411), bug #208999, thank Robert Buchholz for |
35 |
+ report and coordination. |
36 |
|
37 |
09 Feb 2008; Raúl Porcel <armin76@g.o> |
38 |
ghostscript-esp-8.15.4.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-text/ghostscript-esp/ghostscript-esp-8.15.4-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-esp/ghostscript-esp-8.15.4-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-esp/ghostscript-esp-8.15.4-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ghostscript-esp-8.15.4-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-esp/ghostscript-esp-8.15.4-r1.ebuild,v 1.1 2008/02/29 12:00:42 pva Exp $ |
52 |
|
53 |
WANT_AUTOCONF="latest" |
54 |
WANT_AUTOMAKE="latest" |
55 |
|
56 |
inherit autotools elisp-common eutils versionator |
57 |
|
58 |
DESCRIPTION="ESP Ghostscript -- an enhanced version of GPL Ghostscript with better printer support" |
59 |
HOMEPAGE="http://www.cups.org/espgs" |
60 |
|
61 |
GSDJVU_PV=1.1 |
62 |
MY_P=espgs-${PV} |
63 |
PVM=$(get_version_component_range 1-2) |
64 |
SRC_URI="cjk? ( ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200406.tar.gz |
65 |
ftp://ftp.gyve.org/pub/gs-cjk/acro5-cmaps-2001.tar.gz ) |
66 |
djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) |
67 |
http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/ghostscript/${PV}/espgs-${PV}-source.tar.bz2 |
68 |
ftp://ftp3.easysw.com/pub/ghostscript/${PV}/espgs-${PV}-source.tar.bz2" |
69 |
ESVN_REPO_URI="http://svn.easysw.com/public/espgs/trunk" |
70 |
|
71 |
LICENSE="GPL-2 LGPL-2 CPL-1.0" |
72 |
SLOT="0" |
73 |
KEYWORDS="~alpha amd64 hppa ~ia64 ~m68k ppc ppc64 sparc x86 ~x86-fbsd" |
74 |
IUSE="X cups cjk gtk threads xml djvu" |
75 |
|
76 |
DEP="virtual/libc |
77 |
>=media-libs/jpeg-6b |
78 |
>=media-libs/libpng-1.2.5 |
79 |
>=sys-libs/zlib-1.1.4 |
80 |
>=media-libs/tiff-3.7 |
81 |
X? ( x11-libs/libXt |
82 |
x11-libs/libXext ) |
83 |
djvu? ( app-text/djvu ) |
84 |
gtk? ( >=x11-libs/gtk+-2.0 ) |
85 |
cups? ( >=net-print/cups-1.1.20 ) |
86 |
xml? ( >=dev-libs/libxml2-2.6.8 ) |
87 |
media-libs/fontconfig |
88 |
!app-text/ghostscript-gnu |
89 |
!app-text/ghostscript-gpl" |
90 |
|
91 |
RDEPEND="${DEP} |
92 |
cjk? ( media-fonts/arphicfonts |
93 |
media-fonts/kochi-substitute |
94 |
media-fonts/baekmuk-fonts ) |
95 |
media-fonts/gnu-gs-fonts-std" |
96 |
|
97 |
DEPEND="${DEP} |
98 |
dev-util/pkgconfig" |
99 |
|
100 |
S=${WORKDIR}/${MY_P} |
101 |
|
102 |
src_unpack() { |
103 |
unpack ${A/adobe-cmaps-200406.tar.gz acro5-cmaps-2001.tar.gz} |
104 |
if use cjk; then |
105 |
cat "${FILESDIR}"/ghostscript-esp-8.15.2-cidfmap.cjk >> "${S}"/lib/cidfmap |
106 |
cat "${FILESDIR}"/ghostscript-esp-8.15.2-FAPIcidfmap.cjk >> "${S}"/lib/FAPIcidfmap |
107 |
cd "${S}"/Resource |
108 |
unpack adobe-cmaps-200406.tar.gz |
109 |
unpack acro5-cmaps-2001.tar.gz |
110 |
fi |
111 |
cd "${S}" |
112 |
|
113 |
# http://cups.org/espgs/str.php?L2000 |
114 |
epatch "${FILESDIR}"/ghostscript-esp-8.15.1-fPIC.patch |
115 |
|
116 |
# Security fix for bug #208999 |
117 |
epatch "${FILESDIR}"/ghostscript-8.60-CVE-2008-0411.diff |
118 |
|
119 |
if use djvu; then |
120 |
unpack gsdjvu-${GSDJVU_PV}.tar.gz |
121 |
cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" |
122 |
cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}"/src |
123 |
cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib |
124 |
cp "${S}"/src/contrib.mak "${S}"/src/contrib.mak.gsdjvu |
125 |
grep -q djvusep "${S}"/src/contrib.mak || \ |
126 |
cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}"/src/contrib.mak |
127 |
fi |
128 |
|
129 |
# search path fix |
130 |
sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \ |
131 |
-e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \ |
132 |
-e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \ |
133 |
src/Makefile.in || die "sed failed" |
134 |
sed -i -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ |
135 |
-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ |
136 |
src/Makefile.in src/*.mak || die "sed failed" |
137 |
|
138 |
cp /usr/share/automake-1.9/install-sh "${S}" |
139 |
AT_NOELIBTOOLIZE="yes" eautoreconf |
140 |
cd ijs |
141 |
AT_NOELIBTOOLIZE="yes" eautoreconf |
142 |
elibtoolize |
143 |
} |
144 |
|
145 |
src_compile() { |
146 |
econf $(use_with X x) \ |
147 |
$(use_enable gtk) \ |
148 |
$(use_enable cups) \ |
149 |
$(use_enable threads) \ |
150 |
$(use_with xml omni) \ |
151 |
--with-fontconfig \ |
152 |
--with-ijs \ |
153 |
--with-jbig2dec || die "econf failed" |
154 |
|
155 |
if use djvu; then |
156 |
sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile |
157 |
sed -i -e 's:(/\(Resource/[a-zA-Z/]*\)):(\1) findlibfile {pop} {pop &} |
158 |
ifelse:' lib/gs_res.ps |
159 |
fi |
160 |
|
161 |
emake -j1 so all || die "emake failed" |
162 |
|
163 |
cd ijs |
164 |
econf || die "ijs econf failed" |
165 |
emake || die "ijs emake failed" |
166 |
} |
167 |
|
168 |
src_install() { |
169 |
emake install_prefix="${D}" install soinstall || die "emake install failed" |
170 |
|
171 |
use djvu && dobin gsdjvu |
172 |
|
173 |
rm -fr "${D}"/usr/share/doc/${PF}/html/{README,PUBLIC} |
174 |
dodoc doc/README |
175 |
|
176 |
cd "${S}"/ijs |
177 |
emake DESTDIR="${D}" install || die "emake ijs install failed" |
178 |
} |
179 |
|
180 |
pkg_postinst() { |
181 |
ewarn "If you are upgrading from ghostscript-7 you need to rebuild" |
182 |
ewarn "gimp-print. Please run 'revdep-rebuild' to do this." |
183 |
} |
184 |
|
185 |
|
186 |
|
187 |
-- |
188 |
gentoo-commits@l.g.o mailing list |