[openwrt/openwrt] tools: assign PKG_CPE_ID

LEDE Commits lede-commits at lists.infradead.org
Wed Sep 27 13:17:20 PDT 2023


lynxis pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/ddc361f1a62e53e492df31ded4453662c57434b1

commit ddc361f1a62e53e492df31ded4453662c57434b1
Author: Alexander Couzens <lynxis at fe80.eu>
AuthorDate: Tue Sep 19 00:10:03 2023 +0200

    tools: assign PKG_CPE_ID
    
    The PKG_CPE_ID links to NIST CPE version 2.2.
    Assign PKG_CPE_ID to all remaining tools which have a CPE ID.
    Not every tool has CPE id.
    
    Related: https://github.com/openwrt/packages/issues/8534
    Signed-off-by: Alexander Couzens <lynxis at fe80.eu>
---
 tools/bison/Makefile     | 1 +
 tools/gmp/Makefile       | 1 +
 tools/mtd-utils/Makefile | 1 +
 tools/sed/Makefile       | 1 +
 tools/zip/Makefile       | 1 +
 5 files changed, 5 insertions(+)

diff --git a/tools/bison/Makefile b/tools/bison/Makefile
index 8f3043fcb8..f07a128b01 100644
--- a/tools/bison/Makefile
+++ b/tools/bison/Makefile
@@ -12,6 +12,7 @@ PKG_VERSION:=3.7.4
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
 PKG_HASH:=a3b5813f48a11e540ef26f46e4d288c0c25c7907d9879ae50e430ec49f63c010
+PKG_CPE_ID:=cpe:/a:gnu:bison
 
 HOST_BUILD_PARALLEL:=1
 
diff --git a/tools/gmp/Makefile b/tools/gmp/Makefile
index 967cf6817b..48f556f4fc 100644
--- a/tools/gmp/Makefile
+++ b/tools/gmp/Makefile
@@ -12,6 +12,7 @@ PKG_VERSION:=6.2.1
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/gmp/
 PKG_HASH:=fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
+PKG_CPE_ID:=cpe:/a:gmplib:gmp
 
 HOST_FIXUP:=autoreconf
 
diff --git a/tools/mtd-utils/Makefile b/tools/mtd-utils/Makefile
index 7eebcfb827..5268dd03a3 100644
--- a/tools/mtd-utils/Makefile
+++ b/tools/mtd-utils/Makefile
@@ -13,6 +13,7 @@ PKG_RELEASE:=1
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/mtd-utils/
 PKG_HASH:=8ad4c5f34716d40646aa28724a2f5616d325a6f119254f914e26976f1f76e9d6
+PKG_CPE_ID:=cpe:/a:mtd-utils_project:mtd-utils
 
 PKG_FIXUP:=autoreconf
 
diff --git a/tools/sed/Makefile b/tools/sed/Makefile
index 4218ac2d59..58f70c4ad9 100644
--- a/tools/sed/Makefile
+++ b/tools/sed/Makefile
@@ -12,6 +12,7 @@ PKG_VERSION:=4.8
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
 PKG_HASH:=f79b0cfea71b37a8eeec8490db6c5f7ae7719c35587f21edb0617f370eeff633
+PKG_CPE_ID:=cpe:/a:gnu:sed
 export SED:=
 
 HOST_BUILD_PARALLEL:=1
diff --git a/tools/zip/Makefile b/tools/zip/Makefile
index 7dd81a1b8b..4490cf9213 100644
--- a/tools/zip/Makefile
+++ b/tools/zip/Makefile
@@ -17,6 +17,7 @@ PKG_HASH:=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
 
 PKG_LICENSE:=BSD-4-Clause
 PKG_LICENSE_FILES:=LICENSE
+PKG_CPE_ID:=cpe:/a:zip_project:zip
 
 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)/zip$(PKG_REV)
 HOST_BUILD_PARALLEL:=1




More information about the lede-commits mailing list