summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-06-22 14:31:20 +0200
committerGitHub <noreply@github.com>2022-06-22 14:31:20 +0200
commit699c0cf9a018a05dfd98dc601527d14dbee07b7a (patch)
tree0b5c5d93c3fc8b48d9945a2d325eb3a2f071f6d5 /var
parent55cac3b098bec3ebb43e06308d1ff839a7a70ee4 (diff)
downloadspack-699c0cf9a018a05dfd98dc601527d14dbee07b7a.tar.gz
spack-699c0cf9a018a05dfd98dc601527d14dbee07b7a.tar.bz2
spack-699c0cf9a018a05dfd98dc601527d14dbee07b7a.tar.xz
spack-699c0cf9a018a05dfd98dc601527d14dbee07b7a.zip
squashfs-mount: new package (#31225)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/squashfs-mount/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/squashfs-mount/package.py b/var/spack/repos/builtin/packages/squashfs-mount/package.py
new file mode 100644
index 0000000000..0a6fc7b548
--- /dev/null
+++ b/var/spack/repos/builtin/packages/squashfs-mount/package.py
@@ -0,0 +1,26 @@
+# Copyright 2013-2022 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.package import *
+
+
+class SquashfsMount(MakefilePackage):
+ """Allows non-root users to mount squashfs files without the overhead of
+ squashfuse."""
+
+ homepage = "https://github.com/eth-cscs/squashfs-mount"
+ url = "https://github.com/eth-cscs/squashfs-mount/archive/refs/tags/v0.1.0.tar.gz"
+
+ maintainers = ['haampie']
+
+ version('0.1.0', sha256='37841ede7a7486d437fd06ae13e432560f81806f69addc72cfc8e564c8727bc6')
+
+ variant('suid', default=False, description='Make squashfs-mount a suid executable')
+
+ depends_on('util-linux', type='link')
+
+ def install(self, spec, prefix):
+ tgt = 'install' if '~suid' in spec else 'install-suid'
+ make(tgt, 'prefix=' + prefix)