Mercurial > hg > orthanc-object-storage
annotate Aws/DownloadStaticPackages.sh @ 170:c4ed02f3328f
integration 1.3.0: back to mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Jun 2024 12:07:42 +0200 |
parents | cb9b4d8c75a2 |
children |
rev | line source |
---|---|
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 #!/bin/bash |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 # Cloud storage plugins for Orthanc |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 # Copyright (C) 2020-2023 Osimis S.A., Belgium |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 # Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 # Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 # |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 # This program is free software: you can redistribute it and/or |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 # modify it under the terms of the GNU Affero General Public License |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 # as published by the Free Software Foundation, either version 3 of |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 # the License, or (at your option) any later version. |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 # |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 # This program is distributed in the hope that it will be useful, but |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 # WITHOUT ANY WARRANTY; without even the implied warranty of |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 # Affero General Public License for more details. |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 # |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 # You should have received a copy of the GNU Affero General Public License |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 # This maintenance script downloads the AWS packages. |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 # |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 # NB: Older version numbers can be obtained from |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 # https://github.com/aws/aws-sdk-cpp/blob/main/prefetch_crt_dependency.sh |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 set -e |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 |
156
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
30 AWS_CHECKSUMS_VERSION=0.1.18 # https://github.com/awslabs/aws-checksums/tags |
155 | 31 AWS_CRT_CPP_VERSION=0.24.1 # https://github.com/awslabs/aws-crt-cpp/tags |
156
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
32 AWS_C_AUTH_VERSION=0.7.22 # https://github.com/awslabs/aws-c-auth/tags |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
33 AWS_C_CAL_VERSION=0.7.0 # https://github.com/awslabs/aws-c-cal/tags |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
34 AWS_C_COMMON_VERSION=0.9.23 # https://github.com/awslabs/aws-c-common/tags |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
35 AWS_C_COMPRESSION_VERSION=0.2.18 # https://github.com/awslabs/aws-c-compression/tags |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
36 AWS_C_EVENT_STREAM_VERSION=0.4.2 # https://github.com/awslabs/aws-c-event-stream/tags |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
37 AWS_C_HTTP_VERSION=0.8.2 # https://github.com/awslabs/aws-c-http/tags |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
38 AWS_C_IO_VERSION=0.14.9 # https://github.com/awslabs/aws-c-io/tags |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
39 AWS_C_MQTT_VERSION=0.10.4 # https://github.com/awslabs/aws-c-mqtt/tags |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
40 AWS_C_S3_VERSION=0.5.10 # https://github.com/awslabs/aws-c-s3/tags |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
41 AWS_C_SDKUTILS_VERSION=0.1.16 # https://github.com/awslabs/aws-c-sdkutils/tags |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 AWS_SDK_CPP_VERSION=1.11.178 # https://github.com/awslabs/aws-sdk-cpp/tags |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
43 |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
44 TARGET=/tmp/aws |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
45 |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
46 if [ -d "${TARGET}" ]; then |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
47 echo "Directory exists, giving up: ${TARGET}" |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
48 exit -1 |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 fi |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
50 |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
51 mkdir -p ${TARGET} |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 wget https://github.com/awslabs/aws-checksums/archive/refs/tags/v${AWS_CHECKSUMS_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 -O ${TARGET}/aws-checksums-${AWS_CHECKSUMS_VERSION}.tar.gz |
155 | 55 wget https://github.com/awslabs/aws-crt-cpp/archive/refs/tags/v${AWS_CRT_CPP_VERSION}.tar.gz \ |
56 -O ${TARGET}/aws-crt-cpp-${AWS_CRT_CPP_VERSION}.tar.gz | |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
57 wget https://github.com/awslabs/aws-c-auth/archive/refs/tags/v${AWS_C_AUTH_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
58 -O ${TARGET}/aws-c-auth-${AWS_C_AUTH_VERSION}.tar.gz |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
59 wget https://github.com/awslabs/aws-c-cal/archive/refs/tags/v${AWS_C_CAL_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
60 -O ${TARGET}/aws-c-cal-${AWS_C_CAL_VERSION}.tar.gz |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
61 wget https://github.com/awslabs/aws-c-common/archive/refs/tags/v${AWS_C_COMMON_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
62 -O ${TARGET}/aws-c-common-${AWS_C_COMMON_VERSION}.tar.gz |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
63 wget https://github.com/awslabs/aws-c-compression/archive/refs/tags/v${AWS_C_COMPRESSION_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
64 -O ${TARGET}/aws-c-compression-${AWS_C_COMPRESSION_VERSION}.tar.gz |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
65 wget https://github.com/awslabs/aws-c-event-stream/archive/refs/tags/v${AWS_C_EVENT_STREAM_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
66 -O ${TARGET}/aws-c-event-stream-${AWS_C_EVENT_STREAM_VERSION}.tar.gz |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
67 wget https://github.com/awslabs/aws-c-http/archive/refs/tags/v${AWS_C_HTTP_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
68 -O ${TARGET}/aws-c-http-${AWS_C_HTTP_VERSION}.tar.gz |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
69 wget https://github.com/awslabs/aws-c-io/archive/refs/tags/v${AWS_C_IO_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
70 -O ${TARGET}/aws-c-io-${AWS_C_IO_VERSION}.tar.gz |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
71 wget https://github.com/awslabs/aws-c-mqtt/archive/refs/tags/v${AWS_C_MQTT_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
72 -O ${TARGET}/aws-c-mqtt-${AWS_C_MQTT_VERSION}.tar.gz |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
73 wget https://github.com/awslabs/aws-c-s3/archive/refs/tags/v${AWS_C_S3_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
74 -O ${TARGET}/aws-c-s3-${AWS_C_S3_VERSION}.tar.gz |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
75 wget https://github.com/awslabs/aws-c-sdkutils/archive/refs/tags/v${AWS_C_SDKUTILS_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
76 -O ${TARGET}/aws-c-sdkutils-${AWS_C_SDKUTILS_VERSION}.tar.gz |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
77 wget https://github.com/awslabs/aws-sdk-cpp/archive/refs/tags/${AWS_SDK_CPP_VERSION}.tar.gz \ |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
78 -O ${TARGET}/aws-sdk-cpp-${AWS_SDK_CPP_VERSION}.tar.gz |