wget @VERSION@ for Mac OS X 10.4 Tiger

GNU Wget @VERSION@, the downloader of the GNU Project, built for Mac OS X 10.4
on every Mac that runs it: PowerPC (G3, G4 and G5) and Intel. It is one
universal program with its own OpenSSL 3.5.9 and zlib 1.3.2 inside, so it
speaks TLS 1.3 to the servers of today, which Tiger itself cannot. It needs
only the Root certificates package, which has the list of authorities it
trusts (see Certificates, below). It puts in place:

  /usr/local/bin/wget
      GNU Wget @VERSION@
  /usr/local/share/wget/cert.pem
      a link to /usr/local/etc/ssl/cert.pem, the root
      certificates of the Root certificates package
  /usr/local/share/man/man1/wget.1
      its manual page
  /usr/local/share/doc/wget-tiger
      this Read Me, the licenses, sample.wgetrc,
      update-shell-profile.sh

Using it

The installer adds /usr/local/bin to the PATH in your shell profile
(~/.bash_profile for bash, the shell Tiger gives new accounts, or the
.bash_login or .profile you already have) and keeps the old profile beside
it as .wgetsave. Open a new Terminal window, go with cd to the folder where
the files are to go, and type wget and a URL.

  wget https://example.com/file.tar.gz
      download a file and save it under its own name
  wget -c https://example.com/big.iso
      go on with a download that stopped
  wget -i list.txt
      download each URL in a file
  wget -m -k -np https://example.com/docs/
      copy a site, or a part of it, to your disk, with links
      that work there

man wget is the whole manual, and wget --help lists every option. Options
you always want go in ~/.wgetrc, one to a line;
/usr/local/share/doc/wget-tiger/sample.wgetrc names them all.

What is built in

HTTP/1.1, HTTPS with TLS 1.2 and 1.3, FTP and FTPS. Downloads that go on
where they stopped, recursive downloads and mirrors, time stamps, cookies,
HSTS, answers compressed with gzip (--compression=auto), Digest and NTLM
logins, and WARC files.

Some FTPS servers want the data connection to go on with the TLS session of
the control connection, and refuse wget's: it stops with "FTPS server
rejects new SSL sessions in the data connection". wget on Linux stops the
same way there. curl gets through.

Not built in: international domain names and IRIs, the public suffix list
for cookies, PCRE regular expressions (--regex-type=pcre), Metalink, and
--dns-servers.

Certificates

wget checks the certificate of each HTTPS server against the roots in
/usr/local/etc/ssl/cert.pem, not against Tiger's keychain, whose roots
are from 2009. That file is Mozilla's list of the authorities to trust,
and the Root certificates package puts it there. Install that package
before wget: the Installer stops if it is not there. Tiger Packages
installs it with wget, and offers each new list as an update. wget reads
the file through the link /usr/local/share/wget/cert.pem.

--ca-certificate=FILE gives other roots for one command, and a line
ca_certificate = FILE in ~/.wgetrc gives them for all.

IPv6

wget tries each address of a server in the order Tiger gives them, IPv6
first. On a network that gives your Mac an IPv6 address but no way out over
IPv6, it shows a failed try for each IPv6 address before it connects over
IPv4. -4 connects over IPv4 only; prefer_family = IPv4 in ~/.wgetrc tries
IPv4 first every time.

Uninstalling

In Terminal:

  sudo rm /usr/local/bin/wget
  sudo rm /usr/local/share/man/man1/wget.1
  sudo rm -rf /usr/local/share/wget
  sudo rm -rf /usr/local/share/doc/wget-tiger
  sudo rm -rf "/Library/Receipts/wget "*.pkg

The root certificates stay: other programs use them too.

If nothing else you use is in /usr/local/bin, take the "Setting PATH for
wget" lines out of your shell profile.

How it was made

wget and its two libraries were cross-compiled on Linux with GCC 13.4 for
powerpc-apple-darwin8 (any G3 and up) and i686-apple-darwin8, against the
Mac OS X 10.4u SDK. Their source is not changed. wget loads only Tiger's
libSystem and libiconv. The package and this disk image were made on
Mac OS X 10.4.11 with its own mkbom, pax and hdiutil.

Everything it was built from (the source of wget, OpenSSL and zlib, and the
build scripts) is in wget-@PKGVERSION@-tiger-source.tar.gz, beside this disk
image.

Built @DATE@.
