summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-03-21 23:42:08 +0800
committerGitHub <noreply@github.com>2020-03-21 10:42:08 -0500
commit4b771bc5214fc731bea6c658b13e78a05736bf40 (patch)
tree617f28b0d0d0478aee0a6e62bb3de7e6f7290dfa /var
parent5df9dd2b480468aff4bf5b32d59c733ef56d7bca (diff)
downloadspack-4b771bc5214fc731bea6c658b13e78a05736bf40.tar.gz
spack-4b771bc5214fc731bea6c658b13e78a05736bf40.tar.bz2
spack-4b771bc5214fc731bea6c658b13e78a05736bf40.tar.xz
spack-4b771bc5214fc731bea6c658b13e78a05736bf40.zip
add new package: nfs-ganesha (#15580)
* add new pacakge: nfs-ganesha * refine package.py * update bison & flex as build depends
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/nfs-ganesha/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nfs-ganesha/package.py b/var/spack/repos/builtin/packages/nfs-ganesha/package.py
new file mode 100644
index 0000000000..1ea286270d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/nfs-ganesha/package.py
@@ -0,0 +1,29 @@
+# Copyright 2013-2020 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 NfsGanesha(CMakePackage):
+ """NFS-Ganesha is an NFSv3,v4,v4.1 fileserver that runs in user mode
+ on most UNIX/Linux systems. It also supports the 9p.2000L protocol."""
+
+ homepage = "https://github.com/nfs-ganesha/nfs-ganesha/wiki"
+ url = "https://github.com/nfs-ganesha/nfs-ganesha/archive/V3.2.tar.gz"
+
+ version('3.2', sha256='1e3635f0eb0bc32868ea7d923d061d0f6b1bd03b45da34356c7c53d4c0ebafbd')
+ version('3.1', sha256='c4cf78929f39b8af44b05e813783b2c39e348b485043c6290c4bca705bb5015f')
+ version('3.0.3', sha256='fcc0361b9a2752be7eb4e990230765e17de373452ac24514be22c81a5447a460')
+ version('3.0', sha256='136c5642ff21ec6e8a4e77c037f6218a39b2eeba77798b13556f1abbb0923ccd')
+
+ depends_on('bison', type='build')
+ depends_on('flex', type='build')
+ depends_on('userspace-rcu')
+ depends_on('ntirpc')
+
+ root_cmakelists_dir = 'src'
+
+ def setup_build_environment(self, env):
+ env.prepend_path('CPATH', self.spec['ntirpc'].prefix.include.ntirpc)