On 14/2/2026 18:58, Bjarne D Mathiesen via macports-dev wrote:
So, I was running into some problems w/ how livecheck works.
The information on https://guide.macports.org/#reference.livecheck isn't
that helpfull in understanding, what's going on, but my educated guess
is the following :
1) the livecheck.url is dowloaded
2) the list of files is filtered through the livecheck.regex
3) if a version# -gt than the current version# is found, it's reported
But what's the mechanism behind them ?
Where can I find an in-depth tutorial on these mechanisms ?
The only "real" livecheck types are regex/regexm, md5, moddate and git.
The Guide hints at this but could stand to explain in more detail.
<https://guide.macports.org/chunked/reference.livecheck.html>
All the other types are implemented using one of those, usually regex.
They just pre-fill the livecheck.* variables in different ways. The
implementations for these can be found in the ports tree:
<https://github.com/macports/macports-ports/tree/master/_resources/port1.0/livecheck>
- Josh