From patchwork Fri Aug 20 20:04:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 4638 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 (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Grt0m3dPdz3xJ1 for ; Fri, 20 Aug 2021 20:05:28 +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 (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Grt0m1C5Qz6Pq; Fri, 20 Aug 2021 20:05:28 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Grt0m0Yqgz2xhR; Fri, 20 Aug 2021 20:05:28 +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 (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Grt0k3SKFz2xNW for ; Fri, 20 Aug 2021 20:05:26 +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 (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Grt0j5mPCz1Tx; Fri, 20 Aug 2021 20:05:25 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1629489925; 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=kQk5ObF5EfMP8doHyBQlLDG7BFOM5YjQUPHC5JUR2kk=; b=IpbUBeKbSUxSJLHWF063IcLvpuulYr0bdcodRdLJs9dcwCBX2bo2THh3mDYVge5Q1yEzL/ Lv6j4lUeG9IzQGBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1629489925; 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=kQk5ObF5EfMP8doHyBQlLDG7BFOM5YjQUPHC5JUR2kk=; b=ZVC1HNAa1pREyZXRjw65n5bn0/1id1yybF62PbJNfIqhFSYP1svW/Bg0X7VeNNMIEck9P4 enuVbdCyT4C8sQKuOBAdtK+Ew98ZyGk5TANoa515gZOFlbtfv+JkUwFbjbP9Xvnry6stYb l6ruIEspepOg3qViHRnb9gph/W5QdwoN3U3ufmnlvucdz4RqAi7jRH0r4s1A8YVpemaXAJ Qoi39xKxAco0hUI4ueoMTqijkLwxniSJ1+nllYAtGUg01CRotm6eyrlyKmZl46a5VmhAoP B8zXrhIowEbMFj6MN1QkeYVMl6m5UjudPvAcZCOaPEVoiec9UuZfT0arM+Nvwg== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 4/4] libtasn1: New program required as build dependency for p11-kit Date: Fri, 20 Aug 2021 22:04:28 +0200 Message-Id: <20210820200428.3535766-4-adolf.belka@ipfire.org> In-Reply-To: <20210820200428.3535766-1-adolf.belka@ipfire.org> References: <20210820200428.3535766-1-adolf.belka@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - creation of lfs and rootfile for libtasn1 Signed-off-by: Adolf Belka Reviewed-by: Michael Tremer --- config/rootfiles/common/libtasn1 | 54 +++++++++++++++++++++ lfs/libtasn1 | 82 ++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 config/rootfiles/common/libtasn1 create mode 100644 lfs/libtasn1 diff --git a/config/rootfiles/common/libtasn1 b/config/rootfiles/common/libtasn1 new file mode 100644 index 000000000..33c729cf5 --- /dev/null +++ b/config/rootfiles/common/libtasn1 @@ -0,0 +1,54 @@ +#usr/bin/asn1Coding +#usr/bin/asn1Decoding +#usr/bin/asn1Parser +#usr/include/libtasn1.h +#usr/lib/libtasn1.la +#usr/lib/libtasn1.so +usr/lib/libtasn1.so.6 +usr/lib/libtasn1.so.6.6.1 +#usr/lib/pkgconfig/libtasn1.pc +#usr/share/info/libtasn1.info +#usr/share/man/man1/asn1Coding.1 +#usr/share/man/man1/asn1Decoding.1 +#usr/share/man/man1/asn1Parser.1 +#usr/share/man/man3/asn1_array2tree.3 +#usr/share/man/man3/asn1_bit_der.3 +#usr/share/man/man3/asn1_check_version.3 +#usr/share/man/man3/asn1_copy_node.3 +#usr/share/man/man3/asn1_create_element.3 +#usr/share/man/man3/asn1_decode_simple_ber.3 +#usr/share/man/man3/asn1_decode_simple_der.3 +#usr/share/man/man3/asn1_delete_element.3 +#usr/share/man/man3/asn1_delete_structure.3 +#usr/share/man/man3/asn1_delete_structure2.3 +#usr/share/man/man3/asn1_der_coding.3 +#usr/share/man/man3/asn1_der_decoding.3 +#usr/share/man/man3/asn1_der_decoding2.3 +#usr/share/man/man3/asn1_der_decoding_element.3 +#usr/share/man/man3/asn1_der_decoding_startEnd.3 +#usr/share/man/man3/asn1_dup_node.3 +#usr/share/man/man3/asn1_encode_simple_der.3 +#usr/share/man/man3/asn1_expand_any_defined_by.3 +#usr/share/man/man3/asn1_expand_octet_string.3 +#usr/share/man/man3/asn1_find_node.3 +#usr/share/man/man3/asn1_find_structure_from_oid.3 +#usr/share/man/man3/asn1_get_bit_der.3 +#usr/share/man/man3/asn1_get_length_ber.3 +#usr/share/man/man3/asn1_get_length_der.3 +#usr/share/man/man3/asn1_get_object_id_der.3 +#usr/share/man/man3/asn1_get_octet_der.3 +#usr/share/man/man3/asn1_get_tag_der.3 +#usr/share/man/man3/asn1_length_der.3 +#usr/share/man/man3/asn1_number_of_elements.3 +#usr/share/man/man3/asn1_object_id_der.3 +#usr/share/man/man3/asn1_octet_der.3 +#usr/share/man/man3/asn1_parser2array.3 +#usr/share/man/man3/asn1_parser2tree.3 +#usr/share/man/man3/asn1_perror.3 +#usr/share/man/man3/asn1_print_structure.3 +#usr/share/man/man3/asn1_read_node_value.3 +#usr/share/man/man3/asn1_read_tag.3 +#usr/share/man/man3/asn1_read_value.3 +#usr/share/man/man3/asn1_read_value_type.3 +#usr/share/man/man3/asn1_strerror.3 +#usr/share/man/man3/asn1_write_value.3 diff --git a/lfs/libtasn1 b/lfs/libtasn1 new file mode 100644 index 000000000..155608807 --- /dev/null +++ b/lfs/libtasn1 @@ -0,0 +1,82 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2018 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 = 4.17.0 + +THISAPP = libtasn1-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) + +CFLAGS += -fcommon + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = c46f6eb3bd1287031ae5d36465094402 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + $(UPDATE_AUTOMAKE) + cd $(DIR_APP) && ./configure \ + --prefix=/usr \ + --disable-static + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD)