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

Before the patch:
$ devtool latest-version ipset
INFO: Current version: 7.24
INFO: Latest version:

After the patch:
$ devtool latest-version ipset
INFO: Current version: 7.24
INFO: Latest version: 7.24

Signed-off-by: Yi Zhao <[email protected]>
---
 meta-networking/recipes-filter/ipset/ipset_7.24.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-filter/ipset/ipset_7.24.bb 
b/meta-networking/recipes-filter/ipset/ipset_7.24.bb
index 15fffe6b9e..97c0d8b4d8 100644
--- a/meta-networking/recipes-filter/ipset/ipset_7.24.bb
+++ b/meta-networking/recipes-filter/ipset/ipset_7.24.bb
@@ -13,6 +13,9 @@ SRC_URI = "https://ipset.netfilter.org/${BP}.tar.bz2 \
            file://0001-ipset-Define-portable-basename-function.patch"
 SRC_URI[sha256sum] = 
"fbe3424dff222c1cb5e5c34d38b64524b2217ce80226c14fdcbb13b29ea36112"
 
+UPSTREAM_CHECK_URI = "https://ipset.netfilter.org/install.html";
+UPSTREAM_CHECK_REGEX = "ipset-(?P<pver>\d+(\.\d+)+).tar"
+
 inherit autotools pkgconfig module-base
 
 EXTRA_OECONF += "-with-kbuild=${KBUILD_OUTPUT} 
--with-ksource=${STAGING_KERNEL_DIR}"
-- 
2.34.1

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

Reply via email to