Livecheck / DistcheckOptions livecheck and distcheck are especially useful for port
maintainers, but others may also find this information valuable.Livecheck checks to see if MacPorts can query the developer's
download site to determine if a newer version of the software has become
available since the port was installed.livecheck.typeSpecify what kind of update check to perform.Open source mirror site options are to use the project's
latest file release from or
, or the project's
date_updated XML tag for
. These options are automatically used if
a matching ${master_sites} URL is used.Generic download site options are to specify a
(modification date of a URL resource), a
(retrieve the version by applying a regex to
a URL resource), (retrieve the version by
applying a multi-line regex to a URL resource),
(compares the md5 sum of a URL resource) or
(no check).Default: or
if the
${master_sites} is one of these, else
.Values:
Examples:livecheck.type regex
livecheck.url ${homepage}
livecheck.regex "Generally Available (\\d+(?:\\.\\d+)*)"livecheck.nameName of the project for live checks. Is only used with
freecode, sourceforge, and googlecode livechecks.Default: ${name} or the sourceforge,
freecode or googlecode project name if it can be guessed from
${master_sites}.Example:livecheck.name hibernatelivecheck.distnameName of the file release for sourceforge and googlecode
checks. For sourceforge releases use the name of the package
release. For googlecode releases use the name of the file download,
including extension. You may use this keyword without
livecheck.version if you replace the version part of
the name with (.*).Default: sourceforge:
${livecheck.name}, googlecode: first
${distfiles} itemExample:livecheck.distname faad2.srclivecheck.versionVersion of the project for a check; used for regex-based
checks.Default: ${version}Example:livecheck.version ${name}-${version}livecheck.urlURL to query for a check.Default:${homepage} or the first hit among
the following sites:http://freecode.com/projects-xml/${livecheck.name}/${livecheck.name}.xmlhttp://sourceforge.net/api/file/index/project-name/${livecheck.name}/rsshttp://code.google.com/p/${livecheck.name}/downloads/listExample:livecheck.url http://ftp.gnu.org/gnu/bison/livecheck.regexRegular expression to parse the resource for regex checks. Be
sure to use a regular expression grouping around the version
component. Also remember that square brackets need to be quoted because Tcl
otherwise interprets them as a procedure call.Default: noneExample:livecheck.regex 4th-(\[a-z0-9.\]+)-unix${extract.suffix}livecheck.md5md5 checksum to use for an md5 comparison.Default: noneExample:livecheck.md5 37e6a5b6516a680c7178b72021d3b706Distcheck reports whether or not the distfile(s) specified in a
Portfile are still available on the developer's download site. Examples
are given below.distcheck.checkThis option can be used to disable distcheck. It specifies
what kind of check should be performed on distfiles:
(check if the Portfile is older than the
distfile) or (no check).Default: Example:distcheck.check none