postfix: add UPSTREAM_CHECK_URI

Add UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to check the correct
latest stable verison.

Before the patch:
$ devtool latest-version postfix
INFO: Current version: 3.10.5
INFO: Latest version:

After the patch:
$ devtool latest-version postfix
INFO: Current version: 3.10.5
INFO: Latest version: 3.10.5

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Yi Zhao 2025-11-09 21:40:31 +08:00 committed by Khem Raj
parent 7a038a35cc
commit 0586c2e570
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -30,7 +30,8 @@ SRC_URI = "http://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${P
SRC_URI[sha256sum] = "6a926bf702173861b08e49bcb51fca3a2f269f9a337f72ef159bf46052087e35"
UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.10(\.\d+)+).tar.gz"
UPSTREAM_CHECK_URI = "https://www.postfix.org/announcements.html"
UPSTREAM_CHECK_REGEX = "postfix-(?P<pver>\d+(\.\d+)+)"
S = "${UNPACKDIR}/postfix-${PV}"