- Fix GSSAPI for FreeBSD 4.x

PR:		ports/105142
Submitted by:	Udo Schweigert <udo.schweigert@siemens.com> (maintainer)
Sponsored by:   FreeBSD Bug-a-thon #2
This commit is contained in:
Martin Wilke 2006-11-05 18:38:02 +00:00
parent 651a519dc6
commit 100c096aab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176524

View file

@ -377,8 +377,9 @@ CONFIGURE_ARGS+= --disable-gpgme
.if exists(${LOCALBASE}/bin/krb5-config)
LIB_DEPENDS+= gssapi_krb5:${PORTSDIR}/security/krb5
CONFIGURE_ARGS+= --with-gss=${LOCALBASE}
.else
.elif (defined(MAKE_KERBEROS5) && ${OSVERSION} > 500105) || exists(/usr/lib/libkrb5.a)
CONFIGURE_ARGS+= --with-gss
USE_KRB5_SYS=YES
.endif
.endif
@ -449,7 +450,7 @@ post-patch::
pre-configure::
@(cd ${WRKSRC}; ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} -I m4)
.if !exists(${LOCALBASE}/bin/krb5-config)
.if defined(USE_KRB5_SYS)
@${ECHO_CMD} "#define HAVE_HEIMDAL" >> ${WRKSRC}/config.h.in
@${REINPLACE_CMD} -e 's|<gssapi/gssapi\.h>|<gssapi.h>|' \
${WRKSRC}/imap/auth_gss.c