pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/wget Update to 1.10:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/80b5c770039e
branches:  trunk
changeset: 496562:80b5c770039e
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Jul 02 15:10:23 2005 +0000

description:
Update to 1.10:

* Changes in Wget 1.10.

** Downloading files larger than 2GB, sometimes referred to as "large
files", now works on systems that support them.  This includes the
majority of modern Unixes, as well as MS Windows.

** IPv6 is now supported by Wget.  Unlike the experimental code in
1.9, this version supports dual-family systems.  The new flags
`--inet4' and `--inet6' (or `-4' and `-6' for short) force the use of
IPv4 and IPv6 respectively.  Note that IPv6 support has not yet been
tested on Windows.

** Microsoft's proprietary "NTLM" method of HTTP authentication is now
supported.  This authentication method is undocumented and only used
by IIS.  Note that *proxy* authentication is not supported in this
release; you can only authenticate to the target web site.

** Wget no longer truncates partially downloaded files when download
has to start over because the server doesn't support Range.  Instead,
with such servers Wget now simply ignores the data up to the byte
where the last attempt left off, and only then continues appending to
the file.  That way the downloaded file never shrinks, and download
retries from servers without support for partial downloads work even
when downloading to stdout.

** SSL/TLS changes:

*** SSL/TLS downloads now attempt to verify the server's certificate
against the recognized certificate authorities.  This requires CA
certificates to have been installed in a location visible to the
OpenSSL library.  If this is not the case, you can get the bundle
yourself from a source you trust (for example, the bundle extracted
from Mozilla available at http://curl.haxx.se/docs/caextract.html),
and point Wget to the PEM file using the `--ca-certificate'
command-line option or the corresponding `.wgetrc' command.

*** Secure downloads now verify that the host name in the URL matches
the "common name" in the certificate presented by the server.

*** Although the above checks provide more secure downloads, they
unavoidably break interoperability with some sites that worked with
previous versions, particularly those using self-signed, expired, or
otherwise invalid certificates.  If you encounter "certificate
verification" errors or complaints that "common name doesn't match
requested host name" and are convinced of the site's authenticity, you
can use `--no-check-certificate' to bypass both checks.

*** Talking to SSL/TLS servers over proxies now actually works.
Previous versions of Wget erroneously sent GET requests for https
URLs.  Wget 1.10 utilizes the CONNECT method designed for this
purpose.

*** The SSL/TLS-related options have been redesigned and, for the
first time, documented in the manual.  The old, undocumented, options
are no longer supported.

** Passive FTP is now the default FTP transfer mode.  Use
`--no-passive-ftp' or specify `passive_ftp = off' in your init file to
revert to the old behavior.

** The `--header' option can now be used to override generated
headers.  For example, `wget --header="Host: foo.bar"
http://127.0.0.1' tells Wget to connect to localhost, but to specify
"foo.bar" in the `Host' header.  In previous versions such use of
`--header' lead to duplicate headers in HTTP requests.

** The responses without headers, aka "HTTP 0.9" responses, are
detected and handled.  Although HTTP 0.9 has long been obsolete, it is
still occasionally used, sometimes by accident.

** The progress bar is now updated regularly even when the data does
not arrive from the network.

** Wget no longer preserves permissions of files retrieved by FTP by
default.  Anonymous FTP servers frequently use permissions like "664",
which might not be what the user wants.  The new option
`--preserve-permissions' and the corresponding `.wgetrc' variable can
be used to revert to the old behavior.

** The new option `--protocol-directories' instructs Wget to also use
the protocol name as a directory component of local file names.

** Options that previously unconditionally set or unset various flags
are now boolean options that can be invoked as either `--OPTION' or
`--no-OPTION'.  Options that required an argument "on" or "off" have
also been changed this way, but they still accept the old syntax for
backward compatibility.  For example, instead of `--glob=off' you can
write `--no-glob'.

Allowing `--no-OPTION' for every `--OPTION' and the other way around
is useful because it allows the user to override non-default behavior
specified via `.wgetrc'.

** The new option `--keep-session-cookies' causes `--save-cookies' to
save session cookies (normally only kept in memory) along with the
permanent ones.  This is useful because many sites track important
information, such as whether the user has authenticated, in session
cookies.  With this option multiple Wget runs are treated as a single
browser session.

** Wget now supports the --ftp-user and --ftp-password command
switches to set username and password for FTP, and the --user and
--password command switches to set username and password for both FTP
and HTTP.  The --http-passwd and --proxy-passwd command switches have
been renamed to --http-password and --proxy-password respectively, and
the related http_passwd and proxy_passwd .wgetrc commands to
http_password and proxy_password respectively.  The login and passwd
.wgetrc commands have been deprecated.

* `wget -b' now works correctly under Windows.

diffstat:

 net/wget/Makefile         |    6 +-
 net/wget/PLIST            |   11 ++-
 net/wget/distinfo         |   16 +--
 net/wget/patches/patch-aa |  109 -------------------------
 net/wget/patches/patch-ab |  103 ------------------------
 net/wget/patches/patch-ac |  196 ----------------------------------------------
 net/wget/patches/patch-ad |   30 -------
 net/wget/patches/patch-ag |    8 +-
 net/wget/patches/patch-ah |    6 +-
 9 files changed, 25 insertions(+), 460 deletions(-)

diffs (truncated from 580 to 300 lines):

diff -r 65ac598df0dc -r 80b5c770039e net/wget/Makefile
--- a/net/wget/Makefile Sat Jul 02 14:46:06 2005 +0000
+++ b/net/wget/Makefile Sat Jul 02 15:10:23 2005 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.82 2005/06/24 17:28:15 wiz Exp $
+# $NetBSD: Makefile,v 1.83 2005/07/02 15:10:23 wiz Exp $
 
-DISTNAME=      wget-1.9.1
-PKGREVISION=   5
+DISTNAME=      wget-1.10
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GNU:=wget/}
 
@@ -15,6 +14,7 @@
 USE_PKGINSTALL=                YES
 
 GNU_CONFIGURE=         YES
+USE_OLD_DES_API=       YES
 USE_PKGLOCALEDIR=      YES
 USE_LIBTOOL=           YES
 
diff -r 65ac598df0dc -r 80b5c770039e net/wget/PLIST
--- a/net/wget/PLIST    Sat Jul 02 14:46:06 2005 +0000
+++ b/net/wget/PLIST    Sat Jul 02 15:10:23 2005 +0000
@@ -1,15 +1,21 @@
-@comment $NetBSD: PLIST,v 1.9 2004/03/09 15:23:53 seb Exp $
+@comment $NetBSD: PLIST,v 1.10 2005/07/02 15:10:23 wiz Exp $
 bin/wget
 man/man1/wget.1
+share/examples/wget/wgetrc
 ${PKGLOCALEDIR}/locale/bg/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/cs/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/de/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/el/LC_MESSAGES/wget.mo
+${PKGLOCALEDIR}/locale/en_GB/LC_MESSAGES/wget.mo
+${PKGLOCALEDIR}/locale/eo/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/es/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/et/LC_MESSAGES/wget.mo
+${PKGLOCALEDIR}/locale/eu/LC_MESSAGES/wget.mo
+${PKGLOCALEDIR}/locale/fi/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/wget.mo
+${PKGLOCALEDIR}/locale/ga/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/gl/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/he/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/hr/LC_MESSAGES/wget.mo
@@ -24,10 +30,11 @@
 ${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/sk/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/sl/LC_MESSAGES/wget.mo
+${PKGLOCALEDIR}/locale/sr/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/uk/LC_MESSAGES/wget.mo
+${PKGLOCALEDIR}/locale/vi/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES/wget.mo
 ${PKGLOCALEDIR}/locale/zh_TW/LC_MESSAGES/wget.mo
-share/examples/wget/wgetrc
 @dirrm share/examples/wget
diff -r 65ac598df0dc -r 80b5c770039e net/wget/distinfo
--- a/net/wget/distinfo Sat Jul 02 14:46:06 2005 +0000
+++ b/net/wget/distinfo Sat Jul 02 15:10:23 2005 +0000
@@ -1,11 +1,7 @@
-$NetBSD: distinfo,v 1.25 2005/02/24 12:14:07 agc Exp $
+$NetBSD: distinfo,v 1.26 2005/07/02 15:10:23 wiz Exp $
 
-SHA1 (wget-1.9.1.tar.gz) = 0597a4f47b056e3e60cf7d08c9409d67358e7099
-RMD160 (wget-1.9.1.tar.gz) = 46db7bd647f7482a1066bac10fb0836f70e7832f
-Size (wget-1.9.1.tar.gz) = 1322378 bytes
-SHA1 (patch-aa) = 6ddfbceb3d66c8bce99695cf5be50b7b91aee7b2
-SHA1 (patch-ab) = b00db7f71a3add563121066a3bfd378019d206bf
-SHA1 (patch-ac) = 5ad24408048d2b2264b101369959dcac25bb1d9f
-SHA1 (patch-ad) = 7605ad58dfc5e6982a06437d953ec8ceb55c86e7
-SHA1 (patch-ag) = d13900b60f52cac6c71f701026e6de8b32f00354
-SHA1 (patch-ah) = e31060497c77f87f0ed4cab44e63597654ca0525
+SHA1 (wget-1.10.tar.gz) = 2204e65f08e23b3cf5ff83210a669d2e5267a2d0
+RMD160 (wget-1.10.tar.gz) = 4c3368fd698751a54d812c8ef5a4bae2136d9edf
+Size (wget-1.10.tar.gz) = 1593119 bytes
+SHA1 (patch-ag) = c501bc48070ba9b71d51d6cdebf5c3e5d5aa5ffb
+SHA1 (patch-ah) = d4d1e152c5d65e743489b325397080060ac1de37
diff -r 65ac598df0dc -r 80b5c770039e net/wget/patches/patch-aa
--- a/net/wget/patches/patch-aa Sat Jul 02 14:46:06 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,109 +0,0 @@
-$NetBSD: patch-aa,v 1.7 2005/01/25 20:07:25 bouyer Exp $
-
---- src/connect.c.orig Sat Nov  1 15:08:22 2003
-+++ src/connect.c      Sun Jan 23 22:11:24 2005
-@@ -155,11 +155,11 @@
-   int sock, save_errno;
- 
-   /* Set port and protocol */
--  wget_sockaddr_set_address (&sa, ip_default_family, port, addr);
-+  wget_sockaddr_set_address (&sa, port, addr, addr->family);
- 
-   if (!silent)
-     {
--      char *pretty_addr = pretty_print_address (addr);
-+      char *pretty_addr = pretty_print_address (addr->bytes);
-       if (connection_host_name
-         && 0 != strcmp (connection_host_name, pretty_addr))
-       logprintf (LOG_VERBOSE, _("Connecting to %s[%s]:%hu... "),
-@@ -170,7 +170,7 @@
-     }
- 
-   /* Make an internet socket, stream type.  */
--  sock = socket (ip_default_family, SOCK_STREAM, 0);
-+  sock = socket (addr->family, SOCK_STREAM, 0);
-   if (sock < 0)
-     goto out;
- 
-@@ -196,8 +196,8 @@
-     {
-       /* Bind the client side to the requested address. */
-       wget_sockaddr bsa;
--      wget_sockaddr_set_address (&bsa, ip_default_family, 0, &bind_address);
--      if (bind (sock, &bsa.sa, sockaddr_len ()))
-+      wget_sockaddr_set_address (&bsa, 0, &bind_address, bind_address.family);
-+      if (bind (sock, &bsa.sa, sockaddr_len (bind_address.family)))
-       {
-         CLOSE (sock);
-         sock = -1;
-@@ -206,7 +206,7 @@
-     }
- 
-   /* Connect the socket to the remote host.  */
--  if (connect_with_timeout (sock, &sa.sa, sockaddr_len (),
-+  if (connect_with_timeout (sock, &sa.sa, sockaddr_len (addr->family),
-                           opt.connect_timeout) < 0)
-     {
-       CLOSE (sock);
-@@ -248,8 +248,11 @@
- 
-       sock = connect_to_one (&addr, port, silent);
-       if (sock >= 0)
--      /* Success. */
--      return sock;
-+        {
-+        /* Success. */
-+          ip_default_family = addr.family;
-+        return sock;
-+        }
- 
-       address_list_set_faulty (al, i);
- 
-@@ -316,9 +319,10 @@
- #endif
- 
-   resolve_bind_address ();
--  wget_sockaddr_set_address (&srv, ip_default_family, htons (*port),
--                           bind_address_resolved ? &bind_address : NULL);
--  if (bind (msock, &srv.sa, sockaddr_len ()) < 0)
-+  wget_sockaddr_set_address (&srv, htons (*port),
-+                           bind_address_resolved ? &bind_address : NULL,
-+                             family);
-+  if (bind (msock, &srv.sa, sockaddr_len (family)) < 0)
-     {
-       CLOSE (msock);
-       msock = -1;
-@@ -327,7 +331,7 @@
-   DEBUGP (("Master socket fd %d bound.\n", msock));
-   if (!*port)
-     {
--      socklen_t sa_len = sockaddr_len ();
-+      socklen_t sa_len = sockaddr_len (family);
-       if (getsockname (msock, &srv.sa, &sa_len) < 0)
-       {
-         CLOSE (msock);
-@@ -389,7 +393,7 @@
- uerr_t
- acceptport (int *sock)
- {
--  socklen_t addrlen = sockaddr_len ();
-+  socklen_t addrlen = sockaddr_len (ip_default_family);
- 
- #ifdef HAVE_SELECT
-   if (opt.connect_timeout)
-@@ -429,11 +433,13 @@
-     {
- #ifdef ENABLE_IPV6
-     case AF_INET6:
--      memcpy (ip, &mysrv.sin6.sin6_addr, 16);
-+      memcpy (ip->bytes, &mysrv.sin6.sin6_addr, 16);
-+      ip->family = AF_INET6;
-       return 1;
- #endif
-     case AF_INET:
--      map_ipv4_to_ip ((ip4_address *)&mysrv.sin.sin_addr, ip);
-+      memcpy (ip->bytes, &mysrv.sin.sin_addr, 4);
-+      ip->family = AF_INET;
-       return 1;
-     default:
-       abort ();
diff -r 65ac598df0dc -r 80b5c770039e net/wget/patches/patch-ab
--- a/net/wget/patches/patch-ab Sat Jul 02 14:46:06 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,103 +0,0 @@
-$NetBSD: patch-ab,v 1.7 2005/01/25 20:07:25 bouyer Exp $
-
---- src/ftp-basic.c.orig       Sat Nov  8 20:17:55 2003
-+++ src/ftp-basic.c    Sun Jan 23 22:20:35 2005
-@@ -267,7 +267,7 @@
- 
-   /* Setting port to 0 lets the system choose a free port.  */
-   port = 0;
--  err = bindport (&port, ip_default_family);
-+  err = bindport (&port, AF_INET6);
-   if (err != BINDOK)  /* Bind the port.  */
-     return err;
- 
-@@ -275,7 +275,8 @@
-   if (!conaddr (RBUF_FD (rbuf), &in_addr))
-     /* Huh?  This is not BINDERR! */
-     return BINDERR;
--  inet_ntop (AF_INET6, &in_addr, ipv6, sizeof (ipv6));
-+  inet_ntop (AF_INET6, in_addr.bytes, ipv6, sizeof (ipv6));
-+  in_addr.family = AF_INET6;
- 
-   /* Construct the argument of EPRT (of the form |2|IPv6.ascii|PORT.ascii|). */
-   bytes = alloca (3 + strlen (ipv6) + 1 + numdigit (port) + 1 + 1);
-@@ -319,8 +320,6 @@
-   char bytes[6 * 4 +1];
- 
-   ip_address in_addr;
--  ip4_address in_addr_4;
--  unsigned char *in_addr4_ptr = (unsigned char *)&in_addr_4;
- 
-   int nwritten;
-   unsigned short port;
-@@ -347,16 +346,14 @@
-   if (!conaddr (RBUF_FD (rbuf), &in_addr))
-     /* Huh?  This is not BINDERR! */
-     return BINDERR;
--  if (!map_ip_to_ipv4 (&in_addr, &in_addr_4))
--    return BINDERR;
- 
-   /* Construct the argument of PORT (of the form a,b,c,d,e,f).  Port
-      is unsigned short so (unsigned) (port & 0xff000) >> 8 is the same
-      like port >> 8
-    */
-   sprintf (bytes, "%d,%d,%d,%d,%d,%d",
--         in_addr4_ptr[0], in_addr4_ptr[1], in_addr4_ptr[2], in_addr4_ptr[3],
--         port >> 8, port & 0xff);
-+         in_addr.bytes[0], in_addr.bytes[1], in_addr.bytes[2],
-+           in_addr.bytes[3], port >> 8, port & 0xff);
-   /* Send PORT request.  */
-   request = ftp_request ("PORT", bytes);
-   nwritten = iwrite (RBUF_FD (rbuf), request, strlen (request));
-@@ -426,10 +423,12 @@
-     switch(remote.sa.sa_family)
-       {
-         case AF_INET6:
--          memcpy (addr, &remote.sin6.sin6_addr, 16);
-+          memcpy (&addr->bytes[0], &remote.sin6.sin6_addr, 16);
-+          addr->family =   AF_INET6;
-         break;
-       case AF_INET:  
--          map_ipv4_to_ip ((ip4_address *)&ipv4_sock->sin_addr, addr);
-+          memcpy (&addr->bytes[0], &remote.sin.sin_addr, 4);
-+          addr->family =   AF_INET;
-         break;
-       default:
-         abort();
-@@ -454,15 +453,12 @@
-   unsigned char addr4[4];
- 
- #ifdef ENABLE_IPV6
--  if (ip_default_family == AF_INET6) 
--    {
-       err = ftp_epsv (rbuf, addr, port, "2"); /* try IPv6 with EPSV */
-       if (FTPOK == err) 
-         return FTPOK;
-       err = ftp_epsv (rbuf, addr, port, "1"); /* try IPv4 with EPSV */
-       if (FTPOK == err) 
-         return FTPOK;
--    }
- #endif  
-   /* Form the request.  */
-   request = ftp_request ("PASV", NULL);
-@@ -505,9 +501,8 @@
-           return FTPINVPASV;
-         }
-     }
--
--  /* Eventually make an IPv4 in IPv6 adress if needed */
--  map_ipv4_to_ip ((ip4_address *)addr4, addr);
-+  memcpy(addr->bytes, addr4, 4);
-+  addr->family = AF_INET;
- 
-   *port=0;
-   for (; ISDIGIT (*s); s++)
-@@ -526,7 +521,7 @@
-       port2 = (*s - '0') + 10 * port2;
-     *port = (*port) * 256 + port2;
-   }
--  xfree (respline);
-+  xfree (respline); 
-   return FTPOK;
- }



Home | Main Index | Thread Index | Old Index