# IT4Innovations 2022
# JK

easyblock = 'PackedBinary'

name = 'irodsfs'
version = '0.7.6'

homepage = 'https://github.com/cyverse/irodsfs/'
description = """iRODS FUSE Lite FUSE implementation of iRODS Client written in Golang."""
docurls = 'https://docs.it4i.cz/dice/'

toolchain = SYSTEM

source_urls = ['https://github.com/cyverse/irodsfs/releases/download/v%(version)s/']
sources = ['irodsfs_amd64_linux_v%(version)s.tar']
checksums = ['90a310435b512235d9c5debe3ebed24a6a365ab8d044730706639e8fee8d9f04']

sanity_check_paths = {
    'files': ['irodsfs'],
    'dirs': []
}

postinstallcmds = [
    'cp /mnt/proj3/easybuild/scripts/irods-startup.sh %(installdir)s/',
    'cp /mnt/proj3/easybuild/scripts/chain_geant_ov_rsa_ca_4_full.* %(installdir)s/',
]

modluafooter = 'execute{cmd="bash $EBROOTIRODSFS/irods-startup.sh", modeA={"load"}}'

moduleclass = 'tools'
