adduser: 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 adduser
INFO: Current version: 3.118
INFO: Latest version:

After the patch:
$ devtool latest-version adduser
INFO: Current version: 3.118
INFO: Latest version: 3.153

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-08 22:12:29 +08:00 committed by Khem Raj
parent 4109ea0d89
commit 3af3a188f3
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -13,6 +13,9 @@ SRC_URI = "https://launchpad.net/debian/+archive/primary/+sourcefiles/adduser/${
SRC_URI[sha256sum] = "3e9eea661c9aac6b2c791bfcc1de3a9c6a422d45c8f3d38ed417737ed3166ffc" SRC_URI[sha256sum] = "3e9eea661c9aac6b2c791bfcc1de3a9c6a422d45c8f3d38ed417737ed3166ffc"
UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/a/adduser"
UPSTREAM_CHECK_REGEX = "adduser_(?P<pver>\d+(\.\d+)+)"
S = "${UNPACKDIR}/${BPN}" S = "${UNPACKDIR}/${BPN}"
inherit cpan-base update-alternatives inherit cpan-base update-alternatives