mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
- Add a SASL port option - Fix the KERBEROS ports option - it was a no-op, setting a configure flag which modifies how Kerberos was used without setting the flag that actually enables it. - Use GSSAPI instead of $ENV{KRB5CCNAME} to set the credential cache. The latter pollutes the unsuspecting application's environment and does not always work (for instance, it breaks when nss_ldap is invoked from OpenSSH, although I haven't quite determined why) - Add patches to support Heimdal in addition to MIT Kerberos. Note that I tried to ensure that the code is unchanged in the non-Heimdal case, but that I have no way of testing with MIT Kerberos. With the above changes, I have successfully configured a FreeBSD 9.2 server to authenticate users against a Microsoft Windows 2012 Active Directory server. Non-functional changes: - Modernize and stagify - Remove text in pkg-message about a change that was made ten years ago - Take maintainership as current maintainer has been AWOL for 2+ years - Bump PORTREVISION Approved by: maintainer hasn't been heard of for 2+ years
48 lines
1.5 KiB
Text
48 lines
1.5 KiB
Text
--- configure.in.orig
|
|
+++ configure.in
|
|
@@ -97,11 +97,15 @@
|
|
linux*) nss_ldap_so_LDFLAGS="-shared -Wl,-Bdynamic -Wl,--version-script,\$(srcdir)/exports.linux" ;;
|
|
*) nss_ldap_so_LDFLAGS="-shared -Wl,-Bdynamic" ;;
|
|
esac
|
|
+case "$target_os" in
|
|
+freebsd*) TARGET_OS=FreeBSD ;;
|
|
+esac
|
|
|
|
AM_CONDITIONAL(GCC, test "$GCC" = "yes")
|
|
AM_CONDITIONAL(GLIBC, test "$target_os" = "linux" -o "$target_os" = "linux-gnu")
|
|
AM_CONDITIONAL(AIX, test "$TARGET_OS" = AIX)
|
|
AM_CONDITIONAL(HPUX, test "$TARGET_OS" = HPUX)
|
|
+AM_CONDITIONAL(FreeBSD, test "$TARGET_OS" = FreeBSD)
|
|
|
|
AM_CONDITIONAL(USE_NATIVE_LINKER, test -n "$nss_ldap_so_LD")
|
|
|
|
@@ -153,7 +157,6 @@
|
|
aix*) AC_CHECK_HEADERS(irs.h usersec.h) ;;
|
|
hpux*) AC_CHECK_HEADERS(nsswitch.h) ;;
|
|
*) AC_CHECK_HEADERS(nss.h)
|
|
- AC_CHECK_HEADERS(nsswitch.h)
|
|
AC_CHECK_HEADERS(irs.h) ;;
|
|
esac
|
|
AC_CHECK_HEADERS(thread.h)
|
|
@@ -188,6 +191,13 @@
|
|
AC_CHECK_HEADERS(gssapi/gssapi_krb5.h gssapi.h)
|
|
AC_CHECK_HEADERS(krb5.h)
|
|
|
|
+AC_MSG_CHECKING([if Kerberos is Heimdal])
|
|
+AC_TRY_LINK([#include <krb5.h>],
|
|
+ [const char hv = heimdal_version;],
|
|
+ [AC_MSG_RESULT(yes)
|
|
+ AC_DEFINE(HEIMDAL,1,[Define if Kerberos is Heimdal])],
|
|
+ [AC_MSG_RESULT(no)])
|
|
+
|
|
AC_CHECK_LIB(resolv, main)
|
|
AC_CHECK_LIB(nsl, main)
|
|
AC_CHECK_LIB(socket, main)
|
|
@@ -230,7 +240,6 @@
|
|
AC_CHECK_FUNCS(gethostbyname)
|
|
AC_CHECK_FUNCS(nsdispatch)
|
|
AC_CHECK_LIB(pthread_nonshared, main)
|
|
-AC_CHECK_FUNCS(pthread_atfork)
|
|
AC_CHECK_FUNCS(pthread_once)
|
|
AC_CHECK_FUNCS(ether_aton)
|
|
AC_CHECK_FUNCS(ether_ntoa)
|