From patchwork Wed Jan 24 21:09:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 7490 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4TKxRr6CkXz3xN2 for ; Wed, 24 Jan 2024 21:10:00 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4TKxRp48z1z2fg; Wed, 24 Jan 2024 21:09:58 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4TKxRp3Zglz32WM; Wed, 24 Jan 2024 21:09:58 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4TKxRh356zz32VP for ; Wed, 24 Jan 2024 21:09:52 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4TKxRg6wy8z1fj; Wed, 24 Jan 2024 21:09:51 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1706130592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BbWFy42KRJIti9+laxNYE8YrBOeymMP1/xBGOTjXXFg=; b=lVi6IEXhIill//xRzNEAmaLxca0u2q28yb8ukjfQeYPvs4dPBkM52dYSqfoQVRXwd/vUpo pTDt3A8jRtSFmbCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1706130592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BbWFy42KRJIti9+laxNYE8YrBOeymMP1/xBGOTjXXFg=; b=Twud2LJAbRqIpZKh0aJEpkVPrMGfhAqs3jIACjGM0Wte46ZQT7JFLmXKMiukt9OG84hfMO pW4YOy72mj2AkGLwA0tuUiUCss2ol7RhxZrxK2K/nm94zgVLjZpSVWbo4Lxp82MEasxxWc EpahydP5InYoV5ZNvAPwPGLLKXCd+ssz/0vMzJUdz55rhJn89h4VK+dR69424oSmZjOixn UOfOWeJOrXSK+1w0CD6/0M23ZwZTVyq2HRoxVihPHyOCzx4EzheBW/oAaGohCDoCdTfo0X XN4Q8oL6rSvg4/oVGkLg9yL3bdr3TSb/LIph5RJ6DyfoLXw2Srn3zbbOLuyyFw== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 3/5] protobuf-c: New build dependency for frr Date: Wed, 24 Jan 2024 22:09:42 +0100 Message-ID: <20240124210944.1258100-3-adolf.belka@ipfire.org> In-Reply-To: <20240124210944.1258100-1-adolf.belka@ipfire.org> References: <20240124210944.1258100-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: UUI6TDMUOSKF6GG7YISKGHYBXYLMXENE X-Message-ID-Hash: UUI6TDMUOSKF6GG7YISKGHYBXYLMXENE X-MailFrom: adolf.belka@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Adolf Belka --- config/rootfiles/common/protobuf-c | 13 +++++ lfs/protobuf-c | 78 ++++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 92 insertions(+) create mode 100644 config/rootfiles/common/protobuf-c create mode 100644 lfs/protobuf-c mode change 100755 => 100644 make.sh diff --git a/config/rootfiles/common/protobuf-c b/config/rootfiles/common/protobuf-c new file mode 100644 index 000000000..56e6a2362 --- /dev/null +++ b/config/rootfiles/common/protobuf-c @@ -0,0 +1,13 @@ +#usr/bin/protoc-c +#usr/bin/protoc-gen-c +#usr/include/google/protobuf-c +#usr/include/google/protobuf-c/protobuf-c.h +#usr/include/protobuf-c +#usr/include/protobuf-c/protobuf-c.h +#usr/include/protobuf-c/protobuf-c.proto +#usr/lib/libprotobuf-c.a +#usr/lib/libprotobuf-c.la +#usr/lib/libprotobuf-c.so +#usr/lib/libprotobuf-c.so.1 +#usr/lib/libprotobuf-c.so.1.0.0 +#usr/lib/pkgconfig/libprotobuf-c.pc diff --git a/lfs/protobuf-c b/lfs/protobuf-c new file mode 100644 index 000000000..2c3128f35 --- /dev/null +++ b/lfs/protobuf-c @@ -0,0 +1,78 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2024 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 1.5.0 + +THISAPP = protobuf-c-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_BLAKE2 = 7b428655901f4fd74b67b75419552e7c02065a5291aed4dcc1d55b98c986caa9ccf846eb5e98e0954420c3e5bea559b0078843e00daa7b5c63465eec21e28204 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +b2 : $(subst %,%_BLAKE2,$(objects)) + +############################################################################### +# Downloading, checking, b2sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_BLAKE2,$(objects)) : + @$(B2SUM) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure \ + --prefix=/usr + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh old mode 100755 new mode 100644 index 7877a642c..183d4a535 --- a/make.sh +++ b/make.sh @@ -1648,6 +1648,7 @@ buildipfire() { lfsmake2 dnsdist lfsmake2 bird lfsmake2 libyang + lfsmake2 protobuf-c lfsmake2 frr lfsmake2 dmidecode lfsmake2 mcelog