Gentoo Archives: gentoo-commits

From: "Daniel Black (dragonheart)" <dragonheart@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/gnutls: ChangeLog gnutls-2.4.1-r2.ebuild gnutls-2.6.0-r2.ebuild gnutls-2.6.1.ebuild
Date: Tue, 18 Nov 2008 11:54:26
Message-Id: E1L2P9y-0003Qc-MU@stork.gentoo.org
1 dragonheart 08/11/18 11:54:22
2
3 Modified: ChangeLog
4 Added: gnutls-2.4.1-r2.ebuild gnutls-2.6.0-r2.ebuild
5 Removed: gnutls-2.6.1.ebuild
6 Log:
7 fixed cve patch as per bug #246976 - thanks parafin
8 (Portage version: 2.2_rc14/cvs/Linux 2.6.25-gentoo-r7 x86_64)
9
10 Revision Changes Path
11 1.174 net-libs/gnutls/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/gnutls/ChangeLog?rev=1.174&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/gnutls/ChangeLog?rev=1.174&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/gnutls/ChangeLog?r1=1.173&r2=1.174
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v
20 retrieving revision 1.173
21 retrieving revision 1.174
22 diff -u -r1.173 -r1.174
23 --- ChangeLog 18 Nov 2008 11:26:11 -0000 1.173
24 +++ ChangeLog 18 Nov 2008 11:54:22 -0000 1.174
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-libs/gnutls
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v 1.173 2008/11/18 11:26:11 dragonheart Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/ChangeLog,v 1.174 2008/11/18 11:54:22 dragonheart Exp $
30 +
31 +*gnutls-2.6.0-r2 (18 Nov 2008)
32 +*gnutls-2.4.1-r2 (18 Nov 2008)
33 +
34 + 18 Nov 2008; Daniel Black <dragonheart@g.o>
35 + +files/gnutls-2.2.5-CVE-2008-4989-V2.patch, +gnutls-2.4.1-r2.ebuild,
36 + +gnutls-2.6.0-r2.ebuild, -gnutls-2.6.1.ebuild:
37 + fixed cve patch as per bug #246976 - thanks parafin
38
39 18 Nov 2008; Daniel Black <dragonheart@g.o> gnutls-2.6.2.ebuild:
40 eapi problem - bug #247164 - thanks en.ABCD
41
42
43
44 1.1 net-libs/gnutls/gnutls-2.4.1-r2.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/gnutls/gnutls-2.4.1-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/gnutls/gnutls-2.4.1-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: gnutls-2.4.1-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2008 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-2.4.1-r2.ebuild,v 1.1 2008/11/18 11:54:22 dragonheart Exp $
54
55 inherit libtool eutils
56
57 DESCRIPTION="A TLS 1.0 and SSL 3.0 implementation for the GNU project"
58 HOMEPAGE="http://www.gnutls.org/"
59 SRC_URI="http://www.gnu.org/software/gnutls/releases/${P}.tar.bz2"
60 #SRC_URI="mirror://gnu/gnutls/${P}.tar.bz2"
61
62 # GPL-3 for the gnutls-extras library and LGPL for the gnutls library.
63 LICENSE="LGPL-2.1 GPL-3"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
66 IUSE="zlib lzo doc nls guile bindist"
67
68 RDEPEND="dev-libs/libgpg-error
69 >=dev-libs/libgcrypt-1.2.4
70 >=dev-libs/libtasn1-0.3.4
71 nls? ( virtual/libintl )
72 guile? ( dev-scheme/guile )
73 zlib? ( >=sys-libs/zlib-1.1 )
74 !bindist? ( lzo? ( >=dev-libs/lzo-2 ) )"
75 DEPEND="${RDEPEND}
76 sys-devel/libtool
77 doc? ( dev-util/gtk-doc )
78 nls? ( sys-devel/gettext )"
79
80 pkg_setup() {
81 if use guile && ! built_with_use dev-scheme/guile networking; then
82 eerror "You are trying to compile ${PN} package with USE=\"guile\""
83 eerror "while dev-scheme/guile does not have USE=\"networking\""
84 die
85 fi
86 if use lzo && use bindist; then
87 ewarn "lzo support was disabled for binary distribution of gnutls"
88 ewarn "due to licensing issues. See Bug 202381 for details."
89 epause 5
90 fi
91 }
92
93 src_unpack() {
94 unpack ${A}
95 cd "${S}"
96
97 epatch "${FILESDIR}"/${PN}-2.3.11+gcc-4.3.patch
98 epatch "${FILESDIR}"/gnutls-2.2.5-CVE-2008-4989-V2.patch
99
100 elibtoolize # for sane .so versioning on FreeBSD
101 }
102
103 src_compile() {
104 local myconf
105 use bindist && myconf="--without-lzo" || myconf="$(use_with lzo)"
106 econf \
107 $(use_with zlib) \
108 $(use_enable nls) \
109 $(use_enable guile) \
110 $(use_enable doc gtk-doc) \
111 ${myconf}
112 emake || die
113 }
114
115 src_install() {
116 emake DESTDIR="${D}" install || die
117
118 dodoc AUTHORS ChangeLog NEWS \
119 README THANKS doc/TODO
120
121 if use doc ; then
122 dodoc doc/README.autoconf doc/tex/gnutls.ps
123 docinto examples
124 dodoc doc/examples/*.c
125 fi
126 }
127
128
129
130 1.1 net-libs/gnutls/gnutls-2.6.0-r2.ebuild
131
132 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/gnutls/gnutls-2.6.0-r2.ebuild?rev=1.1&view=markup
133 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/gnutls/gnutls-2.6.0-r2.ebuild?rev=1.1&content-type=text/plain
134
135 Index: gnutls-2.6.0-r2.ebuild
136 ===================================================================
137 # Copyright 1999-2008 Gentoo Foundation
138 # Distributed under the terms of the GNU General Public License v2
139 # $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-2.6.0-r2.ebuild,v 1.1 2008/11/18 11:54:22 dragonheart Exp $
140
141 inherit eutils libtool autotools
142
143 DESCRIPTION="A TLS 1.0 and SSL 3.0 implementation for the GNU project"
144 HOMEPAGE="http://www.gnutls.org/"
145
146 MINOR_VERSION="${PV#*.}"
147 MINOR_VERSION="${MINOR_VERSION%.*}"
148 if [[ $((MINOR_VERSION % 2)) == 0 ]] ; then
149 #SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
150 SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
151 else
152 SRC_URI="ftp://alpha.gnu.org/gnu/${PN}/${P}.tar.bz2"
153 fi
154 unset MINOR_VERSION
155
156 # GPL-3 for the gnutls-extras library and LGPL for the gnutls library.
157 LICENSE="LGPL-2.1 GPL-3"
158 SLOT="0"
159 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
160 EAPI=1
161 IUSE="bindist +cxx doc guile lzo nls zlib"
162
163 RDEPEND="dev-libs/libgpg-error
164 >=dev-libs/libgcrypt-1.4.0
165 >=dev-libs/libtasn1-0.3.4
166 nls? ( virtual/libintl )
167 guile? ( dev-scheme/guile )
168 zlib? ( >=sys-libs/zlib-1.1 )
169 !bindist? ( lzo? ( >=dev-libs/lzo-2 ) )"
170 DEPEND="${RDEPEND}
171 sys-devel/libtool
172 doc? ( dev-util/gtk-doc )
173 nls? ( sys-devel/gettext )"
174
175 pkg_setup() {
176 if use guile && ! built_with_use dev-scheme/guile networking; then
177 eerror "You are trying to compile ${PN} package with USE=\"guile\""
178 eerror "while dev-scheme/guile does not have USE=\"networking\""
179 die
180 fi
181 if use lzo && use bindist; then
182 ewarn "lzo support was disabled for binary distribution of gnutls"
183 ewarn "due to licensing issues. See Bug 202381 for details."
184 epause 5
185 fi
186 }
187
188 src_unpack() {
189 unpack ${A}
190 cd "${S}"
191 rm m4/lt* m4/libtool.m4 build-aux/ltmain.sh
192 epatch "${FILESDIR}"/${P}-cxx-configure.in.patch
193 eautoreconf
194 epatch "${FILESDIR}"/gnutls-2.2.5-CVE-2008-4989-V2.patch
195 elibtoolize # for sane .so versioning on FreeBSD
196 }
197
198 src_compile() {
199 local myconf
200 use bindist && myconf="--without-lzo" || myconf="$(use_with lzo)"
201 econf \
202 $(use_with zlib) \
203 $(use_enable nls) \
204 $(use_enable guile) \
205 $(use_enable cxx) \
206 $(use_enable doc gtk-doc) \
207 ${myconf}
208 emake || die "emake failed"
209 }
210
211 src_install() {
212 emake DESTDIR="${D}" install || die "emake install failed"
213
214 dodoc AUTHORS ChangeLog NEWS README THANKS doc/TODO
215
216 if use doc ; then
217 dodoc doc/README.autoconf doc/tex/gnutls.ps
218 docinto examples
219 dodoc doc/examples/*.c
220 fi
221 }