[Buildroot] [git commit] package/libminiupnpc: add CPE variables

Yann E. MORIN yann.morin.1998 at free.fr
Thu Mar 4 19:04:26 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=e9fbb8dccb0432dcca87dca10ebba3961b98896b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

cpe:2.3:a:miniupnp_project:miniupnpc is a valid CPE identifier for this
package:

  https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe%3A2.3%3Aa%3Aminiupnp_project%3Aminiupnpc

Split the _VERSION into the traditional major/minor separation, even
though it is not strictly speaking major/minor. This allows re-using for
the CPE versioning.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
[yann.morin.1998 at free.fr:
  - inverse the split: rather than defining _VERSION based on the CPE
    values, split the _VERSION and use that to define the CPE variables
]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
 package/libminiupnpc/libminiupnpc.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/libminiupnpc/libminiupnpc.mk b/package/libminiupnpc/libminiupnpc.mk
index 50b3c6604c..551a6767cf 100644
--- a/package/libminiupnpc/libminiupnpc.mk
+++ b/package/libminiupnpc/libminiupnpc.mk
@@ -4,11 +4,17 @@
 #
 ################################################################################
 
-LIBMINIUPNPC_VERSION = 2.1.20201016
+LIBMINIUPNPC_VERSION_MAJOR = 2.1
+LIBMINIUPNPC_VERSION_MINOR = 20201016
+LIBMINIUPNPC_VERSION = $(LIBMINIUPNPC_VERSION_MAJOR).$(LIBMINIUPNPC_VERSION_MINOR)
 LIBMINIUPNPC_SOURCE = miniupnpc-$(LIBMINIUPNPC_VERSION).tar.gz
 LIBMINIUPNPC_SITE = http://miniupnp.free.fr/files
 LIBMINIUPNPC_INSTALL_STAGING = YES
 LIBMINIUPNPC_LICENSE = BSD-3-Clause
 LIBMINIUPNPC_LICENSE_FILES = LICENSE
+LIBMINIUPNPC_CPE_ID_VENDOR = miniupnp_project
+LIBMINIUPNPC_CPE_ID_PRODUCT = miniupnpc
+LIBMINIUPNPC_CPE_ID_VERSION = $(LIBMINIUPNPC_VERSION_MAJOR)
+LIBMINIUPNPC_CPE_ID_UPDATE = $(LIBMINIUPNPC_VERSION_MINOR)
 
 $(eval $(cmake-package))


More information about the buildroot mailing list