mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
lib/libgssapi is based on Heimdal. As on Linux systems, the MIT libgssapi_krb5 replaces it. With both gssapi libraries and header files installed results in broken buildworld (gssd) and ports that will not build without modifications to support the MIT gssapi in an alternate location.73ed0c7992removed the MIT GSSAPI headers from /usr/include. Apps using MIT KRB5 gssapi functions and structures will fail to build without this patch. This patch includes a temporary patch to usr.sbin/gssd to allow it to build with this patch. rmacklem@ has a patch for this and for kgssapi that uses this patch to resolve kgssapi issues for NFS with Kerberos. This patch is an updated version of D51661 to allow it to build following additional patchs to the tree. This should have been implmented with7e35117eb0. Fixes:7e35117eb0,73ed0c7992Differential Revision: https://reviews.freebsd.org/D51661
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
#
|
|
# SPDX-License-Idendifier: BSD-2-Clause
|
|
#
|
|
# Copyright (c) 2025 FreeBSD Foundation
|
|
#
|
|
# This sofware was developed by Cy Schubert <[email protected]>
|
|
# under sponsorship from the FreeBSD Foundation.
|
|
#
|
|
|
|
.PATH: ${KRB5_DIR}/lib/gssapi/generic \
|
|
${KRB5_SRCTOP}/lib/gssapi/generic \
|
|
${KRB5_SRCTOP}/include
|
|
|
|
SRCS+= disp_com_err_status.c \
|
|
disp_major_status.c \
|
|
errmap.h \
|
|
gssapi.h \
|
|
gssapi_generic.c \
|
|
oid_ops.c \
|
|
rel_buffer.c \
|
|
rel_oid_set.c \
|
|
util_buffer.c \
|
|
util_buffer_set.c \
|
|
util_errmap.c \
|
|
util_seqstate.c \
|
|
util_set.c \
|
|
util_token.c \
|
|
${GGEN} \
|
|
${GGENI}
|
|
|
|
# The gssapi subdir is only needed should we want an app to be able to
|
|
# build using the MIT KRB5 GSSAPI library.
|
|
# XXX We may wish to either comment this out or use a knob to enable/disable
|
|
# XXX it.
|
|
|
|
INCSGROUPS= GSSAPI_INCS
|
|
GSSAPI_INCS= gssapi.h
|
|
INCS+= ${GENI}
|
|
GSSAPI_INCSDIR= ${INCLUDEDIR}/gssapi
|
|
|
|
CLEANFILES+= gssapi.h ${GGEN} ${GGENI}
|
|
|
|
INCLUDE_XOM= echo "/* no xom.h */"
|
|
|
|
gssapi.h: gssapi.hin
|
|
echo "Creating gssapi.h" ; \
|
|
h=gss$$$$; rm -f $$h; \
|
|
(echo "/* This is the gssapi.h prologue. */"; \
|
|
${INCLUDE_XOM} && \
|
|
echo "/* End of gssapi.h prologue. */"&& \
|
|
cat ${KRB5_DIR}/lib/gssapi/generic/gssapi.hin )> $$h && \
|
|
(set -x; mv $$h ${.TARGET}) ; e=$$?; rm -f $$h; exit $$e
|
|
|
|
PFX= generic
|
|
.include "Makefile.et"
|