Friday, November 03, 2023

new net/wget2

Please find attached a new port for wget2. tb@ requested to have this in
the ports tree to help with libressl bug reports. Here are some notes
about the port:
- Most of the optional features are enabled
https://gitlab.com/gnuwget/wget2#Build-Requirements
- wget2_noinstall gets into the plist. I tried fiddling with
post-install to no avail. It seems fine to keep.
see:
https://gitlab.com/gnuwget/wget2/-/issues/603
- There is a patch for libressl not providing CRYPTO_free_ex_index(),
which was the original issue that tb@ brought up:
see:
https://github.com/libressl/portable/issues/916
https://gitlab.com/gnuwget/wget2/-/issues/644
- There is an unknown configuration key message with every run.
--8<---------------cut here---------------start------------->8---
libwget/ssl_openssl.c
247: error_printf(_("Unknown configuration key %d (maybe this config val);
287: error_printf(_("Unknown configuration key %d (maybe this config val);
365: error_printf(_("Unknown configuration key %d (maybe this config val);
--8<---------------cut here---------------end--------------->8---

- Fuzz tests are turned off to avoid downloading test data, as done by
jca@ in net/wget. `make test' passes.
- gsed / gmakeinfo / pandoc / doxygen are needed to build
docs. Otherwise, our makeinfo causes an error and our sed causes a
nonfatal error.
- There is a shared library libwget.
- sparc64 build fix that kmos@ added for net/wget:
CFLAGS += -std=gnu99

I tested downloading install74.img. I tested http2 when it shows up in
the --stats-tls file. I tested various compression methods to at least
not print an error about being unsupported when sending a header (even
though this does not test compression itself):
--8<---------------cut here---------------start------------->8---
$ wget2 --stats-tls=foobar --compression=xz https://gitlab.com/gnuwget/wget2
$ wget2 --stats-tls=foobar --compression=lzma https://gitlab.com/gnuwget/wget2
$ wget2 --stats-tls=foobar --compression=bzip2 https://gitlab.com/gnuwget/wget2
--8
<---------------cut here---------------end--------------->8---

Feedback and tests are welcome. OK?

Comment:
successor of GNU Wget, a file and website downloader

Description:
GNU Wget2 is the successor of GNU Wget, a file and recursive website
downloader.

Designed and written from scratch it wraps around libwget, that provides
the basic functions needed by a web client.

Wget2 works multi-threaded and uses many features to allow fast
operation.

In many cases Wget2 downloads much faster than Wget1.x due to HTTP2,
HTTP compression, parallel connections and use of If-Modified-Since HTTP
header.

GNU Wget2 is licensed under GPLv3+.

Libwget is licensed under LGPLv3+.

Maintainer: The OpenBSD ports mailing-list <ports@openbsd.org>

WWW: https://gitlab.com/gnuwget/wget2

No comments:

Post a Comment