This recipe is in charge of cloning and setting the cvelistv5 repository: https://github.com/CVEProject/cvelistV5
If the build is online, it is recommanded to use SRCREV set to AUTOREV to use the latest available commit on the remote repository and stay up-to-date with the latest CVE information available. AUTOREV would make the build non-deterministic which would break offline, turned off by default. Signed-off-by: ValentinBoudevin <[email protected]> --- meta/conf/distro/include/maintainers.inc | 1 + .../cvelistv5-native/cvelistv5-native_git.bb | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 meta/recipes-kernel/cvelistv5-native/cvelistv5-native_git.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index e830648945..550ef0e0e7 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -139,6 +139,7 @@ RECIPE_MAINTAINER:pn-cryptodev-tests = "Robert Yang <[email protected]>" RECIPE_MAINTAINER:pn-cups = "Chen Qi <[email protected]>" RECIPE_MAINTAINER:pn-curl = "Robert Joslyn <[email protected]>" RECIPE_MAINTAINER:pn-cve-update-nvd2-native = "Ross Burton <[email protected]>" +RECIPE_MAINTAINER:pn-cvelistv5-native = "Valentin Boudevin <[email protected]>" RECIPE_MAINTAINER:pn-db = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-dbus = "Chen Qi <[email protected]>" RECIPE_MAINTAINER:pn-dbus-glib = "Chen Qi <[email protected]>" diff --git a/meta/recipes-kernel/cvelistv5-native/cvelistv5-native_git.bb b/meta/recipes-kernel/cvelistv5-native/cvelistv5-native_git.bb new file mode 100644 index 0000000000..7ee1f04d0a --- /dev/null +++ b/meta/recipes-kernel/cvelistv5-native/cvelistv5-native_git.bb @@ -0,0 +1,19 @@ +SUMMARY = "CVE List V5" +DESCRIPTION = "Official CVE List. It is a catalog of all CVE Records identified by, or reported to, the CVE Program. \ +The cvelistV5 repository hosts downloadable files of CVE Records in the CVE Record Format." +HOMEPAGE = "https://github.com/CVEProject/cvelistV5" +LICENSE = "cve-tou" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/cve-tou;md5=4f7e96b3094e80e66b53359a8342c7f8" + +inherit allarch native + +SRC_URI = "git://github.com/CVEProject/cvelistV5.git;branch=main;protocol=https" + +# SRCREV is pinned to a fixed commit to ensure reproducible builds +# To get the latest commit available and stay up-to-date, set AUTOREV as SRCREV with SRCREV:pn-cvelistv5-native = "${AUTOREV}" +SRCREV ?= "644ce1758db1773336ebebb6a0da90e132da0eb7" + +do_install(){ + install -d ${D}${datadir}/cvelistv5-native + cp -r ${UNPACKDIR}/cvelistv5-git/* ${D}${datadir}/cvelistv5-native/ +}
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#230401): https://lists.openembedded.org/g/openembedded-core/message/230401 Mute This Topic: https://lists.openembedded.org/mt/117604449/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
