From 05e8378dae152c5cfe86466699307770d9b564f9 Mon Sep 17 00:00:00 2001 From: Yu <53040839+Leosssss@users.noreply.github.com> Date: Mon, 5 Jun 2023 12:15:03 +0200 Subject: [PATCH 1/9] init tomcat mirror --- tomcat/available-versions | 57 +++++++++++++++++++++++++++++++++++++++ tomcat/ext-mappings | 4 +++ tomcat/os-mappings | 3 +++ tomcat/urls | 1 + tomcat/versions-url | 1 + tomcat/versions-url-op | 3 +++ 6 files changed, 69 insertions(+) create mode 100644 tomcat/available-versions create mode 100644 tomcat/ext-mappings create mode 100644 tomcat/os-mappings create mode 100644 tomcat/urls create mode 100644 tomcat/versions-url create mode 100644 tomcat/versions-url-op diff --git a/tomcat/available-versions b/tomcat/available-versions new file mode 100644 index 0000000..1954f78 --- /dev/null +++ b/tomcat/available-versions @@ -0,0 +1,57 @@ +10.0.0-M1 +10.0.0-M10 +10.0.0-M3 +10.0.0-M4 +10.0.0-M5 +10.0.0-M6 +10.0.0-M7 +10.0.0-M8 +10.0.0-M9 +10.0.0 +10.0.10 +10.0.11 +10.0.12 +10.0.13 +10.0.14 +10.0.15 +10.0.16 +10.0.17 +10.0.18 +10.0.2 +10.0.20 +10.0.21 +10.0.22 +10.0.23 +10.0.24 +10.0.25 +10.0.26 +10.0.27 +10.0.4 +10.0.5 +10.0.6 +10.0.7 +10.0.8 +10.1.0-M1 +10.1.0-M10 +10.1.0-M11 +10.1.0-M12 +10.1.0-M13 +10.1.0-M14 +10.1.0-M15 +10.1.0-M16 +10.1.0-M17 +10.1.0-M2 +10.1.0-M4 +10.1.0-M5 +10.1.0-M6 +10.1.0-M7 +10.1.0-M8 +10.1.0 +10.1.1 +10.1.2 +10.1.4 +10.1.5 +10.1.6 +10.1.7 +10.1.8 +10.1.9 diff --git a/tomcat/ext-mappings b/tomcat/ext-mappings new file mode 100644 index 0000000..46abb0f --- /dev/null +++ b/tomcat/ext-mappings @@ -0,0 +1,4 @@ +windows=zip +mac=tar.gz +*=tar.gz + diff --git a/tomcat/os-mappings b/tomcat/os-mappings new file mode 100644 index 0000000..989c86a --- /dev/null +++ b/tomcat/os-mappings @@ -0,0 +1,3 @@ +windows=windows-x86. +mac=fulldocs. +*=deployer. diff --git a/tomcat/urls b/tomcat/urls new file mode 100644 index 0000000..4926cb9 --- /dev/null +++ b/tomcat/urls @@ -0,0 +1 @@ +https://archive.apache.org/dist/tomcat/tomcat-10/v${version}/bin/apache-tomcat-${version}-${os}{ext} \ No newline at end of file diff --git a/tomcat/versions-url b/tomcat/versions-url new file mode 100644 index 0000000..1fd836b --- /dev/null +++ b/tomcat/versions-url @@ -0,0 +1 @@ +https://archive.apache.org/dist/tomcat/tomcat-10/ diff --git a/tomcat/versions-url-op b/tomcat/versions-url-op new file mode 100644 index 0000000..b781a1b --- /dev/null +++ b/tomcat/versions-url-op @@ -0,0 +1,3 @@ +awk -F '.*|\\/<' '{print $1}' | sed -n -e 's/^.*href="[0-9.]*\/">//p' + +# ???versions-url-op contains the command used to extract the versions from the response of curl $versions-url in a suitable format. This file is always required if you didn’t use the GitHub API for the versions-url. In case you used the GitHub API, you only have to create this file if the standardized approach doesn’t work (e.g. versions have the wrong format, there are versions left that need to be removed, …​) \ No newline at end of file From 373e9d750a754c3635f3cae7afbf5a1126c76084 Mon Sep 17 00:00:00 2001 From: Yu <53040839+Leosssss@users.noreply.github.com> Date: Tue, 6 Jun 2023 13:32:02 +0200 Subject: [PATCH 2/9] tomcat versions-url-op --- tomcat/available-versions | 58 +-------------------------------------- tomcat/urls | 2 +- tomcat/versions-url-op | 4 +-- 3 files changed, 3 insertions(+), 61 deletions(-) diff --git a/tomcat/available-versions b/tomcat/available-versions index 1954f78..3b9c997 100644 --- a/tomcat/available-versions +++ b/tomcat/available-versions @@ -1,57 +1 @@ -10.0.0-M1 -10.0.0-M10 -10.0.0-M3 -10.0.0-M4 -10.0.0-M5 -10.0.0-M6 -10.0.0-M7 -10.0.0-M8 -10.0.0-M9 -10.0.0 -10.0.10 -10.0.11 -10.0.12 -10.0.13 -10.0.14 -10.0.15 -10.0.16 -10.0.17 -10.0.18 -10.0.2 -10.0.20 -10.0.21 -10.0.22 -10.0.23 -10.0.24 -10.0.25 -10.0.26 -10.0.27 -10.0.4 -10.0.5 -10.0.6 -10.0.7 -10.0.8 -10.1.0-M1 -10.1.0-M10 -10.1.0-M11 -10.1.0-M12 -10.1.0-M13 -10.1.0-M14 -10.1.0-M15 -10.1.0-M16 -10.1.0-M17 -10.1.0-M2 -10.1.0-M4 -10.1.0-M5 -10.1.0-M6 -10.1.0-M7 -10.1.0-M8 -10.1.0 -10.1.1 -10.1.2 -10.1.4 -10.1.5 -10.1.6 -10.1.7 -10.1.8 -10.1.9 +9.0.76 \ No newline at end of file diff --git a/tomcat/urls b/tomcat/urls index 4926cb9..ab97e34 100644 --- a/tomcat/urls +++ b/tomcat/urls @@ -1 +1 @@ -https://archive.apache.org/dist/tomcat/tomcat-10/v${version}/bin/apache-tomcat-${version}-${os}{ext} \ No newline at end of file +https://github.com/apache/tomcat/tags/${version}/tomcat-${version}{ext} \ No newline at end of file diff --git a/tomcat/versions-url-op b/tomcat/versions-url-op index b781a1b..f3f1a06 100644 --- a/tomcat/versions-url-op +++ b/tomcat/versions-url-op @@ -1,3 +1 @@ -awk -F '.*|\\/<' '{print $1}' | sed -n -e 's/^.*href="[0-9.]*\/">//p' - -# ???versions-url-op contains the command used to extract the versions from the response of curl $versions-url in a suitable format. This file is always required if you didn’t use the GitHub API for the versions-url. In case you used the GitHub API, you only have to create this file if the standardized approach doesn’t work (e.g. versions have the wrong format, there are versions left that need to be removed, …​) \ No newline at end of file +grep "releases/tag" | awk -F'/' '{print $6}' | awk -F '"' '{print $1}' | sort -rV \ No newline at end of file From 48eaec4411294f72255d37efe92faea05d6ff28d Mon Sep 17 00:00:00 2001 From: Yu <53040839+Leosssss@users.noreply.github.com> Date: Tue, 6 Jun 2023 16:38:31 +0200 Subject: [PATCH 3/9] correct tomcat urls --- tomcat/urls | 2 +- tomcat/versions-url | 2 +- tomcat/versions-url-op | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tomcat/urls b/tomcat/urls index ab97e34..07e0b82 100644 --- a/tomcat/urls +++ b/tomcat/urls @@ -1 +1 @@ -https://github.com/apache/tomcat/tags/${version}/tomcat-${version}{ext} \ No newline at end of file +https://archive.apache.org/dist/tomcat/tomcat-${major}/v${version}/src/apache-tomcat-${version}-src.${ext} \ No newline at end of file diff --git a/tomcat/versions-url b/tomcat/versions-url index 1fd836b..0564e85 100644 --- a/tomcat/versions-url +++ b/tomcat/versions-url @@ -1 +1 @@ -https://archive.apache.org/dist/tomcat/tomcat-10/ +https://github.com/apache/tomcat/tags diff --git a/tomcat/versions-url-op b/tomcat/versions-url-op index f3f1a06..4fd9ee6 100644 --- a/tomcat/versions-url-op +++ b/tomcat/versions-url-op @@ -1 +1 @@ -grep "releases/tag" | awk -F'/' '{print $6}' | awk -F '"' '{print $1}' | sort -rV \ No newline at end of file +grep "releases/tag/" | awk -F'/' '{print $6}' | awk -F '"' '{print $1}' | sort -rV \ No newline at end of file From 2240847f89ca1861ed616881010d391482df6c85 Mon Sep 17 00:00:00 2001 From: Yu <53040839+Leosssss@users.noreply.github.com> Date: Tue, 6 Jun 2023 17:13:10 +0200 Subject: [PATCH 4/9] delete os-mapping --- tomcat/os-mappings | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 tomcat/os-mappings diff --git a/tomcat/os-mappings b/tomcat/os-mappings deleted file mode 100644 index 989c86a..0000000 --- a/tomcat/os-mappings +++ /dev/null @@ -1,3 +0,0 @@ -windows=windows-x86. -mac=fulldocs. -*=deployer. From d268e351316735466df9e7b65f7861fa8ff378fa Mon Sep 17 00:00:00 2001 From: Yu <53040839+Leosssss@users.noreply.github.com> Date: Fri, 9 Jun 2023 11:30:19 +0200 Subject: [PATCH 5/9] add available versions & use bin for download --- tomcat/available-versions | 139 +++++++++++++++++++++++++++++++++++++- tomcat/ext-mappings | 1 - tomcat/urls | 2 +- 3 files changed, 139 insertions(+), 3 deletions(-) diff --git a/tomcat/available-versions b/tomcat/available-versions index 3b9c997..6d811ae 100644 --- a/tomcat/available-versions +++ b/tomcat/available-versions @@ -1 +1,138 @@ -9.0.76 \ No newline at end of file +11.0.0-M7 +11.0.0-M6 +11.0.0-M5 +11.0.0-M4 +11.0.0-M3 +11.0.0-M1 +10.1.9 +10.1.8 +10.1.7 +10.1.6 +10.1.5 +10.1.4 +10.1.2 +10.1.1 +10.1.0 +10.1.0-M8 +10.1.0-M7 +10.1.0-M6 +10.1.0-M5 +10.1.0-M4 +10.1.0-M2 +10.1.0-M17 +10.1.0-M16 +10.1.0-M15 +10.1.0-M14 +10.1.0-M12 +10.1.0-M11 +10.1.0-M10 +10.1.0-M1 +10.0.8 +10.0.7 +10.0.6 +10.0.5 +10.0.4 +10.0.27 +10.0.26 +10.0.23 +10.0.22 +10.0.21 +10.0.20 +10.0.2 +10.0.18 +10.0.17 +10.0.16 +10.0.14 +10.0.13 +10.0.12 +10.0.11 +10.0.10 +10.0.0 +10.0.0-M10 +10.0.0-M9 +10.0.0-M8 +10.0.0-M7 +10.0.0-M6 +10.0.0-M5 +10.0.0-M4 +10.0.0-M3 +10.0.0-M1 +9.0.8 +9.0.75 +9.0.74 +9.0.73 +9.0.72 +9.0.71 +9.0.70 +9.0.7 +9.0.69 +9.0.68 +9.0.67 +9.0.65 +9.0.64 +9.0.63 +9.0.62 +9.0.60 +9.0.6 +9.0.59 +9.0.58 +9.0.56 +9.0.55 +9.0.54 +9.0.53 +9.0.52 +9.0.50 +9.0.5 +9.0.48 +9.0.46 +9.0.45 +9.0.44 +9.0.43 +9.0.41 +9.0.40 +9.0.4 +9.0.39 +9.0.38 +9.0.37 +9.0.36 +9.0.35 +9.0.34 +9.0.33 +9.0.31 +9.0.30 +9.0.29 +9.0.27 +9.0.26 +9.0.24 +9.0.22 +9.0.21 +9.0.20 +9.0.2 +9.0.19 +9.0.17 +9.0.16 +9.0.14 +9.0.13 +9.0.12 +9.0.11 +9.0.10 +9.0.1 +9.0.0.M9 +9.0.0.M8 +9.0.0.M6 +9.0.0.M4 +9.0.0.M3 +9.0.0.M27 +9.0.0.M26 +9.0.0.M25 +9.0.0.M22 +9.0.0.M21 +9.0.0.M20 +9.0.0.M19 +9.0.0.M18 +9.0.0.M17 +9.0.0.M15 +9.0.0.M13 +9.0.0.M11 +9.0.0.M10 +9.0.0.M1 \ No newline at end of file diff --git a/tomcat/ext-mappings b/tomcat/ext-mappings index 46abb0f..a69dab5 100644 --- a/tomcat/ext-mappings +++ b/tomcat/ext-mappings @@ -1,4 +1,3 @@ windows=zip -mac=tar.gz *=tar.gz diff --git a/tomcat/urls b/tomcat/urls index 07e0b82..a8306e8 100644 --- a/tomcat/urls +++ b/tomcat/urls @@ -1 +1 @@ -https://archive.apache.org/dist/tomcat/tomcat-${major}/v${version}/src/apache-tomcat-${version}-src.${ext} \ No newline at end of file +https://archive.apache.org/dist/tomcat/tomcat-${major}/v${version}/bin/apache-tomcat-${version}.${ext} \ No newline at end of file From 15e264fe8c4739413ddc99c82531708b690ce2cb Mon Sep 17 00:00:00 2001 From: Yu <53040839+Leosssss@users.noreply.github.com> Date: Wed, 14 Jun 2023 16:53:40 +0200 Subject: [PATCH 6/9] add new lines --- tomcat/available-versions | 2 +- tomcat/ext-mappings | 1 - tomcat/urls | 2 +- tomcat/versions-url-op | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tomcat/available-versions b/tomcat/available-versions index 6d811ae..83a45db 100644 --- a/tomcat/available-versions +++ b/tomcat/available-versions @@ -135,4 +135,4 @@ 9.0.0.M13 9.0.0.M11 9.0.0.M10 -9.0.0.M1 \ No newline at end of file +9.0.0.M1 diff --git a/tomcat/ext-mappings b/tomcat/ext-mappings index a69dab5..509c65f 100644 --- a/tomcat/ext-mappings +++ b/tomcat/ext-mappings @@ -1,3 +1,2 @@ windows=zip *=tar.gz - diff --git a/tomcat/urls b/tomcat/urls index a8306e8..171dbe0 100644 --- a/tomcat/urls +++ b/tomcat/urls @@ -1 +1 @@ -https://archive.apache.org/dist/tomcat/tomcat-${major}/v${version}/bin/apache-tomcat-${version}.${ext} \ No newline at end of file +https://archive.apache.org/dist/tomcat/tomcat-${major}/v${version}/bin/apache-tomcat-${version}.${ext} diff --git a/tomcat/versions-url-op b/tomcat/versions-url-op index 4fd9ee6..7435d12 100644 --- a/tomcat/versions-url-op +++ b/tomcat/versions-url-op @@ -1 +1 @@ -grep "releases/tag/" | awk -F'/' '{print $6}' | awk -F '"' '{print $1}' | sort -rV \ No newline at end of file +grep "releases/tag/" | awk -F'/' '{print $6}' | awk -F '"' '{print $1}' | sort -rV From 854f0e21314958ff62e92efca59be3cf0a7ea186 Mon Sep 17 00:00:00 2001 From: Yu <53040839+Leosssss@users.noreply.github.com> Date: Thu, 15 Jun 2023 15:18:44 +0200 Subject: [PATCH 7/9] remove tomcat 11 versions --- tomcat/available-versions | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tomcat/available-versions b/tomcat/available-versions index 83a45db..7e97aef 100644 --- a/tomcat/available-versions +++ b/tomcat/available-versions @@ -1,9 +1,3 @@ -11.0.0-M7 -11.0.0-M6 -11.0.0-M5 -11.0.0-M4 -11.0.0-M3 -11.0.0-M1 10.1.9 10.1.8 10.1.7 From 46bef0af1c1cecde4787cb845806fe3a204d3441 Mon Sep 17 00:00:00 2001 From: Yu <53040839+Leosssss@users.noreply.github.com> Date: Thu, 15 Jun 2023 16:57:58 +0200 Subject: [PATCH 8/9] remove milestone versions --- tomcat/available-versions | 42 --------------------------------------- 1 file changed, 42 deletions(-) diff --git a/tomcat/available-versions b/tomcat/available-versions index 7e97aef..ed3fb5f 100644 --- a/tomcat/available-versions +++ b/tomcat/available-versions @@ -7,20 +7,6 @@ 10.1.2 10.1.1 10.1.0 -10.1.0-M8 -10.1.0-M7 -10.1.0-M6 -10.1.0-M5 -10.1.0-M4 -10.1.0-M2 -10.1.0-M17 -10.1.0-M16 -10.1.0-M15 -10.1.0-M14 -10.1.0-M12 -10.1.0-M11 -10.1.0-M10 -10.1.0-M1 10.0.8 10.0.7 10.0.6 @@ -42,15 +28,6 @@ 10.0.11 10.0.10 10.0.0 -10.0.0-M10 -10.0.0-M9 -10.0.0-M8 -10.0.0-M7 -10.0.0-M6 -10.0.0-M5 -10.0.0-M4 -10.0.0-M3 -10.0.0-M1 9.0.8 9.0.75 9.0.74 @@ -111,22 +88,3 @@ 9.0.11 9.0.10 9.0.1 -9.0.0.M9 -9.0.0.M8 -9.0.0.M6 -9.0.0.M4 -9.0.0.M3 -9.0.0.M27 -9.0.0.M26 -9.0.0.M25 -9.0.0.M22 -9.0.0.M21 -9.0.0.M20 -9.0.0.M19 -9.0.0.M18 -9.0.0.M17 -9.0.0.M15 -9.0.0.M13 -9.0.0.M11 -9.0.0.M10 -9.0.0.M1 From 8dbdb803db9593e1f4afd893e46ddb66e717a204 Mon Sep 17 00:00:00 2001 From: Yu <53040839+Leosssss@users.noreply.github.com> Date: Wed, 28 Jun 2023 21:09:01 +0200 Subject: [PATCH 9/9] remove ext-mapping --- tomcat/ext-mappings | 2 -- tomcat/urls | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 tomcat/ext-mappings diff --git a/tomcat/ext-mappings b/tomcat/ext-mappings deleted file mode 100644 index 509c65f..0000000 --- a/tomcat/ext-mappings +++ /dev/null @@ -1,2 +0,0 @@ -windows=zip -*=tar.gz diff --git a/tomcat/urls b/tomcat/urls index 171dbe0..1133866 100644 --- a/tomcat/urls +++ b/tomcat/urls @@ -1 +1 @@ -https://archive.apache.org/dist/tomcat/tomcat-${major}/v${version}/bin/apache-tomcat-${version}.${ext} +https://archive.apache.org/dist/tomcat/tomcat-${major}/v${version}/bin/apache-tomcat-${version}.zip