build/pkgbase: preliminary support for OS updates through pkgbase
This is a rough estimate of what is necessary. Not overly stable
yet, but follows opnsense-update way of doing things by using our
product name and version/revision scheme. The latest batch is
kept if a previous older (does not detect going back but will assume
it is not) reference was found.
The incremental way has downsides in intermediate builds/reverts
but at least changes can be tracked pretty well. May also want a
comment as a hash. Also need to see how stable reproducible builds
are or of this requires a permanent state of /usr/obj and only
incrememtal builds thereafter (would really not be ideal).
Not planning to put this into production any time soon but may live
on the snapshot end for future testing.
build/distfiles: clear the existing distfiles cache dir
This can cause issues on nightly builds so avoid it by clearing
all temporary files in there. The actual cache we use is in a
chroot (un)packed via the distfiles set.
build/vm: add noatime to UFS root disk (#516)
This "noatime" tweak, reduced the OPNsense constant
50kb - 80kb disk writes that wear down the SSD / NVME.
Signed-off-by: Unicorn9x