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-r3.ebuild
Date: Fri, 26 Nov 2010 23:07:41
Message-Id: 20101126225108.1F66820051@flycatcher.gentoo.org
1 vapier 10/11/26 22:51:08
2
3 Modified: ChangeLog
4 Added: wget-1.12-r3.ebuild
5 Log:
6 Add patch from upstream for SSL SAE #344939 by Michał Górny.
7
8 (Portage version: 2.2.0_alpha5/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.131 net-misc/wget/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/ChangeLog?rev=1.131&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/ChangeLog?rev=1.131&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/ChangeLog?r1=1.130&r2=1.131
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/wget/ChangeLog,v
20 retrieving revision 1.130
21 retrieving revision 1.131
22 diff -u -r1.130 -r1.131
23 --- ChangeLog 19 Sep 2010 17:50:58 -0000 1.130
24 +++ ChangeLog 26 Nov 2010 22:51:07 -0000 1.131
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-misc/wget
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/wget/ChangeLog,v 1.130 2010/09/19 17:50:58 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/wget/ChangeLog,v 1.131 2010/11/26 22:51:07 vapier Exp $
30 +
31 +*wget-1.12-r3 (26 Nov 2010)
32 +
33 + 26 Nov 2010; Mike Frysinger <vapier@g.o> +wget-1.12-r3.ebuild,
34 + +files/wget-1.12-sae.patch:
35 + Add patch from upstream for SSL SAE #344939 by Michał Górny.
36
37 19 Sep 2010; Raúl Porcel <armin76@g.o> wget-1.12-r2.ebuild:
38 s390 stable wrt #329941
39
40
41
42 1.1 net-misc/wget/wget-1.12-r3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/wget-1.12-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/wget-1.12-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: wget-1.12-r3.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-r3.ebuild,v 1.1 2010/11/26 22:51:07 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}"/${PN}-1.12-linking.patch
79 epatch "${FILESDIR}"/${PN}-1.12-sni.patch #301312
80 epatch "${FILESDIR}"/${P}-debug-tests.patch #286173
81 epatch "${FILESDIR}"/${P}-CVE-2010-2252.patch #329941
82 epatch "${FILESDIR}"/${P}-sae.patch #344939
83 }
84
85 src_configure() {
86 # openssl-0.9.8 now builds with -pthread on the BSD's
87 use elibc_FreeBSD && use ssl && append-ldflags -pthread
88
89 use static && append-ldflags -static
90 econf \
91 --disable-rpath \
92 $(use_with ssl) $(use_enable ssl opie) $(use_enable ssl digest) \
93 $(use_enable idn iri) \
94 $(use_enable ipv6) \
95 $(use_enable nls) \
96 $(use ssl && use_enable ntlm) \
97 $(use_enable debug)
98 }
99
100 src_install() {
101 emake DESTDIR="${D}" install || die
102 dodoc AUTHORS ChangeLog* MAILING-LIST NEWS README
103 dodoc doc/sample.wgetrc
104
105 use ipv6 && cat "${FILESDIR}"/wgetrc-ipv6 >> "${D}"/etc/wgetrc
106
107 sed -i \
108 -e 's:/usr/local/etc:/etc:g' \
109 "${D}"/etc/wgetrc \
110 "${D}"/usr/share/man/man1/wget.1 \
111 "${D}"/usr/share/info/wget.info
112 }
113
114 pkg_preinst() {
115 ewarn "The /etc/wget/wgetrc file has been relocated to /etc/wgetrc"
116 if [[ -e ${ROOT}/etc/wget/wgetrc ]] ; then
117 if [[ -e ${ROOT}/etc/wgetrc ]] ; then
118 ewarn "You have both /etc/wget/wgetrc and /etc/wgetrc ... you should delete the former"
119 else
120 einfo "Moving /etc/wget/wgetrc to /etc/wgetrc for you"
121 mv "${ROOT}"/etc/wget/wgetrc "${ROOT}"/etc/wgetrc
122 rmdir "${ROOT}"/etc/wget 2>/dev/null
123 fi
124 fi
125 }