From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jdSsS2cRYz2yGG for ; Mon, 30 Nov 2026 15:40:44 +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) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jdSsN4sfBz2xgB for ; Mon, 30 Nov 2026 15:40:40 +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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4jdSsN2pffz6rQ; Mon, 30 Nov 2026 15:40:40 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1796053240; 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=4fFEtvYiwfro5j4cKsc+974P+4+8B0DJ1mpdZ6OFl5E=; b=vH+Or8zUihO7OqbHGqlDUAt4JseDE8BVtoLTX0aR9T73UiHVBW4C+ss6hrXU4eiYJsv+77 R/cBUkPaK9a04tAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1796053240; 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=4fFEtvYiwfro5j4cKsc+974P+4+8B0DJ1mpdZ6OFl5E=; b=E0T/Pn6NV2P9u2vBrimdQl14/uSFucoxbAPaZfN4lnkMATFBWif9oFtLuwxPMHjmDQxfOr 1/YNChNOYBP8EcoNL5f/I3OhlPk+0ut38YpnrA9QdAKZcOB+JTJpxCk8e/MTVgJcXAugyB TN6he0ubxrC6QXZMcSdyuUw5jgpGqV5JAMCMdhpnSiRr33XcNmcWm/fcgumMq99tytL6o9 Z23EeBnDykUVG8nng77eCXc+ad56Ww0ClDHqdjtC5HUf6z7F+0sTJFKwUw5QW09d6mcsyn yZBJXttKEEuxGQLIc+GbPOvWgUcivSsGdFQHo1gz6yv6iJio2mrYpc9ZMMUzbA== From: Stefan Schantl To: development@lists.ipfire.org Cc: Stefan Schantl Subject: [PATCH 03/13] jsoncpp: New package Date: Mon, 30 Nov 2026 16:18:16 +0100 Message-ID: <20261130154031.269150-4-stefan.schantl@ipfire.org> In-Reply-To: <20261130154031.269150-1-stefan.schantl@ipfire.org> References: <20261130154031.269150-1-stefan.schantl@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Schantl --- config/rootfiles/packages/jsoncpp | 27 +++++++++ lfs/jsoncpp | 94 +++++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 122 insertions(+) create mode 100644 config/rootfiles/packages/jsoncpp create mode 100644 lfs/jsoncpp diff --git a/config/rootfiles/packages/jsoncpp b/config/rootfiles/packages/jsoncpp new file mode 100644 index 0000000000..8d9e5ad6e2 --- /dev/null +++ b/config/rootfiles/packages/jsoncpp @@ -0,0 +1,27 @@ +#usr/include/json +#usr/include/json/allocator.h +#usr/include/json/assertions.h +#usr/include/json/config.h +#usr/include/json/forwards.h +#usr/include/json/json.h +#usr/include/json/json_features.h +#usr/include/json/reader.h +#usr/include/json/value.h +#usr/include/json/version.h +#usr/include/json/writer.h +#usr/lib/cmake/jsoncpp +#usr/lib/cmake/jsoncpp/jsoncpp-namespaced-targets.cmake +#usr/lib/cmake/jsoncpp/jsoncpp-targets-release.cmake +#usr/lib/cmake/jsoncpp/jsoncpp-targets.cmake +#usr/lib/cmake/jsoncpp/jsoncppConfig.cmake +#usr/lib/cmake/jsoncpp/jsoncppConfigVersion.cmake +#usr/lib/libjsoncpp.a +#usr/lib/libjsoncpp.so +usr/lib/libjsoncpp.so.1.9.6 +usr/lib/libjsoncpp.so.26 +#usr/lib/objects-Release +#usr/lib/objects-Release/jsoncpp_object +#usr/lib/objects-Release/jsoncpp_object/json_reader.cpp.o +#usr/lib/objects-Release/jsoncpp_object/json_value.cpp.o +#usr/lib/objects-Release/jsoncpp_object/json_writer.cpp.o +#usr/lib/pkgconfig/jsoncpp.pc diff --git a/lfs/jsoncpp b/lfs/jsoncpp new file mode 100644 index 0000000000..63918840e4 --- /dev/null +++ b/lfs/jsoncpp @@ -0,0 +1,94 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2025 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 + +SUMMARY = C++ library for interacting with JSON + +VER = 1.9.6 + +THISAPP = jsoncpp-$(VER) +DL_FILE = jsoncpp-$(VER).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = jsoncpp +PAK_VER = 1 + +DEPS = + +SERVICES = + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_BLAKE2 = efa5dea68ddc175391200077666204f7ec66cd1f96a889a2a3c53d0e22e1f96ead1a2e7a871940f60dbd4261650f133b83de428b9c8b663fa13bd7ab4b9fdffe + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +b2 : $(subst %,%_BLAKE2,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# 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) && mkdir -pv build + cd $(DIR_APP)/build && cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + + cd $(DIR_APP)/build && make $(MAKETUNING) + cd $(DIR_APP)/build && make install + + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 7b482dac62..ed1fa584dd 100755 --- a/make.sh +++ b/make.sh @@ -2300,6 +2300,7 @@ build_system() { lfsmake2 python3-zabbix-utils lfsmake2 libupnp lfsmake2 spdlog + lfsmake2 jsoncpp lfsmake2 linux lfsmake2 linux-initrd -- 2.47.3