From 328a3f97fd164ae4d33cc47d7f84a0b57e77d625 Mon Sep 17 00:00:00 2001 From: cedricchevalier19 Date: Fri, 3 May 2019 22:43:56 +0200 Subject: cURL package: add gssapi option (#11344) This option allows curl and its dependents (git, ...) to work with proxy using Kerberos authentification. --- var/spack/repos/builtin/packages/curl/package.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'var') 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') -- cgit v1.2.3-70-g09d2