summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessasaurus <814322+vsoch@users.noreply.github.com>2023-05-15 10:14:44 -0600
committerGitHub <noreply@github.com>2023-05-15 09:14:44 -0700
commitf94ac8c77033088feece2fa085e44a4fef54e18a (patch)
tree56d2de039642f0f54acff246814c52264cd42930
parenta03c28a91650f0273db51ef46a7be3329cdb92ed (diff)
downloadspack-f94ac8c77033088feece2fa085e44a4fef54e18a.tar.gz
spack-f94ac8c77033088feece2fa085e44a4fef54e18a.tar.bz2
spack-f94ac8c77033088feece2fa085e44a4fef54e18a.tar.xz
spack-f94ac8c77033088feece2fa085e44a4fef54e18a.zip
add new package flux-security (#37668)
I will follow this up with a variant to flux-core to add flux-security, and then automation in the flux-framework/spack repository. Signed-off-by: vsoch <vsoch@users.noreply.github.com> Co-authored-by: vsoch <vsoch@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/flux-security/package.py61
1 files changed, 61 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flux-security/package.py b/var/spack/repos/builtin/packages/flux-security/package.py
new file mode 100644
index 0000000000..e85528618f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/flux-security/package.py
@@ -0,0 +1,61 @@
+# Copyright 2013-2023 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)
+
+import os
+
+import spack.util.executable
+from spack.package import *
+
+
+class FluxSecurity(AutotoolsPackage):
+ """Independent project for Flux security code and APIs."""
+
+ homepage = "https://github.com/flux-framework/flux-security"
+ url = "https://github.com/flux-framework/flux-security/releases/download/v0.8.0/flux-security-0.8.0.tar.gz"
+ git = "https://github.com/flux-framework/flux-security.git"
+ tags = ["radiuss", "e4s"]
+
+ maintainers("grondo")
+
+ version("master", branch="master")
+ version("0.8.0", sha256="9963628063b4abdff6bece03208444c8f23fbfda33c20544c48b21e9f4819ce2")
+
+ # Need autotools when building on master:
+ depends_on("autoconf", type="build", when="@master")
+ depends_on("automake", type="build", when="@master")
+ depends_on("libtool", type="build", when="@master")
+
+ depends_on("pkgconfig")
+ depends_on("libsodium@1.0.14:")
+ depends_on("jansson")
+ depends_on("libuuid")
+ depends_on("munge")
+ depends_on("libpam")
+
+ def setup(self):
+ pass
+
+ @when("@master")
+ def setup(self):
+ with working_dir(self.stage.source_path):
+ # Allow git-describe to get last tag so flux-version works:
+ git = which("git")
+ # When using spack develop, this will already be unshallow
+ try:
+ git("fetch", "--unshallow")
+ git("config", "remote.origin.fetch", "+refs/heads/*:refs/remotes/origin/*")
+ git("fetch", "origin")
+ except spack.util.executable.ProcessError:
+ git("fetch")
+
+ def autoreconf(self, spec, prefix):
+ self.setup()
+ if os.path.exists(self.configure_abs_path):
+ return
+ # make sure configure doesn't get confused by the staging symlink
+ with working_dir(self.configure_directory):
+ # Bootstrap with autotools
+ bash = which("bash")
+ bash("./autogen.sh")