{ "name": "wget2", "version": "2.3.0", "summary": "GNU Wget2: downloads over HTTP/1.1 and HTTP/2 with TLS, in parallel, with recursion and resuming; libwget", "category": "network", "license": "GPL-3.0-or-later AND LGPL-3.0-or-later", "homepage": "https://gitlab.com/gnuwget/wget2", "source": { "url": "https://mirrors.kernel.org/gnu/wget/wget2-2.3.0.tar.gz", "sha256": "4f1915b2a55a789a15f2f9ada7cc44bca81418e648f76fd88a7f4dd028b2149f" }, "watch": {"kind": "index", "url": "https://mirrors.kernel.org/gnu/wget/", "regex": "wget2-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.gz"}, "deps": [ "openssl", "nghttp2", "pcre2", "zlib", "bzip2", "xz", "brotli", "zstd", "cacert" ], "env_packages": [], "static": true, "nss": true, "check": "bin/wget2 --version | first && bin/wget2 --version | has '+ssl/openssl' && t=$(mktemp -d) && bin/openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes -keyout \"$t/k\" -out \"$t/c\" -subj /CN=localhost -addext subjectAltName=DNS:localhost -days 1 2>/dev/null && bin/openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes -keyout \"$t/k2\" -out \"$t/other\" -subj /CN=other -days 1 2>/dev/null && head -c 300000 /dev/urandom > \"$t/data\" && P=$(free_port) && { (cd \"$t\" && exec \"$PREFIX/bin/openssl\" s_server -quiet -accept \"127.0.0.1:$P\" -cert c -key k -WWW < /dev/null > /dev/null 2>&1) & echo $! > \"$t/pid\"; } && wait_port \"$P\" && HOME=$t bin/wget2 -q --no-config --ca-certificate=\"$t/c\" -O \"$t/got\" \"https://localhost:$P/data\" && cmp \"$t/data\" \"$t/got\" && ! HOME=$t bin/wget2 -q --no-config --tries=1 --ca-certificate=\"$t/other\" -O \"$t/bad\" \"https://localhost:$P/data\" && echo \"wget2: a file over HTTPS with its certificate checked (port $P); a wrong CA refused\"; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }