diff --git a/krb5/include/Makefile b/krb5/include/Makefile index 0a2ceaebb689..c7b3f0f10a99 100644 --- a/krb5/include/Makefile +++ b/krb5/include/Makefile @@ -1,58 +1,58 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos-lib .include .include "../Makefile.inc" SUBDIR= krb5_private krb5 gssrpc gssapi SUBDIR_PARALLEL= INCSGROUPS= INCS GSSAPI_KRB5 INCSDIR= ${INCLUDEDIR} .PATH: ${KRB5_DIR}/include INCS= kdb.h \ krad.h \ krb5.h GSSAPI_KRB5DIR= ${INCLUDEDIR}/gssapi_krb5/gssapi GSSAPI_KRB5= gssapi.h CLEANFILES= osconf.new # XXX The output of this needs to be verified against the osconf.h I created # It is only used to verify osconf.h has not changed osconf.h: cat ./osconf.hin | sed -e "s\"@KRB5RCTMPDIR\"${KRB5RCTMPDIR}\"" -e "s\"@PREFIX\"${KRB5PREFIX}\"" -e "s\"@EXEC_PREFIX\"${KRB5_EXEC_PREFIX}\"" -e "s\"@BINDIR\"${KRB5_BINDIR}\"" -e "s\"@LIBDIR\"${KRB5_LIBDIR}\"" -e "s\"@SBINDIR\"${KRB5_SBINDIR}\"" -e "s\"@MODULEDIR\"${KRB5_MODULEDIR}\"" -e "s\"@GSSMODULEDIR\"${KRB5_GSSMODULEDIR}\"" -e "s\"@LOCALSTATEDIR\"${KRB5_LOCALSTATEDIR}\"" -e "s\"@RUNSTATEDIR\"${KRB5_RUNSTATEDIR}\"" -e "s\"@SYSCONFDIR\"${KRB5_SYSCONFDIR}\"" -e "s\"@DYNOBJEXT\"${KRB5_DYNOBJEXT}\"" -e "s\"@SYSCONFCONF\":${KRB5_SYSCONFCONF}\"" > osconf.new sh ${MOVEIFCHANGED} osconf.new osconf.h rebuild-error-tables: ${K5_ET_HEADERS} force: stage_includes: copies SDESTDIR?= ${SYSROOT:U${DESTDIR}} .PHONY: force rebuild-error-tables osconf.h .PATH: ${KRB5_DIR}/include/krb5 copies: .PHONY .META cd ${KRB5_DIR}/include; \ ${INSTALL} -C ${TAG_ARGS:D${TAG_ARGS},dev} -o ${BINOWN} -g ${BINGRP} -m444 ${INCS} ${SDESTDIR}${INCLUDEDIR} .include installincludes: copies diff --git a/krb5/lib/Makefile.inc b/krb5/lib/Makefile.inc index 8df7b76410a2..6d86e7a35146 100644 --- a/krb5/lib/Makefile.inc +++ b/krb5/lib/Makefile.inc @@ -1,16 +1,18 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # .include "../Makefile.inc" +PACKAGE?= kerberos-lib + KRB5_KRB5LIBDIR= ${KRB5_SRCLIBDIR}/krb5 KRB5_K5CRYPTODIR= ${KRB5_SRCLIBDIR}/crypto SHLIBDIR?= /usr/lib SHLIB_MAJOR?= 121 diff --git a/krb5/lib/apputils/Makefile b/krb5/lib/apputils/Makefile index 62ef36f0615e..cf430eb3cd27 100644 --- a/krb5/lib/apputils/Makefile +++ b/krb5/lib/apputils/Makefile @@ -1,31 +1,29 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5-lib - .include .include "../Makefile.inc" LIB= apputils INTERNALLIB= LDFLAGS=-Wl,--no-undefined SRCS= net-server.c \ udppktinfo.c \ udppktinfo.h CFLAGS+=-I${KRB5_DIR}/lib/apputils \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${.OBJDIR} .include .PATH: ${KRB5_DIR}/lib/apputils diff --git a/krb5/lib/crypto/Makefile b/krb5/lib/crypto/Makefile index 5efe53d12aa8..ed1cd7764012 100644 --- a/krb5/lib/crypto/Makefile +++ b/krb5/lib/crypto/Makefile @@ -1,52 +1,50 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= k5crypto # SHLIB_MAJOR= 3 LDFLAGS=-Wl,--no-undefined LIBADD= com_err krb5support crypto VERSION_MAP= ${.CURDIR}/version.map # XXX The following doesn't work. Even though the pathnames are the same # XXX we need to use the alternative .include statements. # .include "${KRB5_CRYPTOLIBDIR}/krb/Makefile.inc" # .include "${KRB5_CRYPTOLIBDIR}/builtin/Makefile.inc" # .include "${KRB5_CRYPTOLIBDIR}/openssl/Makefile.inc" .include "${KRB5_SRCTOP}/lib/krb5/error_tables/Makefile.inc" SRCS+= ${GEN_ET} .include "${KRB5_SRCTOP}/lib/crypto/krb/Makefile.inc" .include "${KRB5_SRCTOP}/lib/crypto/builtin/Makefile.inc" .include "${KRB5_SRCTOP}/lib/crypto/openssl/Makefile.inc" # Not normally configured to use the openssl provider # .include "${KRB5_SRCTOP}/lib/crypto/openssl/Makefile.inc" CFLAGS+=-I${.CURDIR:H:H}/include \ -I${KRB5_DIR}/include \ -I${KRB5_DIR}/lib/crypto \ -I${KRB5_DIR}/lib/crypto/krb \ -I${KRB5_DIR}/lib/crypto/builtin/aes \ -I${KRB5_DIR}/lib/crypto/builtin/camellia \ -I${KRB5_DIR}/lib/crypto/builtin/des \ -I${KRB5_DIR}/lib/crypto/builtin/md4 \ -I${KRB5_DIR}/lib/crypto/builtin/md5 \ -I${KRB5_DIR}/lib/crypto/builtin/sha1 \ -I${KRB5_DIR}/lib/crypto/builtin/sha2 \ -I${SRCTOP}/crypto/openssl/include .include diff --git a/krb5/lib/gssapi/Makefile b/krb5/lib/gssapi/Makefile index 569452cfb538..63e4d7df4bed 100644 --- a/krb5/lib/gssapi/Makefile +++ b/krb5/lib/gssapi/Makefile @@ -1,49 +1,47 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= gssapi_krb5 # SHLIB_MAJOR= 2 LDFLAGS=-Wl,--no-undefined LIBADD= krb5 k5crypto com_err krb5profile krb5support VERSION_MAP= ${.CURDIR}/version.map # This is a contcatonation of: # crypto/krb5/src/lib/gssapi/libgssapi_krb5.exports # crypto/krb5/src/lib/gssapi/spnego/mech_spnego.exports .include "${KRB5_SRCTOP}/lib/gssapi/generic/Makefile.inc" .include "${KRB5_SRCTOP}/lib/gssapi/krb5/Makefile.inc" .include "${KRB5_SRCTOP}/lib/gssapi/spnego/Makefile.inc" .include "${KRB5_SRCTOP}/lib/gssapi/mechglue/Makefile.inc" DEFINES=-D_GSS_STATIC_LINK=1 CFLAGS+=${DEFINES} \ -I${KRB5_DIR}/lib/gssapi/generic \ -I${KRB5_DIR}/lib/gssapi/krb5 \ -I${KRB5_DIR}/lib/gssapi/spnego \ -I${KRB5_DIR}/lib/gssapi/mechglue \ -I${KRB5_DIR}/lib/gssapi \ -I${KRB5_DIR}/lib \ -I${KRB5_SRCTOP}/lib \ -I${KRB5_SRCTOP}/lib/gssapi \ -I${KRB5_OBJTOP}/lib/gssapi \ -I${KRB5_OBJTOP}/lib \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include .include .SUFFIXES: .h .c .et diff --git a/krb5/lib/kadm5clnt/Makefile b/krb5/lib/kadm5clnt/Makefile index c9f199bdaea3..22d78d7ae2f1 100644 --- a/krb5/lib/kadm5clnt/Makefile +++ b/krb5/lib/kadm5clnt/Makefile @@ -1,98 +1,96 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= kadm5clnt_mit # SHLIB_MAJOR= 12 LDFLAGS=-Wl,--no-undefined LIBADD= krb5profile gssrpc gssapi_krb5 krb5 k5crypto krb5support com_err VERSION_MAP= ${.CURDIR}/version.map SRCS= alt_prof.c \ chpass_util.c \ logger.c \ kadm_rpc_xdr.c \ misc_free.c \ str_conv.c \ ${GEN} \ ${GENI} .include "${KRB5_SRCTOP}/lib/kadm5clnt/clnt/Makefile.inc" CFLAGS+=-I${KRB5_DIR}/lib/kadm5 \ -I${KRB5_DIR}/include \ -I${KRB5_OBJTOP}/include/krb5_private \ -I${KRB5_SRCTOP}/include \ -I${KRB5_OBJTOP}/lib INCSDIR=${INCLUDEDIR}/kadm5 INCS= admin.h \ admin_internal.h \ admin_xdr.h \ kadm_rpc.h \ server_internal.h \ ${GENI} KADM_ERR= kadm_err.et KADM_ERR_C= ${KADM_ERR:S/.et$/.c/} KADM_ERR_H= ${KADM_ERR:S/.et$/.h/} CLEANFILES+= ${KADM_ERR_C} ${KADM_ERR_H} GEN+= ${KADM_ERR_C} GENI+= ${KADM_ERR_H} ${KADM_ERR:[2..-1]}: .NOMETA ${KADM_ERR_H}: ${KADM_ERR} rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.c et-h-${.PREFIX}.h cp ${.ALLSRC} et-h-${.PREFIX}.et ${COMPILE_ET} et-h-${.PREFIX}.et mv et-h-${.PREFIX}.h ${.PREFIX}.h rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.h ${KADM_ERR_C}: ${KADM_ERR} rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c et-c-${.PREFIX}.h cp ${.ALLSRC} et-c-${.PREFIX}.et ${COMPILE_ET} et-c-${.PREFIX}.et mv et-c-${.PREFIX}.c ${.PREFIX}.c rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c CHPASS_UTIL_STRINGS_ERR= chpass_util_strings.et CHPASS_UTIL_STRINGS_ERR_C= ${CHPASS_UTIL_STRINGS_ERR:S/.et$/.c/} CHPASS_UTIL_STRINGS_ERR_H= ${CHPASS_UTIL_STRINGS_ERR:S/.et$/.h/} CLEANFILES+= ${CHPASS_UTIL_STRINGS_ERR_C} ${CHPASS_UTIL_STRINGS_ERR_H} GEN+= ${CHPASS_UTIL_STRINGS_ERR_C} GENI+= ${CHPASS_UTIL_STRINGS_ERR_H} ${CHPASS_UTIL_STRINGS_ERR:[2..-1]}: .NOMETA ${CHPASS_UTIL_STRINGS_ERR_H}: ${CHPASS_UTIL_STRINGS_ERR} rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.c et-h-${.PREFIX}.h cp ${.ALLSRC} et-h-${.PREFIX}.et ${COMPILE_ET} et-h-${.PREFIX}.et mv et-h-${.PREFIX}.h ${.PREFIX}.h rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.h ${CHPASS_UTIL_STRINGS_ERR_C}: ${CHPASS_UTIL_STRINGS_ERR} rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c et-c-${.PREFIX}.h cp ${.ALLSRC} et-c-${.PREFIX}.et ${COMPILE_ET} et-c-${.PREFIX}.et mv et-c-${.PREFIX}.c ${.PREFIX}.c rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c afterinstall: ${INSTALL_LIBSYMLINK} ${SHLIB_LINK} ${DESTDIR}${LIBDIR}/libkadm5clnt.so .include .SUFFIXES: .h .c .PATH: ${KRB5_DIR}/lib/kadm5 diff --git a/krb5/lib/kadm5srv/Makefile b/krb5/lib/kadm5srv/Makefile index 90a2180d496a..50f1e859f17b 100644 --- a/krb5/lib/kadm5srv/Makefile +++ b/krb5/lib/kadm5srv/Makefile @@ -1,108 +1,106 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= kadm5srv_mit # SHLIB_MAJOR= 12 LDFLAGS=-Wl,--no-undefined LIBADD= krb5profile gssrpc gssapi_krb5 kdb5 krb5 k5crypto krb5support com_err VERSION_MAP= ${.CURDIR}/version.map INCSDIR= ${INCLUDEDIR}/kadm5 SRCS= alt_prof.c \ chpass_util.c \ logger.c \ kadm_rpc_xdr.c \ misc_free.c \ str_conv.c \ ${SRCS_SRV} \ ${GEN} .include "${KRB5_SRCTOP}/lib/kadm5srv/srv/Makefile.inc" INCS= admin.h \ chpass_util_strings.h \ kadm_err.h GEN= kadm_err.c kadm_err.h chpass_util_strings.c chpass_util_strings.h CLEANFILES= ${GEN} ${GENI} CFLAGS+=-I${KRB5_DIR}/lib/kadm5 \ -I${KRB5_DIR}/include \ -I${KRB5_OBJTOP}/include/krb5_private \ -I${KRB5_SRCTOP}/include \ -I${KRB5_OBJTOP}/lib \ -I${KRB5_OBJTOP}/lib/gssapi \ -I${KRB5_DIR}/lib/gssapi/krb5 \ -I${KRB5_DIR}/lib/gssapi/generic HDRDIR= ${KRB5_OBJHDR}/kadm5 HDRS= ${HDRDIR}/admin.h \ ${HDRDIR}/admin_internal.h \ ${HDRDIR}/admin_xdr.h \ ${HDRDIR}/kadm_rpc.h \ ${HDRDIR}/server_internal.h \ ${HDRDIR}/chpass_util_strings.h \ ${HDRDIR}/kadm_err.h GEN_KADM_ERR= kadm_err.et GEN_KADM_ERR_C= ${GEN_KADM_ERR:S/.et$/.c/} GEN_KADM_ERR_H= ${GEN_KADM_ERR:S/.et$/.h/} CLEANFILES= ${GEN_KADM_ERR_C} ${GEN_KADM_ERR_H} GEN_ET= ${GEN_KADM_ERR_C} GENI_ET= ${GEN_KADM_ERR_H} ${GEN_KADM_ERR:[2..-1]}: .NOMETA ${GEN_KADM_ERR_H}: ${GEN_KADM_ERR} rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.c et-h-${.PREFIX}.h cp ${.ALLSRC} et-h-${.PREFIX}.et ${COMPILE_ET} et-h-${.PREFIX}.et mv et-h-${.PREFIX}.h ${.PREFIX}.h rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.h ${GEN_KADM_ERR_C}: ${GEN_KADM_ERR} rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c et-c-${.PREFIX}.h cp ${.ALLSRC} et-c-${.PREFIX}.et ${COMPILE_ET} et-c-${.PREFIX}.et mv et-c-${.PREFIX}.c ${.PREFIX}.c rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c GEN_CHPASS_UTIL_STRINGS= chpass_util_strings.et GEN_CHPASS_UTIL_STRINGS_C= ${GEN_CHPASS_UTIL_STRINGS:S/.et$/.c/} GEN_CHPASS_UTIL_STRINGS_H= ${GEN_CHPASS_UTIL_STRINGS:S/.et$/.h/} CLEANFILES+= ${GEN_CHPASS_UTIL_STRINGS_C} ${GEN_CHPASS_UTIL_STRINGS_H} GEN_ET+= ${GEN_CHPASS_UTIL_STRINGS_C} GENI_ET+= ${GEN_CHPASS_UTIL_STRINGS_H} ${GEN_CHPASS_UTIL_STRINGS:[2..-1]}: .NOMETA ${GEN_CHPASS_UTIL_STRINGS_H}: ${GEN_CHPASS_UTIL_STRINGS} rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.c et-h-${.PREFIX}.h cp ${.ALLSRC} et-h-${.PREFIX}.et ${COMPILE_ET} et-h-${.PREFIX}.et mv et-h-${.PREFIX}.h ${.PREFIX}.h rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.h ${GEN_CHPASS_UTIL_STRINGS_C}: ${GEN_CHPASS_UTIL_STRINGS} rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c et-c-${.PREFIX}.h cp ${.ALLSRC} et-c-${.PREFIX}.et ${COMPILE_ET} et-c-${.PREFIX}.et mv et-c-${.PREFIX}.c ${.PREFIX}.c rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c .include .SUFFIXES: .h .c .et .PATH: ${KRB5_DIR}/lib/kadm5 diff --git a/krb5/lib/kdb/Makefile b/krb5/lib/kdb/Makefile index 57fe32e39347..ff17900fb7ec 100644 --- a/krb5/lib/kdb/Makefile +++ b/krb5/lib/kdb/Makefile @@ -1,67 +1,65 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= kdb5 # SHLIB_MAJOR= 10 LDFLAGS=-Wl,--no-undefined LIBADD= krb5profile gssrpc krb5 k5crypto com_err krb5support gssapi_krb5 VERSION_MAP= ${.CURDIR}/version.map SRCS= decrypt_key.c \ encrypt_key.c \ iprop_xdr.c \ kdb5.c \ kdb_convert.c \ kdb_cpw.c \ kdb_default.c \ kdb_log.c \ keytab.c \ ${GEN} \ ${GENI} DEFINES=-DKDB5_USE_LIB_KDB_DB2 CFLAGS+=${DEFINES} \ -I${KRB5_DIR}/lib/kdb \ -I${KRB5_OBJTOP}/lib/kdb \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include ADB_ERR= adb_err.et ADB_ERR_C= ${ADB_ERR:S/.et$/.c/} ADB_ERR_H= ${ADB_ERR:S/.et$/.h/} CLEANFILES= ${ADB_ERR_C} ${ADB_ERR_H} GEN+= ${ADB_ERR_C} GENI+= ${ADB_ERR_H} ${ADB_ERR_H}: ${ADB_ERR} rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.c et-h-${.PREFIX}.h cp ${.ALLSRC} et-h-${.PREFIX}.et ${COMPILE_ET} et-h-${.PREFIX}.et mv et-h-${.PREFIX}.h ${.PREFIX}.h rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.h ${ADB_ERR_C}: ${ADB_ERR} rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c et-c-${.PREFIX}.h cp ${.ALLSRC} et-c-${.PREFIX}.et ${COMPILE_ET} et-c-${.PREFIX}.et mv et-c-${.PREFIX}.c ${.PREFIX}.c rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c .include .SUFFIXES: .h .c .PATH: ${KRB5_DIR}/lib/kdb diff --git a/krb5/lib/krad/Makefile b/krb5/lib/krad/Makefile index 28751d9bf9b6..0bc74e8318f8 100644 --- a/krb5/lib/krad/Makefile +++ b/krb5/lib/krad/Makefile @@ -1,40 +1,38 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5-lib - .include .include "../Makefile.inc" LIB= krad # SHLIB_MAJOR= 0 LDFLAGS=-Wl,--no-undefined LIBADD= krb5 k5crypto com_err krb5profile krb5support verto VERSION_MAP= ${.CURDIR}/version.map SRCS= attr.c \ attrset.c \ client.c \ code.c \ packet.c \ remote.c INCS= internal.h \ t_daemon.h \ t_test.h CFLAGS+=-I${KRB5_DIR}/lib/krad \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${.OBJDIR} .include .PATH: ${KRB5_DIR}/lib/krad diff --git a/krb5/lib/krb5/Makefile b/krb5/lib/krb5/Makefile index 76f40a3174cc..163005b6abf3 100644 --- a/krb5/lib/krb5/Makefile +++ b/krb5/lib/krb5/Makefile @@ -1,76 +1,74 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= krb5 LDFLAGS=-Wl,--no-undefined LIBADD= krb5profile k5crypto com_err krb5support # SHLIB_MAJOR= 3 VERSION_MAP= ${.CURDIR}/version.map SRCS= krb5_libinit.c .include "${KRB5_SRCTOP}/lib/krb5/error_tables/Makefile.inc" .include "${KRB5_SRCTOP}/lib/krb5/asn.1/Makefile.inc" .include "${KRB5_SRCTOP}/lib/krb5/ccache/Makefile.inc" .include "${KRB5_SRCTOP}/lib/krb5/keytab/Makefile.inc" .include "${KRB5_SRCTOP}/lib/krb5/krb/Makefile.inc" .include "${KRB5_SRCTOP}/lib/krb5/os/Makefile.inc" .include "${KRB5_SRCTOP}/lib/krb5/rcache/Makefile.inc" .include "${KRB5_SRCTOP}/lib/krb5/unicode/Makefile.inc" .include "${KRB5_SRCTOP}/lib/krb5/docs/Makefile.inc" DEFINES=-DHAS_STDARG \ -DLIBDIR=\"${KRB5_LIBDIR}\" \ -DBINDIR=\"${KRB5_BINDIR}\" \ -DSBINDIR=\"${KRB5_SBINDIR}\" \ -DLOCALEDIR=\"${KRB5_LOCALEDIR}\" CFLAGS+=${DEFINES} \ -I${KRB5_DIR}/lib/krb5/error_tables \ -I${KRB5_DIR}/lib/krb5/ccache \ -I${KRB5_DIR}/lib/krb5/keytab \ -I${KRB5_DIR}/lib/krb5/krb \ -I${KRB5_DIR}/lib/krb5/os \ -I${KRB5_DIR}/lib/krb5/rcache \ -I${KRB5_DIR}/lib/krb5/unicode \ -I${KRB5_DIR}/lib/krb5/unicode/ucdata \ -I${KRB5_DIR}/lib/krb5 \ -I${KRB5_DIR}/util/profile \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${KRB5_DIR} MAN= k5identity.5 \ k5login.5 \ kadm5.acl.5 \ kdc.conf.5 \ krb5.conf.5 \ kerberos.7 MLINKS= k5identity.5 .k5identity.5 MLINKS+=k5login.5 .k5login.5 .include .SUFFIXES: .h .c .et .man .5 .7 .man.5: @cp ${.ALLSRC} ${.TARGET} .man.7: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/lib/krb5 \ ${KRB5_DIR}/man diff --git a/krb5/lib/rpc/Makefile b/krb5/lib/rpc/Makefile index f6dfd014ca3c..3bcd7ff7d9d3 100644 --- a/krb5/lib/rpc/Makefile +++ b/krb5/lib/rpc/Makefile @@ -1,86 +1,84 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= gssrpc # SHLIB_MAJOR= 4 LDFLAGS=-Wl,--no-undefined LIBADD= gssapi_krb5 krb5 k5crypto com_err krb5support VERSION_MAP= ${.CURDIR}/version.map SRCS= auth_gss.c \ auth_gssapi.c \ auth_gssapi_misc.c \ auth_none.c \ auth_unix.c \ authgss_prot.c \ authunix_prot.c \ bindresvport.c \ clnt_generic.c \ clnt_perror.c \ clnt_raw.c \ clnt_simple.c \ clnt_tcp.c \ clnt_udp.c \ dyn.c \ get_myaddress.c \ getrpcport.c \ pmap_clnt.c \ pmap_getmaps.c \ pmap_getport.c \ pmap_prot.c \ pmap_prot2.c \ pmap_rmt.c \ rpc_callmsg.c \ rpc_commondata.c \ rpc_dtablesize.c \ rpc_prot.c \ svc.c \ svc_auth.c \ svc_auth_gss.c \ svc_auth_gssapi.c \ svc_auth_none.c \ svc_auth_unix.c \ svc_raw.c \ svc_run.c \ svc_simple.c \ svc_tcp.c \ svc_udp.c \ xdr.c \ xdr_alloc.c \ xdr_array.c \ xdr_float.c \ xdr_mem.c \ xdr_rec.c \ xdr_reference.c \ xdr_sizeof.c \ xdr_stdio.c INCS= dyn.h \ dynP.h \ gssrpcint.h CFLAGS+=-I${KRB5_DIR}/lib/rpc \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${KRB5_OBJTOP}/lib \ -DGSSAPI_KRB5 \ -DDEBUG_GSSAPI=0 \ -DGSSRPC__IMPL .include .SUFFIXES: .h .c .PATH: ${KRB5_DIR}/lib/rpc diff --git a/krb5/libexec/Makefile.inc b/krb5/libexec/Makefile.inc index bcc6d4b1c21e..6ce709d08304 100644 --- a/krb5/libexec/Makefile.inc +++ b/krb5/libexec/Makefile.inc @@ -1,12 +1,13 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # .include "../Makefile.inc" +PACKAGE?= kerberos-kdc BINDIR?= /usr/libexec diff --git a/krb5/libexec/kadmind/Makefile b/krb5/libexec/kadmind/Makefile index bb572a32445f..a845851f708e 100644 --- a/krb5/libexec/kadmind/Makefile +++ b/krb5/libexec/kadmind/Makefile @@ -1,49 +1,47 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include "../Makefile.inc" PROG= kadmind LIBADD= kadm5srv_mit kdb5 gssrpc gssapi_krb5 krb5 k5crypto com_err \ krb5support apputils verto sys m SRCS= auth.c \ auth_acl.c \ auth_self.c \ ipropd_svc.c \ kadm_rpc_svc.c \ misc.c \ ovsec_kadmd.c \ schpw.c \ server_stubs.c MAN= kadmind.8 CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${KRB5_OBJTOP}/lib/gssapi \ -I${KRB5_OBJTOP}/lib \ -I${KRB5_DIR}/lib/gssapi/krb5 \ -I${KRB5_DIR}/lib/gssapi/generic kadmind.8: kadmind.man CLEANFILES+= kadmind.8 .include .SUFFIXES: .h .c .man .8 .man.8: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/kadmin/server \ ${KRB5_DIR}/man diff --git a/krb5/libexec/kdc/Makefile b/krb5/libexec/kdc/Makefile index a990666d9338..ac5ada19eb37 100644 --- a/krb5/libexec/kdc/Makefile +++ b/krb5/libexec/kdc/Makefile @@ -1,84 +1,82 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include "../Makefile.inc" PROG= krb5kdc LIBADD= kadm5srv_mit gssrpc gssapi_krb5 krb5 kdb5 k5crypto com_err krb5support \ apputils verto krb5profile m sys SRCS= authind.c \ cammac.c \ dispatch.c \ do_as_req.c \ do_tgs_req.c \ extern.c \ fast_util.c \ kdc_audit.c \ kdc_authdata.c \ kdc_log.c \ kdc_preauth.c \ kdc_preauth_ec.c \ kdc_preauth_encts.c \ kdc_transit.c \ kdc_util.c \ main.c \ ndr.c \ policy.c \ replay.c \ tgs_policy.c \ ${GEN} \ ${GENI} MAN= krb5kdc.8 DEFINES=-DLIBDIR=\"${KRB5_LIBDIR}\" CFLAGS+=${DEFINES} \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${.OBJDIR} GEN_KDC5_ERR= kdc5_err.et GEN_KDC5_ERR_C= ${GEN_KDC5_ERR:S/.et$/.c/} GEN_KDC5_ERR_H= ${GEN_KDC5_ERR:S/.et$/.h/} CLEANFILES+= ${GEN_KDC5_ERR_C} ${GEN_KDC5_ERR_H} GEN+= ${GEN_KDC5_ERR_C} GENI+= ${GEN_KDC5_ERR_H} ${GEN_KDC5_ERR:[2..-1]}: .NOMETA ${GEN_KDC5_ERR_H}: ${GEN_KDC5_ERR} rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.c et-h-${.PREFIX}.h cp ${.ALLSRC} et-h-${.PREFIX}.et ${COMPILE_ET} et-h-${.PREFIX}.et mv et-h-${.PREFIX}.h ${.PREFIX}.h rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.h ${GEN_KDC5_ERR_C}: ${GEN_KDC5_ERR} rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c et-c-${.PREFIX}.h cp ${.ALLSRC} et-c-${.PREFIX}.et ${COMPILE_ET} et-c-${.PREFIX}.et mv et-c-${.PREFIX}.c ${.PREFIX}.c rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c CLEANFILES+= krb5kdc.8 krb5kdc.8: krb5kdc.man .include .SUFFIXES: .h .c .man .1 .man.8: cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/kdc \ ${KRB5_DIR}/man diff --git a/krb5/libexec/kprop/Makefile b/krb5/libexec/kprop/Makefile index 74a56232f6bb..1294d9014ee4 100644 --- a/krb5/libexec/kprop/Makefile +++ b/krb5/libexec/kprop/Makefile @@ -1,33 +1,31 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include "../Makefile.inc" PROG= kprop LIBADD= kprop_util krb5 k5crypto com_err krb5profile krb5support util sys SRCS= kprop.c MAN= kprop.8 CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include .include .SUFFIXES: .h .c .man .8 .man.8: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/kprop \ ${KRB5_DIR}/man diff --git a/krb5/libexec/kpropd/Makefile b/krb5/libexec/kpropd/Makefile index 2fb2bfdff228..e7ffe5a26016 100644 --- a/krb5/libexec/kpropd/Makefile +++ b/krb5/libexec/kpropd/Makefile @@ -1,33 +1,31 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= kpropd LIBADD= kprop_util kdb5 kadm5clnt_mit gssrpc gssapi_krb5 krb5 k5crypto \ com_err krb5profile krb5support util sys SRCS= kpropd.c \ kpropd_rpc.c MAN= kpropd.8 CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include .include .SUFFIXES: .h .c .man .8 .man.8: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/kprop \ ${KRB5_DIR}/man diff --git a/krb5/libexec/kproplog/Makefile b/krb5/libexec/kproplog/Makefile index 533b6fdaa5c2..81405260a06e 100644 --- a/krb5/libexec/kproplog/Makefile +++ b/krb5/libexec/kproplog/Makefile @@ -1,31 +1,29 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= kproplog LIBADD= kadm5srv_mit kdb5 gssrpc gssapi_krb5 krb5 k5crypto com_err \ krb5support sys SRCS= kproplog.c MAN= kproplog.8 CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include .include .SUFFIXES: .h .c .man .8 .man.8: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/kprop \ ${KRB5_DIR}/man diff --git a/krb5/plugins/Makefile.inc b/krb5/plugins/Makefile.inc index 846770a801e0..e888f79acd49 100644 --- a/krb5/plugins/Makefile.inc +++ b/krb5/plugins/Makefile.inc @@ -1,16 +1,17 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # +PACKAGE?= kerberos-kdc MK_INSTALLLIB= no SHLIB_NAME?= ${LIB}.so.${SHLIB_MAJOR} PLUGINSDIR= ${LIBDIR_BASE}/krb5/plugins SHLIBDIR= ${LIBDIR} SHLIB_MAJOR= 121 .include "../Makefile.inc" diff --git a/krb5/plugins/audit/Makefile b/krb5/plugins/audit/Makefile index eb615a3b89f4..f85e5d1a81a5 100644 --- a/krb5/plugins/audit/Makefile +++ b/krb5/plugins/audit/Makefile @@ -1,29 +1,27 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= kdc_j_encode LIBDIR= ${PLUGINSDIR}/audit LDFLAGS=-Wl,--no-undefined VERSION_MAP= ${.CURDIR}/version.map .PATH: ${KRB5_DIR}/plugins/audit SRCS= kdc_j_encode.c CFLAGS+=-I${KRB5_DIR}/plugins/audit .include .SUFFIXES: .h .c diff --git a/krb5/plugins/k5tls/Makefile b/krb5/plugins/k5tls/Makefile index 790794d4744c..30738a70e71d 100644 --- a/krb5/plugins/k5tls/Makefile +++ b/krb5/plugins/k5tls/Makefile @@ -1,34 +1,32 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIBDIR= ${PLUGINSDIR}/tls SHLIBDIR= ${LIBDIR} LIB= k5tls LDFLAGS=-Wl,--no-undefined LIBADD= krb5 krb5profile krb5support ssl crypto k5crypto com_err sys VERSION_MAP= ${.CURDIR}/version.map SRCS= notls.c \ openssl.c CFLAGS+=-I${KRB5_DIR}/plugins/tls/k5tls \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include .include .SUFFIXES: .h .c .PATH: ${KRB5_DIR}/plugins/tls/k5tls diff --git a/krb5/plugins/kdb/db2/Makefile b/krb5/plugins/kdb/db2/Makefile index a91bea73677b..e9429bc03de1 100644 --- a/krb5/plugins/kdb/db2/Makefile +++ b/krb5/plugins/kdb/db2/Makefile @@ -1,66 +1,64 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIBDIR= ${PLUGINSDIR}/kdb SHLIBDIR= ${LIBDIR} LIB= db2 LDFLAGS=-Wl,--no-undefined LIBADD= krb5profile krb5 com_err k5crypto kadm5srv_mit kdb5 gssrpc gssapi_krb5 krb5support VERSION_MAP= ${.CURDIR}/version.map SRCS= \ adb_openclose.c \ adb_policy.c \ db2_exp.c \ kdb_db2.c \ kdb_xdr.c \ lockout.c \ pol_xdr.c .include "${KRB5_SRCTOP}/plugins/kdb/db2/libdb2/Makefile.inc" MAN= db_btree.3 \ db_hash.3 \ db_lock.3 \ db_log.3 \ db_mpool.3 \ db_open.3 \ db_recno.3 \ db_txn.3 CFLAGS+=-I${KRB5_DIR}/plugins/kdb/db2 \ -I${KRB5_DIR}/plugins/kdb/db2/libdb2 \ -I${KRB5_DIR}/plugins/kdb/db2/libdb2/include \ -I${KRB5_DIR}/plugins/kdb/db2/libdb2/btree \ -I${KRB5_DIR}/plugins/kdb/db2/libdb2/db \ -I${KRB5_DIR}/plugins/kdb/db2/libdb2/hash \ -I${KRB5_DIR}/plugins/kdb/db2/libdb2/mpool \ -I${KRB5_DIR}/plugins/kdb/db2/libdb2/recno \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${KRB5_DIR}/lib/kdb \ -I${KRB5_OBJTOP}/plugins/kdb/db2 \ -I${KRB5_OBJTOP}/lib/kdb .include .SUFFIXES: .h .c .man .3 .man.3: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/plugins/kdb/db2 \ ${KRB5_DIR}/plugins/kdb/db2/libdb2 \ ${KRB5_DIR}/plugins/kdb/db2/libdb2/man diff --git a/krb5/plugins/preauth/Makefile.inc b/krb5/plugins/preauth/Makefile.inc index aecd360f50e7..8a713e4d0856 100644 --- a/krb5/plugins/preauth/Makefile.inc +++ b/krb5/plugins/preauth/Makefile.inc @@ -1,13 +1,14 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # +PACKAGE?= kerberos-kdc LIBDIR= ${PLUGINSDIR}/preauth SHLIBDIR= ${LIBDIR} .include "../Makefile.inc" diff --git a/krb5/plugins/preauth/otp/Makefile b/krb5/plugins/preauth/otp/Makefile index 724d8df16230..48fc35db0727 100644 --- a/krb5/plugins/preauth/otp/Makefile +++ b/krb5/plugins/preauth/otp/Makefile @@ -1,31 +1,29 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= otp LIBDIR= ${PLUGINSDIR}/preauth LDFLAGS=-Wl,--no-undefined LIBADD= krb5profile krad verto krb5 k5crypto com_err krb5support m VERSION_MAP= ${.CURDIR}/version.map .PATH: ${KRB5_DIR}/plugins/preauth/otp SRCS= main.c \ otp_state.c CFLAGS+=-I${KRB5_DIR}/plugins/preauth/otp \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include .include diff --git a/krb5/plugins/preauth/pkinit/Makefile b/krb5/plugins/preauth/pkinit/Makefile index 600b02b02346..7d227aca5420 100644 --- a/krb5/plugins/preauth/pkinit/Makefile +++ b/krb5/plugins/preauth/pkinit/Makefile @@ -1,39 +1,37 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= pkinit LIBDIR= ${PLUGINSDIR}/preauth LDFLAGS=-Wl,--no-undefined LIBADD= krb5profile krb5 com_err k5crypto crypto krb5support VERSION_MAP= ${.CURDIR}/version.map .PATH: ${KRB5_DIR}/plugins/preauth/pkinit SRCS= pkinit_accessor.c \ pkinit_clnt.c \ pkinit_constants.c \ pkinit_crypto_openssl.c \ pkinit_identity.c \ pkinit_kdf_test.c \ pkinit_lib.c \ pkinit_matching.c \ pkinit_profile.c \ pkinit_srv.c CFLAGS+=-I${KRB5_DIR}/plugins/preauth/pkinit \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include .include diff --git a/krb5/plugins/preauth/spake/Makefile b/krb5/plugins/preauth/spake/Makefile index 62d8a5aa9574..3aa375cb5100 100644 --- a/krb5/plugins/preauth/spake/Makefile +++ b/krb5/plugins/preauth/spake/Makefile @@ -1,36 +1,34 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= spake LIBDIR= ${PLUGINSDIR}/preauth LDFLAGS=-Wl,--no-undefined LIBADD= krb5profile krb5 k5crypto com_err krb5support crypto sys VERSION_MAP= ${.CURDIR}/version.map .PATH: ${KRB5_DIR}/plugins/preauth/spake SRCS= edwards25519.c \ groups.c \ iana.c \ openssl.c \ spake_client.c \ spake_kdc.c \ util.c CFLAGS+=-I${KRB5_DIR}/plugins/preauth/spake \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include .include diff --git a/krb5/plugins/preauth/test/Makefile b/krb5/plugins/preauth/test/Makefile index 411868e9a1d1..99f632c0cb17 100644 --- a/krb5/plugins/preauth/test/Makefile +++ b/krb5/plugins/preauth/test/Makefile @@ -1,32 +1,30 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - .include .include "../Makefile.inc" LIB= test LIBDIR= ${PLUGINSDIR}/preauth LDFLAGS=-Wl,--no-undefined LIBADD= krb5 k5crypto com_err krb5support VERSION_MAP= ${.CURDIR}/version.map .PATH: ${KRB5_DIR}/plugins/preauth/test SRCS= cltest.c \ common.c \ kdctest.c CFLAGS+=-I${KRB5_DIR}/plugins/preauth/test \ -I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include .include diff --git a/krb5/usr.bin/Makefile.inc b/krb5/usr.bin/Makefile.inc index ea8e5ee805bb..f27bd78cd54c 100644 --- a/krb5/usr.bin/Makefile.inc +++ b/krb5/usr.bin/Makefile.inc @@ -1,12 +1,13 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # .include "../Makefile.inc" +PACKAGE?= kerberos BINDIR?= /usr/bin diff --git a/krb5/usr.bin/gss-client/Makefile b/krb5/usr.bin/gss-client/Makefile index f2b5285ac3bb..acd67f9c17c6 100644 --- a/krb5/usr.bin/gss-client/Makefile +++ b/krb5/usr.bin/gss-client/Makefile @@ -1,30 +1,28 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= gss-client LIBADD= gssapi_krb5 krb5 k5crypto com_err krb5profile krb5support sys SRCS= gss-client.c \ gss-misc.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${KRB5_OBJTOP}/lib \ -I${KRB5_DIR}/lib/gssapi/generic \ -I${KRB5_DIR}/lib/gssapi/krb5 \ -I${KRB5_DIR}/lib/gssapi/mechglue MAN= .include .PATH: ${KRB5_DIR}/appl/gss-sample diff --git a/krb5/usr.bin/kadmin/Makefile b/krb5/usr.bin/kadmin/Makefile index 95fcea307827..36b7378dee11 100644 --- a/krb5/usr.bin/kadmin/Makefile +++ b/krb5/usr.bin/kadmin/Makefile @@ -1,43 +1,41 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= kadmin LIBADD= kadmin_common edit kadm5clnt_mit gssrpc gssapi_krb5 krb5 k5crypto \ com_err krb5ss krb5profile krb5support tinfow sys SRCS= keytab.c SCRIPTS= k5srvutil.sh MAN= kadmin.1 \ k5srvutil.1 MLINKS= kadmin.1 kamdin.local.8 CLEANFILES= kadmin.1 k5srvutil.1 CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include kadmin.1: kadmin.man k5srvutil.1: k5srvutil.man .include .SUFFIXES: .h .c. .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/kadmin/cli \ ${KRB5_DIR}/man diff --git a/krb5/usr.bin/kdestroy/Makefile b/krb5/usr.bin/kdestroy/Makefile index 4ec2ef4a1392..e3f493ffdc60 100644 --- a/krb5/usr.bin/kdestroy/Makefile +++ b/krb5/usr.bin/kdestroy/Makefile @@ -1,35 +1,33 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= kdestroy LIBADD= krb5 k5crypto com_err krb5profile krb5support sys SRCS= kdestroy.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= kdestroy.1 kdestroy.1: kdestroy.man CLEANFILES+= kdestroy.1 .include .SUFFIXES: .h .c. .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/clients/kdestroy \ ${KRB5_DIR}/man diff --git a/krb5/usr.bin/kinit/Makefile b/krb5/usr.bin/kinit/Makefile index 8aff9af3687b..3d1285137f85 100644 --- a/krb5/usr.bin/kinit/Makefile +++ b/krb5/usr.bin/kinit/Makefile @@ -1,37 +1,35 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= kinit LIBADD= kadm5srv_mit kdb5 gssrpc gssapi_krb5 krb5 k5crypto com_err \ krb5profile krb5support sys SRCS= kinit.c \ kinit_kdb.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= kinit.1 kinit.1: kinit.man CLEANFILES+= kinit.1 .include .SUFFIXES: .h .c. .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/clients/kinit \ ${KRB5_DIR}/man diff --git a/krb5/usr.bin/klist/Makefile b/krb5/usr.bin/klist/Makefile index a5d6cecbaddb..3094a3b69d4b 100644 --- a/krb5/usr.bin/klist/Makefile +++ b/krb5/usr.bin/klist/Makefile @@ -1,35 +1,33 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= klist LIBADD= krb5 k5crypto com_err krb5profile krb5support sys SRCS= klist.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= klist.1 klist.1: klist.man CLEANFILES+= klist.1 .include .SUFFIXES: .h .c. .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/clients/klist \ ${KRB5_DIR}/man diff --git a/krb5/usr.bin/kpasswd/Makefile b/krb5/usr.bin/kpasswd/Makefile index 431cf239928e..e4d7d1e8ab84 100644 --- a/krb5/usr.bin/kpasswd/Makefile +++ b/krb5/usr.bin/kpasswd/Makefile @@ -1,37 +1,35 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= kpasswd LIBADD= krb5 k5crypto com_err krb5profile krb5support sys SRCS= kpasswd.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= kpasswd.1 CLEANFILES+= kpasswd.1 MAN= kpasswd.1 kpasswd.1: kpasswd.man .include .SUFFIXES: .h .c. .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/clients/kpasswd \ ${KRB5_DIR}/man diff --git a/krb5/usr.bin/ksu/Makefile b/krb5/usr.bin/ksu/Makefile index 4ddfa8096773..37a4c166aec6 100644 --- a/krb5/usr.bin/ksu/Makefile +++ b/krb5/usr.bin/ksu/Makefile @@ -1,44 +1,42 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= ksu .if defined(ENABLE_SUID_K5SU) BINMODE=4555 PRECIOUSPROG= .endif LIBADD= krb5 k5crypto com_err krb5profile krb5support sys SRCS= authorization.c \ ccache.c \ heuristic.c \ krb_auth_su.c \ main.c \ xmalloc.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= ksu.1 ksu.1: ksu.man CLEANFILES+= ksu.1 .include .SUFFIXES: .h .c. .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/clients/ksu \ ${KRB5_DIR}/man diff --git a/krb5/usr.bin/kswitch/Makefile b/krb5/usr.bin/kswitch/Makefile index 1e9853012ae5..10298f34a9d4 100644 --- a/krb5/usr.bin/kswitch/Makefile +++ b/krb5/usr.bin/kswitch/Makefile @@ -1,35 +1,33 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= kswitch LIBADD= krb5 k5crypto com_err krb5profile krb5support sys SRCS= kswitch.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= kswitch.1 kswitch.1: kswitch.man CLEANFILES+= kswitch.1 .include .SUFFIXES: .h .c. .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/clients/kswitch \ ${KRB5_DIR}/man diff --git a/krb5/usr.bin/ktutil/Makefile b/krb5/usr.bin/ktutil/Makefile index abe02965de4d..6bcb4877ed6f 100644 --- a/krb5/usr.bin/ktutil/Makefile +++ b/krb5/usr.bin/ktutil/Makefile @@ -1,43 +1,41 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= ktutil LIBADD= edit krb5 k5crypto com_err krb5profile krb5support krb5ss tinfow sys SRCS= ktutil.c \ ktutil_ct.c \ ktutil_funcs.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${KRB5_DIR}/util \ -I${KRB5_OBJTOP}/util MAN= ktutil.1 ktutil.1: ktutil.man CLEANFILES+= ktutil.1 ktutil_ct.c: ktutil_ct.ct ss_err.h ${MAKE_COMMANDS} ${KRB5_DIR}/kadmin/ktutil/ktutil_ct.ct .include .SUFFIXES: .h .c. .man .1 .ct .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/kadmin/ktutil \ ${KRB5_DIR}/man \ ${KRB5_OBJTOP}/util/ss diff --git a/krb5/usr.bin/kvno/Makefile b/krb5/usr.bin/kvno/Makefile index 203839624414..0a43765e53f4 100644 --- a/krb5/usr.bin/kvno/Makefile +++ b/krb5/usr.bin/kvno/Makefile @@ -1,35 +1,33 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= kvno LIBADD= krb5 k5crypto com_err krb5profile krb5support sys SRCS= kvno.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= kvno.1 kvno.1: kvno.man CLEANFILES+= kvno.1 .include .SUFFIXES: .h .c. .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/clients/kvno \ ${KRB5_DIR}/man diff --git a/krb5/usr.bin/sclient/Makefile b/krb5/usr.bin/sclient/Makefile index f27dad42fa08..8a3cc38fe3b6 100644 --- a/krb5/usr.bin/sclient/Makefile +++ b/krb5/usr.bin/sclient/Makefile @@ -1,35 +1,33 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= sclient LIBADD= krb5 k5crypto com_err krb5profile krb5support sys SRCS= sclient.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= sclient.1 sclient.1: sclient.man CLEANFILES+= sclient.1 .include .SUFFIXES: .h .c. .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/appl/sample/sclient \ ${KRB5_DIR}/man diff --git a/krb5/usr.bin/sim_client/Makefile b/krb5/usr.bin/sim_client/Makefile index ecdf9ac8885e..3e5ea72407bc 100644 --- a/krb5/usr.bin/sim_client/Makefile +++ b/krb5/usr.bin/sim_client/Makefile @@ -1,25 +1,23 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 - PROG= sim_client LIBADD= krb5 k5crypto com_err krb5profile krb5support sys SRCS= sim_client.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= .include .PATH: ${KRB5_DIR}/appl/simple diff --git a/krb5/usr.sbin/gss-server/Makefile b/krb5/usr.sbin/gss-server/Makefile index 9e80b466d427..c42740045ac4 100644 --- a/krb5/usr.sbin/gss-server/Makefile +++ b/krb5/usr.sbin/gss-server/Makefile @@ -1,30 +1,30 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos PROG= gss-server LIBADD= gssapi_krb5 krb5 k5crypto com_err krb5profile krb5support sys SRCS= gss-server.c \ gss-misc.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${KRB5_OBJTOP}/lib \ -I${KRB5_DIR}/lib/gssapi/generic \ -I${KRB5_DIR}/lib/gssapi/krb5 \ -I${KRB5_DIR}/lib/gssapi/mechglue MAN= .include .PATH: ${KRB5_DIR}/appl/gss-sample diff --git a/krb5/usr.sbin/kadmin.local/Makefile b/krb5/usr.sbin/kadmin.local/Makefile index 7e89d0953683..4b99f490bd7b 100644 --- a/krb5/usr.sbin/kadmin.local/Makefile +++ b/krb5/usr.sbin/kadmin.local/Makefile @@ -1,31 +1,31 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos-kdc PROG= kadmin.local LIBADD= kadmin_common edit kadm5srv_mit kdb5 gssrpc gssapi_krb5 krb5 \ k5crypto com_err krb5profile krb5support krb5ss tinfow sys SRCS= keytab_local.c MAN= kadmin.local.8 CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= .include .SUFFIXES: .h .c .man .8 .PATH: ${KRB5_DIR}/kadmin/cli \ ${KRB5_DIR}/man diff --git a/krb5/usr.sbin/kdb5_util/Makefile b/krb5/usr.sbin/kdb5_util/Makefile index 6a7b66dc205c..5b3d3ecc3410 100644 --- a/krb5/usr.sbin/kdb5_util/Makefile +++ b/krb5/usr.sbin/kdb5_util/Makefile @@ -1,75 +1,75 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos-kdc PROG= kdb5_util LIBADD= kadmin_common kadm5srv_mit gssrpc gssapi_krb5 krb5 k5crypto \ kdb5 com_err krb5profile krb5support sys SRCS= dump.c \ kadm5_create.c \ kdb5_create.c \ kdb5_destroy.c \ kdb5_mkey.c \ kdb5_stash.c \ kdb5_util.c \ ovload.c \ strtok.c \ tabdump.c \ tdumputil.c \ ${GEN} INCS= ${GENI} MAN= kdb5_util.8 CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= kdb5_util.8 kdb5_util.8: kdb5_util.man GEN_INPUT_ERR= import_err.et GEN_INPUT_ERR_C= ${GEN_INPUT_ERR:S/.et$/.c/} GEN_INPUT_ERR_H= ${GEN_INPUT_ERR:S/.et$/.h/} CLEANFILES+= ${GEN_INPUT_ERR_C} ${GEN_INPUT_ERR_H} GEN+= ${GEN_INPUT_ERR_C} GENI+= ${GEN_INPUT_ERR_H} ${GEN_INPUT_ERR:[2..-1]}: .NOMETA ${GEN_INPUT_ERR_H}: ${GEN_INPUT_ERR} rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.c et-h-${.PREFIX}.h cp ${.ALLSRC} et-h-${.PREFIX}.et ${COMPILE_ET} et-h-${.PREFIX}.et mv et-h-${.PREFIX}.h ${.PREFIX}.h rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.h ${GEN_INPUT_ERR_C}: ${GEN_INPUT_ERR} rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c et-c-${.PREFIX}.h cp ${.ALLSRC} et-c-${.PREFIX}.et ${COMPILE_ET} et-c-${.PREFIX}.et mv et-c-${.PREFIX}.c ${.PREFIX}.c rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c CLEANFILES+= kdb5_util.8 .include .SUFFIXES: .h .c .man .8 .man.8: cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/kadmin/cli \ ${KRB5_DIR}/kadmin/dbutil \ ${KRB5_DIR}/man diff --git a/krb5/usr.sbin/sim_server/Makefile b/krb5/usr.sbin/sim_server/Makefile index 793a6ad421b1..adaf8d1f087f 100644 --- a/krb5/usr.sbin/sim_server/Makefile +++ b/krb5/usr.sbin/sim_server/Makefile @@ -1,26 +1,26 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos PROG= sim_server LIBADD= krb5 k5crypto com_err krb5profile krb5support sys SRCS= sim_server.c CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include \ -I${KRB5_DIR}/appl/simple MAN= .include .PATH: ${KRB5_DIR}/appl/simple/server diff --git a/krb5/usr.sbin/sserver/Makefile b/krb5/usr.sbin/sserver/Makefile index 3b205b490a5f..e4e85b28157e 100644 --- a/krb5/usr.sbin/sserver/Makefile +++ b/krb5/usr.sbin/sserver/Makefile @@ -1,37 +1,37 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos PROG= sserver LIBADD= krb5 k5crypto com_err krb5profile krb5support sys SRCS= sserver.c MAN= sserver.8 CFLAGS+=-I${KRB5_DIR}/include \ -I${KRB5_SRCTOP}/include MAN= sserver.8 sserver.8: sserver.man CLEANFILES+= sserver.8 .include .SUFFIXES: .h .c. .man .8 .man.8: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/appl/simple \ ${KRB5_DIR}/man diff --git a/krb5/util/build-tools/Makefile b/krb5/util/build-tools/Makefile index c33d47f70c8f..1a6a373f0e7f 100644 --- a/krb5/util/build-tools/Makefile +++ b/krb5/util/build-tools/Makefile @@ -1,32 +1,32 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos-lib .include "../Makefile.inc" SCRIPTS= krb5-config.sh BINDIR?= /usr/bin MAN= krb5-config.1 CLEANFILES= krb5-config.1 krb5-config.1: krb5-config.man .include .SUFFIXES: .sh .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/build-tools \ ${KRB5_DIR}/man \ ${KRB5_OBJTOP}/build-tools diff --git a/krb5/util/compile_et/Makefile b/krb5/util/compile_et/Makefile index 57eb2f614802..03446f2d7d1c 100644 --- a/krb5/util/compile_et/Makefile +++ b/krb5/util/compile_et/Makefile @@ -1,38 +1,38 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos .include "../Makefile.inc" SRC_ETDIR= ${KRB5_DIR}/util/et SCRIPTNAME= compile_et SCRIPTS= compile_et BINDIR?= /usr/bin MAN= compile_et.1 CLEANFILES= compile_et .if !defined(BOOTSTRAPPING) SCRIPTSDIR= ${SHAREDIR}/et .endif compile_et: compile_et.sh sh ${SRC_ETDIR}/config_script ${SRC_ETDIR}/compile_et.sh \ "${KRB5_ETDIR}" /usr/bin/awk /usr/bin/sed > ${.TARGET} chmod 0755 ${.TARGET} .include .SUFFIXES: .h .c .man .1 .man.1: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/util/et diff --git a/krb5/util/et/Makefile b/krb5/util/et/Makefile index 16b700fb5d1f..5d0c2a3e3ca5 100644 --- a/krb5/util/et/Makefile +++ b/krb5/util/et/Makefile @@ -1,48 +1,48 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5-lib +PACKAGE= kerberos-lib .include .include "../Makefile.inc" LIB= com_err # SHLIB_MAJOR= 3 LDFLAGS=-Wl,--no-undefined INCSDIR=${INCLUDEDIR} LIBADD= krb5support VERSION_MAP= ${.CURDIR}/version.map SRCS= com_err.c \ error_message.c \ et_name.c \ error_table.h \ mit-sipb-copyright.h INCS= com_err.h MAN= com_err.3 # NOTES: com_err.h is copied to ../include CFLAGS+=-I${KRB5_DIR}/util/et \ -I${KRB5_DIR}/include \ -I${.CURDIR:H:H}/include \ -I${.OBJDIR} .include .SUFFIXES: .h .c .et .ct .man .3 .man.3: @cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/util/et diff --git a/krb5/util/profile/Makefile b/krb5/util/profile/Makefile index 72ef3176ab5d..a921e29150bb 100644 --- a/krb5/util/profile/Makefile +++ b/krb5/util/profile/Makefile @@ -1,79 +1,79 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos-lib .include .include "../Makefile.inc" LIB= krb5profile LIBADD= com_err krb5support VERSION_MAP= ${.CURDIR}/version.map SRCS= prof_file.c \ prof_get.c \ prof_init.c \ prof_parse.c \ prof_set.c \ prof_tree.c \ argv_parse.h \ prof_int.h \ ${GEN} INCS= profile.h DEFINES=-DHAS_STDARG -DLIBDIR=\"${KRB5_LIBDIR}\" CFLAGS+=${DEFINES} \ -I${KRB5_DIR}/util/profile \ -I${KRB5_DIR}/util/et \ -I${KRB5_SRCTOP}/include \ -I${KRB5_DIR}/include \ -I${.OBJDIR} GEN= profile.h ${GEN_PROF_ERR_C} ${GEN_PROF_ERR_H} GEN_PROF_ERR= prof_err.et GEN_PROF_ERR_C= ${GEN_PROF_ERR:S/.et$/.c/} GEN_PROF_ERR_H= ${GEN_PROF_ERR:S/.et$/.h/} ${GEN_PROF_ERR:[2..-1]}: .NOMETA CLEANFILES= et-h-prof_err.et et-h-prof_err.c et-h-prof_err.h \ ${GEN} .include "${KRB5_SRCTOP}/Makefile.et" ${GEN_PROF_ERR_H}: ${GEN_PROF_ERR} rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.c et-h-${.PREFIX}.h cp ${.ALLSRC} et-h-${.PREFIX}.et ${COMPILE_ET} et-h-${.PREFIX}.et mv et-h-${.PREFIX}.h ${.PREFIX}.h rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.h ${GEN_PROF_ERR_C}: ${GEN_PROF_ERR} rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c et-c-${.PREFIX}.h cp ${.ALLSRC} et-c-${.PREFIX}.et ${COMPILE_ET} et-c-${.PREFIX}.et mv et-c-${.PREFIX}.c ${.PREFIX}.c rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c profile.h: profile.hin prof_err.h cat ${.ALLSRC} > ${.TARGET} prof_file.c: profile.h MAN= profile.5 .include .SUFFIXES: .h .c .man .1 .et .man.5: cp ${.ALLSRC} ${.TARGET} .PATH: ${KRB5_DIR}/util/profile diff --git a/krb5/util/ss/Makefile b/krb5/util/ss/Makefile index 600d125a7853..e7e025184284 100644 --- a/krb5/util/ss/Makefile +++ b/krb5/util/ss/Makefile @@ -1,89 +1,89 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos-lib .include .include "../Makefile.inc" # .include "${KRB5_SRCTOP}/Makefile.et" LIB= krb5ss INTERNALLIB= .PATH: ${KRB5_DIR}/util/ss SRCS= data.c \ error.c \ execute_cmd.c \ help.c \ invocation.c \ list_rqs.c \ listen.c \ pager.c \ parse.c \ prompt.c \ request_tbl.c \ requests.c \ copyright.h \ mit-sipb-copyright.h \ ss.h \ ss_internal.h \ ${GEN} SCRIPTS=${GEN_SCRIPTS} CFLAGS+=-I${KRB5_DIR}/util/ss \ -I${KRB5_DIR}/util/et \ -I${KRB5_DIR}/util \ -I${KRB5_SRCTOP}/include \ -I${KRB5_DIR}/include \ -I${.OBJDIR:H} \ -I${.OBJDIR} GEN= std_rqs.c ${GEN_SS_ERR_C} ${GEN_SS_ERR_H} GEN_SCRIPTS= ct_c.awk ct_c.sed mk_cmds GEN_SS_ERR_C= ${GEN_SS_ERR:S/.et$/.c/} GEN_SS_ERR_H= ${GEN_SS_ERR:S/.et$/.h/} CLEANFILES= ${GEN} ${GEN_SCRIPTS} mk_cmds: config_script mk_cmds.sh ct_c.awk ct_c.sed sh ${KRB5_DIR}/util/ss/config_script ${KRB5_DIR}/util/ss/mk_cmds.sh \ ${.OBJDIR} awk sed > ${.TARGET} chmod 755 ${.TARGET} ct_c.awk: ct_c_awk.in rm -f ${.TARGET} cp ${.ALLSRC} ${.TARGET} ct_c.sed: ct_c_sed.in sed -e '/^#/d' ${.ALLSRC} > ${.TARGET} GEN_SS_ERR= ss_err.et ${GEN_SS_ERR:[2..-1]}: .NOMETA ${GEN_SS_ERR_H}: ${GEN_SS_ERR} rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.c et-h-${.PREFIX}.h cp ${.ALLSRC} et-h-${.PREFIX}.et ${COMPILE_ET} et-h-${.PREFIX}.et mv et-h-${.PREFIX}.h ${.PREFIX}.h rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.h ${GEN_SS_ERR_C}: ${GEN_SS_ERR} rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c et-c-${.PREFIX}.h cp ${.ALLSRC} et-c-${.PREFIX}.et ${COMPILE_ET} et-c-${.PREFIX}.et mv et-c-${.PREFIX}.c ${.PREFIX}.c rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c std_rqs.c: mk_cmds std_rqs.ct ss_err.h ./mk_cmds ${KRB5_DIR}/util/ss/std_rqs.ct .include .SUFFIXES: .h .c .ct .et .awk .sed diff --git a/krb5/util/support/Makefile b/krb5/util/support/Makefile index 25ef7faf74ee..bba65bcd89c1 100644 --- a/krb5/util/support/Makefile +++ b/krb5/util/support/Makefile @@ -1,49 +1,49 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5-lib +PACKAGE= kerberos-lib .include .include "../Makefile.inc" LIB= krb5support # SHLIB_MAJOR= 0 LDFLAGS=-Wl,--no-undefined VERSION_MAP= ${.CURDIR}/version.map .PATH: ${KRB5_DIR}/util/support SRCS= base64.c \ bcmp.c \ dir_filenames.c \ errors.c \ fake-addrinfo.c \ gmt_mktime.c \ hashtab.c \ hex.c \ init-addrinfo.c \ json.c \ k5buf.c \ path.c \ plugins.c \ strerror_r.c \ threads.c \ utf8.c \ utf8_conv.c \ zap.c \ cache-addrinfo.h \ supp-int.h CFLAGS+=-I${KRB5_DIR}/util/support \ -I${KRB5_DIR}/include \ -I${.CURDIR:H:H}/include \ -I${.OBJDIR} .include diff --git a/krb5/util/verto/Makefile b/krb5/util/verto/Makefile index 18faddb3a09e..8f02d5f897f4 100644 --- a/krb5/util/verto/Makefile +++ b/krb5/util/verto/Makefile @@ -1,50 +1,50 @@ # # SPDX-License-Idendifier: BSD-2-Clause # # Copyright (c) 2025 FreeBSD Foundation # # This sofware was developed by Cy Schubert # under sponsorship from the FreeBSD Foundation. # -PACKAGE= krb5 +PACKAGE= kerberos-lib .include .include "../Makefile.inc" LIB= verto # SHLIB_MAJOR= 0 VERSION_MAP= ${.CURDIR}/version.map .PATH: ${KRB5_DIR}/util/verto SRCS= module.c \ verto-k5ev.c \ verto.c \ ev.h \ ev_vars.h \ ev_wrap.h \ module.h \ ${GEN} INCS= verto-module.h \ verto.h \ # See util/verto/Makefile.in and util/verto/Makefile DEFINES=-DDEFAULT_LIBRARY=\"k5ev\" -DBUILTIN_MODULE=k5ev CFLAGS+=${DEFINES} \ -I${KRB5_DIR}/util/verto \ -I${KRB5_DIR}/include \ -I${.CURDIR:H:H}/include \ -I${.OBJDIR} GEN= rename.h CLEANFILES= ${GEN} rename.h: Symbols.ev @sed -e 's/.*/#define & k5&/' < ${.ALLSRC} > ${.TARGET} .include diff --git a/lib/libpam/modules/pam_krb5/Makefile b/lib/libpam/modules/pam_krb5/Makefile index b537bf37b7f3..c1792b5fb61d 100644 --- a/lib/libpam/modules/pam_krb5/Makefile +++ b/lib/libpam/modules/pam_krb5/Makefile @@ -1,93 +1,93 @@ # Copyright 2001 FreeBSD, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # .include .if ${MK_MITKRB5} != "no" SRCDIR= ${SRCTOP}/contrib/pam-krb5 .PATH: ${SRCDIR}/module \ ${SRCDIR}/portable \ ${SRCDIR}/pam-util \ ${SRCDIR} -PACKAGE= krb5 +PACKAGE= kerberos LIB= pam_krb5 LIBADD= com_err krb5 SRCS= account.c \ alt-auth.c \ args.c \ auth.c \ cache.c \ context.c \ dummy.c \ fast.c \ krb5-extra.c \ logging.c \ pam-util_options.c \ module_options.c \ pam_syslog.c \ pam_vsyslog.c \ password.c \ prompting.c \ public.c \ setcred.c \ support.c \ vector.c MAN= pam-krb5.8 MLINKS= pam-krb5.8 pam_krb5.8 CFLAGS= -I${SRCDIR} \ -I${.CURDIR} \ -fno-strict-aliasing \ -Wno-error=incompatible-pointer-types-discards-qualifiers \ -DHAVE_CONFIG_H WARNS?= 3 CLEANFILES= pam-util_options.c module_options.c pam-util_options.c: .PHONY cp ${SRCDIR}/pam-util/options.c pam-util_options.c module_options.c: .PHONY cp ${SRCDIR}/module/options.c module_options.c .else PACKAGE= kerberos LIB= pam_krb5 SRCS= pam_krb5.c MAN= pam_krb5.8 .if defined(_FREEFALL_CONFIG) CFLAGS+=-D_FREEFALL_CONFIG WARNS?= 3 .endif LIBADD+= krb5 .endif .include diff --git a/release/packages/ucl/kerberos-all.ucl b/release/packages/ucl/kerberos-all.ucl index 6fb7f059296b..bf82040da3d0 100644 --- a/release/packages/ucl/kerberos-all.ucl +++ b/release/packages/ucl/kerberos-all.ucl @@ -1,4 +1,4 @@ -comment = "Kerberos Utilities" +comment = "Kerberos utilities" desc = <