From 1e4645c50ef20ceab0eb4752adfbd0cf9ed3568b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Krup=C4=8D=C3=ADk?= Date: Tue, 2 Apr 2019 12:43:58 +0200 Subject: [PATCH] new file: s/Singularity/Singularity-3.1.0.eb modified: s/squashfs-tools/squashfs-tools-4.3.eb --- s/Singularity/Singularity-3.1.0.eb | 43 ++++++++++++++++++++++++++ s/squashfs-tools/squashfs-tools-4.3.eb | 2 ++ 2 files changed, 45 insertions(+) create mode 100644 s/Singularity/Singularity-3.1.0.eb diff --git a/s/Singularity/Singularity-3.1.0.eb b/s/Singularity/Singularity-3.1.0.eb new file mode 100644 index 00000000..83e7c255 --- /dev/null +++ b/s/Singularity/Singularity-3.1.0.eb @@ -0,0 +1,43 @@ +# IT4Innovations 2019 + +easyblock = 'ConfigureMake' + +name = 'Singularity' +version = '3.1.0' + +homepage = 'https://github.com/sylabs/singularity' +description = "Singularity is an open source container platform designed to be simple, fast, and secure. Singularity is optimized for EPC and HPC workloads, allowing untrusted users to run untrusted containers in a trusted way." + +toolchain = {'name': 'dummy', 'version': ''} + +sources = [{ + 'source_urls': ['https://github.com/sylabs/singularity/releases/download/v3.1.0/'], + 'filename': 'singularity-3.1.0.tar.gz', + 'extract_cmd': "mkdir -p src/github.com/sylabs/singularity && tar xfvz %s -C src/github.com/sylabs/singularity --strip-components=1", +}] + +builddependencies = [ + ('Go', '1.11.1'), +] + +dependencies = [ + ('squashfs-tools', '4.3'), +] + +skipsteps = ['configure'] + +prebuildopts = "export GOPATH=%(builddir)s && " +prebuildopts += "./mconfig --prefix=%(installdir)s && " +prebuildopts += "cd ./builddir && " +preinstallopts = "cd ./builddir && " + +postinstallcmds = [ + 'echo "mksquashfs path = /apps/all/squashfs-tools/4.3/bin" >> %(installdir)s/etc/singularity/singularity.conf', +] + +sanity_check_paths = { + 'files': ['bin/singularity'], + 'dirs': ['bin', 'etc', 'libexec', 'var'], +} + +moduleclass = 'tools' diff --git a/s/squashfs-tools/squashfs-tools-4.3.eb b/s/squashfs-tools/squashfs-tools-4.3.eb index 7d44f5f9..eb0fad18 100644 --- a/s/squashfs-tools/squashfs-tools-4.3.eb +++ b/s/squashfs-tools/squashfs-tools-4.3.eb @@ -1,3 +1,5 @@ +# IT4Innovations 2019 + easyblock = 'ConfigureMake' name = 'squashfs-tools'