Symlinking, and suffixing with .pkg (was: WTF? (a/k/a Wow, am I ever slow on the uptake))

From: Graham Perrin <grahamperrin_at_gmail.com>
Date: Wed, 24 Nov 2021 23:27:51 UTC
On 24/11/2021 18:21, George Mitchell wrote:

> I just now noticed (finally?) that my local ports repo is gradually
> filling up with "*.pkg" files, and the "*.txz" files are turning into
> symbolic links.  Everything is still working just fine, but I am
> feeling rather embarrassed that it took me so long (since before
> July 22, evidently) to catch on.  What happened, and where was it
> documented?  I still don't see anything in /usr/ports/UPDATING.
> -- George
>
<https://www.freshports.org/ports-mgmt/pkg/#history>, this in particular:

<https://cgit.freebsd.org/ports/commit/?id=e497a16a286972bfcab908209b11ee6a13d99dc9>

– as far as I know, use of symlinks began much earlier.

The string that's inserted to the name of the file relates to SHA256.

% pwd
/var/cache/pkg
% ls -hl kwinft*
lrwxr-xr-x  1 root  wheel    28B 21 Nov 17:04 kwinft-5.23.0.pkg -> 
kwinft-5.23.0~81e88bb3e8.pkg
-rw-r--r--  1 root  wheel   4.5M 11 Nov 09:22 kwinft-5.23.0~81e88bb3e8.pkg
% sha256 kwinft-5.23.0~81e88bb3e8.pkg
SHA256 (kwinft-5.23.0~81e88bb3e8.pkg) = 
81e88bb3e8174cd15010a0adb7e124b453cad0ccbf170ca66cce0707576d2718
%