Reinhard Max 2011-10-19 09:57:52 +00:00 committed by Git OBS Bridge
parent 5f97189cb9
commit 0d2f9cf83f
7 changed files with 94 additions and 80 deletions

View File

@ -1,16 +0,0 @@
=== modified file 'src/openssl.c'
--- src/openssl.c 2011-04-04 14:56:51 +0000
+++ src/openssl.c 2011-04-11 09:08:39 +0000
@@ -186,9 +186,11 @@
case secure_protocol_auto:
meth = SSLv23_client_method ();
break;
+#ifndef OPENSSL_NO_SSL2
case secure_protocol_sslv2:
meth = SSLv2_client_method ();
break;
+#endif
case secure_protocol_sslv3:
meth = SSLv3_client_method ();
break;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c823d938e2f849305a101c0860229b123d7564c26470fdac9118d85e3c7dba9a
size 1609032

3
wget-1.13.4.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:12a839a5f622e82d4f7b4a75ae09ed4b084658468c9f90796480754f5d96d1d6
size 1453220

View File

@ -1,9 +1,9 @@
Index: wget-1.12/configure.ac Index: configure.ac
=================================================================== ===================================================================
--- wget-1.12.orig/configure.ac --- configure.ac.orig
+++ wget-1.12/configure.ac +++ configure.ac
@@ -353,6 +353,22 @@ then @@ -338,6 +338,22 @@ else
AC_DEFINE([HAVE_MD5], 1, [Define if we're compiling support for MD5.]) fi
fi fi
+dnl +dnl
@ -25,24 +25,24 @@ Index: wget-1.12/configure.ac
dnl ********************************************************************** dnl **********************************************************************
dnl Checks for IPv6 dnl Checks for IPv6
dnl ********************************************************************** dnl **********************************************************************
Index: wget-1.12/src/Makefile.am Index: src/Makefile.am
=================================================================== ===================================================================
--- wget-1.12.orig/src/Makefile.am --- src/Makefile.am.orig
+++ wget-1.12/src/Makefile.am +++ src/Makefile.am
@@ -36,7 +36,7 @@ endif @@ -37,7 +37,7 @@ endif
# The following line is losing on some versions of make! # The following line is losing on some versions of make!
DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\" DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
-LIBS = @LIBSSL@ @LIBGNUTLS@ @LIBICONV@ @LIBINTL@ @LIBS@ -LIBS = @LIBICONV@ @LIBINTL@ @LIBS@ $(LIB_CLOCK_GETTIME)
+LIBS = @LIBSSL@ @LIBGNUTLS@ @LIBICONV@ @LIBINTL@ @libproxy_LIBS@ @LIBS@ +LIBS = @LIBICONV@ @LIBINTL@ @libproxy_LIBS@ @LIBS@ $(LIB_CLOCK_GETTIME)
bin_PROGRAMS = wget EXTRA_DIST = css.l css.c css_.c build_info.c.in
wget_SOURCES = cmpt.c connect.c convert.c cookies.c ftp.c \
Index: wget-1.12/src/retr.c Index: src/retr.c
=================================================================== ===================================================================
--- wget-1.12.orig/src/retr.c --- src/retr.c.orig
+++ wget-1.12/src/retr.c +++ src/retr.c
@@ -55,6 +55,10 @@ as that of the covered work. */ @@ -54,6 +54,10 @@ as that of the covered work. */
#include "html-url.h" #include "html-url.h"
#include "iri.h" #include "iri.h"
@ -53,7 +53,7 @@ Index: wget-1.12/src/retr.c
/* Total size of downloaded files. Used to enforce quota. */ /* Total size of downloaded files. Used to enforce quota. */
SUM_SIZE_INT total_downloaded_bytes; SUM_SIZE_INT total_downloaded_bytes;
@@ -1134,7 +1138,40 @@ getproxy (struct url *u) @@ -1182,7 +1186,40 @@ getproxy (struct url *u)
break; break;
} }
if (!proxy || !*proxy) if (!proxy || !*proxy)

View File

@ -1,8 +1,6 @@
https://savannah.gnu.org/bugs/?func=detailitem&item_id=26786 --- src/host.c
=== modified file 'src/host.c'
--- src/host.c.orig
+++ src/host.c +++ src/host.c
@@ -904,3 +904,19 @@ host_cleanup (void) @@ -914,3 +914,19 @@ host_cleanup (void)
host_name_addresses_map = NULL; host_name_addresses_map = NULL;
} }
} }
@ -22,18 +20,18 @@ https://savannah.gnu.org/bugs/?func=detailitem&item_id=26786
+#endif +#endif
+ return false; + return false;
+} +}
--- src/host.h.orig --- src/host.h
+++ src/host.h +++ src/host.h
@@ -101,5 +101,5 @@ bool accept_domain (struct url *); @@ -102,5 +102,5 @@ bool accept_domain (struct url *);
bool sufmatch (const char **, const char *); bool sufmatch (const char **, const char *);
void host_cleanup (void); void host_cleanup (void);
- -
+bool is_ip_address(const char *); +bool is_ip_address(const char *);
#endif /* HOST_H */ #endif /* HOST_H */
--- src/http.c.orig --- src/http.c
+++ src/http.c +++ src/http.c
@@ -1762,7 +1762,7 @@ gethttp (struct url *u, struct http_stat @@ -1909,7 +1909,7 @@ gethttp (struct url *u, struct http_stat
if (conn->scheme == SCHEME_HTTPS) if (conn->scheme == SCHEME_HTTPS)
{ {
@ -42,10 +40,10 @@ https://savannah.gnu.org/bugs/?func=detailitem&item_id=26786
{ {
fd_close (sock); fd_close (sock);
return CONSSLERR; return CONSSLERR;
--- src/openssl.c.orig --- src/openssl.c
+++ src/openssl.c +++ src/openssl.c
@@ -42,12 +42,12 @@ as that of the covered work. */ @@ -40,12 +40,12 @@ as that of the covered work. */
#include <openssl/x509.h> #include <openssl/x509v3.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/rand.h> #include <openssl/rand.h>
- -
@ -56,10 +54,10 @@ https://savannah.gnu.org/bugs/?func=detailitem&item_id=26786
#include "ssl.h" #include "ssl.h"
- -
+#include "host.h" +#include "host.h"
/* Application-wide SSL context. This is common to all SSL #ifdef WINDOWS
connections. */ # include <w32sock.h>
static SSL_CTX *ssl_ctx; #endif
@@ -173,11 +173,15 @@ ssl_init () @@ -175,11 +175,15 @@ ssl_init ()
_("Could not seed PRNG; consider using --random-file.\n")); _("Could not seed PRNG; consider using --random-file.\n"));
goto error; goto error;
} }
@ -76,7 +74,7 @@ https://savannah.gnu.org/bugs/?func=detailitem&item_id=26786
switch (opt.secure_protocol) switch (opt.secure_protocol)
{ {
@@ -237,7 +241,10 @@ ssl_init () @@ -239,7 +243,10 @@ ssl_init ()
/* The OpenSSL library can handle renegotiations automatically, so /* The OpenSSL library can handle renegotiations automatically, so
tell it to do so. */ tell it to do so. */
SSL_CTX_set_mode (ssl_ctx, SSL_MODE_AUTO_RETRY); SSL_CTX_set_mode (ssl_ctx, SSL_MODE_AUTO_RETRY);
@ -88,7 +86,7 @@ https://savannah.gnu.org/bugs/?func=detailitem&item_id=26786
return true; return true;
error: error:
@@ -392,7 +399,7 @@ static struct transport_implementation o @@ -393,7 +400,7 @@ static struct transport_implementation o
Returns true on success, false on failure. */ Returns true on success, false on failure. */
bool bool
@ -97,7 +95,7 @@ https://savannah.gnu.org/bugs/?func=detailitem&item_id=26786
{ {
SSL *conn; SSL *conn;
struct openssl_transport_context *ctx; struct openssl_transport_context *ctx;
@@ -403,6 +410,18 @@ ssl_connect_wget (int fd) @@ -404,6 +411,18 @@ ssl_connect_wget (int fd)
conn = SSL_new (ssl_ctx); conn = SSL_new (ssl_ctx);
if (!conn) if (!conn)
goto error; goto error;
@ -113,10 +111,10 @@ https://savannah.gnu.org/bugs/?func=detailitem&item_id=26786
+ } + }
+ } + }
+#endif +#endif
if (!SSL_set_fd (conn, fd)) #ifndef FD_TO_SOCKET
goto error; # define FD_TO_SOCKET(X) (X)
SSL_set_connect_state (conn); #endif
--- src/ssl.h.orig --- src/ssl.h
+++ src/ssl.h +++ src/ssl.h
@@ -33,7 +33,7 @@ as that of the covered work. */ @@ -33,7 +33,7 @@ as that of the covered work. */
#define GEN_SSLFUNC_H #define GEN_SSLFUNC_H
@ -127,14 +125,3 @@ https://savannah.gnu.org/bugs/?func=detailitem&item_id=26786
bool ssl_check_certificate (int, const char *); bool ssl_check_certificate (int, const char *);
#endif /* GEN_SSLFUNC_H */ #endif /* GEN_SSLFUNC_H */
--- src/iri.c.orig
+++ src/iri.c
@@ -114,7 +114,7 @@ check_encoding_name (char *encoding)
static bool
open_locale_to_utf8 (void)
{
-
+ return true;
}
/* Try converting string str from locale to UTF-8. Return a new string

View File

@ -1,3 +1,50 @@
-------------------------------------------------------------------
Wed Oct 19 09:34:59 UTC 2011 - max@suse.com
- New version: 1.13.4:
* Now --timestamping and --continue work well together.
* Return a network failure when FTP downloads fail and
--timestamping is specified.
* Support HTTP/1.1
* Fix some portability issues.
* Handle properly malformed status line in a HTTP response.
* Ignore zero length domains in $no_proxy.
* Exit with failure if -k is specified and -O is not a regular
file.
* Cope better with unclosed html tags.
* Print diagnostic messages to stderr, not stdout.
* Do not use an additional HEAD request when
--content-disposition is used, but use directly GET.
* Report the average transfer speed correctly when multiple
URLs are specified and -c influences the transferred data
amount.
* By default, on server redirects, use the original URL to get
the local file name. Close CVE-2010-2252. This introduces a
backward-incompatibility; any script that relies on the old
behaviour must use --trust-server-names.
* Fix a problem when -k is used and some URLs are specified
trough CSS.
* Convert correctly URLs that need to be encoded to local files
when following links.
* Use persistent connections with proxies supporting them.
* Print the total download time as part of the summary for
recursive downloads.
* Now it is possible to specify a different startup
configuration file trough the --config option.
* Fix an infinite loop with the error '<filename> has sprung
into existence' on a network error and -nc is used.
* Now --adjust-extension does not modify the file extension if
the file ends in .htm.
* Support HTTP/1.1 307 redirects keep request method.
* Now --no-parent doesn't fetch undesired files if HTTP and
HTTPS are used by the same host on different pages.
* Do not attempt to remove the file if it is not in the accept
rules but it is the output destination file.
* Introduce `show_all_dns_entries' to print all IP addresses
corresponding to a DNS name when it is resolved.
- Adjuct patches to the new version.
- wget-1.12-nosslv2.patch got included upstream.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Oct 15 18:19:59 UTC 2011 - crrodriguez@opensuse.org Sat Oct 15 18:19:59 UTC 2011 - crrodriguez@opensuse.org

View File

@ -18,24 +18,24 @@
Name: wget Name: wget
Version: 1.12 Version: 1.13.4
Release: 5 Release: 5
License: GPLv3+ License: GPLv3+
Summary: A Tool for Mirroring FTP and HTTP Servers Summary: A Tool for Mirroring FTP and HTTP Servers
Url: http://www.gnu.org/software/wget/ Url: http://www.gnu.org/software/wget/
Group: Productivity/Networking/Web/Utilities Group: Productivity/Networking/Web/Utilities
Source: %name-%version.tar.bz2 Source: %name-%version.tar.xz
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches # PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches
Patch0: wgetrc.patch Patch0: wgetrc.patch
# PATCH-FEATURE-UPSTREAM wget-libproxy.patch dimstar@opensuse.org -- Add libproxy support to wget # PATCH-FEATURE-UPSTREAM wget-libproxy.patch dimstar@opensuse.org -- Add libproxy support to wget
Patch1: wget-libproxy.patch Patch1: wget-libproxy.patch
Patch2: wget-1.12-nosslv2.patch
Patch3: wget-sni.patch Patch3: wget-sni.patch
BuildRequires: libpng-devel BuildRequires: libpng-devel
BuildRequires: libproxy-devel BuildRequires: libproxy-devel
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: libidn-devel BuildRequires: libidn-devel
BuildRequires: xz
PreReq: %install_info_prereq PreReq: %install_info_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -46,22 +46,18 @@ This can be done in script files or via the command line.
%prep %prep
%setup -q %setup -q
%patch0 %patch0
%patch1 -p1 %patch1
%patch2
%patch3 %patch3
%build %build
./autogen.sh autoreconf --force
%configure %configure --with-ssl=openssl
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%makeinstall %makeinstall
%find_lang %{name} %find_lang %{name}
%clean
rm -rf %{buildroot};
%post %post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz