
We'd like to use a consistent checksum scheme everywhere so that we can: a) incorporate archive checksums into our specs and have a consistent hashing algorithm across all specs. b) index mirrors with a consistent type of checksum, and not one that is dependent on how spack packages are written. - [x] convert existing md5, sha224, sha512, sha1 checksums to sha256
33 lines
1.0 KiB
Python
33 lines
1.0 KiB
Python
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack import *
|
|
|
|
|
|
class Elasticsearch(Package):
|
|
"""Elasticsearch is a search engine based on Lucene. It provides a
|
|
distributed, multitenant-capable full-text search engine with an HTTP web
|
|
interface and schema-free JSON documents.
|
|
"""
|
|
|
|
homepage = "https://www.elastic.co/"
|
|
url = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz"
|
|
|
|
version('6.4.0', sha256='e9786efb5cecd12adee2807c7640ba9a1ab3b484d2e87497bb8d0b6df0e24f01')
|
|
version('6.2.4', sha256='91e6f1ea1e1dd39011e7a703d2751ca46ee374665b08b0bfe17e0c0c27000e8e')
|
|
|
|
depends_on('jdk', type='run')
|
|
|
|
def install(self, spec, prefix):
|
|
dirs = [
|
|
'bin',
|
|
'config',
|
|
'lib',
|
|
'modules',
|
|
'plugins']
|
|
|
|
for d in dirs:
|
|
install_tree(d, join_path(prefix, d))
|