diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-01-07 06:12:09 +0800 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2020-01-06 16:12:08 -0600 |
commit | f3c0d23a3cb690ea51c38e443d8a5fa86e8a2256 (patch) | |
tree | 2d3d205809c54e78c87ad463c494db65d807bb43 /var | |
parent | 627fd1949d003cbc56d2e12f78db3f5fd83959af (diff) | |
download | spack-f3c0d23a3cb690ea51c38e443d8a5fa86e8a2256.tar.gz spack-f3c0d23a3cb690ea51c38e443d8a5fa86e8a2256.tar.bz2 spack-f3c0d23a3cb690ea51c38e443d8a5fa86e8a2256.tar.xz spack-f3c0d23a3cb690ea51c38e443d8a5fa86e8a2256.zip |
Fastdfs (#14378)
* add new package : fastdfs
* refine install()
* remove redundant fastdfs/fastdfs/package.py
* fix install() error
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/fastdfs/package.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fastdfs/package.py b/var/spack/repos/builtin/packages/fastdfs/package.py new file mode 100644 index 0000000000..688308e910 --- /dev/null +++ b/var/spack/repos/builtin/packages/fastdfs/package.py @@ -0,0 +1,35 @@ +# 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 Fastdfs(Package): + """ + FastDFS is an open source high performance distributed file system. + It's major functions include: file storing, file syncing and file + accessing (file uploading and file downloading), and it can resolve + the high capacity and load balancing problem. FastDFS should meet + the requirement of the website whose service based on files such + as photo sharing site and video sharing site. + """ + + homepage = "https://github.com/happyfish100/fastdfs" + url = "https://github.com/happyfish100/fastdfs/archive/V6.05.tar.gz" + + version('6.05', sha256='00b736a1a7bd9cb5733aa51969efaa3b46df3764988c1edb43f06d72c4d575d9') + version('6.04', sha256='76090f6bbd0add08b049ce17f30a7507a44ef0d883784cad774b380ba4906916') + version('6.03', sha256='142be123eb389335b3b3793f0765494bdad3a632e4352af57861ed29098ec8d1') + version('6.02', sha256='b1801f80da9ebce1d84e7e05356c4614190651cb6a5cb4f5662d9196fe243e21') + version('6.01', sha256='b72f4ff6beb21a83af59aeba9f1904e727fa2c1e960e0a9c2b969138d2804148') + + depends_on('perl', type='build') + depends_on('libfastcommon', type='build') + + def install(self, spec, prefix): + sh = which('sh') + sh('make.sh') + sh('make.sh', 'install') + install_tree('.', prefix) |