From patchwork Sun Sep 8 14:48:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3415 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E2D033FA3D for ; Sun, 8 Sep 2024 16:48:22 +0200 (CEST) Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-5366124fe3fsf687228e87.0 for ; Sun, 08 Sep 2024 07:48:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725806902; cv=pass; d=google.com; s=arc-20240605; b=GT6j4C7naObeGMSiC+Z4Mo/rhTg+Vq3wiEKT/ggLsykM8KlYEYwSVLKTdzPssUtyCf WhDgLLWZQE0hXmRQfHyq4adk5diloVHSrIcRrfjBINLWFqNG3GFzZZS6IDSMyl/DxyV5 0wgMo1/hLnUbTbcuy5ocjEdmRgIT84MpjnmRHUDO62dS+PeOLbI/GLcU/gHPFU/wfnWj /vdqDNvdgQ3ycysn60yARXPfZRFkVAFy3NQtJYasujf01aGn7cKvY/w9Smlb96U21GSF K21Ht9DtvpoyAD+Dgr/hXFXb+BB4KFhmOubK1PI4d+ew6qAIdirb30m42D2CQtf+W45c Tc9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=SnymE+TKsDX76QOaLj7G2wUMpYtrucit4Omk2h3zDxo=; fh=JgOaTKwQESO8owU1gpgaiP7t/w8zW/4Lf8SV9ESVVd0=; b=kA3A3CJKWOKRke8325Z83WDZO1XZhOoN7l7cbDPCV0H6Vkk/pFpxnlELgMxYqV1bn7 2aqtpTDWKIp48P7sqf+orc3wsUODXqZRI9skSJj+G/Fk8ZD8SD8DZVQuoHxSent5WuOF ljaJzngdKmbijFPXR5xFOeXLXnw1HdFSiiQUJGIohmo3+8QXBZJQ8EzPzQU+deDWVPS3 VflZ0f5eRkLrWdEVk1p8R6IQxKQJ8+9s5J34SALjKdwdrzHvOIMhrT+AZVV1sQ8AtEse jo1jdpcRtdPn99axHTDyGCp4sjauwVQcIB9u0wRCtUXbJ6IP/TirM0Te2kA5nQOb3uAk y4WQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PEZO4Rwg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1725806902; x=1726411702; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=SnymE+TKsDX76QOaLj7G2wUMpYtrucit4Omk2h3zDxo=; b=nVwn9qRlb/uST4pqlkgKaxlHZ+nz0Ara/GOrTPvVtjDDSRgrZF1PBpQdnG6M/PnKVS kNRsn+USgWmeUmmlzWrsU6ZfaMld8KPmF/KGXeck5GDTPqXJnnsb5BPzyLBAUezMfvA0 FUaK2PrnZfl7qSlBBuQZTy946B4Zn4NPKz6tg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725806902; x=1726411702; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=SnymE+TKsDX76QOaLj7G2wUMpYtrucit4Omk2h3zDxo=; b=GxSZnnUYrqDp3tgsRywOQFiDxvED7b6p6T8Y+VLv1gGpGHmXdjq0XSA7DBAm0HU+9k a1fdlObf38jqRiIqjCARgG9Zi7ytQKPcASkrIdnRYwTWzo41cgti8vHVy+kxuiOjrTXD WtekeGuw2s6g/itV7zYHGe7vPWpdG1PW7AVcG+h68w+/wxGOODTmFgm/0MXZyXBdzOJl Mk5SYDMPqx5AkxNNRKOdpr5h/A1LdS9tm/N3kXIUyz5RmKrqE1J/trMqa5SO4srIanq+ bTCnIYVsnOpcS2p5XxhbSmMfpNm/qzPW2zFFu1ahCITIvEAPB6FRqSpIHnRo5xiMMD8U gLKw== X-Forwarded-Encrypted: i=2; AJvYcCUGkOYLYZfUym1kGatwbTGBt96qO7nRgLIlmHJ7OFFv52WGmrM8YKDH/O98wOd4VlYzlZWllZUSIGIpgMWR@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yy4+iXB8R1p7gUVzbj+X6/eBi/AlYhAwwNgeBw+alVZRWDqvNTT BaJHSt4MHTrDVpDdI6MmROA36S5bVMIrCK9QzDsj4mBu6JtZahH4fqRjGE52a2ftagIs8/hzlw= = X-Google-Smtp-Source: AGHT+IHxaphkHhhIKNKDixpSTf1LB/G/ZL9eB2NrxN2qx9ZNYJH/47Q73L9GjVXJOt7Rz0LxTRBJGA== X-Received: by 2002:a05:6512:224f:b0:52e:9fe0:bee4 with SMTP id 2adb3069b0e04-536587a4098mr5253962e87.9.1725806901620; Sun, 08 Sep 2024 07:48:21 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:10d4:b0:533:483f:9569 with SMTP id 2adb3069b0e04-536572fdfa2ls711753e87.0.-pod-prod-01-eu; Sun, 08 Sep 2024 07:48:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV2GpcSpAVcQ2CAeHWntpzp1CNYAptjd62PlaNw0s7xgub3uBToJtmqSd6/MRp7vBwOoxRsufTDEDtHniwg@amarulasolutions.com X-Received: by 2002:a05:6512:3510:b0:533:46cc:a736 with SMTP id 2adb3069b0e04-536587f56dbmr4205955e87.37.1725806899840; Sun, 08 Sep 2024 07:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725806899; cv=none; d=google.com; s=arc-20160816; b=rzMe31uz8N1qAwfgHejXVvaR0S21YNq5posvPF41sLkwvXkaaFM0R1m+dwSw/xBpiV lgGmne/XQYU4WKlbqZydTaA9dD/kTvDKaHzEW6pZUCEiiEjuTOhxNt8knd12khi0jGSk HhvRfeHM2NQpJ/i2s2x9pA2cgcxakjzODivxhsMi+4Xkcb0BvJnXgPg+5nRE4R8mQH4z SC9F4hKtuEH7hfQd+tvJaGSV8bABh68TkF609IAJUlNsTyTZ4P1wpFL3CcKAxtiLKBN/ oSQEcIB95atBeoCpMX/ytTaNwBCI0+EcwdIuUofA/gwDX5WMThreoWUiGIp7EzHQxnT3 0G6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=VUMdG/r+kvqO/a60leXFJ3pwXBvBdCUO2dJo0QvKYL0=; fh=nvyZab+JcBG2nHAMNBd2vyxZdeduiqbRBToDzfbd1JY=; b=FxU9XMBeSJ21eX0V15W2+a5/Yi6Tkka/HIhRRDF1MNZLqjdDZbhIUsIRovqkbeaBZ5 fTIghZwxP9/+NBpdSa+k1BGkzEVxIEbRNN55yqdW0CA+07Xz3zcRMD7VHR/zM1kO1rWY 7Yl/LEqMIY2LaJQNKckmH5UjgM/RK2qYASvkexKafGtactlXwGKumGgkcGMBFZ3GBIiD HQ5CAPEr/iFloEJYZdIyqh31SiZYLPbCfCTMPyyRIubSPENIUDiN4mE17Fkbi7gTrdJp TQ8o4A/eBIyxBpL2Bq4d9y6vubvJBJiquTisptijzzpyQqP55artTxAakyFpiH/Yf7Lh ZDeg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PEZO4Rwg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 2adb3069b0e04-5365f86f281sor654636e87.12.2024.09.08.07.48.19 for (Google Transport Security); Sun, 08 Sep 2024 07:48:19 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCUTAuRTGolVv4gN33cuRfG0WhBbbVMGXBhRiD9gc38U6tf1uYSIUO3jl12Lea/KEi6B8vJtKmyQHUPz9kuV@amarulasolutions.com X-Received: by 2002:a2e:be91:0:b0:2f7:4e9b:93e1 with SMTP id 38308e7fff4ca-2f751f69e28mr61916801fa.36.1725806898981; Sun, 08 Sep 2024 07:48:18 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-4-102-18.retail.telecomitalia.it. [87.4.102.18]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c3ebd4693fsm1926602a12.37.2024.09.08.07.48.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 07:48:18 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Thomas Petazzoni , Heiko Thiery , Dario Binacchi , Floris Bos , linux-amarula@amarulasolutions.com, "Yann E . MORIN" Subject: [PATCH v4 1/2] package/iana-assignments: new package Date: Sun, 8 Sep 2024 16:48:14 +0200 Message-ID: <20240908144815.3822467-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PEZO4Rwg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Signed-off-by: Yann E. MORIN Co-Developed-by: Thomas Petazzoni Signed-off-by: Thomas Petazzoni Signed-off-by: Dario Binacchi --- Changes v3 -> v4: - select BR2_PACKAGE_IANA_ASSIGNMENTS_PEN_REG when the package is enabled Added in v3 DEVELOPERS | 1 + package/Config.in | 1 + package/iana-assignments/Config.in | 15 +++++++++++++++ package/iana-assignments/iana-assignments.hash | 2 ++ package/iana-assignments/iana-assignments.mk | 18 ++++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 package/iana-assignments/Config.in create mode 100644 package/iana-assignments/iana-assignments.hash create mode 100644 package/iana-assignments/iana-assignments.mk diff --git a/DEVELOPERS b/DEVELOPERS index b0efabfd5d35..40e46741612b 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -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/uuu/ diff --git a/package/Config.in b/package/Config.in index 17855fed3058..729e05be675d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2465,6 +2465,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" diff --git a/package/iana-assignments/Config.in b/package/iana-assignments/Config.in new file mode 100644 index 000000000000..f1b803cfec1a --- /dev/null +++ b/package/iana-assignments/Config.in @@ -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 diff --git a/package/iana-assignments/iana-assignments.hash b/package/iana-assignments/iana-assignments.hash new file mode 100644 index 000000000000..c58fb61df292 --- /dev/null +++ b/package/iana-assignments/iana-assignments.hash @@ -0,0 +1,2 @@ +# Locally computed +sha256 e7a1f8153715fa9e0f4c5d102f9271bce425a468f58a445e7c5ecdf7105fd460 iana-assignments-bf358dc8d89b7939557220b8055699b42a4133e9.tar.gz diff --git a/package/iana-assignments/iana-assignments.mk b/package/iana-assignments/iana-assignments.mk new file mode 100644 index 000000000000..824b26d4ecf6 --- /dev/null +++ b/package/iana-assignments/iana-assignments.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# iana-assignments +# +################################################################################ + +IANA_ASSIGNMENTS_VERSION = bf358dc8d89b7939557220b8055699b42a4133e9 +IANA_ASSIGNMENTS_SITE = $(call github,larseggert,iana-assignments,$(IANA_ASSIGNMENTS_VERSION)) + +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))