1 |
pva 09/04/05 20:08:07 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ghostscript-gnu-8.62.0-r1.ebuild |
5 |
Log: |
6 |
Fixed multiple vulnerabilities, bug #264614, thank Robert Buchholz for report. |
7 |
(Portage version: 2.2_rc28/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.41 app-text/ghostscript-gnu/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gnu/ChangeLog?rev=1.41&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gnu/ChangeLog?rev=1.41&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gnu/ChangeLog?r1=1.40&r2=1.41 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-gnu/ChangeLog,v |
19 |
retrieving revision 1.40 |
20 |
retrieving revision 1.41 |
21 |
diff -u -r1.40 -r1.41 |
22 |
--- ChangeLog 20 Mar 2009 15:29:11 -0000 1.40 |
23 |
+++ ChangeLog 5 Apr 2009 20:08:06 -0000 1.41 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for app-text/ghostscript-gnu |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gnu/ChangeLog,v 1.40 2009/03/20 15:29:11 ranger Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gnu/ChangeLog,v 1.41 2009/04/05 20:08:06 pva Exp $ |
29 |
+ |
30 |
+*ghostscript-gnu-8.62.0-r1 (05 Apr 2009) |
31 |
+ |
32 |
+ 05 Apr 2009; Peter Volkov <pva@g.o> |
33 |
+ +files/ghostscript-gnu-8.62.0-CVE-misc.patch, |
34 |
+ +ghostscript-gnu-8.62.0-r1.ebuild: |
35 |
+ Fixed multiple vulnerabilities, bug #264614, thank Robert Buchholz for |
36 |
+ report. |
37 |
|
38 |
20 Mar 2009; Brent Baude <ranger@g.o> |
39 |
ghostscript-gnu-8.62.0.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-text/ghostscript-gnu/ghostscript-gnu-8.62.0-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gnu/ghostscript-gnu-8.62.0-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gnu/ghostscript-gnu-8.62.0-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ghostscript-gnu-8.62.0-r1.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/ghostscript-gnu/ghostscript-gnu-8.62.0-r1.ebuild,v 1.1 2009/04/05 20:08:06 pva Exp $ |
53 |
|
54 |
inherit eutils versionator flag-o-matic |
55 |
|
56 |
DESCRIPTION="GNU Ghostscript - patched GPL Ghostscript" |
57 |
HOMEPAGE="http://www.gnu.org/software/ghostscript/" |
58 |
|
59 |
MY_P=gnu-ghostscript-${PV} |
60 |
PVM=$(get_version_component_range 1-2) |
61 |
SRC_URI="cjk? ( ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200406.tar.gz |
62 |
ftp://ftp.gyve.org/pub/gs-cjk/acro5-cmaps-2001.tar.gz ) |
63 |
mirror://gnu/ghostscript/${MY_P}.tar.bz2 |
64 |
mirror://gentoo/ghostscript-gnu-8.62.0-CVE-2009-0583.patch.bz2" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
69 |
IUSE="X cups cjk gtk jpeg2k" |
70 |
|
71 |
DEP=" |
72 |
>=media-libs/jpeg-6b |
73 |
>=media-libs/libpng-1.2.5 |
74 |
>=sys-libs/zlib-1.1.4 |
75 |
>=media-libs/tiff-3.7 |
76 |
X? ( x11-libs/libXt x11-libs/libXext ) |
77 |
gtk? ( >=x11-libs/gtk+-2.0 ) |
78 |
cups? ( >=net-print/cups-1.1.20 ) |
79 |
!app-text/ghostscript-esp |
80 |
!app-text/ghostscript-gpl" |
81 |
|
82 |
RDEPEND="${DEP} |
83 |
cjk? ( media-fonts/arphicfonts |
84 |
media-fonts/kochi-substitute |
85 |
media-fonts/baekmuk-fonts ) |
86 |
media-fonts/gnu-gs-fonts-std" |
87 |
|
88 |
DEPEND="${DEP} |
89 |
gtk? ( dev-util/pkgconfig )" |
90 |
|
91 |
S=${WORKDIR}/${MY_P} |
92 |
|
93 |
src_unpack() { |
94 |
unpack ${A/adobe-cmaps-200406.tar.gz acro5-cmaps-2001.tar.gz} |
95 |
if use cjk; then |
96 |
cat "${FILESDIR}"/ghostscript-esp-8.15.2-cidfmap.cjk >> "${S}"/lib/cidfmap |
97 |
cat "${FILESDIR}"/ghostscript-esp-8.15.2-FAPIcidfmap.cjk >> "${S}"/lib/FAPIcidfmap |
98 |
cd "${S}"/Resource |
99 |
unpack adobe-cmaps-200406.tar.gz |
100 |
unpack acro5-cmaps-2001.tar.gz |
101 |
fi |
102 |
|
103 |
cd "${S}" |
104 |
|
105 |
# search path fix |
106 |
sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \ |
107 |
-e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \ |
108 |
-e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \ |
109 |
-e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ |
110 |
-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ |
111 |
Makefile.in src/*.mak || die "sed failed" |
112 |
|
113 |
epatch "${WORKDIR}/${P}-CVE-2009-0583.patch" #261087 |
114 |
epatch "${FILESDIR}/${P}-LDFLAGS-strip.patch" |
115 |
epatch "${FILESDIR}/${P}-CVE-misc.patch" #264614 |
116 |
} |
117 |
|
118 |
src_compile() { |
119 |
econf $(use_with X x) \ |
120 |
$(use_with jpeg2k jasper) \ |
121 |
$(use_enable cups) \ |
122 |
$(use_enable gtk) \ |
123 |
--with-ijs \ |
124 |
--with-jbig2dec \ |
125 |
--disable-compile-inits \ |
126 |
--enable-dynamic |
127 |
|
128 |
emake -j1 so all || die "emake failed" |
129 |
|
130 |
cd ijs || die |
131 |
econf |
132 |
emake || die "ijs emake failed" |
133 |
} |
134 |
|
135 |
src_install() { |
136 |
emake DESTDIR="${D}" install-so install || die "emake install failed" |
137 |
|
138 |
rm -fr "${D}"/usr/share/doc/${PF}/html/{README,PUBLIC} |
139 |
dodoc doc/README |
140 |
|
141 |
cd "${S}"/ijs |
142 |
emake DESTDIR="${D}" install || die "emake ijs install failed" |
143 |
} |