From 3b0781856c63ea710c0e597a02d22f9c47fa064a Mon Sep 17 00:00:00 2001 From: Pieter Neerincx Date: Wed, 5 Apr 2023 10:48:32 +0200 Subject: [PATCH] Added new cluster-utils/v23.04.1. --- .../cluster-utils-v23.04.1-GCCcore-11.3.0.eb | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 c/cluster-utils/cluster-utils-v23.04.1-GCCcore-11.3.0.eb diff --git a/c/cluster-utils/cluster-utils-v23.04.1-GCCcore-11.3.0.eb b/c/cluster-utils/cluster-utils-v23.04.1-GCCcore-11.3.0.eb new file mode 100644 index 0000000..9b61ee4 --- /dev/null +++ b/c/cluster-utils/cluster-utils-v23.04.1-GCCcore-11.3.0.eb @@ -0,0 +1,80 @@ +name = 'cluster-utils' +version = 'v23.04.1' + +homepage = 'https://github.com/molgenis/cluster-utils/' +description = """Utilities for cluster users.""" + +toolchain = {'name': 'GCCcore', 'version': '11.3.0'} +easyblock = 'CmdCp' + +# +# Example URL: +# https://github.com/molgenis/cluster-utils/archive/v15.06.1.tar.gz +# +source_urls = [('http://github.com/molgenis/%s/archive/' % (name))] +sources = [('%s.tar.gz' % (version))] +checksums = ['8af8d2e2ef2969852b34bebac9676fa41e4d5ba575fa209b3463ba9c5d04177e'] + +# +# Deps. +# +dependencies = [ + ('ncurses', '6.3'), # For ctop. + ('Curses', '1.41', '-Perl-5.34.1') # For ctop. +] + +keepsymlinks = True + +# +# Install 'apps' and README.md. +# +files_to_copy = [ + 'README.md', + (['bin/*'], 'bin/') +] + +# +# We don't really need a command to install, +# but as we have to have one in order to recycle the CmdCp easyblock... just ls. +# +cmds_map = [('.*', "ls -ahl %(source)s")] + +# +# Make scripts executable. +# (Mode may by masked by umask.) +# And remove tools we don't need or won't work on our HPC sites. +# +postinstallcmds = [ + 'for executable in $(ls -1 %(installdir)s/bin/* 2> /dev/null); do chmod 775 ${executable}; done', + 'chmod -R g+rwX,o+rX,o-w %(installdir)s/*', + 'rm %(installdir)s/bin/ctop-pbs', + 'rm %(installdir)s/bin/sjload*', + 'rm %(installdir)s/bin/hpc-environment*', +] + +# +# Sanity checking. +# +local_executables = [ + 'caccounts', + 'cfinger', + 'cnodes', + 'cprio', + 'cps', + 'cqos', + 'cqueue', + 'cshare', + 'ctop-slurm', 'ctop', + 'colleagues', + 'quota', + #'hpc-environment-quota-report-for-PFS', + #'hpc-environment-slurm-report', + 'sjeff', +] +sanity_check_paths = { + 'files': ['README.md'] + ['bin/%s' % x for x in local_executables], + 'dirs': ['bin'] +} +sanity_check_commands = [('quota', '-h')] + +moduleclass = 'tools'