Refactor cacerts package to use versioned source files
The config/software/cacerts.rb
software package currently makes use of the static url https://curl.haxx.se/ca/cacert.pem
for the source. However, due to this fact, we can hit problems during building of with updated versions if there is a cache between the build runner and the actual source. To avoid this when updating, we should instead make use of the versioned file from the provider. It is in the format of https://curl.haxx.se/ca/cacert-YYYY-MM-DD.pem
, and cacert.pem
on the provider appears to simply be a symlink to the latest version.
In making this change, when we add an updated version (to match that at the provider), it will grab the explicitly matching version, in place of what appears to be the same file by name. No longer any problems with mismatched checksums, caches interfering, et al.
Things to take into account:
- The source URL and downloaded filename
- The installed certificate should be renamed to
cacert.pem
, not the original with date. - Edit purge target in Makefile to remove the line mentioning
cacert.pem