From patchwork Fri Sep 6 17:15:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3413 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F14E53F14C for ; Fri, 6 Sep 2024 19:15:19 +0200 (CEST) Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3750b4feb9fsf1157468f8f.1 for ; Fri, 06 Sep 2024 10:15:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725642919; cv=pass; d=google.com; s=arc-20240605; b=Wv7cr+K7r6WQt3O4Cs6VXH2diYy1KYs47//q47F0AvWgjCRUk/Qp+HjKP/b/NNQfpw 8XvkuZxpfd6/sIopWuMIAUWcyWkfKPGoGJsv4JO5NF/vCuhaDvaZwR6gmTbA5rKsrey3 466SBrHMygwRj6rK7BjOqnmgOgp3PAs/931D0elC3pRcL1j93riABgvPtb/1luUiC9bk JI5lE3i8Znu4oaTRDPBCP2LU7CyUaPMQow0R3e9q397A9Bd9mdyIvn70jmhFl6Ac4pLI XmYry3IAPthGRU/kimUk28reFHRy4N1zsp3WzXrK4csLZEJ5JgKFU/oBcjw5xLe3zvdz uGlw== 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=zZkwwNmA2gRJuo6+ppQ8fVtfllUm1FlrMBEl5ZXPWLA=; fh=eBw4+As3HsRxXPo538M8lDThiCFmBo5Npus7fL/hdzk=; b=IrZi67ulN1H8LOfg6ZmWoVzWMa4p4o9ADH6LDy3fDXB6ksF9Fu7bndErIj2XmA+ptP Rg+bEIfbinDwkOWmC8anKTtYsdQoEUJCS3EaYEhSKlfyOyTyx5xuTYsrzUL0B36ULL2+ PuIPdff9NmUt2VV1cWJpwXLoPhiKmLjNwFO3GHUN6S8NwD7LQDJRafZvSUykBcLO8X6+ 0c93+d2u7NjPeSUPZLEZNxRP4mACE9CEe/nS6HwqlPJCnqPpQ4HtPnjtun4ZSf+w2AXY Z9lfHmPciS6rs4SNiNxW8AWQW63Ute/2pQ///aBAopBpb7Uy9Qoeq1SH04pfGfej+Yda k1Cw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XPsfM8Ad; 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=1725642919; x=1726247719; 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=zZkwwNmA2gRJuo6+ppQ8fVtfllUm1FlrMBEl5ZXPWLA=; b=AT0rUdxgPv4sD9AxDG3+aTSbAzRAnLoGPJXx65Ycj4hVqFXYPpLOoVh0uzgrRUbZzn QEBTlMDb+lvnGLDkUzpNiaw59i1rUEtX+0jR+SDonUZXzmrbteMsJwX3BtogVfLje4DQ HUuVuNGbmGxqzrZEBdpJtsDCLUZ59vp6N4pwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725642919; x=1726247719; 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=zZkwwNmA2gRJuo6+ppQ8fVtfllUm1FlrMBEl5ZXPWLA=; b=BUqaOBfmU6LDRYCeKmNSkyRNnHEa27oXEoB3sWH9TpAciYmi3hMDi5/DBWgogc5HQZ wkwc+034UxE5nzX6kJuU1DZR+MI87V/r9eVBPViRkuJ2a/PjkpR+6KyiNoLHKSyHguFb z4n2ixKsWy3o3ICVypTgi2Sq5r6hq3blt7a5uEgeGsQAwR75WvGwMSxNmQqcm53g1AO4 fx/IKoTpgMm36eOhjM692eWZksXtgQs8/Gwi1+L8QP4BZYyUt9oQIRb5ATArhKCAodgm bREsA2Gw+PuBPxffiY5h4FkeIJyLVfMWjf6JoX+BFLXunDK+vx82NobjDtL9dgwYeoZK Chxw== X-Forwarded-Encrypted: i=2; AJvYcCW2mIAz6PYRENTmaX+v1Tgf8QJjpwXqH/YEuGBF0bkIwkvecBxs6BkBctWrA2DxKLDhsfXhPhfI8PTWUeJa@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxO1Hl04TDENahhqUE0QyEwmNvV3SupPkra2lcU/K1DavEf74tZ Qzr/rAZuKwoRD4vuQKjB+LWyT6u37Xc66hCn4QoCl+AHLz83Dq3t8ioO62zTUFWyqw== X-Google-Smtp-Source: AGHT+IFw4Wx6E/a9U5rFF/7meu3sLQNb8D465pRD9ZLZOoVQUVIFgK+Lc47nien9M0PTrpr1pAn/oQ== X-Received: by 2002:a5d:4801:0:b0:374:c878:21f7 with SMTP id ffacd0b85a97d-37799f5e676mr6257350f8f.10.1725642919097; Fri, 06 Sep 2024 10:15:19 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:5250:b0:428:1081:6352 with SMTP id 5b1f17b1804b1-42c9f49f2fcls4957285e9.2.-pod-prod-00-eu; Fri, 06 Sep 2024 10:15:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVhgur9nYhvOPAhuq70hyYy1ohESWrU14dVDS+r7jb0qiDT61SZgK+NaBbxSgaayrbQpguIXMP+lN4jKVX8@amarulasolutions.com X-Received: by 2002:a05:600c:1c26:b0:424:8be4:f2c with SMTP id 5b1f17b1804b1-42c9f498cf8mr22423105e9.2.1725642916825; Fri, 06 Sep 2024 10:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725642916; cv=none; d=google.com; s=arc-20160816; b=L8vWGbxk4u6jLBcDF8hXargD4P7WV4SoceTnxjd79ul3KjJNyShemmTN+eLOznQ6oX +7xJWqAwDBl8XxkU7N9h5dY0o8qyevyGqSMYFlkh96vsnWYHVe/9Zu/4ovNhg5UBcndO 4Uk3JLVOCYvtl48RfeH8KPq+BVCbvaEnv0MkyTUEAoJGmyLmcq/UpNJ54wXQFREV3oBK +j/T14PKJAAc/xMlAxazI8Lc2IVfH6Z9rW8rmMxZTzHdDB9WzClun8EDrgD3QhCHBPp+ eaASYgCUc1RAE9DAF9wdtjG3VZUdXU4EIq5LuwH0BtPnIZd1f/D4svDiyki30No2PtjX HXPA== 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=krC2znMnnN1smE5XhZ+TJvG9KjlJdjFEKTwK/kQvX3c=; fh=aFzORVQYRX5FZ/RQ7FFQKxu4Pf9V0oRww9lHBooL67A=; b=ZEUlzETdR84z+zrMlDRtm5O9YH6bSdN+rhD6cHmwjYQS8JiIh7OeB/5kw8NHgO/AMp 76VXR43kdMXHwG7EgBao6P5xGLgkxfs+eMcz4YE9rDu471e1psn+/RRVcjfN5ttw2yAT cfEKcBpPxABcVQo9WZBZUQLdJhFJeLWnQzfPiJgnXwVX9iXcsgYHhKE2HYSSlCSGMhIw Y/AkNE6mEB1oMdXBerKieqyerbXoEWef93njpwwLnPhbIq+HDLZaJ18lWWBu2Ap2WaMC 8bKNQgYhEv1+MsVZOkxTRgB0H2x4P3wRjlPTD1q1FpYv+pOLL442O2TIouH6yBylOweh Xiww==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XPsfM8Ad; 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 5b1f17b1804b1-42ca05c5eb4sor5391705e9.1.2024.09.06.10.15.16 for (Google Transport Security); Fri, 06 Sep 2024 10:15:16 -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; AJvYcCXrAUcZ8lBprBtzTKCiiHUaGAZLYVyKyEv3DuGD3XIJA1T0vg6kLa1RIJ1HT1gSaD3W8jDXXZ39jPBLwBHv@amarulasolutions.com X-Received: by 2002:a05:600c:1c26:b0:424:8be4:f2c with SMTP id 5b1f17b1804b1-42c9f498cf8mr22422895e9.2.1725642916174; Fri, 06 Sep 2024 10:15:16 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.43.8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ca05c6fb9sm26193875e9.7.2024.09.06.10.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 10:15:15 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Floris Bos , Heiko Thiery , Dario Binacchi , Thomas Petazzoni , linux-amarula@amarulasolutions.com, "Yann E . MORIN" Subject: [PATCH v3 1/2] package/iana-assignments: new package Date: Fri, 6 Sep 2024 19:15:02 +0200 Message-ID: <20240906171503.3495498-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=XPsfM8Ad; 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 --- Added in v3 DEVELOPERS | 1 + package/Config.in | 1 + package/iana-assignments/Config.in | 14 ++++++++++++++ package/iana-assignments/iana-assignments.hash | 2 ++ package/iana-assignments/iana-assignments.mk | 18 ++++++++++++++++++ 5 files changed, 36 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 069965680b2b..10c8b802a9c2 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 f33c4780f8ef..c2f63dd9c695 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2463,6 +2463,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..b7bd52abd2d1 --- /dev/null +++ b/package/iana-assignments/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_IANA_ASSIGNMENTS + bool "IANA assignments" + 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))