# IT4Innovations
# LK 2022

easyblock = 'ConfigureMake'

name = 'Kerberos'
version = '1.20'

homepage = 'http://web.mit.edu/kerberos/dist/index.html'
description = """Kerberos is a network authentication protocol.
 It is designed to provide strong authentication for client/server
 applications by using secret-key cryptography.
 A free implementation of this protocol is available from the
 Massachusetts Institute of Technology."""

toolchain = SYSTEM

source_urls = ['https://kerberos.org/dist/krb5/%(version)s/']
sources = ['krb5-%(version)s.tar.gz']
checksums = ['7e022bdd3c851830173f9faaa006a230a0e0fdad4c953e85bff4bf0da036e12f']

preconfigopts = "cd src && "
prebuildopts = "cd src && "
preinstallopts = "cd src && "

sanity_check_paths = {
    'files': ['bin/krb5-config', 'bin/gss-client', 'bin/kadmin',
              'sbin/kdb5_util', 'sbin/gss-server', 'sbin/kadmind',
              'lib/libkrb5.%s' % SHLIB_EXT, 'lib/libgssapi_krb5.%s' % SHLIB_EXT, 'lib/libkadm5clnt.%s' % SHLIB_EXT,
              'lib/libkadm5srv.%s' % SHLIB_EXT, 'lib/libkdb5.%s' % SHLIB_EXT, 'lib/libk5crypto.%s' % SHLIB_EXT,
              ],
    'dirs': ['lib/krb5']
}

moduleclass = 'system'
