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

Before the patch:
$ devtool latest-version radvd
INFO: Current version: 2.20
INFO: Latest version:

After the patch:
$ devtool latest-version radvd
INFO: Current version: 2.20
INFO: Latest version: 2.20

Signed-off-by: Yi Zhao <[email protected]>
---
 meta-networking/recipes-daemons/radvd/radvd_2.20.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-daemons/radvd/radvd_2.20.bb 
b/meta-networking/recipes-daemons/radvd/radvd_2.20.bb
index e2d606823b..d02433c5ec 100644
--- a/meta-networking/recipes-daemons/radvd/radvd_2.20.bb
+++ b/meta-networking/recipes-daemons/radvd/radvd_2.20.bb
@@ -23,6 +23,9 @@ SRC_URI = 
"http://v6web.litech.org/radvd/dist/radvd-${PV}.tar.gz \
            "
 SRC_URI[sha256sum] = 
"af37c5a81d59f3bdc00d83056606ffa1810d4550beed6caa4f81181246494220"
 
+UPSTREAM_CHECK_URI = "https://github.com/radvd-project/radvd/releases";
+UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)"
+
 inherit autotools useradd pkgconfig systemd
 
 SYSTEMD_SERVICE:${PN} = "radvd.service"
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#121412): 
https://lists.openembedded.org/g/openembedded-devel/message/121412
Mute This Topic: https://lists.openembedded.org/mt/116202073/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to