mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 05:53:30 +08:00
package/ntp: add CPE ID variables
cpe:2.3🅰️ntp:ntp is a valid CPE identifier for this package: https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe%3A2.3%3Aa%3Antp%3Antp The specification of the version needs to be reworked a little bit. Indeed, versions look like 4.2.8p15. For the download, we need to extract 4.2 as the folder is named ntp-4.2. However, for the CPE ID we need to extract 4.2.8 and p15 into two separate fields. So, we set: NTP_VERSION_MAJOR = 4.8 NTP_VERSION_MINOR = 2 NTP_VERSION_POINT = 15 and construct the version: NTP_VERSION = $(NTP_VERSION_MAJOR).$(NTP_VERSION_MINOR)p$(NTP_VERSION_POINT) Note that the choice of "point" comes from http://support.ntp.org/bin/view/Main/ReleaseNumberingScheme, which states "The letter p followed by an increasing number indicates a Point (i.e. incremental) Release.". Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
0f100d333b
commit
a9c830c0d5
@ -5,11 +5,16 @@
|
||||
################################################################################
|
||||
|
||||
NTP_VERSION_MAJOR = 4.2
|
||||
NTP_VERSION = $(NTP_VERSION_MAJOR).8p15
|
||||
NTP_VERSION_MINOR = 8
|
||||
NTP_VERSION_POINT = 15
|
||||
NTP_VERSION = $(NTP_VERSION_MAJOR).$(NTP_VERSION_MINOR)p$(NTP_VERSION_POINT)
|
||||
NTP_SITE = https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$(NTP_VERSION_MAJOR)
|
||||
NTP_DEPENDENCIES = host-pkgconf libevent
|
||||
NTP_LICENSE = NTP
|
||||
NTP_LICENSE_FILES = COPYRIGHT
|
||||
NTP_CPE_ID_VENDOR = ntp
|
||||
NTP_CPE_ID_VERSION = $(NTP_VERSION_MAJOR).$(NTP_VERSION_MINOR)
|
||||
NTP_CPE_ID_VERSION_MINOR = p$(NTP_VERSION_POINT)
|
||||
NTP_CONF_ENV = ac_cv_lib_md5_MD5Init=no POSIX_SHELL=/bin/sh
|
||||
NTP_CONF_OPTS = \
|
||||
--with-shared \
|
||||
|
Loading…
Reference in New Issue
Block a user