Skip to content

Commit

Permalink
Merge pull request #31 from pneerincx/new/cluster-utils
Browse files Browse the repository at this point in the history
Added new cluster-utils/v23.04.1.
  • Loading branch information
BenjaminsM authored Apr 5, 2023
2 parents df3b27c + 3b07818 commit b40688a
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions c/cluster-utils/cluster-utils-v23.04.1-GCCcore-11.3.0.eb
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit b40688a

Please sign in to comment.