From f023cdd562535a0467dcd70654468fc11678d82c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 29 Aug 2023 15:49:48 +0000 Subject: [PATCH] aws-c-common: New package Signed-off-by: Michael Tremer --- config/rootfiles/packages/aws-c-common | 110 +++++++++++++++++++++++++ lfs/aws-c-common | 87 +++++++++++++++++++ make.sh | 1 + 3 files changed, 198 insertions(+) create mode 100644 config/rootfiles/packages/aws-c-common create mode 100644 lfs/aws-c-common diff --git a/config/rootfiles/packages/aws-c-common b/config/rootfiles/packages/aws-c-common new file mode 100644 index 000000000..5c17faf0b --- /dev/null +++ b/config/rootfiles/packages/aws-c-common @@ -0,0 +1,110 @@ +#usr/include/aws +#usr/include/aws/common +#usr/include/aws/common/allocator.h +#usr/include/aws/common/array_list.h +#usr/include/aws/common/array_list.inl +#usr/include/aws/common/assert.h +#usr/include/aws/common/atomics.h +#usr/include/aws/common/atomics.inl +#usr/include/aws/common/atomics_fallback.inl +#usr/include/aws/common/atomics_gnu.inl +#usr/include/aws/common/atomics_gnu_old.inl +#usr/include/aws/common/atomics_msvc.inl +#usr/include/aws/common/byte_buf.h +#usr/include/aws/common/byte_order.h +#usr/include/aws/common/byte_order.inl +#usr/include/aws/common/cache.h +#usr/include/aws/common/clock.h +#usr/include/aws/common/clock.inl +#usr/include/aws/common/command_line_parser.h +#usr/include/aws/common/common.h +#usr/include/aws/common/condition_variable.h +#usr/include/aws/common/config.h +#usr/include/aws/common/cpuid.h +#usr/include/aws/common/date_time.h +#usr/include/aws/common/device_random.h +#usr/include/aws/common/encoding.h +#usr/include/aws/common/encoding.inl +#usr/include/aws/common/environment.h +#usr/include/aws/common/error.h +#usr/include/aws/common/error.inl +#usr/include/aws/common/exports.h +#usr/include/aws/common/external +#usr/include/aws/common/external/ittnotify.h +#usr/include/aws/common/fifo_cache.h +#usr/include/aws/common/file.h +#usr/include/aws/common/hash_table.h +#usr/include/aws/common/json.h +#usr/include/aws/common/lifo_cache.h +#usr/include/aws/common/linked_hash_table.h +#usr/include/aws/common/linked_list.h +#usr/include/aws/common/linked_list.inl +#usr/include/aws/common/log_channel.h +#usr/include/aws/common/log_formatter.h +#usr/include/aws/common/log_writer.h +#usr/include/aws/common/logging.h +#usr/include/aws/common/lru_cache.h +#usr/include/aws/common/macros.h +#usr/include/aws/common/math.cbmc.inl +#usr/include/aws/common/math.fallback.inl +#usr/include/aws/common/math.gcc_arm64_asm.inl +#usr/include/aws/common/math.gcc_builtin.inl +#usr/include/aws/common/math.gcc_overflow.inl +#usr/include/aws/common/math.gcc_x64_asm.inl +#usr/include/aws/common/math.h +#usr/include/aws/common/math.inl +#usr/include/aws/common/math.msvc.inl +#usr/include/aws/common/mutex.h +#usr/include/aws/common/package.h +#usr/include/aws/common/platform.h +#usr/include/aws/common/posix +#usr/include/aws/common/posix/common.inl +#usr/include/aws/common/predicates.h +#usr/include/aws/common/priority_queue.h +#usr/include/aws/common/process.h +#usr/include/aws/common/promise.h +#usr/include/aws/common/ref_count.h +#usr/include/aws/common/ring_buffer.h +#usr/include/aws/common/ring_buffer.inl +#usr/include/aws/common/rw_lock.h +#usr/include/aws/common/statistics.h +#usr/include/aws/common/stdbool.h +#usr/include/aws/common/stdint.h +#usr/include/aws/common/string.h +#usr/include/aws/common/string.inl +#usr/include/aws/common/system_info.h +#usr/include/aws/common/task_scheduler.h +#usr/include/aws/common/thread.h +#usr/include/aws/common/thread_scheduler.h +#usr/include/aws/common/time.h +#usr/include/aws/common/uri.h +#usr/include/aws/common/uuid.h +#usr/include/aws/common/xml_parser.h +#usr/include/aws/common/zero.h +#usr/include/aws/common/zero.inl +#usr/include/aws/testing +#usr/include/aws/testing/aws_test_harness.h +#usr/lib/aws-c-common +#usr/lib/aws-c-common/cmake +#usr/lib/aws-c-common/cmake/aws-c-common-config.cmake +#usr/lib/aws-c-common/cmake/shared +#usr/lib/aws-c-common/cmake/shared/aws-c-common-targets-noconfig.cmake +#usr/lib/aws-c-common/cmake/shared/aws-c-common-targets.cmake +#usr/lib/aws-c-common/cmake/static +#usr/lib/aws-c-common/cmake/static/aws-c-common-targets-noconfig.cmake +#usr/lib/aws-c-common/cmake/static/aws-c-common-targets.cmake +#usr/lib/cmake/AwsCFlags.cmake +#usr/lib/cmake/AwsCRuntime.cmake +#usr/lib/cmake/AwsCheckHeaders.cmake +#usr/lib/cmake/AwsFeatureTests.cmake +#usr/lib/cmake/AwsFindPackage.cmake +#usr/lib/cmake/AwsLibFuzzer.cmake +#usr/lib/cmake/AwsSIMD.cmake +#usr/lib/cmake/AwsSanitizers.cmake +#usr/lib/cmake/AwsSharedLibSetup.cmake +#usr/lib/cmake/AwsTestHarness.cmake +#usr/lib/libaws-c-common.a +#usr/lib/libaws-c-common.so +usr/lib/libaws-c-common.so.1 +usr/lib/libaws-c-common.so.1.0.0 + diff --git a/lfs/aws-c-common b/lfs/aws-c-common new file mode 100644 index 000000000..35334d894 --- /dev/null +++ b/lfs/aws-c-common @@ -0,0 +1,87 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2023 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 = Core c99 package for AWS SDK for C + +VER = 0.9.1 + +THISAPP = aws-c-common-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = aws-c-common +PAK_VER = 1 + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_BLAKE2 = 6667eb5314a743c08c005a8bffcc2463021c37c2f01cc040374f64cab05223f2f29bb2d96cc814f774348ea77d22d89e8e5a5d57a0d70a4b6b53a7c9344a4d08 + +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 zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && mkdir -pv build + cd $(DIR_APP)/build && cmake .. \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DBUILD_SHARED_LIBS:BOOL=ON + 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 638caf61f..5054e6a8f 100755 --- a/make.sh +++ b/make.sh @@ -1604,6 +1604,7 @@ buildipfire() { lfsmake2 python3-trio lfsmake2 python3-pyfuse3 lfsmake2 python3-wheel + lfsmake2 aws-c-common lfsmake2 aws-cli lfsmake2 oci-python-sdk lfsmake2 oci-cli -- 2.39.5