package/iana-assignments: new package

The fixing of [1] and related code reviews [2] and [3] highlighted the
need for a package providing a versioned PEN (Enterprise Numbers)
registry file from IANA (Internet Assigned Numbers Authority).
The GitHub repository from which this package originates is a mirror of
the IANA registries periodically updated from https://www.iana.org/protocols.

[1] http://autobuild.buildroot.org/results/5ae5ee948d99679cd50d1115a7d46f4368347b4f
[2] https://patchwork.ozlabs.org/project/buildroot/patch/20240902210055.239859-1-dario.binacchi@amarulasolutions.com
[3] https://patchwork.ozlabs.org/project/buildroot/patch/20240904174021.2670289-1-dario.binacchi@amarulasolutions.com/
Co-Developed-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Co-Developed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[yann.morin.1998@free.fr: add licensing info]
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
This commit is contained in:
Dario Binacchi
2024-09-08 16:48:14 +02:00
committed by Yann E. MORIN
parent 480d667a19
commit e5459a3f6a
5 changed files with 41 additions and 0 deletions

View File

@@ -792,6 +792,7 @@ F: configs/imx8mn_bsh_smm_s2_pro_defconfig
F: configs/stm32f769_disco_sd_defconfig
F: package/armadillo/
F: package/babeld/
F: package/iana-assignments/
F: package/sscep/
F: package/tinyinit/
F: package/uuu/

View File

@@ -2467,6 +2467,7 @@ endif
source "package/htpdate/Config.in"
source "package/httping/Config.in"
source "package/i2pd/Config.in"
source "package/iana-assignments/Config.in"
source "package/ibrdtn-tools/Config.in"
source "package/ibrdtnd/Config.in"
source "package/ifenslave/Config.in"

View File

@@ -0,0 +1,15 @@
config BR2_PACKAGE_IANA_ASSIGNMENTS
bool "IANA assignments"
select BR2_PACKAGE_IANA_ASSIGNMENTS_PEN_REG
help
Mirror of the IANA registries periodically updated
from https://www.iana.org/protocols.
https://github.com/larseggert/iana-assignments
if BR2_PACKAGE_IANA_ASSIGNMENTS
config BR2_PACKAGE_IANA_ASSIGNMENTS_PEN_REG
bool "PEN (Enterprise Numbers) registry"
endif

View File

@@ -0,0 +1,2 @@
# Locally computed
sha256 e7a1f8153715fa9e0f4c5d102f9271bce425a468f58a445e7c5ecdf7105fd460 iana-assignments-bf358dc8d89b7939557220b8055699b42a4133e9.tar.gz

View File

@@ -0,0 +1,22 @@
################################################################################
#
# iana-assignments
#
################################################################################
IANA_ASSIGNMENTS_VERSION = bf358dc8d89b7939557220b8055699b42a4133e9
IANA_ASSIGNMENTS_SITE = $(call github,larseggert,iana-assignments,$(IANA_ASSIGNMENTS_VERSION))
# The licensing is defined by IANA: https://www.iana.org/help/licensing-terms
# The repository we use is not a real upstream, and contains no license file.
IANA_ASSIGNMENTS_LICENSE = CC0-1.0
ifeq ($(BR2_PACKAGE_IANA_ASSIGNMENTS_PEN_REG),y)
define IANA_ASSIGNMENTS_INSTALL_PEN_REG
$(INSTALL) -D -m 0644 $(@D)/enterprise-numbers/enterprise-numbers \
$(TARGET_DIR)/usr/share/misc/iana/enterprise-numbers
endef
IANA_ASSIGNMENTS_POST_INSTALL_TARGET_HOOKS += IANA_ASSIGNMENTS_INSTALL_PEN_REG
endif
$(eval $(generic-package))