tools: assign PKG_CPE_ID
authorAlexander Couzens <lynxis@fe80.eu>
Mon, 18 Sep 2023 22:10:03 +0000 (00:10 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Wed, 27 Sep 2023 20:37:01 +0000 (22:37 +0200)
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@fe80.eu>
tools/7z/Makefile
tools/bison/Makefile
tools/gmp/Makefile
tools/liblzo/Makefile
tools/llvm-bpf/Makefile
tools/lz4/Makefile
tools/mtd-utils/Makefile
tools/sed/Makefile
tools/zip/Makefile

index 90362e79779f92fbc2905b5d77ad84e47e2ed46f..bfb5058487667750738b2c632cafef6f1bcf277f 100644 (file)
@@ -7,6 +7,7 @@ PKG_SOURCE_VERSION:=2201
 PKG_SOURCE:=$(PKG_NAME)$(PKG_SOURCE_VERSION)-src.tar.xz
 PKG_SOURCE_URL:=https://7-zip.org/a/
 PKG_HASH:=393098730c70042392af808917e765945dc2437dee7aae3cfcc4966eb920fbc5
+PKG_CPE_ID:=cpe:/a:7-zip:7zip
 
 # This builds the 7zr variant which supports only 7z, so no non-LGPL code should be included
 PKG_LICENSE:=LGPL-2.1-or-later
index 30555541e653a34a9a6bba8573465ad884d62c38..0aa0969b20bc5e0cd91dd1850f718a31a0bb2fd1 100644 (file)
@@ -12,6 +12,7 @@ PKG_VERSION:=3.8.2
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
 PKG_HASH:=9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2
+PKG_CPE_ID:=cpe:/a:gnu:bison
 
 HOST_BUILD_PARALLEL:=1
 
index cfd6e30e04ab036d56b5b4704fc6477d21ab8b2d..c48069dd7bc616273ddad03edd2b78116ead4725 100644 (file)
@@ -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
 
index 4ebda0c33365088d0018a4351501031e0c9d7d95..9f60109135944e22d53cebda95d5e028d4a4e1a3 100644 (file)
@@ -17,6 +17,7 @@ PKG_HASH:=c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072
 
 PKG_LICENSE:=GPL-2.0-or-later
 PKG_LICENSE_FILES:=COPYING
+PKG_CPE_ID:=cpe:/a:lzo_project:lzo
 
 CMAKE_BINARY_SUBDIR:=openwrt-build
 
index 71509511e7392722b3e0d43bec651b428dbb485e..bb3179016c7b5c714ce5f46dc8d7a91b0e2a53c8 100644 (file)
@@ -13,6 +13,7 @@ PKG_RELEASE:=1
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.xz
 PKG_SOURCE_URL:=https://github.com/llvm/llvm-project/releases/download/llvmorg-$(PKG_VERSION)
 PKG_HASH:=8b5fcb24b4128cf04df1b0b9410ce8b1a729cb3c544e6da885d234280dedeac6
+PKG_CPE_ID:=cpe:/a:llvm:llvm
 
 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION).src
 
index 8f12ca93e68329d871a1ae889d535efa5ec1beee..cf1738a52fe699538c4ed2eb59184ba2f191fade 100644 (file)
@@ -16,6 +16,7 @@ PKG_HASH:=0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
 
 PKG_LICENSE:=BSD-2-Clause
 PKG_LICENSE_FILES:=LICENSE lib/LICENSE
+PKG_CPE_ID:=cpe:/a:lz4_project:lz4
 
 include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/meson.mk
index 14f11acaf55b1a28d49cd41d94df4bb6adcf5189..90108019769b6954af732699343d7af902a93c7f 100644 (file)
@@ -13,6 +13,7 @@ PKG_RELEASE:=1
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://infraroot.at/pub/mtd/
 PKG_HASH:=386e27fd121699b6b729bc2e8e04dda987b31cca6b16e12fb6cc6dcf26449f46
+PKG_CPE_ID:=cpe:/a:mtd-utils_project:mtd-utils
 
 PKG_FIXUP:=autoreconf
 
index 5cc15a3397e23ab139a8eb83b5c1d98097914a3c..49cbc72e6e1db674e5046615bf7128ad4fde36ea 100644 (file)
@@ -12,6 +12,8 @@ PKG_VERSION:=4.9
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
 PKG_HASH:=6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181
+PKG_CPE_ID:=cpe:/a:gnu:sed
+
 export SED:=
 
 HOST_BUILD_PARALLEL:=1
index 6e83dafb40f610bac5298edef0b375b750d197eb..5ad124d1c39a8f45419dedc88473c3891fcc31c9 100644 (file)
@@ -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