diff options
author | cedricchevalier19 <cedric.chevalier@cea.fr> | 2019-05-03 22:43:56 +0200 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-05-04 05:43:56 +0900 |
commit | 328a3f97fd164ae4d33cc47d7f84a0b57e77d625 (patch) | |
tree | 014b436e0983929171431bdc19a2d99e9633f054 /var | |
parent | ddf485ee6d9ebd7811ba6a7c9bdf4c5d40e8644a (diff) | |
download | spack-328a3f97fd164ae4d33cc47d7f84a0b57e77d625.tar.gz spack-328a3f97fd164ae4d33cc47d7f84a0b57e77d625.tar.bz2 spack-328a3f97fd164ae4d33cc47d7f84a0b57e77d625.tar.xz spack-328a3f97fd164ae4d33cc47d7f84a0b57e77d625.zip |
cURL package: add gssapi option (#11344)
This option allows curl and its dependents (git, ...) to work with
proxy using Kerberos authentification.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/curl/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/curl/package.py b/var/spack/repos/builtin/packages/curl/package.py index 13e730f190..07afec53ad 100644 --- a/var/spack/repos/builtin/packages/curl/package.py +++ b/var/spack/repos/builtin/packages/curl/package.py @@ -37,6 +37,7 @@ class Curl(AutotoolsPackage): variant('libssh2', default=False, description='enable libssh2 support') variant('libssh', default=False, description='enable libssh support') # , when='7.58:') variant('darwinssl', default=sys.platform == 'darwin', description="use Apple's SSL/TLS implementation") + variant('gssapi', default=False, description='enable Kerberos support') conflicts('+libssh', when='@:7.57.99') # on OSX and --with-ssh the configure steps fails with @@ -53,6 +54,7 @@ class Curl(AutotoolsPackage): depends_on('nghttp2', when='+nghttp2') depends_on('libssh2', when='+libssh2') depends_on('libssh', when='+libssh') + depends_on('krb5', when='+gssapi') def configure_args(self): spec = self.spec @@ -63,6 +65,9 @@ class Curl(AutotoolsPackage): else: args.append('--with-ssl={0}'.format(spec['openssl'].prefix)) + if spec.satisfies('+gssapi'): + args.append('--with-gssapi={0}'.format(spec['krb5'].prefix)) + args += self.with_or_without('nghttp2') args += self.with_or_without('libssh2') args += self.with_or_without('libssh') |