Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/wget: ChangeLog wget-1.12-r2.ebuild
Date: Sat, 21 Aug 2010 22:18:30
Message-Id: 20100821221817.3858120051@flycatcher.gentoo.org
1 vapier 10/08/21 22:18:17
2
3 Modified: ChangeLog
4 Added: wget-1.12-r2.ebuild
5 Log:
6 Add fix from upstream for CVE-2010-2252 #329941 by Stefan Behte. Tweak by Sergei Trofimovich for IPv6 behavor in SNI patch #333839.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.123 net-misc/wget/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/ChangeLog?rev=1.123&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/ChangeLog?rev=1.123&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/ChangeLog?r1=1.122&r2=1.123
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/wget/ChangeLog,v
19 retrieving revision 1.122
20 retrieving revision 1.123
21 diff -u -r1.122 -r1.123
22 --- ChangeLog 14 Feb 2010 00:43:08 -0000 1.122
23 +++ ChangeLog 21 Aug 2010 22:18:17 -0000 1.123
24 @@ -1,6 +1,13 @@
25 # ChangeLog for net-misc/wget
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/wget/ChangeLog,v 1.122 2010/02/14 00:43:08 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/wget/ChangeLog,v 1.123 2010/08/21 22:18:17 vapier Exp $
29 +
30 +*wget-1.12-r2 (21 Aug 2010)
31 +
32 + 21 Aug 2010; Mike Frysinger <vapier@g.o> +wget-1.12-r2.ebuild,
33 + +files/wget-1.12-CVE-2010-2252.patch, files/wget-1.12-sni.patch:
34 + Add fix from upstream for CVE-2010-2252 #329941 by Stefan Behte. Tweak by
35 + Sergei Trofimovich for IPv6 behavor in SNI patch #333839.
36
37 14 Feb 2010; Mike Frysinger <vapier@g.o> wget-1.12-r1.ebuild:
38 Upgrade to EAPI=2 so we can set +ssl in IUSE #304887 by Kerin Millar.
39
40
41
42 1.1 net-misc/wget/wget-1.12-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/wget-1.12-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/wget-1.12-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: wget-1.12-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/wget/wget-1.12-r2.ebuild,v 1.1 2010/08/21 22:18:17 vapier Exp $
52
53 EAPI="2"
54
55 inherit eutils flag-o-matic
56
57 DESCRIPTION="Network utility to retrieve files from the WWW"
58 HOMEPAGE="http://www.gnu.org/software/wget/"
59 SRC_URI="mirror://gnu/wget/${P}.tar.bz2"
60
61 LICENSE="GPL-3"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
64 IUSE="debug idn ipv6 nls ntlm +ssl static"
65
66 RDEPEND="idn? ( net-dns/libidn )
67 ssl? ( >=dev-libs/openssl-0.9.6b )"
68 DEPEND="${RDEPEND}
69 nls? ( sys-devel/gettext )"
70
71 pkg_setup() {
72 if ! use ssl && use ntlm ; then
73 elog "USE=ntlm requires USE=ssl, so disabling ntlm support due to USE=-ssl"
74 fi
75 }
76
77 src_prepare() {
78 epatch "${FILESDIR}"/${P}-CVE-2010-2252.patch #329941
79 epatch "${FILESDIR}"/${PN}-1.12-linking.patch
80 epatch "${FILESDIR}"/${PN}-1.12-sni.patch #301312
81 epatch "${FILESDIR}"/${P}-debug-tests.patch #286173
82 }
83
84 src_configure() {
85 # openssl-0.9.8 now builds with -pthread on the BSD's
86 use elibc_FreeBSD && use ssl && append-ldflags -pthread
87
88 use static && append-ldflags -static
89 econf \
90 --disable-rpath \
91 $(use_with ssl) $(use_enable ssl opie) $(use_enable ssl digest) \
92 $(use_enable idn iri) \
93 $(use_enable ipv6) \
94 $(use_enable nls) \
95 $(use ssl && use_enable ntlm) \
96 $(use_enable debug)
97 }
98
99 src_install() {
100 emake DESTDIR="${D}" install || die
101 dodoc AUTHORS ChangeLog* MAILING-LIST NEWS README
102 dodoc doc/sample.wgetrc
103
104 use ipv6 && cat "${FILESDIR}"/wgetrc-ipv6 >> "${D}"/etc/wgetrc
105
106 sed -i \
107 -e 's:/usr/local/etc:/etc:g' \
108 "${D}"/etc/wgetrc \
109 "${D}"/usr/share/man/man1/wget.1 \
110 "${D}"/usr/share/info/wget.info
111 }
112
113 pkg_preinst() {
114 ewarn "The /etc/wget/wgetrc file has been relocated to /etc/wgetrc"
115 if [[ -e ${ROOT}/etc/wget/wgetrc ]] ; then
116 if [[ -e ${ROOT}/etc/wgetrc ]] ; then
117 ewarn "You have both /etc/wget/wgetrc and /etc/wgetrc ... you should delete the former"
118 else
119 einfo "Moving /etc/wget/wgetrc to /etc/wgetrc for you"
120 mv "${ROOT}"/etc/wget/wgetrc "${ROOT}"/etc/wgetrc
121 rmdir "${ROOT}"/etc/wget 2>/dev/null
122 fi
123 fi
124 }