summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2024-11-04 02:50:41 -0600
committerGitHub <noreply@github.com>2024-11-04 09:50:41 +0100
commit87329639f29182d35fb8a45b1aa5e1366cedbf47 (patch)
tree6eaad8042acdcf67a3550cbe81ca30944db5e1d7 /var
parent0acd6ae7b2a4f265a12c1fffb62ecc52519a9211 (diff)
downloadspack-87329639f29182d35fb8a45b1aa5e1366cedbf47.tar.gz
spack-87329639f29182d35fb8a45b1aa5e1366cedbf47.tar.bz2
spack-87329639f29182d35fb8a45b1aa5e1366cedbf47.tar.xz
spack-87329639f29182d35fb8a45b1aa5e1366cedbf47.zip
elasticsearch, kibana, logstash: add v8.15.2 (#46873)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/elasticsearch/package.py17
-rw-r--r--var/spack/repos/builtin/packages/kibana/package.py7
-rw-r--r--var/spack/repos/builtin/packages/logstash/package.py20
3 files changed, 33 insertions, 11 deletions
diff --git a/var/spack/repos/builtin/packages/elasticsearch/package.py b/var/spack/repos/builtin/packages/elasticsearch/package.py
index b17ec06686..200a836053 100644
--- a/var/spack/repos/builtin/packages/elasticsearch/package.py
+++ b/var/spack/repos/builtin/packages/elasticsearch/package.py
@@ -13,14 +13,23 @@ class Elasticsearch(Package):
"""
homepage = "https://www.elastic.co/"
- url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz"
+ url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.15.2-linux-x86_64.tar.gz"
- version("6.4.0", sha256="e9786efb5cecd12adee2807c7640ba9a1ab3b484d2e87497bb8d0b6df0e24f01")
- version("6.3.0", sha256="0464127140820d82b24bd2830232131ea85bcd49267a8bc7365e4fa391dee2a3")
- version("6.2.4", sha256="91e6f1ea1e1dd39011e7a703d2751ca46ee374665b08b0bfe17e0c0c27000e8e")
+ version("8.15.2", sha256="0b6905ede457be9d1d73d0b6be1c3a7c7c6220829846b532f2604ad30ba7308f")
+ with default_args(deprecated=True):
+ # https://nvd.nist.gov/vuln/detail/CVE-2018-3831
+ version("6.4.0", sha256="e9786efb5cecd12adee2807c7640ba9a1ab3b484d2e87497bb8d0b6df0e24f01")
+ version("6.3.0", sha256="0464127140820d82b24bd2830232131ea85bcd49267a8bc7365e4fa391dee2a3")
+ version("6.2.4", sha256="91e6f1ea1e1dd39011e7a703d2751ca46ee374665b08b0bfe17e0c0c27000e8e")
depends_on("java", type="run")
+ def url_for_version(self, version):
+ if self.spec.satisfies("@:6"):
+ return f"https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-{version}.tar.gz"
+ else:
+ return f"https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-{version}-linux-x86_64.tar.gz"
+
def install(self, spec, prefix):
dirs = ["bin", "config", "lib", "modules", "plugins"]
diff --git a/var/spack/repos/builtin/packages/kibana/package.py b/var/spack/repos/builtin/packages/kibana/package.py
index bbf8146ec2..0245929e6b 100644
--- a/var/spack/repos/builtin/packages/kibana/package.py
+++ b/var/spack/repos/builtin/packages/kibana/package.py
@@ -13,9 +13,10 @@ class Kibana(Package):
homepage = "https://www.elastic.co/products/kibana"
url = "https://artifacts.elastic.co/downloads/kibana/kibana-6.4.0-linux-x86_64.tar.gz"
- version("6.4.0", sha256="df2056105a08c206a1adf9caed09a152a53429a0f1efc1ba3ccd616092d78aee")
-
- depends_on("cxx", type="build") # generated
+ version("8.15.2", sha256="b1f8082a4200867078170e92ad299e293ee514f5fdbb96b7a0d1de17a880d1eb")
+ with default_args(deprecated=True):
+ # https://nvd.nist.gov/vuln/detail/CVE-2019-7609
+ version("6.4.0", sha256="df2056105a08c206a1adf9caed09a152a53429a0f1efc1ba3ccd616092d78aee")
depends_on("java", type="run")
diff --git a/var/spack/repos/builtin/packages/logstash/package.py b/var/spack/repos/builtin/packages/logstash/package.py
index 5f6318faa0..4ad690c764 100644
--- a/var/spack/repos/builtin/packages/logstash/package.py
+++ b/var/spack/repos/builtin/packages/logstash/package.py
@@ -15,12 +15,24 @@ class Logstash(Package):
"""
homepage = "https://artifacts.elastic.co"
- url = "https://artifacts.elastic.co/downloads/logstash/logstash-6.6.0.tar.gz"
+ url = "https://artifacts.elastic.co/downloads/logstash/logstash-8.15.2-linux-x86_64.tar.gz"
- version("6.6.0", sha256="5a9a8b9942631e9d4c3dfb8d47075276e8c2cff343841145550cc0c1cfe7bba7")
+ version("8.15.2", sha256="fc75c8cad1016b07f7aeeeeb7ea23f4195ab1beee2ced282f11ff6d0e84f7e51")
+ with default_args(deprecated=True):
+ # https://nvd.nist.gov/vuln/detail/CVE-2019-7612
+ version("6.6.0", sha256="5a9a8b9942631e9d4c3dfb8d47075276e8c2cff343841145550cc0c1cfe7bba7")
- depends_on("c", type="build") # generated
- depends_on("cxx", type="build") # generated
+ depends_on("java@11:")
+
+ def url_for_version(self, version):
+ if self.spec.satisfies("@:6"):
+ return f"https://artifacts.elastic.co/downloads/logstash/logstash-{version}.tar.gz"
+ else:
+ return f"https://artifacts.elastic.co/downloads/logstash/logstash-{version}-linux-x86_64.tar.gz"
def install(self, spec, prefix):
install_tree(".", prefix)
+
+ def setup_run_environment(self, env):
+ # do not use the bundled jdk
+ env.set("LS_JAVA_HOME", self.spec["java"].home)