I've written a patch (pasted below) that adds a GSSAPI flavor to the
OpenLDAP port. This should bring back another small piece of the
functionality that was lost when Heimdal was axed from base.

Is this a welcome change? If so, can someone with experience take a look
and make sure I haven't done something horribly wrong?

Thanks,

William Leuschner

Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/openldap/Makefile,v
retrieving revision 1.145
diff -u -p -r1.145 Makefile
--- Makefile    29 Jun 2016 16:14:38 -0000      1.145
+++ Makefile    24 Oct 2016 18:26:59 -0000
@@ -49,7 +49,7 @@ CONFIGURE_STYLE =     autoconf
 USE_GROFF =            Yes

 FLAVOR ?=
-FLAVORS =              aci
+FLAVORS =              aci gssapi

 CONFIGURE_ARGS +=      --enable-ipv6 \
                        --with-tls=openssl
@@ -92,6 +92,12 @@ CONFIGURE_ARGS +=    --disable-mdb

 .if ${FLAVOR:Maci}
 CONFIGURE_ARGS +=      --enable-aci
+.endif
+
+.if ${FLAVOR:Mgssapi}
+CONFIGURE_ARGS +=       --with-kerberos
+WANTLIB +=             ${MODHEIMDAL_WANTLIB}
+MOD_DEPENDS +=          ${MODHEIMDAL_MOD_DEPENDS}
 .endif

 MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC} ${WRKSRC}/build

Reply via email to