From 7a6a7ae08ac6c612f0fbb0d4425825c6be2a9050 Mon Sep 17 00:00:00 2001 From: elric Date: Wed, 13 Apr 2011 19:16:44 +0000 Subject: [PATCH] Build framework for Heimdal. --- crypto/external/bsd/heimdal/Makefile | 5 + crypto/external/bsd/heimdal/Makefile.inc | 43 ++ .../external/bsd/heimdal/Makefile.rules.inc | 92 +++ crypto/external/bsd/heimdal/bin/Makefile | 22 + crypto/external/bsd/heimdal/bin/Makefile.inc | 3 + .../external/bsd/heimdal/bin/gsstool/Makefile | 20 + .../external/bsd/heimdal/bin/hxtool/Makefile | 20 + crypto/external/bsd/heimdal/bin/kcc/Makefile | 28 + .../bsd/heimdal/bin/kdestroy/Makefile | 17 + .../bsd/heimdal/bin/kgetcred/Makefile | 17 + .../external/bsd/heimdal/bin/kinit/Makefile | 19 + .../external/bsd/heimdal/bin/kpasswd/Makefile | 17 + .../bsd/heimdal/bin/krb5-config/Makefile | 32 ++ .../bsd/heimdal/bin/string2key/Makefile | 27 + .../bsd/heimdal/bin/verify_krb5_conf/Makefile | 29 + crypto/external/bsd/heimdal/lib/Makefile | 35 ++ crypto/external/bsd/heimdal/lib/Makefile.inc | 2 + .../external/bsd/heimdal/lib/libasn1/Makefile | 72 +++ .../heimdal/lib/libasn1/asn1_compile/Makefile | 94 +++ .../bsd/heimdal/lib/libasn1/shlib_version | 5 + .../bsd/heimdal/lib/libcom_err/Makefile | 35 ++ .../lib/libcom_err/compile_et/Makefile | 61 ++ .../bsd/heimdal/lib/libcom_err/shlib_version | 5 + .../bsd/heimdal/lib/libgssapi/Makefile | 272 +++++++++ .../bsd/heimdal/lib/libgssapi/shlib_version | 5 + .../external/bsd/heimdal/lib/libhdb/Makefile | 52 ++ .../bsd/heimdal/lib/libhdb/shlib_version | 5 + .../bsd/heimdal/lib/libheimbase/Makefile | 25 + .../bsd/heimdal/lib/libheimbase/shlib_version | 5 + .../bsd/heimdal/lib/libheimntlm/Makefile | 25 + .../bsd/heimdal/lib/libheimntlm/shlib_version | 5 + .../bsd/heimdal/lib/libhx509/Makefile | 85 +++ .../bsd/heimdal/lib/libhx509/shlib_version | 5 + .../external/bsd/heimdal/lib/libipc/Makefile | 22 + .../bsd/heimdal/lib/libkadm5clnt/Makefile | 60 ++ .../heimdal/lib/libkadm5clnt/shlib_version | 5 + .../bsd/heimdal/lib/libkadm5srv/Makefile | 51 ++ .../bsd/heimdal/lib/libkadm5srv/shlib_version | 5 + .../external/bsd/heimdal/lib/libkafs/Makefile | 24 + .../bsd/heimdal/lib/libkafs/shlib_version | 5 + .../external/bsd/heimdal/lib/libkdc/Makefile | 46 ++ .../bsd/heimdal/lib/libkdc/shlib_version | 5 + .../external/bsd/heimdal/lib/libkrb5/Makefile | 534 ++++++++++++++++++ .../bsd/heimdal/lib/libkrb5/shlib_version | 5 + .../bsd/heimdal/lib/libroken/Makefile | 89 +++ .../bsd/heimdal/lib/libroken/shlib_version | 5 + .../external/bsd/heimdal/lib/libsl/Makefile | 35 ++ .../bsd/heimdal/lib/libsl/shlib_version | 5 + .../bsd/heimdal/lib/libsl/slc/Makefile | 53 ++ .../external/bsd/heimdal/lib/libvers/Makefile | 35 ++ .../external/bsd/heimdal/lib/libwind/Makefile | 40 ++ .../bsd/heimdal/lib/libwind/shlib_version | 5 + crypto/external/bsd/heimdal/libexec/Makefile | 17 + .../external/bsd/heimdal/libexec/Makefile.inc | 3 + .../heimdal/libexec/digest-service/Makefile | 23 + .../bsd/heimdal/libexec/hpropd/Makefile | 25 + .../heimdal/libexec/ipropd-master/Makefile | 31 + .../bsd/heimdal/libexec/ipropd-slave/Makefile | 28 + .../bsd/heimdal/libexec/kadmind/Makefile | 29 + .../bsd/heimdal/libexec/kpasswdd/Makefile | 24 + crypto/external/bsd/heimdal/sbin/Makefile | 19 + crypto/external/bsd/heimdal/sbin/Makefile.inc | 3 + .../external/bsd/heimdal/sbin/hprop/Makefile | 29 + .../bsd/heimdal/sbin/iprop-log/Makefile | 23 + .../external/bsd/heimdal/sbin/kadmin/Makefile | 48 ++ crypto/external/bsd/heimdal/sbin/kcm/Makefile | 36 ++ crypto/external/bsd/heimdal/sbin/kdc/Makefile | 31 + .../bsd/heimdal/sbin/kdigest/Makefile | 21 + .../bsd/heimdal/sbin/kimpersonate/Makefile | 18 + .../external/bsd/heimdal/sbin/kstash/Makefile | 28 + .../external/bsd/heimdal/sbin/ktutil/Makefile | 35 ++ 71 files changed, 2684 insertions(+) create mode 100644 crypto/external/bsd/heimdal/Makefile create mode 100644 crypto/external/bsd/heimdal/Makefile.inc create mode 100644 crypto/external/bsd/heimdal/Makefile.rules.inc create mode 100644 crypto/external/bsd/heimdal/bin/Makefile create mode 100644 crypto/external/bsd/heimdal/bin/Makefile.inc create mode 100644 crypto/external/bsd/heimdal/bin/gsstool/Makefile create mode 100644 crypto/external/bsd/heimdal/bin/hxtool/Makefile create mode 100644 crypto/external/bsd/heimdal/bin/kcc/Makefile create mode 100644 crypto/external/bsd/heimdal/bin/kdestroy/Makefile create mode 100644 crypto/external/bsd/heimdal/bin/kgetcred/Makefile create mode 100644 crypto/external/bsd/heimdal/bin/kinit/Makefile create mode 100644 crypto/external/bsd/heimdal/bin/kpasswd/Makefile create mode 100644 crypto/external/bsd/heimdal/bin/krb5-config/Makefile create mode 100644 crypto/external/bsd/heimdal/bin/string2key/Makefile create mode 100644 crypto/external/bsd/heimdal/bin/verify_krb5_conf/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/Makefile.inc create mode 100644 crypto/external/bsd/heimdal/lib/libasn1/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libasn1/asn1_compile/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libasn1/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libcom_err/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libcom_err/compile_et/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libcom_err/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libgssapi/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libgssapi/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libhdb/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libhdb/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libheimbase/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libheimbase/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libheimntlm/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libhx509/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libhx509/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libipc/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libkafs/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libkafs/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libkdc/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libkdc/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libkrb5/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libkrb5/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libroken/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libroken/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libsl/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libsl/shlib_version create mode 100644 crypto/external/bsd/heimdal/lib/libsl/slc/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libvers/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libwind/Makefile create mode 100644 crypto/external/bsd/heimdal/lib/libwind/shlib_version create mode 100644 crypto/external/bsd/heimdal/libexec/Makefile create mode 100644 crypto/external/bsd/heimdal/libexec/Makefile.inc create mode 100644 crypto/external/bsd/heimdal/libexec/digest-service/Makefile create mode 100644 crypto/external/bsd/heimdal/libexec/hpropd/Makefile create mode 100644 crypto/external/bsd/heimdal/libexec/ipropd-master/Makefile create mode 100644 crypto/external/bsd/heimdal/libexec/ipropd-slave/Makefile create mode 100644 crypto/external/bsd/heimdal/libexec/kadmind/Makefile create mode 100644 crypto/external/bsd/heimdal/libexec/kpasswdd/Makefile create mode 100644 crypto/external/bsd/heimdal/sbin/Makefile create mode 100644 crypto/external/bsd/heimdal/sbin/Makefile.inc create mode 100644 crypto/external/bsd/heimdal/sbin/hprop/Makefile create mode 100644 crypto/external/bsd/heimdal/sbin/iprop-log/Makefile create mode 100644 crypto/external/bsd/heimdal/sbin/kadmin/Makefile create mode 100644 crypto/external/bsd/heimdal/sbin/kcm/Makefile create mode 100644 crypto/external/bsd/heimdal/sbin/kdc/Makefile create mode 100644 crypto/external/bsd/heimdal/sbin/kdigest/Makefile create mode 100644 crypto/external/bsd/heimdal/sbin/kimpersonate/Makefile create mode 100644 crypto/external/bsd/heimdal/sbin/kstash/Makefile create mode 100644 crypto/external/bsd/heimdal/sbin/ktutil/Makefile diff --git a/crypto/external/bsd/heimdal/Makefile b/crypto/external/bsd/heimdal/Makefile new file mode 100644 index 000000000000..4652402bc4fa --- /dev/null +++ b/crypto/external/bsd/heimdal/Makefile @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:44 elric Exp $ + +SUBDIR= lib .WAIT bin libexec sbin + +.include diff --git a/crypto/external/bsd/heimdal/Makefile.inc b/crypto/external/bsd/heimdal/Makefile.inc new file mode 100644 index 000000000000..a7a7e118ad50 --- /dev/null +++ b/crypto/external/bsd/heimdal/Makefile.inc @@ -0,0 +1,43 @@ +# $NetBSD: Makefile.inc,v 1.1 2011/04/13 19:16:44 elric Exp $ + +HEIMBASE?= ${NETBSDSRCDIR}/crypto/external/bsd/heimdal +HEIMDIST= ${HEIMBASE}/dist + +SSLBASE?= ${NETBSDSRCDIR}/crypto/external/bsd/openssl + +LIBVERSDIR!= cd ${HEIMBASE}/lib/libvers && ${PRINTOBJDIR} +LIBVERS= ${LIBVERSDIR}/libvers.a + +LIBIPCDIR!= cd ${HEIMBASE}/lib/libipc && ${PRINTOBJDIR} +LIBIPC= ${LIBIPCDIR}/libipc.a +LIBIPC_PIC= ${LIBIPCDIR}/libipc_pic.a + +.if ${USETOOLS} != "yes" +COMPILEETOBJ!= cd ${HEIMBASE}/lib/libcom_err/compile_et && ${PRINTOBJDIR} +TOOL_COMPILE_ET= ${COMPILEETOBJ}/compile_et + +ASN1COMPILEOBJ!= cd ${HEIMBASE}/lib/libasn1/asn1_compile && ${PRINTOBJDIR} +TOOL_ASN1_COMPILE= ${ASN1COMPILEOBJ}/asn1_compile + +SLCOBJ!= cd ${HEIMBASE}/lib/libsl/slc && ${PRINTOBJDIR} +TOOL_SLC= ${SLCOBJ}/slc +.endif + +# +# We now define what are standard CPP flags across Heimdal: + +.if (${USE_INET6} != "no") +CPPFLAGS+=-DHAVE_IPV6 +HOST_CPPFLAGS+=-DHAVE_IPV6 +.endif + +.if ${MKPIC} == "no" +CPPFLAGS+= -DNO_DLOPEN +.endif + +CPPFLAGS+= -DHAVE_CONFIG_H +HOST_CPPFLAGS+= -DHAVE_CONFIG_H + +CPPFLAGS+= ${.PATH:S/^/-I/} +CPPFLAGS+= -I${HEIMBASE}/include +CPPFLAGS+= -I${HEIMDIST}/include diff --git a/crypto/external/bsd/heimdal/Makefile.rules.inc b/crypto/external/bsd/heimdal/Makefile.rules.inc new file mode 100644 index 000000000000..fb97702a2d87 --- /dev/null +++ b/crypto/external/bsd/heimdal/Makefile.rules.inc @@ -0,0 +1,92 @@ +# $NetBSD: Makefile.rules.inc,v 1.1 2011/04/13 19:16:44 elric Exp $ + +SRCS+= ${HEIMSRCS:N*.et:N*.in:N*.asn1} + +.for et_src in ${HEIMSRCS:M*.et} +CLEANFILES+= ${et_src:.et=.c} ${et_src:.et=.h} +DPSRCS+= ${et_src:.et=.c} ${et_src:.et=.h} +COMPILE_ET_INCS+= ${et_src:.et=.h} +OBJS+= ${et_src:.et=.o} + +${et_src:.et=.c} ${et_src:.et=.h}: ${et_src} ${TOOL_COMPILE_ET} + ${TOOL_COMPILE_ET} ${.ALLSRC:[1]} + +.endfor + +.for src in ${HEIMSRCS:M*.asn1} +ASN1_FILES.${src} ?= asn1_${src:.asn1=_asn1.x} + +.if ${ASN1_FILES.${src}:[\#]} == 1 +ASN1_OPTS.${src} ?= --one-code-file +.endif + +CLEANFILES+= \ + ${src:.asn1=_asn1_files} \ + ${ASN1_FILES.${src}} \ + ${ASN1_FILES.${src}:.x=.c} \ + ${src:.asn1=_asn1.h} \ + ${src:.asn1=_asn1.hx} \ + ${src:.asn1=_asn1-priv.h} \ + ${src:.asn1=_asn1-priv.hx} + +ASN1_INCS += ${src:.asn1=_asn1.h} + +DPSRCS += ${src:.asn1=_asn1.h} ${src:.asn1=_asn1-priv.h} +DPSRCS += ${src:.asn1=_asn1.hx} ${src:.asn1=_asn1-priv.hx} +OBJS += ${ASN1_FILES.${src}:.x=.o} + +.if exists(${src:.asn1=.opt}) +${ASN1_FILES.${src}} ${src:.asn1=_asn1.hx} ${src:.asn1=_asn1-priv.hx}: ${src} \ + ${src:.asn1=.opt} ${TOOL_ASN1_COMPILE} + ${TOOL_ASN1_COMPILE} \ + ${ASN1_OPTS.${src}} \ + --option-file=${.ALLSRC:[2]} \ + ${.ALLSRC:[1]} ${src:.asn1=_asn1} + +.else +${ASN1_FILES.${src}} ${src:.asn1=_asn1.hx} ${src:.asn1=_asn1-priv.hx}: ${src} \ + ${TOOL_ASN1_COMPILE} + ${TOOL_ASN1_COMPILE} \ + ${ASN1_OPTS.${src}} \ + ${.ALLSRC:[1]} ${src:.asn1=_asn1} + +.endif + +${src:.asn1=_asn1.h}: ${src:.asn1=_asn1.hx} + @2>/dev/null < ${src:.asn1=_asn1.hx} > ${src:.asn1=_asn1.h} \ + sed -E \ + -e 's,#include <(.*)_asn1\.h>,#include ,' + +${src:.asn1=_asn1-priv.h}: ${src:.asn1=_asn1-priv.hx} + @2> /dev/null \ + cmp -s ${src:.asn1=_asn1-priv.hx} ${src:.asn1=_asn1-priv.h} || \ + cp ${src:.asn1=_asn1-priv.hx} ${src:.asn1=_asn1-priv.h} + +.for x2c in ${ASN1_FILES.${src}} +${x2c:.x=.c}: ${x2c} + @cmp -s ${x2c} ${x2c:.x=.c} 2> /dev/null || cp ${x2c} ${x2c:.x=.c} + +.endfor + +.endfor + +# +# and for slc: + +.for slc_src in ${HEIMSRCS:M*.in} +CLEANFILES+= ${slc_src:.in=.c} ${slc_src:.in=.h} +DPSRCS+= ${slc_src:.in=.c} ${slc_src:.in=.h} +OBJS+= ${slc_src:.in=.o} +SLC_INCS+= ${slc_src:.in=.h} + +${slc_src:.in=.c} ${slc_src:.in=.h}: ${slc_src} + ${TOOL_SLC} ${.ALLSRC} + +.endfor + +# +# And a tiny bit of logic for bsd.prog.mk: + +.if defined(PROG) && defined(OBJS) +OBJS.${PROG} += ${OBJS} +.endif diff --git a/crypto/external/bsd/heimdal/bin/Makefile b/crypto/external/bsd/heimdal/bin/Makefile new file mode 100644 index 000000000000..c85b69994f4b --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:44 elric Exp $ + +.include + +HEIMBASE=${.CURDIR}/.. + +.if (${MKKERBEROS} != "no") +SUBDIR = \ + gsstool \ + hxtool \ + kcc \ + kdestroy \ + kgetcred \ + kinit \ + kpasswd \ + krb5-config \ + string2key \ + verify_krb5_conf + +.endif # MKKERBEROS != no + +.include diff --git a/crypto/external/bsd/heimdal/bin/Makefile.inc b/crypto/external/bsd/heimdal/bin/Makefile.inc new file mode 100644 index 000000000000..2006deef99ff --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 2011/04/13 19:16:44 elric Exp $ + +BINDIR=/usr/bin diff --git a/crypto/external/bsd/heimdal/bin/gsstool/Makefile b/crypto/external/bsd/heimdal/bin/gsstool/Makefile new file mode 100644 index 000000000000..2bc643c0f070 --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/gsstool/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:44 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # cryptographic software + +.PATH: ${HEIMDIST}/lib/gssapi + +PROG= gsstool + +HEIMSRCS= gsstool.c gss-commands.in + +MAN= + +LDADD+= -lgssapi -lsl ${LIBVERS} +DPADD+= ${LIBGSSAPI} ${LIBSL} ${LIBVERS} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/bin/hxtool/Makefile b/crypto/external/bsd/heimdal/bin/hxtool/Makefile new file mode 100644 index 000000000000..c42aa5e1c1c5 --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/hxtool/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:45 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # cryptographic software + +.PATH: ${HEIMDIST}/lib/hx509 + +PROG= hxtool + +HEIMSRCS= hxtool.c hxtool-commands.in + +MAN= + +LDADD+= -lgssapi -lsl ${LIBVERS} +DPADD+= ${LIBGSSAPI} ${LIBSL} ${LIBVERS} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/bin/kcc/Makefile b/crypto/external/bsd/heimdal/bin/kcc/Makefile new file mode 100644 index 000000000000..82c28b08950c --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/kcc/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:45 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # cryptographic software + +.PATH: ${HEIMDIST}/kuser + +PROG= kcc +LINKS+= ${BINDIR}/kcc ${BINDIR}/klist + +MAN= klist.1 + +HEIMSRCS= kcc-commands.in + +SRCS= copy_cred_cache.c \ + kcc.c \ + klist.c \ + kswitch.c + +CPPFLAGS+= -I${DESTDIR}/usr/include/krb5 + +LDADD+= -lkrb5 -lkafs -lsl -lheimbase ${LIBVERS} +DPADD+= ${LIBKRB5} ${LIBKAFS} ${LIBSL} ${LIBVERS} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/bin/kdestroy/Makefile b/crypto/external/bsd/heimdal/bin/kdestroy/Makefile new file mode 100644 index 000000000000..5e747801ea5d --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/kdestroy/Makefile @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:45 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # cryptographic software + +.PATH: ${HEIMDIST}/kuser + +PROG= kdestroy +SRCS= kdestroy.c + +LDADD+= -lkrb5 -lkafs -lsl -lheimbase -lheimntlm ${LIBVERS} +DPADD+= ${LIBKRB5} ${LIBKAFS} ${LIBSL} ${LIBVERS} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/bin/kgetcred/Makefile b/crypto/external/bsd/heimdal/bin/kgetcred/Makefile new file mode 100644 index 000000000000..a3548cfabd6b --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/kgetcred/Makefile @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:45 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # cryptographic software + +.PATH: ${HEIMDIST}/kuser + +PROG= kgetcred +SRCS= kgetcred.c + +LDADD+= -lkrb5 -lkafs -lsl -lheimbase -lheimntlm ${LIBVERS} +DPADD+= ${LIBKRB5} ${LIBKAFS} ${LIBSL} ${LIBVERS} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/bin/kinit/Makefile b/crypto/external/bsd/heimdal/bin/kinit/Makefile new file mode 100644 index 000000000000..0a772412160a --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/kinit/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:45 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # cryptographic software + +.PATH: ${HEIMDIST}/kuser + +PROG= kinit +SRCS= kinit.c + +CPPFLAGS+= -I${HEIMDIST}/lib/ntlm + +LDADD+= -lkrb5 -lkafs -lsl -lheimbase -lheimntlm ${LIBVERS} +DPADD+= ${LIBKRB5} ${LIBKAFS} ${LIBSL} ${LIBVERS} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/bin/kpasswd/Makefile b/crypto/external/bsd/heimdal/bin/kpasswd/Makefile new file mode 100644 index 000000000000..cb1b52400ac3 --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/kpasswd/Makefile @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:46 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # cryptographic software + +.PATH: ${HEIMDIST}/kpasswd + +PROG= kpasswd +SRCS= kpasswd.c + +LDADD+= -lkrb5 -lkafs -lsl -lheimbase -lheimntlm ${LIBVERS} +DPADD+= ${LIBKRB5} ${LIBKAFS} ${LIBSL} ${LIBVERS} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/bin/krb5-config/Makefile b/crypto/external/bsd/heimdal/bin/krb5-config/Makefile new file mode 100644 index 000000000000..81486dd80e6f --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/krb5-config/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:46 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/tools + +SCRIPTS= krb5-config +MAN= krb5-config.1 + +CLEANFILES+= krb5-config + +krb5-config: krb5-config.in + ${TOOL_SED} -e "s!@PACKAGE\@!heimdal!g" \ + -e "s!@VERSION\@!1.5pre1!g" \ + -e "s!@prefix\@!/!g" \ + -e "s!@exec_prefix\@!/!g" \ + -e "s!@libdir\@!/usr/lib!g" \ + -e "s!@includedir\@!/usr/include!g" \ + -e "s!@LIB_crypt\@!-lcrypt!g" \ + -e "s!@LIB_dbopen\@!!g" \ + -e "s!@INCLUDE_hcrypto\@!!g" \ + -e "s!@LIB_hcrypto_appl\@!-lcrypto!g" \ + -e "s!@LIB_dlopen\@!!g" \ + -e "s!@LIB_door_create\@!!g" \ + -e "s!@LIB_pkinit\@!-lhx509!g" \ + -e "s!@PTHREAD_LIBADD\@!-lpthread!g" \ + -e "s!@LIBS\@!!g" \ + ${HEIMDIST}/tools/krb5-config.in > $@ + chmod +x $@ + +.include diff --git a/crypto/external/bsd/heimdal/bin/string2key/Makefile b/crypto/external/bsd/heimdal/bin/string2key/Makefile new file mode 100644 index 000000000000..e28b01728e23 --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/string2key/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:46 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # cryptographic software + +.PATH: ${HEIMDIST}/kdc + +PROG= string2key +SRCS= string2key.c +MAN= string2key.8 + +CPPFLAGS+= \ + -I${HEIMDIST}/base \ + -I${HEIMDIST}/lib/krb5 \ + -I${HEIMDIST}/lib/wind \ + -I${HEIMDIST}/kdc \ + -I${HEIMBASE}/include/krb5 \ + -I${HEIMBASE}/lib/libheimntlm \ + -I${HEIMBASE}/lib/libwind \ + +LDADD+= -lkrb5 -lcrypto -lwind ${LIBVERS} +DPADD+= ${LIBKRB5} ${LIBVERS} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/bin/verify_krb5_conf/Makefile b/crypto/external/bsd/heimdal/bin/verify_krb5_conf/Makefile new file mode 100644 index 000000000000..38bd8526452e --- /dev/null +++ b/crypto/external/bsd/heimdal/bin/verify_krb5_conf/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:47 elric Exp $ + +WARNS?= 2 # XXX -Wextra + +NOLINT= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/krb5 + +PROG= verify_krb5_conf +MAN= verify_krb5_conf.8 + +SRCS= verify_krb5_conf.c + +#CPPFLAGS+= -I. \ +# -I${DIST}/heimdal/lib/asn1 \ +# -I${NETBSDSRCDIR}/include/heimdal \ +# -I${DESTDIR}/usr/include/krb5 \ +# -DHAVE_CONFIG_H + +LDADD+= -lkrb5 -lhx509 -lcrypto -lasn1 -lcom_err \ + ${LIBVERS} -lroken -lcrypt +DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} ${LIBASN1} ${LIBCOM_ERR} \ + ${LIBVERS} ${LIBROKEN} ${LIBCRYPT} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/Makefile b/crypto/external/bsd/heimdal/lib/Makefile new file mode 100644 index 000000000000..da25c0812c4b --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:47 elric Exp $ + +.include "bsd.own.mk" + +HEIMBASE=${.CURDIR}/.. + +.if (${MKKERBEROS} != "no") +SUBDIR = \ + libheimbase \ + libcom_err \ + libroken \ + libvers \ + .WAIT \ + libsl \ + .WAIT \ + libasn1 \ + libwind \ + .WAIT \ + libhx509 \ + libipc \ + .WAIT \ + libkrb5 \ + .WAIT \ + libhdb \ + libkafs \ + libheimntlm \ + .WAIT \ + libkdc \ + libgssapi \ + libkadm5srv \ + libkadm5clnt + +.endif # MKKERBEROS != no + +.include diff --git a/crypto/external/bsd/heimdal/lib/Makefile.inc b/crypto/external/bsd/heimdal/lib/Makefile.inc new file mode 100644 index 000000000000..6c2b0c3ae27e --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/Makefile.inc @@ -0,0 +1,2 @@ + +CFLAGS+= -g diff --git a/crypto/external/bsd/heimdal/lib/libasn1/Makefile b/crypto/external/bsd/heimdal/lib/libasn1/Makefile new file mode 100644 index 000000000000..ecba1ffb8bc5 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libasn1/Makefile @@ -0,0 +1,72 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:48 elric Exp $ + +USE_FORT?= yes # network protocol library + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/asn1 ${HEIMBASE}/include + +LIB= asn1 + +LIBDPLIBS+= com_err ${.CURDIR}/../libcom_err + +HEIMSRCS = \ + asn1_err.et \ + krb5.asn1 \ + cms.asn1 \ + rfc2459.asn1 \ + pkinit.asn1 \ + pkcs12.asn1 \ + pkcs8.asn1 \ + pkcs9.asn1 \ + digest.asn1 \ + kx509.asn1 + +ASN1_OPTS.rfc2459.asn1 = \ + --one-code-file \ + --preserve-binary=TBSCertificate \ + --preserve-binary=TBSCRLCertList \ + --preserve-binary=Name \ + --sequence=GeneralNames \ + --sequence=Extensions \ + --sequence=CRLDistributionPoints + +INCSDIR= /usr/include/krb5 + +INCS= asn1-common.h \ + heim_asn1.h \ + der.h \ + der-protos.h \ + ${COMPILE_ET_INCS} \ + ${ASN1_INCS} + +SRCS= \ + der.c \ + der_get.c \ + der_put.c \ + der_free.c \ + der_length.c \ + der_copy.c \ + der_cmp.c \ + der_format.c \ + extra.c \ + timegm.c + +.if ${USETOOLS} != "yes" +# .PHONY: ${ASN1COMPILEOBJ}/asn1_compile +.PHONY: try_to_build_asn1_compile + +try_to_build_asn1_compile: + @cd ${.CURDIR}/asn1_compile && ${MAKE} + +${ASN1COMPILEOBJ}/asn1_compile: try_to_build_asn1_compile + +SUBDIR= asn1_compile +.endif + +.include <${HEIMBASE}/Makefile.rules.inc> +.include +.if ${USETOOLS} != "yes" +.include +.endif diff --git a/crypto/external/bsd/heimdal/lib/libasn1/asn1_compile/Makefile b/crypto/external/bsd/heimdal/lib/libasn1/asn1_compile/Makefile new file mode 100644 index 000000000000..d83225565fce --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libasn1/asn1_compile/Makefile @@ -0,0 +1,94 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:48 elric Exp $ + +NOLINT= # defined +NOMAN= # defined + +.include +.include <${.CURDIR}/../../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/asn1 \ + ${HEIMDIST}/lib/roken \ + ${HEIMDIST}/lib/vers + +PROG= asn1_compile + +.if ${USETOOLS} != "yes" +LDADD+= -lutil +DPADD+= ${LIBUTIL} +.endif + +WARNS?= 1 + +asn1_compile_SRCS = \ + gen.c \ + gen_copy.c \ + gen_decode.c \ + gen_encode.c \ + gen_free.c \ + gen_glue.c \ + gen_length.c \ + gen_seq.c \ + gen_template.c \ + hash.c \ + lex.l \ + main.c \ + asn1parse.y \ + symbol.c + +roken_SRCS = \ + getarg.c \ + print_version.c \ + warnerr.c \ + strupr.c \ + get_window_size.c \ + ecalloc.c \ + emalloc.c \ + estrdup.c \ + rand.c + +SRCS= $(asn1_compile_SRCS) \ + $(roken_SRCS) + +YHEADER= # defined + +HOST_CPPFLAGS+= -I. \ + -I${HEIMBASE}/include \ + -I${HEIMBASE}/include/krb5 \ + -I${HEIMBASE}/lib/libkrb5 \ + -I${HEIMDIST}/lib/asn1 \ + -I${HEIMDIST}/lib/roken \ + -DKRB5=1 \ + -DHAVE_CONFIG_H + +DPSRCS= print_version.h + +make-print-version.lo: ${HEIMBASE}/include/version.h + +make-print-version: make-print-version.lo + ${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC} + +print_version.h: make-print-version + ./make-print-version print_version.h + +.NOPATH: print_version.h make-print-version + +CLEANFILES+= print_version.h make-print-version make-print-version.lo + +.BEGIN: + [ -h krb5 ] || ln -sf . krb5 + ln -sf ${HEIMBASE}/include/der-protos.h + ln -sf ${HEIMBASE}/include/roken.h + ln -sf ${HEIMBASE}/include/krb5-types.h + ln -sf ${HEIMBASE}/dist/lib/asn1/der.h + ln -sf ${HEIMBASE}/dist/lib/roken/roken-common.h + ln -sf ${HEIMBASE}/dist/lib/roken/getarg.h + ln -sf ${HEIMBASE}/dist/lib/asn1/asn1-common.h + +CLEANFILES+= krb5 der-protos.h roken.h krb5-types.h der.h \ + roken-common.h getarg.h asn1-common.h + +# HOSTPROG will be set already if this is a src/tools build. +.ifndef HOSTPROG +HOSTPROG= ${PROG} +.include +.endif diff --git a/crypto/external/bsd/heimdal/lib/libasn1/shlib_version b/crypto/external/bsd/heimdal/lib/libasn1/shlib_version new file mode 100644 index 000000000000..2bfff64734ee --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libasn1/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:48 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=9 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libcom_err/Makefile b/crypto/external/bsd/heimdal/lib/libcom_err/Makefile new file mode 100644 index 000000000000..a38a375b5a63 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libcom_err/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:49 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/com_err + +LIB= com_err +SRCS= error.c com_err.c + +INCSDIR= /usr/include/krb5 +INCS= com_err.h com_right.h + +MAN= com_err.3 +MLINKS= com_err.3 com_err_va.3 \ + com_err.3 error_message.3 \ + com_err.3 error_table_name.3 \ + com_err.3 init_error_table.3 \ + com_err.3 set_com_err_hook.3 \ + com_err.3 reset_com_err_hook.3 + +.if ${USETOOLS} != "yes" +.PHONY: compile_et +includes: compile_et +SUBDIR= compile_et + +compile_et: + @cd ${.CURDIR}/compile_et && ${MAKE} +.endif + +.include <${HEIMBASE}/Makefile.rules.inc> +.include +.if ${USETOOLS} != "yes" +.include +.endif diff --git a/crypto/external/bsd/heimdal/lib/libcom_err/compile_et/Makefile b/crypto/external/bsd/heimdal/lib/libcom_err/compile_et/Makefile new file mode 100644 index 000000000000..4065537af88d --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libcom_err/compile_et/Makefile @@ -0,0 +1,61 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:49 elric Exp $ + +NOMAN= # defined + +.include +.include <${.CURDIR}/../../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/com_err \ + ${HEIMDIST}/lib/roken \ + ${HEIMDIST}/lib/vers + +PROG= compile_et + +SRCS+= compile_et.c parse.y lex.l \ + getarg.c print_version.c warnerr.c strupr.c get_window_size.c \ + rand.c + +YHEADER= # defined + +BINDIR= /usr/bin + +LIBROKEN!= cd ${HEIMBASE}/lib/libroken && ${PRINTOBJDIR} + +CPPFLAGS+= \ + -I${HEIMDIST}/lib/roken + +# -I${DESTDIR}/usr/include \ + +HOST_CPPFLAGS+= -I. \ + -I${HEIMBASE}/include \ + -I${HEIMBASE}/include/krb5 \ + -I${LIBROKEN} \ + -I${HEIMDIST}/lib/com_err \ + -I${HEIMDIST}/lib/roken \ + -DKRB5=1 \ + -DHAVE_CONFIG_H + +DPSRCS= print_version.h + +make-print-version.lo: ${NETBSDSRCDIR}/include/heimdal/version.h + +make-print-version: make-print-version.lo + ${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC} + +print_version.h: make-print-version + ./make-print-version print_version.h + +CLEANFILES+= print_version.h make-print-version make-print-version.lo + +.BEGIN: + [ -h krb5 ] || ln -sf . krb5 + ln -sf ${HEIMBASE}/include/roken.h + ln -sf ${HEIMBASE}/dist/lib/roken/roken-common.h + ln -sf ${HEIMBASE}/dist/lib/roken/getarg.h + +CLEANFILES+= krb5 roken.h roken-common.h getarg.h + +.ifndef HOSTPROG +HOSTPROG= ${PROG} +.include +.endif diff --git a/crypto/external/bsd/heimdal/lib/libcom_err/shlib_version b/crypto/external/bsd/heimdal/lib/libcom_err/shlib_version new file mode 100644 index 000000000000..38d72eb4a7a1 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libcom_err/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:49 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=7 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libgssapi/Makefile b/crypto/external/bsd/heimdal/lib/libgssapi/Makefile new file mode 100644 index 000000000000..6fc7d5fdbb9f --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libgssapi/Makefile @@ -0,0 +1,272 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:50 elric Exp $ + +USE_FORT?= yes # network protocol library + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/gssapi \ + ${HEIMDIST}/lib/gssapi/krb5 \ + ${HEIMDIST}/lib/gssapi/mech \ + ${HEIMDIST}/lib/gssapi/spnego \ + ${HEIMDIST}/lib/gssapi/ntlm + +LIB= gssapi + +LIBDPLIBS+= krb5 ${HEIMBASE}/lib/libkrb5 \ + asn1 ${HEIMBASE}/lib/libasn1 \ + com_err ${HEIMBASE}/lib/libcom_err \ + roken ${HEIMBASE}/lib/libroken \ + heimntlm ${HEIMBASE}/lib/libheimntlm \ + crypto ${SSLBASE}/lib/libcrypto + +HEIMSRCS= gkrb5_err.et spnego.asn1 gssapi.asn1 + +ASN1_OPTS.spnego.asn1 = --sequence=MechTypeList + +ASN1_FILES.spnego.asn1 = \ + asn1_ContextFlags.x \ + asn1_MechType.x \ + asn1_MechTypeList.x \ + asn1_NegotiationToken.x \ + asn1_NegotiationTokenWin.x \ + asn1_NegHints.x \ + asn1_NegTokenInit.x \ + asn1_NegTokenInitWin.x \ + asn1_NegTokenResp.x + +krb5src = \ + krb5/8003.c \ + krb5/accept_sec_context.c \ + krb5/acquire_cred.c \ + krb5/add_cred.c \ + krb5/address_to_krb5addr.c \ + krb5/aeap.c \ + krb5/arcfour.c \ + krb5/canonicalize_name.c \ + krb5/creds.c \ + krb5/ccache_name.c \ + krb5/cfx.c \ + krb5/compare_name.c \ + krb5/compat.c \ + krb5/context_time.c \ + krb5/copy_ccache.c \ + krb5/decapsulate.c \ + krb5/delete_sec_context.c \ + krb5/display_name.c \ + krb5/display_status.c \ + krb5/duplicate_name.c \ + krb5/encapsulate.c \ + krb5/export_name.c \ + krb5/export_sec_context.c \ + krb5/external.c \ + krb5/get_mic.c \ + krb5/import_name.c \ + krb5/import_sec_context.c \ + krb5/indicate_mechs.c \ + krb5/init.c \ + krb5/init_sec_context.c \ + krb5/inquire_context.c \ + krb5/inquire_cred.c \ + krb5/inquire_cred_by_mech.c \ + krb5/inquire_cred_by_oid.c \ + krb5/inquire_mechs_for_name.c \ + krb5/inquire_names_for_mech.c \ + krb5/inquire_sec_context_by_oid.c \ + krb5/process_context_token.c \ + krb5/prf.c \ + krb5/release_buffer.c \ + krb5/release_cred.c \ + krb5/release_name.c \ + krb5/sequence.c \ + krb5/store_cred.c \ + krb5/set_cred_option.c \ + krb5/set_sec_context_option.c \ + krb5/ticket_flags.c \ + krb5/unwrap.c \ + krb5/verify_mic.c \ + krb5/wrap.c + +mechsrc = \ + mech/context.c \ + mech/doxygen.c \ + mech/gss_accept_sec_context.c \ + mech/gss_acquire_cred.c \ + mech/gss_add_cred.c \ + mech/gss_add_oid_set_member.c \ + mech/gss_aeap.c \ + mech/gss_buffer_set.c \ + mech/gss_canonicalize_name.c \ + mech/gss_compare_name.c \ + mech/gss_context_time.c \ + mech/gss_create_empty_oid_set.c \ + mech/gss_cred.c \ + mech/gss_decapsulate_token.c \ + mech/gss_delete_name_attribute.c \ + mech/gss_delete_sec_context.c \ + mech/gss_display_name.c \ + mech/gss_display_name_ext.c \ + mech/gss_display_status.c \ + mech/gss_duplicate_name.c \ + mech/gss_duplicate_oid.c \ + mech/gss_encapsulate_token.c \ + mech/gss_export_name.c \ + mech/gss_export_name_composite.c \ + mech/gss_export_sec_context.c \ + mech/gss_get_mic.c \ + mech/gss_get_name_attribute.c \ + mech/gss_import_name.c \ + mech/gss_import_sec_context.c \ + mech/gss_indicate_mechs.c \ + mech/gss_init_sec_context.c \ + mech/gss_inquire_context.c \ + mech/gss_inquire_cred.c \ + mech/gss_inquire_cred_by_mech.c \ + mech/gss_inquire_cred_by_oid.c \ + mech/gss_inquire_mechs_for_name.c \ + mech/gss_inquire_name.c \ + mech/gss_inquire_names_for_mech.c \ + mech/gss_krb5.c \ + mech/gss_mech_switch.c \ + mech/gss_mo.c \ + mech/gss_names.c \ + mech/gss_oid.c \ + mech/gss_oid_equal.c \ + mech/gss_oid_to_str.c \ + mech/gss_process_context_token.c \ + mech/gss_pseudo_random.c \ + mech/gss_release_buffer.c \ + mech/gss_release_cred.c \ + mech/gss_release_name.c \ + mech/gss_release_oid.c \ + mech/gss_release_oid_set.c \ + mech/gss_seal.c \ + mech/gss_set_cred_option.c \ + mech/gss_set_name_attribute.c \ + mech/gss_set_sec_context_option.c \ + mech/gss_sign.c \ + mech/gss_store_cred.c \ + mech/gss_test_oid_set_member.c \ + mech/gss_unseal.c \ + mech/gss_unwrap.c \ + mech/gss_utils.c \ + mech/gss_verify.c \ + mech/gss_verify_mic.c \ + mech/gss_wrap.c \ + mech/gss_wrap_size_limit.c \ + mech/gss_inquire_sec_context_by_oid.c + +spnegosrc = \ + spnego/accept_sec_context.c \ + spnego/compat.c \ + spnego/context_stubs.c \ + spnego/cred_stubs.c \ + spnego/external.c \ + spnego/init_sec_context.c + +ntlmsrc = \ + ntlm/accept_sec_context.c \ + ntlm/acquire_cred.c \ + ntlm/add_cred.c \ + ntlm/canonicalize_name.c \ + ntlm/compare_name.c \ + ntlm/context_time.c \ + ntlm/creds.c \ + ntlm/crypto.c \ + ntlm/delete_sec_context.c \ + ntlm/display_name.c \ + ntlm/display_status.c \ + ntlm/duplicate_name.c \ + ntlm/export_name.c \ + ntlm/export_sec_context.c \ + ntlm/external.c \ + ntlm/import_name.c \ + ntlm/import_sec_context.c \ + ntlm/indicate_mechs.c \ + ntlm/init_sec_context.c \ + ntlm/inquire_context.c \ + ntlm/inquire_cred_by_mech.c \ + ntlm/inquire_mechs_for_name.c \ + ntlm/inquire_names_for_mech.c \ + ntlm/inquire_sec_context_by_oid.c \ + ntlm/iter_cred.c \ + ntlm/process_context_token.c \ + ntlm/release_cred.c \ + ntlm/release_name.c \ + ntlm/kdc.c + +NTLMSRC= ${ntlmsrc:S@/@__@} +KRB5SRC= ${krb5src:S@/@__@} +MECHSRC= ${mechsrc:S@/@__@} +SPNEGOSRC= ${spnegosrc:S@/@__@} + +SRCS= ${KRB5SRC} ${MECHSRC} ${SPNEGOSRC} ${NTLMSRC} + +.for i in ${KRB5SRC} ${MECHSRC} ${SPNEGOSRC} ${NTLMSRC} +BUILDSYMLINKS+= ${i:S@__@/@} ${i} +CLEANFILES+= ${i} +.endfor + +MAN= \ + gssapi.3 \ + gss_acquire_cred.3 \ + mech.5 + +MLINKS= \ + gss_acquire_cred.3 gss_accept_sec_context.3 \ + gss_acquire_cred.3 gss_add_cred.3 \ + gss_acquire_cred.3 gss_add_oid_set_member.3 \ + gss_acquire_cred.3 gss_canonicalize_name.3 \ + gss_acquire_cred.3 gss_compare_name.3 \ + gss_acquire_cred.3 gss_context_time.3 \ + gss_acquire_cred.3 gss_create_empty_oid_set.3 \ + gss_acquire_cred.3 gss_delete_sec_context.3 \ + gss_acquire_cred.3 gss_display_name.3 \ + gss_acquire_cred.3 gss_display_status.3 \ + gss_acquire_cred.3 gss_duplicate_name.3 \ + gss_acquire_cred.3 gss_export_name.3 \ + gss_acquire_cred.3 gss_export_sec_context.3 \ + gss_acquire_cred.3 gss_get_mic.3 \ + gss_acquire_cred.3 gss_import_name.3 \ + gss_acquire_cred.3 gss_import_sec_context.3 \ + gss_acquire_cred.3 gss_indicate_mechs.3 \ + gss_acquire_cred.3 gss_init_sec_context.3 \ + gss_acquire_cred.3 gss_inquire_context.3 \ + gss_acquire_cred.3 gss_inquire_cred.3 \ + gss_acquire_cred.3 gss_inquire_cred_by_mech.3 \ + gss_acquire_cred.3 gss_inquire_mechs_for_name.3 \ + gss_acquire_cred.3 gss_inquire_names_for_mech.3 \ + gss_acquire_cred.3 gss_krb5_ccache_name.3 \ + gss_acquire_cred.3 gss_krb5_compat_des3_mic.3 \ + gss_acquire_cred.3 gss_krb5_copy_ccache.3 \ + gss_acquire_cred.3 gss_krb5_get_tkt_flags.3 \ + gss_acquire_cred.3 gss_krb5_import_ccache.3 \ + gss_acquire_cred.3 gss_krb5_import_cred.3 \ + gss_acquire_cred.3 gss_process_context_token.3 \ + gss_acquire_cred.3 gss_release_buffer.3 \ + gss_acquire_cred.3 gss_release_cred.3 \ + gss_acquire_cred.3 gss_release_name.3 \ + gss_acquire_cred.3 gss_release_oid_set.3 \ + gss_acquire_cred.3 gss_seal.3 \ + gss_acquire_cred.3 gss_sign.3 \ + gss_acquire_cred.3 gss_test_oid_set_member.3 \ + gss_acquire_cred.3 gss_unseal.3 \ + gss_acquire_cred.3 gss_unwrap.3 \ + gss_acquire_cred.3 gss_verify.3 \ + gss_acquire_cred.3 gss_verify_mic.3 \ + gss_acquire_cred.3 gss_wrap.3 \ + gss_acquire_cred.3 gss_wrap_size_limit.3 \ + gss_acquire_cred.3 gsskrb5_extract_authz_data_from_sec_context.3 \ + gss_acquire_cred.3 gsskrb5_register_acceptor_identity.3 + +INCS= gssapi.h +INCS+= gssapi/gssapi.h gssapi/gssapi_krb5.h gssapi/gssapi_spnego.h +INCS+= gssapi/gssapi_oid.h gssapi/gssapi_ntlm.h +INCSDIR= /usr/include + +CPPFLAGS+= \ + -I${HEIMDIST}/lib/krb5 \ + -I${HEIMDIST}/lib/asn1 \ + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libgssapi/shlib_version b/crypto/external/bsd/heimdal/lib/libgssapi/shlib_version new file mode 100644 index 000000000000..f5b40f87228a --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libgssapi/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:50 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=10 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libhdb/Makefile b/crypto/external/bsd/heimdal/lib/libhdb/Makefile new file mode 100644 index 000000000000..24b5b453408e --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libhdb/Makefile @@ -0,0 +1,52 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:50 elric Exp $ + +USE_FORT?= yes # network protocol library + +NOLINT= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/hdb ${HEIMBASE}/include + +LIB= hdb + +LIBDPLIBS+= hx509 ${HEIMBASE}/lib/libhx509 \ + crypto ${SSLBASE}/lib/libcrypto \ + asn1 ${HEIMBASE}/lib/libasn1 \ + com_err ${HEIMBASE}/lib/libcom_err \ + roken ${HEIMBASE}/lib/libroken \ + wind ${HEIMBASE}/lib/libwind \ + heimbase ${HEIMBASE}/lib/libheimbase + +LDADD+= ${LIBIPC_PIC} + +HEIMSRCS= hdb_err.et hdb.asn1 + +SRCS= \ + common.c \ + db.c \ + db3.c \ + ext.c \ + hdb-ldap.c \ + hdb.c \ + hdb-keytab.c \ + hdb-mitdb.c \ + keys.c \ + keytab.c \ + dbinfo.c \ + mkey.c \ + ndbm.c \ + print.c + +INCSDIR= /usr/include/krb5 +INCS += hdb.h hdb-protos.h ${COMPILE_ET_INCS} ${ASN1_INCS} + +CPPFLAGS+= \ + -I${HEIMBASE}/include/krb5 \ + -I${HEIMDIST}/lib/asn1 \ + -I${HEIMDIST}/lib/krb5 \ + -DHDB_DB_DIR=\"/var/heimdal\" \ + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libhdb/shlib_version b/crypto/external/bsd/heimdal/lib/libhdb/shlib_version new file mode 100644 index 000000000000..8a41fb1b8961 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libhdb/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:50 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=14 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libheimbase/Makefile b/crypto/external/bsd/heimdal/lib/libheimbase/Makefile new file mode 100644 index 000000000000..ae9c9b82fba0 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libheimbase/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:51 elric Exp $ + +USE_FORT?= yes # network protocol library + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/base + +LIB= heimbase + +SRCS= \ + array.c \ + dict.c \ + number.c \ + bool.c \ + heimbase.c \ + null.c \ + string.c + +INCSDIR= /usr/include/krb5 +INCS= heimbase.h + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libheimbase/shlib_version b/crypto/external/bsd/heimdal/lib/libheimbase/shlib_version new file mode 100644 index 000000000000..d064220c0267 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libheimbase/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:51 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=1 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libheimntlm/Makefile b/crypto/external/bsd/heimdal/lib/libheimntlm/Makefile new file mode 100644 index 000000000000..e8b87a558e13 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libheimntlm/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:51 elric Exp $ + +USE_FORT?= yes # cryptographic software + +NOLINT= + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/ntlm ${HEIMBASE}/include + +LIB= heimntlm + +LIBDPLIBS+= asn1 ${.CURDIR}/../libasn1 \ + krb5 ${.CURDIR}/../libkrb5 \ + roken ${.CURDIR}/../libroken + +HEIMSRCS= ntlm_err.et ntlm.c + +INCS= heimntlm.h heimntlm-protos.h ${COMPILE_ET_INCS} + +INCSDIR= /usr/include/krb5 + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version b/crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version new file mode 100644 index 000000000000..7b7fe48de094 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:51 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=4 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libhx509/Makefile b/crypto/external/bsd/heimdal/lib/libhx509/Makefile new file mode 100644 index 000000000000..3382bbab36ad --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libhx509/Makefile @@ -0,0 +1,85 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:51 elric Exp $ + +NOLINT= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/hx509 ${HEIMBASE}/include + +LIB= hx509 + +SSLBASE= ${NETBSDSRCDIR}/crypto/external/bsd/openssl + +LIBDPLIBS+= asn1 ${HEIMBASE}/lib/libasn1 \ + com_err ${HEIMBASE}/lib/libcom_err \ + crypt ${NETBSDSRCDIR}/lib/libcrypt \ + crypto ${SSLBASE}/lib/libcrypto \ + roken ${HEIMBASE}/lib/libroken \ + wind ${HEIMBASE}/lib/libwind + +YHEADER=1 + +INCSDIR= /usr/include/krb5 +INCS+= hx509.h hx509-protos.h ${ASN1_INCS} ${COMPILE_ET_INCS} + +HEIMSRCS = hx509_err.et ocsp.asn1 pkcs10.asn1 + +SRCS= \ + ca.c \ + cert.c \ + cms.c \ + collector.c \ + crypto.c \ + doxygen.c \ + env.c \ + error.c \ + file.c \ + keyset.c \ + ks_dir.c \ + ks_file.c \ + ks_keychain.c \ + ks_mem.c \ + ks_null.c \ + ks_p11.c \ + ks_p12.c \ + lock.c \ + name.c \ + peer.c \ + print.c \ + req.c \ + revoke.c \ + sel.c \ + sel-gram.y \ + sel-lex.l \ + softp11.c \ + ${BUILT_SOURCES} + +CPPFLAGS+= \ + -I${HEIMDIST}/lib/hx509/ref \ + -I${HEIMDIST}/lib/asn1 + +sel-gram.c: ${ASN1_INCS} ${COMPILE_ET_INCS} + +ASN1_FILES.ocsp.asn1 = \ + asn1_OCSPBasicOCSPResponse.x \ + asn1_OCSPCertID.x \ + asn1_OCSPCertStatus.x \ + asn1_OCSPInnerRequest.x \ + asn1_OCSPKeyHash.x \ + asn1_OCSPRequest.x \ + asn1_OCSPResponderID.x \ + asn1_OCSPResponse.x \ + asn1_OCSPResponseBytes.x \ + asn1_OCSPResponseData.x \ + asn1_OCSPResponseStatus.x \ + asn1_OCSPSignature.x \ + asn1_OCSPSingleResponse.x \ + asn1_OCSPTBSRequest.x \ + asn1_OCSPVersion.x \ + asn1_id_pkix_ocsp.x \ + asn1_id_pkix_ocsp_basic.x \ + asn1_id_pkix_ocsp_nonce.x + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libhx509/shlib_version b/crypto/external/bsd/heimdal/lib/libhx509/shlib_version new file mode 100644 index 000000000000..f5b0e1e848c7 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libhx509/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:52 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=5 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libipc/Makefile b/crypto/external/bsd/heimdal/lib/libipc/Makefile new file mode 100644 index 000000000000..e6b90389fd4f --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libipc/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:52 elric Exp $ + +NOLINT= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/ipc + +LIB= ipc + +LIBDPLIBS+= util ${NETBSDSRCDIR}/lib/libutil \ + crypt ${NETBSDSRCDIR}/lib/libcrypt + +INSTALL=/usr/bin/true + +SRCS= common.c client.c server.c + +HOST_CPPFLAGS+= -I${HEIMBASE}/include -DHAVE_CONFIG_H + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile b/crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile new file mode 100644 index 000000000000..16a946250cb3 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile @@ -0,0 +1,60 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:52 elric Exp $ + +USE_FORT?= yes # network protocol library + +NOLINT= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/kadm5 ${HEIMBASE}/include + +LIB= kadm5clnt + +LIBDPLIBS+= krb5 ${.CURDIR}/../libkrb5 \ + hdb ${.CURDIR}/../libhdb \ + roken ${.CURDIR}/../libroken + +HEIMSRCS= kadm5_err.et + +SRCS = \ + ad.c \ + chpass_c.c \ + client_glue.c \ + common_glue.c \ + create_c.c \ + delete_c.c \ + destroy_c.c \ + flush_c.c \ + free.c \ + get_c.c \ + get_princs_c.c \ + init_c.c \ + marshall.c \ + modify_c.c \ + privs_c.c \ + randkey_c.c \ + rename_c.c \ + send_recv.c + + +INCSDIR= /usr/include/kadm5 +INCS= admin.h \ + private.h \ + kadm5-protos.h \ + kadm5-private.h \ + kadm5-pwcheck.h \ + ${COMPILE_ET_INCS} + +# Prevent collision with old MIT Kerberos includes -- require manual +# intervention of the operator. +.BEGIN: +.ifmake includes + @if [ -f ${DESTDIR}${INCSDIR}/kadm_err.h ]; then \ + echo "Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \ + false; \ + fi +.endif + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version b/crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version new file mode 100644 index 000000000000..eb6c4890d678 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:52 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=13 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile b/crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile new file mode 100644 index 000000000000..13dc91b9fa28 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile @@ -0,0 +1,51 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:52 elric Exp $ + +USE_FORT?= yes # network protocol library + +NOLINT= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/kadm5 + +LIB= kadm5srv + +LIBDPLIBS+= krb5 ${.CURDIR}/../libkrb5 \ + hdb ${.CURDIR}/../libhdb \ + roken ${.CURDIR}/../libroken + +HEIMSRCS= kadm5_err.et + +SRCS = \ + acl.c \ + bump_pw_expire.c \ + chpass_s.c \ + common_glue.c \ + context_s.c \ + create_s.c \ + delete_s.c \ + destroy_s.c \ + ent_setup.c \ + error.c \ + flush_s.c \ + free.c \ + get_princs_s.c \ + get_s.c \ + init_s.c \ + keys.c \ + log.c \ + marshall.c \ + modify_s.c \ + password_quality.c \ + privs_s.c \ + randkey_s.c \ + rename_s.c \ + server_glue.c \ + set_keys.c \ + set_modifier.c + +MAN= kadm5_pwcheck.3 + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version b/crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version new file mode 100644 index 000000000000..2e5417287247 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:53 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=14 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libkafs/Makefile b/crypto/external/bsd/heimdal/lib/libkafs/Makefile new file mode 100644 index 000000000000..f5731d3c64f8 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libkafs/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:53 elric Exp $ + +USE_FORT?= yes # network protocol library + +NOLINT= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/kafs + +LIB= kafs + +LIBDPLIBS+= krb5 ${.CURDIR}/../libkrb5 \ + roken ${.CURDIR}/../libroken + +SRCS= afssys.c afskrb5.c common.c + +INCS= kafs.h +INCSDIR= /usr/include/krb5 +MAN= kafs.3 + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libkafs/shlib_version b/crypto/external/bsd/heimdal/lib/libkafs/shlib_version new file mode 100644 index 000000000000..fde762904519 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libkafs/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:53 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=12 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libkdc/Makefile b/crypto/external/bsd/heimdal/lib/libkdc/Makefile new file mode 100644 index 000000000000..55a7f373e3c0 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libkdc/Makefile @@ -0,0 +1,46 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:53 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # network protocol library +NOLINT= + +.PATH: ${HEIMDIST}/kdc ${HEIMBASE}/include + +LIB= kdc + +LIBDPLIBS+= krb5 ${.CURDIR}/../libkrb5 \ + hdb ${.CURDIR}/../libhdb \ + heimntlm ${.CURDIR}/../libheimntlm \ + roken ${.CURDIR}/../libroken + +SRCS = default_config.c \ + set_dbinfo.c \ + digest.c \ + kerberos5.c \ + krb5tgs.c \ + pkinit.c \ + log.c \ + misc.c \ + kx509.c \ + process.c \ + windc.c + +INCSDIR=/usr/include/krb5 +INCS= kdc-protos.h kdc.h + +CPPFLAGS+= -I${HEIMDIST}/lib/krb5 + +# Prevent collision with old MIT Kerberos includes -- require manual +# intervention of the operator. +.BEGIN: +.ifmake includes + @if [ -f ${DESTDIR}${INCSDIR}/kadm_err.h ]; then \ + echo "Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \ + false; \ + fi +.endif + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libkdc/shlib_version b/crypto/external/bsd/heimdal/lib/libkdc/shlib_version new file mode 100644 index 000000000000..e869d71961d7 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libkdc/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:53 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=2 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libkrb5/Makefile b/crypto/external/bsd/heimdal/lib/libkrb5/Makefile new file mode 100644 index 000000000000..1458fb6bbe66 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libkrb5/Makefile @@ -0,0 +1,534 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:53 elric Exp $ + +USE_FORT?= yes # network protocol library + +NOLINT= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/krb5 ${HEIMDIST}/doc ${HEIMBASE}/include + +WARNS?= 0 + +LIB= krb5 + +LIBDPLIBS+= hx509 ${HEIMBASE}/lib/libhx509 \ + crypto ${SSLBASE}/lib/libcrypto \ + asn1 ${HEIMBASE}/lib/libasn1 \ + com_err ${HEIMBASE}/lib/libcom_err \ + roken ${HEIMBASE}/lib/libroken \ + wind ${HEIMBASE}/lib/libwind \ + heimbase ${HEIMBASE}/lib/libheimbase + +LDADD+= ${LIBIPC_PIC} + +HEIMSRCS= krb_err.et krb5_err.et heim_err.et k524_err.et + +SRCS= \ + acache.c \ + acl.c \ + add_et_list.c \ + addr_families.c \ + aname_to_localname.c \ + appdefault.c \ + asn1_glue.c \ + auth_context.c \ + build_ap_req.c \ + build_auth.c \ + cache.c \ + changepw.c \ + codec.c \ + config_file.c \ + constants.c \ + context.c \ + convert_creds.c \ + copy_host_realm.c \ + crc.c \ + creds.c \ + crypto-aes.c \ + crypto-algs.c \ + crypto-arcfour.c \ + crypto-des-common.c \ + crypto-des.c \ + crypto-des3.c \ + crypto-evp.c \ + crypto-null.c \ + crypto-pk.c \ + crypto-rand.c \ + crypto.c \ + data.c \ + deprecated.c \ + digest.c \ + doxygen.c \ + eai_to_heim_errno.c \ + error_string.c \ + expand_hostname.c \ + expand_path.c \ + fcache.c \ + free.c \ + free_host_realm.c \ + generate_seq_number.c \ + generate_subkey.c \ + get_addrs.c \ + get_cred.c \ + get_default_principal.c \ + get_default_realm.c \ + get_for_creds.c \ + get_host_realm.c \ + get_in_tkt.c \ + get_port.c \ + init_creds.c \ + init_creds_pw.c \ + kcm.c \ + keyblock.c \ + keytab.c \ + keytab_any.c \ + keytab_file.c \ + keytab_keyfile.c \ + keytab_memory.c \ + krbhst.c \ + kuserok.c \ + log.c \ + mcache.c \ + misc.c \ + mit_glue.c \ + mk_error.c \ + mk_priv.c \ + mk_rep.c \ + mk_req.c \ + mk_req_ext.c \ + mk_safe.c \ + n-fold.c \ + net_read.c \ + net_write.c \ + pac.c \ + padata.c \ + pcache.c \ + pkinit.c \ + plugin.c \ + principal.c \ + prog_setup.c \ + prompter_posix.c \ + rd_cred.c \ + rd_error.c \ + rd_priv.c \ + rd_rep.c \ + rd_req.c \ + rd_safe.c \ + read_message.c \ + recvauth.c \ + replay.c \ + salt-aes.c \ + salt-arcfour.c \ + salt-des.c \ + salt-des3.c \ + salt.c \ + scache.c \ + send_to_kdc.c \ + sendauth.c \ + set_default_realm.c \ + sock_principal.c \ + store-int.c \ + store.c \ + store_emem.c \ + store_fd.c \ + store_mem.c \ + ticket.c \ + time.c \ + transited.c \ + verify_init.c \ + verify_user.c \ + version.c \ + warn.c \ + write_message.c + +INCSDIR= /usr/include/krb5 + +INCS= krb5.h \ + krb5-private.h \ + krb5-protos.h \ + krb5-types.h \ + krb5-v4compat.h \ + krb5_ccapi.h \ + kcm.h \ + kcm-protos.h \ + ${COMPILE_ET_INCS} + +INCSYMLINKS= krb5/krb5.h /usr/include/krb5.h + +MAN= \ + kerberos.8 \ + krb5.conf.5 \ + krb524_convert_creds_kdc.3 \ + krb5_425_conv_principal.3 \ + krb5_acl_match_file.3 \ + krb5_aname_to_localname.3 \ + krb5_appdefault.3 \ + krb5_auth_context.3 \ + krb5_c_make_checksum.3 \ + krb5_check_transited.3 \ + krb5_create_checksum.3 \ + krb5_creds.3 \ + krb5_digest.3 \ + krb5_eai_to_heim_errno.3 \ + krb5_encrypt.3 \ + krb5_find_padata.3 \ + krb5_generate_random_block.3 \ + krb5_get_all_client_addrs.3 \ + krb5_get_credentials.3 \ + krb5_get_creds.3 \ + krb5_get_forwarded_creds.3 \ + krb5_get_in_cred.3 \ + krb5_get_init_creds.3 \ + krb5_get_krbhst.3 \ + krb5_getportbyname.3 \ + krb5_init_context.3 \ + krb5_is_thread_safe.3 \ + krb5_krbhst_init.3 \ + krb5_mk_req.3 \ + krb5_mk_safe.3 \ + krb5_openlog.3 \ + krb5_parse_name.3 \ + krb5_principal.3 \ + krb5_rcache.3 \ + krb5_rd_error.3 \ + krb5_rd_safe.3 \ + krb5_set_default_realm.3 \ + krb5_set_password.3 \ + krb5_string_to_key.3 \ + krb5_timeofday.3 \ + krb5_verify_init_creds.3 \ + krb5_verify_user.3 \ + verify_krb5_conf.8 + +MLINKS= \ + krb524_convert_creds_kdc.3 krb524_convert_creds_kdc_ccache.3 \ + krb5_425_conv_principal.3 krb5_425_conv_principal_ext.3 \ + krb5_425_conv_principal.3 krb5_524_conv_principal.3 \ + krb5_acl_match_file.3 krb5_acl_match_string.3 \ + krb5_appdefault.3 krb5_appdefault_boolean.3 \ + krb5_appdefault.3 krb5_appdefault_string.3 \ + krb5_appdefault.3 krb5_appdefault_time.3 \ + krb5_auth_context.3 krb5_auth_con_addflags.3 \ + krb5_auth_context.3 krb5_auth_con_free.3 \ + krb5_auth_context.3 krb5_auth_con_genaddrs.3 \ + krb5_auth_context.3 krb5_auth_con_generatelocalsubkey.3 \ + krb5_auth_context.3 krb5_auth_con_getaddrs.3 \ + krb5_auth_context.3 krb5_auth_con_getauthenticator.3 \ + krb5_auth_context.3 krb5_auth_con_getflags.3 \ + krb5_auth_context.3 krb5_auth_con_getkey.3 \ + krb5_auth_context.3 krb5_auth_con_getlocalsubkey.3 \ + krb5_auth_context.3 krb5_auth_con_getrcache.3 \ + krb5_auth_context.3 krb5_auth_con_getremotesubkey.3 \ + krb5_auth_context.3 krb5_auth_con_getuserkey.3 \ + krb5_auth_context.3 krb5_auth_con_init.3 \ + krb5_auth_context.3 krb5_auth_con_initivector.3 \ + krb5_auth_context.3 krb5_auth_con_removeflags.3 \ + krb5_auth_context.3 krb5_auth_con_setaddrs.3 \ + krb5_auth_context.3 krb5_auth_con_setaddrs_from_fd.3 \ + krb5_auth_context.3 krb5_auth_con_setflags.3 \ + krb5_auth_context.3 krb5_auth_con_setivector.3 \ + krb5_auth_context.3 krb5_auth_con_setkey.3 \ + krb5_auth_context.3 krb5_auth_con_setlocalsubkey.3 \ + krb5_auth_context.3 krb5_auth_con_setrcache.3 \ + krb5_auth_context.3 krb5_auth_con_setremotesubkey.3 \ + krb5_auth_context.3 krb5_auth_con_setuserkey.3 \ + krb5_auth_context.3 krb5_auth_getcksumtype.3 \ + krb5_auth_context.3 krb5_auth_getkeytype.3 \ + krb5_auth_context.3 krb5_auth_getlocalseqnumber.3 \ + krb5_auth_context.3 krb5_auth_getremoteseqnumber.3 \ + krb5_auth_context.3 krb5_auth_setcksumtype.3 \ + krb5_auth_context.3 krb5_auth_setkeytype.3 \ + krb5_auth_context.3 krb5_auth_setlocalseqnumber.3 \ + krb5_auth_context.3 krb5_auth_setremoteseqnumber.3 \ + krb5_auth_context.3 krb5_free_authenticator.3 \ + krb5_c_make_checksum.3 krb5_c_block_size.3 \ + krb5_c_make_checksum.3 krb5_c_checksum_length.3 \ + krb5_c_make_checksum.3 krb5_c_decrypt.3 \ + krb5_c_make_checksum.3 krb5_c_encrypt.3 \ + krb5_c_make_checksum.3 krb5_c_encrypt_length.3 \ + krb5_c_make_checksum.3 krb5_c_enctype_compare.3 \ + krb5_c_make_checksum.3 krb5_c_get_checksum.3 \ + krb5_c_make_checksum.3 krb5_c_is_coll_proof_cksum.3 \ + krb5_c_make_checksum.3 krb5_c_is_keyed_cksum.3 \ + krb5_c_make_checksum.3 krb5_c_keylength.3 \ + krb5_c_make_checksum.3 krb5_c_make_random_key.3 \ + krb5_c_make_checksum.3 krb5_c_set_checksum.3 \ + krb5_c_make_checksum.3 krb5_c_valid_cksumtype.3 \ + krb5_c_make_checksum.3 krb5_c_valid_enctype.3 \ + krb5_c_make_checksum.3 krb5_c_verify_checksum.3 \ + krb5_check_transited.3 krb5_check_transited_realms.3 \ + krb5_check_transited.3 krb5_domain_x500_decode.3 \ + krb5_check_transited.3 krb5_domain_x500_encode.3 \ + krb5_create_checksum.3 krb5_checksum.3 \ + krb5_create_checksum.3 krb5_checksum_disable.3 \ + krb5_create_checksum.3 krb5_checksum_is_collision_proof.3 \ + krb5_create_checksum.3 krb5_checksum_is_keyed.3 \ + krb5_create_checksum.3 krb5_checksumsize.3 \ + krb5_create_checksum.3 krb5_cksumtype_valid.3 \ + krb5_create_checksum.3 krb5_copy_checksum.3 \ + krb5_create_checksum.3 krb5_crypto_get_checksum_type.3 \ + krb5_create_checksum.3 krb5_free_checksum.3 \ + krb5_create_checksum.3 krb5_free_checksum_contents.3 \ + krb5_create_checksum.3 krb5_hmac.3 \ + krb5_create_checksum.3 krb5_verify_checksum.3 \ + krb5_creds.3 krb5_copy_creds.3 \ + krb5_creds.3 krb5_copy_creds_contents.3 \ + krb5_creds.3 krb5_free_cred_contents.3 \ + krb5_creds.3 krb5_free_creds.3 \ + krb5_digest.3 krb5_digest_alloc.3 \ + krb5_digest.3 krb5_digest_free.3 \ + krb5_digest.3 krb5_digest_get_a1_hash.3 \ + krb5_digest.3 krb5_digest_get_client_binding.3 \ + krb5_digest.3 krb5_digest_get_identifier.3 \ + krb5_digest.3 krb5_digest_get_opaque.3 \ + krb5_digest.3 krb5_digest_get_responseData.3 \ + krb5_digest.3 krb5_digest_get_rsp.3 \ + krb5_digest.3 krb5_digest_get_server_nonce.3 \ + krb5_digest.3 krb5_digest_get_tickets.3 \ + krb5_digest.3 krb5_digest_init_request.3 \ + krb5_digest.3 krb5_digest_request.3 \ + krb5_digest.3 krb5_digest_set_authentication_user.3 \ + krb5_digest.3 krb5_digest_set_authid.3 \ + krb5_digest.3 krb5_digest_set_client_nonce.3 \ + krb5_digest.3 krb5_digest_set_digest.3 \ + krb5_digest.3 krb5_digest_set_hostname.3 \ + krb5_digest.3 krb5_digest_set_identifier.3 \ + krb5_digest.3 krb5_digest_set_method.3 \ + krb5_digest.3 krb5_digest_set_nonceCount.3 \ + krb5_digest.3 krb5_digest_set_opaque.3 \ + krb5_digest.3 krb5_digest_set_qop.3 \ + krb5_digest.3 krb5_digest_set_realm.3 \ + krb5_digest.3 krb5_digest_set_server_cb.3 \ + krb5_digest.3 krb5_digest_set_server_nonce.3 \ + krb5_digest.3 krb5_digest_set_type.3 \ + krb5_digest.3 krb5_digest_set_uri.3 \ + krb5_digest.3 krb5_digest_set_username.3 \ + krb5_eai_to_heim_errno.3 krb5_h_errno_to_heim_errno.3 \ + krb5_encrypt.3 krb5_crypto_getblocksize.3 \ + krb5_encrypt.3 krb5_crypto_getconfoundersize.3 \ + krb5_encrypt.3 krb5_crypto_getenctype.3 \ + krb5_encrypt.3 krb5_crypto_getpadsize.3 \ + krb5_encrypt.3 krb5_crypto_overhead.3 \ + krb5_encrypt.3 krb5_decrypt.3 \ + krb5_encrypt.3 krb5_decrypt_EncryptedData.3 \ + krb5_encrypt.3 krb5_decrypt_ivec.3 \ + krb5_encrypt.3 krb5_decrypt_ticket.3 \ + krb5_encrypt.3 krb5_encrypt_EncryptedData.3 \ + krb5_encrypt.3 krb5_encrypt_ivec.3 \ + krb5_encrypt.3 krb5_enctype_disable.3 \ + krb5_encrypt.3 krb5_enctype_keysize.3 \ + krb5_encrypt.3 krb5_enctype_to_string.3 \ + krb5_encrypt.3 krb5_enctype_valid.3 \ + krb5_encrypt.3 krb5_get_wrapped_length.3 \ + krb5_encrypt.3 krb5_string_to_enctype.3 \ + krb5_find_padata.3 krb5_padata_add.3 \ + krb5_get_all_client_addrs.3 krb5_get_all_server_addrs.3 \ + krb5_get_credentials.3 krb5_get_cred_from_kdc.3 \ + krb5_get_credentials.3 krb5_get_cred_from_kdc_opt.3 \ + krb5_get_credentials.3 krb5_get_credentials_with_flags.3 \ + krb5_get_credentials.3 krb5_get_kdc_cred.3 \ + krb5_get_credentials.3 krb5_get_renewed_creds.3 \ + krb5_get_creds.3 krb5_get_creds_opt_add_options.3 \ + krb5_get_creds.3 krb5_get_creds_opt_alloc.3 \ + krb5_get_creds.3 krb5_get_creds_opt_free.3 \ + krb5_get_creds.3 krb5_get_creds_opt_set_enctype.3 \ + krb5_get_creds.3 krb5_get_creds_opt_set_impersonate.3 \ + krb5_get_creds.3 krb5_get_creds_opt_set_options.3 \ + krb5_get_creds.3 krb5_get_creds_opt_set_ticket.3 \ + krb5_get_forwarded_creds.3 krb5_fwd_tgt_creds.3 \ + krb5_get_in_cred.3 krb5_free_kdc_rep.3 \ + krb5_get_in_cred.3 krb5_get_in_tkt.3 \ + krb5_get_in_cred.3 krb5_get_in_tkt_with_keytab.3 \ + krb5_get_in_cred.3 krb5_get_in_tkt_with_password.3 \ + krb5_get_in_cred.3 krb5_get_in_tkt_with_skey.3 \ + krb5_get_in_cred.3 krb5_password_key_proc.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_keytab.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_alloc.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_free.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_init.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_address_list.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_addressless.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_anonymous.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_canonicalize.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_default_flags.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_etype_list.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_forwardable.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_pa_password.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_paq_request.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_preauth_list.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_proxiable.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_renew_life.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_salt.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_tkt_life.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_opt_set_win2k.3 \ + krb5_get_init_creds.3 krb5_get_init_creds_password.3 \ + krb5_get_init_creds.3 krb5_prompt.3 \ + krb5_get_init_creds.3 krb5_prompter_posix.3 \ + krb5_get_krbhst.3 krb5_free_krbhst.3 \ + krb5_get_krbhst.3 krb5_get_krb524hst.3 \ + krb5_get_krbhst.3 krb5_get_krb_admin_hst.3 \ + krb5_get_krbhst.3 krb5_get_krb_changepw_hst.3 \ + krb5_init_context.3 krb5_add_et_list.3 \ + krb5_init_context.3 krb5_add_extra_addresses.3 \ + krb5_init_context.3 krb5_add_ignore_addresses.3 \ + krb5_init_context.3 krb5_context.3 \ + krb5_init_context.3 krb5_free_config_files.3 \ + krb5_init_context.3 krb5_free_context.3 \ + krb5_init_context.3 krb5_get_default_config_files.3 \ + krb5_init_context.3 krb5_get_dns_canonize_hostname.3 \ + krb5_init_context.3 krb5_get_extra_addresses.3 \ + krb5_init_context.3 krb5_get_fcache_version.3 \ + krb5_init_context.3 krb5_get_ignore_addresses.3 \ + krb5_init_context.3 krb5_get_kdc_sec_offset.3 \ + krb5_init_context.3 krb5_get_max_time_skew.3 \ + krb5_init_context.3 krb5_get_use_admin_kdc.3 \ + krb5_init_context.3 krb5_init_ets.3 \ + krb5_init_context.3 krb5_prepend_config_files.3 \ + krb5_init_context.3 krb5_prepend_config_files_default.3 \ + krb5_init_context.3 krb5_set_config_files.3 \ + krb5_init_context.3 krb5_set_dns_canonize_hostname.3 \ + krb5_init_context.3 krb5_set_extra_addresses.3 \ + krb5_init_context.3 krb5_set_fcache_version.3 \ + krb5_init_context.3 krb5_set_ignore_addresses.3 \ + krb5_init_context.3 krb5_set_max_time_skew.3 \ + krb5_init_context.3 krb5_set_use_admin_kdc.3 \ + krb5_krbhst_init.3 krb5_krbhst_format_string.3 \ + krb5_krbhst_init.3 krb5_krbhst_free.3 \ + krb5_krbhst_init.3 krb5_krbhst_get_addrinfo.3 \ + krb5_krbhst_init.3 krb5_krbhst_init_flags.3 \ + krb5_krbhst_init.3 krb5_krbhst_next.3 \ + krb5_krbhst_init.3 krb5_krbhst_next_as_string.3 \ + krb5_krbhst_init.3 krb5_krbhst_reset.3 \ + krb5_mk_safe.3 krb5_mk_priv.3 \ + krb5_mk_req.3 krb5_build_ap_req.3 \ + krb5_mk_req.3 krb5_mk_rep.3 \ + krb5_mk_req.3 krb5_mk_rep_exact.3 \ + krb5_mk_req.3 krb5_mk_rep_extended.3 \ + krb5_mk_req.3 krb5_mk_req_exact.3 \ + krb5_mk_req.3 krb5_mk_req_extended.3 \ + krb5_mk_req.3 krb5_rd_rep.3 \ + krb5_mk_req.3 krb5_rd_req.3 \ + krb5_mk_req.3 krb5_rd_req_with_keyblock.3 \ + krb5_mk_req.3 krb5_verify_ap_req.3 \ + krb5_openlog.3 krb5_addlog_dest.3 \ + krb5_openlog.3 krb5_addlog_func.3 \ + krb5_openlog.3 krb5_closelog.3 \ + krb5_openlog.3 krb5_initlog.3 \ + krb5_openlog.3 krb5_log.3 \ + krb5_openlog.3 krb5_log_msg.3 \ + krb5_openlog.3 krb5_vlog.3 \ + krb5_openlog.3 krb5_vlog_msg.3 \ + krb5_principal.3 krb5_build_principal.3 \ + krb5_principal.3 krb5_build_principal_ext.3 \ + krb5_principal.3 krb5_build_principal_va.3 \ + krb5_principal.3 krb5_build_principal_va_ext.3 \ + krb5_principal.3 krb5_copy_principal.3 \ + krb5_principal.3 krb5_free_principal.3 \ + krb5_principal.3 krb5_get_default_principal.3 \ + krb5_principal.3 krb5_make_principal.3 \ + krb5_principal.3 krb5_parse.3 \ + krb5_principal.3 krb5_parse_name_flags.3 \ + krb5_principal.3 krb5_parse_nametype.3 \ + krb5_principal.3 krb5_princ_realm.3 \ + krb5_principal.3 krb5_princ_set_realm.3 \ + krb5_principal.3 krb5_principal_compare.3 \ + krb5_principal.3 krb5_principal_compare_any_realm.3 \ + krb5_principal.3 krb5_principal_get_comp_string.3 \ + krb5_principal.3 krb5_principal_get_realm.3 \ + krb5_principal.3 krb5_principal_get_type.3 \ + krb5_principal.3 krb5_principal_match.3 \ + krb5_principal.3 krb5_principal_set_type.3 \ + krb5_principal.3 krb5_realm_compare.3 \ + krb5_principal.3 krb5_sname_to_principal.3 \ + krb5_principal.3 krb5_sock_to_principal.3 \ + krb5_principal.3 krb5_unparse_name.3 \ + krb5_principal.3 krb5_unparse_name_fixed.3 \ + krb5_principal.3 krb5_unparse_name_fixed_flags.3 \ + krb5_principal.3 krb5_unparse_name_fixed_short.3 \ + krb5_principal.3 krb5_unparse_name_flags.3 \ + krb5_principal.3 krb5_unparse_name_short.3 \ + krb5_rcache.3 krb5_get_server_rcache.3 \ + krb5_rcache.3 krb5_rc_close.3 \ + krb5_rcache.3 krb5_rc_default.3 \ + krb5_rcache.3 krb5_rc_default_name.3 \ + krb5_rcache.3 krb5_rc_default_type.3 \ + krb5_rcache.3 krb5_rc_destroy.3 \ + krb5_rcache.3 krb5_rc_expunge.3 \ + krb5_rcache.3 krb5_rc_get_lifespan.3 \ + krb5_rcache.3 krb5_rc_get_name.3 \ + krb5_rcache.3 krb5_rc_get_type.3 \ + krb5_rcache.3 krb5_rc_initialize.3 \ + krb5_rcache.3 krb5_rc_recover.3 \ + krb5_rcache.3 krb5_rc_resolve.3 \ + krb5_rcache.3 krb5_rc_resolve_full.3 \ + krb5_rcache.3 krb5_rc_resolve_type.3 \ + krb5_rcache.3 krb5_rc_store.3 \ + krb5_rd_error.3 krb5_error_from_rd_error.3 \ + krb5_rd_error.3 krb5_free_error.3 \ + krb5_rd_error.3 krb5_free_error_contents.3 \ + krb5_rd_safe.3 krb5_rd_priv.3 \ + krb5_set_default_realm.3 krb5_copy_host_realm.3 \ + krb5_set_default_realm.3 krb5_free_host_realm.3 \ + krb5_set_default_realm.3 krb5_get_default_realm.3 \ + krb5_set_default_realm.3 krb5_get_default_realms.3 \ + krb5_set_default_realm.3 krb5_get_host_realm.3 \ + krb5_set_password.3 krb5_change_password.3 \ + krb5_set_password.3 krb5_passwd_result_to_string.3 \ + krb5_set_password.3 krb5_set_password_using_ccache.3 \ + krb5_string_to_key.3 krb5_free_salt.3 \ + krb5_string_to_key.3 krb5_get_pw_salt.3 \ + krb5_string_to_key.3 krb5_string_to_key_data.3 \ + krb5_string_to_key.3 krb5_string_to_key_data_salt.3 \ + krb5_string_to_key.3 krb5_string_to_key_data_salt_opaque.3 \ + krb5_string_to_key.3 krb5_string_to_key_salt.3 \ + krb5_string_to_key.3 krb5_string_to_key_salt_opaque.3 \ + krb5_timeofday.3 krb5_format_time.3 \ + krb5_timeofday.3 krb5_set_real_time.3 \ + krb5_timeofday.3 krb5_string_to_deltat.3 \ + krb5_timeofday.3 krb5_us_timeofday.3 \ + krb5_verify_init_creds.3 krb5_verify_init_creds_opt_init.3 \ + krb5_verify_init_creds.3 krb5_verify_init_creds_opt_set_ap_req_nofail.3 \ + krb5_verify_user.3 krb5_verify_opt_alloc.3 \ + krb5_verify_user.3 krb5_verify_opt_free.3 \ + krb5_verify_user.3 krb5_verify_opt_init.3 \ + krb5_verify_user.3 krb5_verify_opt_set_ccache.3 \ + krb5_verify_user.3 krb5_verify_opt_set_flags.3 \ + krb5_verify_user.3 krb5_verify_opt_set_keytab.3 \ + krb5_verify_user.3 krb5_verify_opt_set_secure.3 \ + krb5_verify_user.3 krb5_verify_opt_set_service.3 \ + krb5_verify_user.3 krb5_verify_user_lrealm.3 \ + krb5_verify_user.3 krb5_verify_user_opt.3 + +CPPFLAGS+= -I${HEIMDIST}/lib/ipc + +# Prevent collision with old MIT Kerberos includes -- require manual +# intervention of the operator. +.BEGIN: +.ifmake includes + @if [ -f ${DESTDIR}${INCSDIR}/osconf.h ]; then \ + echo "Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \ + false; \ + fi +.endif + +.if ${MKSHARE} != "no" +FILES= ${HEIMDIST}/krb5.conf +FILESDIR= /usr/share/examples/kerberos +.endif + +TEXINFO= heimdal.texi +INFOFLAGS= -I. -I${HEIMDIST}/doc + +heimdal.texi: vars.texi + +vars.texi: vars.tin + < ${HEIMDIST}/doc/vars.tin > $@ \ + sed -e 's,[@]dbdir[@],/var/heimdal,g' \ + -e 's,[@]PACKAGE_VERSION[@],1.5pre1,g' + +.include <${HEIMBASE}/Makefile.rules.inc> +.include +.include diff --git a/crypto/external/bsd/heimdal/lib/libkrb5/shlib_version b/crypto/external/bsd/heimdal/lib/libkrb5/shlib_version new file mode 100644 index 000000000000..582e9fc924f0 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libkrb5/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:53 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=26 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libroken/Makefile b/crypto/external/bsd/heimdal/lib/libroken/Makefile new file mode 100644 index 000000000000..1760a1d834a8 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libroken/Makefile @@ -0,0 +1,89 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:54 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/roken ${HEIMBASE}/include + +LIB= roken + +LIBDPLIBS+= util ${NETBSDSRCDIR}/lib/libutil \ + crypt ${NETBSDSRCDIR}/lib/libcrypt + +CLEANFILES+= ${BUILT_SRCS} + +SRCS= \ + base64.c \ + concat.c \ + cloexec.c \ + ct.c \ + dumpdata.c \ + environment.c \ + ecalloc.c \ + emalloc.c \ + eread.c \ + erealloc.c \ + esetenv.c \ + estrdup.c \ + ewrite.c \ + getaddrinfo_hostspec.c \ + get_default_username.c \ + get_window_size.c \ + getarg.c \ + getnameinfo_verified.c \ + getprogname.c \ + h_errno.c \ + hex.c \ + hostent_find_fqdn.c \ + issuid.c \ + k_getpwnam.c \ + k_getpwuid.c \ + mini_inetd.c \ + net_read.c \ + net_write.c \ + parse_bytes.c \ + parse_time.c \ + parse_units.c \ + rand.c \ + realloc.c \ + resolve.c \ + roken_gethostby.c \ + rtbl.c \ + setprogname.c \ + signal.c \ + simple_exec.c \ + socket.c \ + strcollect.c \ + strlwr.c \ + strpool.c \ + strsep_copy.c \ + strupr.c \ + timeval.c \ + tm2time.c \ + verify.c \ + warnerr.c \ + write_pid.c \ + xfree.c + +MANS= \ + getarg.3 \ + parse_time.3 \ + rtbl.3 + +INCS= base64.h \ + getarg.h \ + hex.h \ + parse_bytes.h \ + parse_time.h \ + parse_units.h \ + resolve.h \ + roken.h \ + roken-common.h \ + rtbl.h \ + xdbm.h +INCSDIR= /usr/include/krb5 + +HOST_CPPFLAGS+= -I${HEIMBASE}/include -I${HEIMBASE}/include/krb5 -DHAVE_CONFIG_H + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libroken/shlib_version b/crypto/external/bsd/heimdal/lib/libroken/shlib_version new file mode 100644 index 000000000000..0c843c89d894 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libroken/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:55 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=19 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libsl/Makefile b/crypto/external/bsd/heimdal/lib/libsl/Makefile new file mode 100644 index 000000000000..3c9a45476761 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libsl/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:55 elric Exp $ + +USE_FORT?= yes # network protocol library + +NOLINT= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/sl + +LIB= sl + +LIBDPLIBS+= edit ${NETBSDSRCDIR}/lib/libedit \ + terminfo ${NETBSDSRCDIR}/lib/libterminfo \ + roken ${HEIMBASE}/lib/libroken + +SRCS= sl.c +INCS= sl.h +INCSDIR= /usr/include/krb5 + +.if ${USETOOLS} != "yes" +.PHONY: slc +includes: slc +SUBDIR= slc + +slc: + @cd ${.CURDIR}/slc && ${MAKE} +.endif + +.include <${HEIMBASE}/Makefile.rules.inc> +.include +.if ${USETOOLS} != "yes" +.include +.endif diff --git a/crypto/external/bsd/heimdal/lib/libsl/shlib_version b/crypto/external/bsd/heimdal/lib/libsl/shlib_version new file mode 100644 index 000000000000..30ff1a10cfb3 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libsl/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:55 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=5 +minor=0 diff --git a/crypto/external/bsd/heimdal/lib/libsl/slc/Makefile b/crypto/external/bsd/heimdal/lib/libsl/slc/Makefile new file mode 100644 index 000000000000..69f92dd7fe13 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libsl/slc/Makefile @@ -0,0 +1,53 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:55 elric Exp $ + +NOMAN= # defined + +.include +.include <${.CURDIR}/../../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/sl ${HEIMDIST}/lib/roken ${HEIMDIST}/lib/vers + +PROG=slc + +SRCS+= slc-gram.y slc-lex.l getarg.c rand.c get_window_size.c \ + strupr.c print_version.c + +YHEADER= # defined + +LDADD=-lfl -ly + +HOST_CPPFLAGS+= -I. \ + -I${HEIMBASE}/include \ + -I${HEIMBASE}/include/krb5 \ + -I${HEIMDIST}/lib/sl \ + -I${HEIMDIST}/lib/roken \ + -I${HEIMDIST}/lib/vers \ + -DHAVE_CONFIG_H + +DPSRCS= print_version.h + +make-print-version.lo: ${HEIMBASE}/include/version.h + +make-print-version: make-print-version.lo + ${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC} + +print_version.h: make-print-version + ./make-print-version print_version.h + +.NOPATH: print_version.h make-print-version + +.BEGIN: + [ -h krb5 ] || ln -sf . krb5 + ln -sf ${HEIMBASE}/include/roken.h + ln -sf ${HEIMBASE}/dist/lib/roken/roken-common.h + ln -sf ${HEIMBASE}/dist/lib/roken/getarg.h + +CLEANFILES+= krb5 roken.h roken-common.h getarg.h \ + print_version.h make-print-version \ + make-print-version.lo + +# HOSTPROG will be set already if this is a src/tools build. +.ifndef HOSTPROG +HOSTPROG= ${PROG} +.include +.endif diff --git a/crypto/external/bsd/heimdal/lib/libvers/Makefile b/crypto/external/bsd/heimdal/lib/libvers/Makefile new file mode 100644 index 000000000000..471657c66dc2 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libvers/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:56 elric Exp $ + +NOLINKLIB= # defined +NOPIC= # defined +NOPROFILE= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/vers + +LIB= vers + +includes: print_version.h + +SRCS= print_version.c +DPSRCS= print_version.h + +HOST_CPPFLAGS+= -I${NETBSDSRCDIR}/include/heimdal -DHAVE_CONFIG_H + +make-print-version.lo: ${NETBSDSRCDIR}/include/heimdal/version.h + +make-print-version: make-print-version.lo + ${HOST_CC} ${HOST_LDFLAGS} -o ${.TARGET} ${.ALLSRC} + +print_version.h: make-print-version + ${_MKTARGET_CREATE} + ./make-print-version print_version.h + +print_version.o print_version.ln: print_version.h + +CLEANFILES+= print_version.h make-print-version make-print-version.lo + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libwind/Makefile b/crypto/external/bsd/heimdal/lib/libwind/Makefile new file mode 100644 index 000000000000..161a889a6c31 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libwind/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:56 elric Exp $ + +NOLINT= # defined + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/wind + +LIB= wind + +LIBDPLIBS+= com_err ${HEIMBASE}/lib/libcom_err \ + crypt ${NETBSDSRCDIR}/lib/libcrypt \ + roken ${HEIMBASE}/lib/libroken + + +HEIMSRCS = wind_err.et + +SRCS= \ + bidi.c \ + bidi_table.c \ + combining.c \ + combining_table.c \ + doxygen.c \ + errorlist.c \ + errorlist_table.c \ + ldap.c \ + map.c \ + map_table.c \ + normalize.c \ + normalize_table.c \ + punycode.c \ + stringprep.c \ + utf8.c + +INCSDIR=/usr/include/krb5 +INCS= wind.h ${COMPILE_ET_INCS} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/lib/libwind/shlib_version b/crypto/external/bsd/heimdal/lib/libwind/shlib_version new file mode 100644 index 000000000000..e68799539b25 --- /dev/null +++ b/crypto/external/bsd/heimdal/lib/libwind/shlib_version @@ -0,0 +1,5 @@ +# $NetBSD: shlib_version,v 1.1 2011/04/13 19:16:56 elric Exp $ +# Remember to update distrib/sets/lists/base/shl.* when changing +# +major=0 +minor=0 diff --git a/crypto/external/bsd/heimdal/libexec/Makefile b/crypto/external/bsd/heimdal/libexec/Makefile new file mode 100644 index 000000000000..c1daabd0a23e --- /dev/null +++ b/crypto/external/bsd/heimdal/libexec/Makefile @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:56 elric Exp $ + +.include "bsd.own.mk" + +.if (${MKKERBEROS} != "no") + +SUBDIR = \ + digest-service \ + hpropd \ + ipropd-master \ + ipropd-slave \ + kadmind \ + kpasswdd + +.endif # MKKERBEROS != no + +.include diff --git a/crypto/external/bsd/heimdal/libexec/Makefile.inc b/crypto/external/bsd/heimdal/libexec/Makefile.inc new file mode 100644 index 000000000000..f305ebd6ae81 --- /dev/null +++ b/crypto/external/bsd/heimdal/libexec/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 2011/04/13 19:16:56 elric Exp $ + +BINDIR=/usr/libexec diff --git a/crypto/external/bsd/heimdal/libexec/digest-service/Makefile b/crypto/external/bsd/heimdal/libexec/digest-service/Makefile new file mode 100644 index 000000000000..ac9fe99cae99 --- /dev/null +++ b/crypto/external/bsd/heimdal/libexec/digest-service/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:56 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/kdc + +PROG= digest-service +SRCS= digest-service.c +MAN= + +CPPFLAGS+= \ + -I${HEIMBASE}/include/krb5 \ + -I${HEIMDIST}/lib/krb5 \ + -I${HEIMDIST}/lib/ipc + +LDADD+= -lkdc ${LIBVERS} ${LIBIPC} +DPADD+= ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} \ + ${LIBASN1} ${LIBCOM_ERR} ${LIBVERS} ${LIBROKEN} \ + ${LIBCRYPT} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/libexec/hpropd/Makefile b/crypto/external/bsd/heimdal/libexec/hpropd/Makefile new file mode 100644 index 000000000000..90d929ea9297 --- /dev/null +++ b/crypto/external/bsd/heimdal/libexec/hpropd/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:56 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/kdc + +PROG= hpropd +SRCS= hpropd.c +MAN= hpropd.8 + +CPPFLAGS+= \ + -I${HEIMBASE}/include/krb5 \ + -I${HEIMDIST}/lib/asn1 \ + -I${HEIMDIST}/lib/krb5 + +LDADD+= -lhdb -lkrb5 -lhx509 -lcrypto \ + -lasn1 -lcom_err ${LIBVERS} -lroken \ + -lcrypt +DPADD+= ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} \ + ${LIBASN1} ${LIBCOM_ERR} ${LIBVERS} ${LIBROKEN} \ + ${LIBCRYPT} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/libexec/ipropd-master/Makefile b/crypto/external/bsd/heimdal/libexec/ipropd-master/Makefile new file mode 100644 index 000000000000..ce13b8c5a3aa --- /dev/null +++ b/crypto/external/bsd/heimdal/libexec/ipropd-master/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:57 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/kadm5 + +PROG= ipropd-master + +MAN= iprop.8 +MLINKS= \ + iprop.8 ipropd-master.8 \ + iprop.8 ipropd-slave.8 + +SRCS+= ipropd_master.c \ + ipropd_common.c + +CPPFLAGS+= \ + -I${HEIMDIST}/lib/krb5 \ + -I${HEIMDIST}/lib/asn1 \ + -I${DESTDIR}/usr/include/kadm5 + +LDADD+= -lkadm5srv -lhdb -lkrb5 -lhx509 -lasn1 \ + -lcrypto ${LIBVERS} -lcom_err -lroken \ + -lcrypt -lutil +DPADD+= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBASN1} \ + ${LIBCRYPTO} ${LIBVERS} ${LIBCOM_ERR} ${LIBROKEN} \ + ${LIBCRYPT} ${LIBUTIL} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/libexec/ipropd-slave/Makefile b/crypto/external/bsd/heimdal/libexec/ipropd-slave/Makefile new file mode 100644 index 000000000000..89c5910cd073 --- /dev/null +++ b/crypto/external/bsd/heimdal/libexec/ipropd-slave/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:57 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/kadm5 + +PROG= ipropd-slave + +# man page included with ipropd-master +MAN= + +SRCS+= ipropd_slave.c ipropd_common.c + +CPPFLAGS+= \ + -I${HEIMDIST}/lib/krb5 \ + -I${HEIMDIST}/lib/asn1 \ + -I${DESTDIR}/usr/include/kadm5 + +LDADD+= -lkadm5srv -lhdb -lkrb5 -lhx509 -lasn1 \ + -lcrypto ${LIBVERS} -lcom_err -lroken \ + -lcrypt -lutil +DPADD+= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBASN1} \ + ${LIBCRYPTO} ${LIBVERS} ${LIBCOM_ERR} ${LIBROKEN} \ + ${LIBCRYPT} ${LIBUTIL} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/libexec/kadmind/Makefile b/crypto/external/bsd/heimdal/libexec/kadmind/Makefile new file mode 100644 index 000000000000..88b2c1ab9f44 --- /dev/null +++ b/crypto/external/bsd/heimdal/libexec/kadmind/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:57 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/kadmin + +PROG= kadmind +MAN= kadmind.8 + +SRCS+= kadmind.c \ + rpc.c \ + server.c \ + kadm_conn.c + +CPPFLAGS+= \ + -I${HEIMDIST}/lib/krb5 \ + -I${HEIMDIST}/lib/asn1 \ + -I${HEIMBASE}/include/krb5 + +LDADD+= -lgssapi -lkadm5srv -lhdb -lkrb5 -lhx509 \ + -lcrypto -lasn1 -lcom_err ${LIBVERS} \ + -lroken -lcrypt -lutil +DPADD+= ${LIBGSSAPI} ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} \ + ${LIBHX509} ${LIBCRYPTO} ${LIBASN1} ${LIBCOM_ERR} \ + ${LIBVERS} ${LIBROKEN} ${LIBCRYPT} ${LIBUTIL} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/libexec/kpasswdd/Makefile b/crypto/external/bsd/heimdal/libexec/kpasswdd/Makefile new file mode 100644 index 000000000000..2e35bb92f5d9 --- /dev/null +++ b/crypto/external/bsd/heimdal/libexec/kpasswdd/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:57 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/kpasswd + +PROG= kpasswdd +SRCS= kpasswdd.c +MAN= kpasswdd.8 + +CPPFLAGS+= -DINETD_SUPPORT + +LDADD+= -lkadm5srv -lhdb -lkrb5 -lhx509 \ + -lcrypto -lasn1 \ + -lcom_err ${LIBVERS} -lroken -lcrypt \ + -lutil +DPADD+= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} \ + ${LIBCRYPTO} ${LIBASN1} \ + ${LIBCOM_ERR} ${LIBVERS} ${LIBROKEN} ${LIBCRYPT} \ + ${LIBUTIL} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/sbin/Makefile b/crypto/external/bsd/heimdal/sbin/Makefile new file mode 100644 index 000000000000..669a52c4578f --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:58 elric Exp $ + +.include "bsd.own.mk" + +.if (${MKKERBEROS} != "no") +SUBDIR = \ + hprop \ + iprop-log \ + kadmin \ + kcm \ + kdc \ + kdigest \ + kimpersonate \ + kstash \ + ktutil + +.endif # MKKERBEROS != no + +.include diff --git a/crypto/external/bsd/heimdal/sbin/Makefile.inc b/crypto/external/bsd/heimdal/sbin/Makefile.inc new file mode 100644 index 000000000000..ab4dac5cce48 --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 2011/04/13 19:16:58 elric Exp $ + +BINDIR=/usr/sbin diff --git a/crypto/external/bsd/heimdal/sbin/hprop/Makefile b/crypto/external/bsd/heimdal/sbin/hprop/Makefile new file mode 100644 index 000000000000..ae24d9cf61bf --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/hprop/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:58 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # network client + +.PATH: ${HEIMDIST}/kdc + +PROG= hprop + +SRCS+= hprop.c mit_dump.c + +MAN= hprop.8 + +CPPFLAGS+= \ + -I${HEIMBASE}/include/krb5 \ + -I${HEIMBASE}/lib/libkrb5 \ + -I${HEIMDIST}/lib/asn1 \ + -I${HEIMDIST}/lib/hdb \ + -I${HEIMDIST}/lib/krb5 + +LDADD+= -lhdb -lkrb5 -lhx509 -lcrypto -lasn1 \ + -lcom_err ${LIBVERS} -lroken -lcrypt -lutil +DPADD+= ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} ${LIBASN1} \ + ${LIBCOM_ERR} ${LIBVERS} ${LIBROKEN} ${LIBCRYPT} ${LIBUTIL} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/sbin/iprop-log/Makefile b/crypto/external/bsd/heimdal/sbin/iprop-log/Makefile new file mode 100644 index 000000000000..102ae7265899 --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/iprop-log/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:58 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/lib/kadm5 + +PROG= iprop-log +MAN= iprop-log.8 + +HEIMSRCS= iprop-log.c iprop-commands.in + +CPPFLAGS+= -I${DESTDIR}/usr/include/kadm5 + +LDADD+= -lkadm5srv -lhdb -lkrb5 -lhx509 -lcrypto \ + -lasn1 -lsl -lcom_err ${LIBVERS} \ + -lroken -lcrypt -ledit -lterminfo +DPADD+= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} \ + ${LIBASN1} ${LIBSL} ${LIBCOM_ERR} ${LIBVERS} \ + ${LIBROKEN} ${LIBCRYPT} ${LIBEDIT} ${LIBTERMINFO} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/sbin/kadmin/Makefile b/crypto/external/bsd/heimdal/sbin/kadmin/Makefile new file mode 100644 index 000000000000..8986f3853536 --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/kadmin/Makefile @@ -0,0 +1,48 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:59 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # network client + +.PATH: ${HEIMDIST}/kadmin + +PROG= kadmin +MAN= kadmin.8 + +HEIMSRCS= kadmin-commands.in + +SRCS= add_enctype.c \ + ank.c \ + check.c \ + cpw.c \ + del.c \ + del_enctype.c \ + dump.c \ + ext.c \ + get.c \ + init.c \ + kadmin.c \ + load.c \ + mod.c \ + pw_quality.c \ + random_password.c \ + rename.c \ + stash.c \ + util.c + +CPPFLAGS+= \ + -I${HEIMDIST}/base \ + -I${HEIMDIST}/lib/krb5 \ + -I${HEIMDIST}/lib/asn1 \ + -I${HEIMDIST}/lib/wind \ + -I${HEIMBASE}/lib/libwind \ + -I${DESTDIR}/usr/include/kadm5 + +LDADD+= -lkadm5srv -lkadm5clnt -lkrb5 -lsl -ledit ${LIBVERS} -lroken -lutil +DPADD+= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} \ + ${LIBASN1} ${LIBCOM_ERR} ${LIBSL} ${LIBEDIT} ${LIBTERMINFO} \ + ${LIBVERS} ${LIBROKEN} ${LIBCRYPT} ${LIBUTIL} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/sbin/kcm/Makefile b/crypto/external/bsd/heimdal/sbin/kcm/Makefile new file mode 100644 index 000000000000..b3ea97df4b1e --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/kcm/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:59 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/kcm + +PROG= kcm +MAN= kcm.8 + +NOGCCERROR= # Heimdal is using its own deprecated functions + +SRCS= \ + acl.c \ + acquire.c \ + cache.c \ + client.c \ + config.c \ + connect.c \ + events.c \ + glue.c \ + log.c \ + main.c \ + protocol.c \ + renew.c \ + sessions.c + +CPPFLAGS+= -I${HEIMDIST}/lib/ipc + +LDADD+= -lkafs -lkrb5 -lheimntlm -lhx509 -lcrypto -lasn1 -lcom_err \ + ${LIBIPC_PIC} ${LIBVERS} -lroken -lcrypt -lutil +DPADD+= ${LIBKAFS} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} ${LIBASN1} \ + ${LIBCOM_ERR} ${LIBVERS} ${LIBROKEN} ${LIBCRYPT} ${LIBUTIL} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/sbin/kdc/Makefile b/crypto/external/bsd/heimdal/sbin/kdc/Makefile new file mode 100644 index 000000000000..dd117a372514 --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/kdc/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:59 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # network server + +.PATH: ${HEIMDIST}/kdc + +PROG= kdc + +# XXXrcd: ??? should I include this? +# announce.c \ + +SRCS= connect.c config.c main.c + +CPPFLAGS+= \ + -I${HEIMDIST}/lib/krb5 \ + -I${HEIMBASE}/include/krb5 \ + +LDADD+= -lkdc ${LIBVERS} +#LDADD+= -lkdc -lhdb -lkrb5 -lhx509 -lheimntlm -lcrypto -lasn1 -lcom_err \ +# -lroken -lcrypt -lutil ${LIBVERS} +DPADD+= ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${LIBCRYPTO} \ + ${LIBASN1} ${LIBCOM_ERR} ${LIBVERS} ${LIBROKEN} \ + ${LIBCRYPT} ${LIBUTIL} + +MAN= kdc.8 + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/sbin/kdigest/Makefile b/crypto/external/bsd/heimdal/sbin/kdigest/Makefile new file mode 100644 index 000000000000..33c999bef00a --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/kdigest/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:59 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/kuser + +PROG= kdigest +# no man-page yet +MAN= + +HEIMSRCS+= kdigest.c kdigest-commands.in + +LDADD+= -lkrb5 -lhx509 -lheimntlm -lcrypto -lasn1 -lcom_err -lsl \ + ${LIBVERS} -lroken -lcrypt -lutil -ledit -lterminfo +DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${LIBCRYPTO} ${LIBASN1} \ + ${LIBCOM_ERR} ${LIBSL} ${LIBVERS} ${LIBROKEN} ${LIBCRYPT} \ + ${LIBUTIL} ${LIBEDIT} ${LIBTERMINFO} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/sbin/kimpersonate/Makefile b/crypto/external/bsd/heimdal/sbin/kimpersonate/Makefile new file mode 100644 index 000000000000..c0c0cb64e588 --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/kimpersonate/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:17:00 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +.PATH: ${HEIMDIST}/kuser + +PROG= kimpersonate +SRCS= kimpersonate.c +MAN= kimpersonate.8 + +LDADD+= -lkafs -lkrb5 -lhx509 -lheimntlm -lcrypto \ + -lasn1 -lcom_err ${LIBVERS} -lroken -lcrypt +DPADD+= ${LIBKAFS} ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${LIBCRYPTO} \ + ${LIBASN1} ${LIBCOM_ERR} ${LIBVERS} ${LIBROKEN} ${LIBCRYPT} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/sbin/kstash/Makefile b/crypto/external/bsd/heimdal/sbin/kstash/Makefile new file mode 100644 index 000000000000..e66dbc06f56e --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/kstash/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:17:00 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # cryptographic software + +.PATH: ${HEIMDIST}/kdc + +PROG= kstash +SRCS= kstash.c +MAN= kstash.8 + +CPPFLAGS+= -I${HEIMDIST}/lib/krb5 -I${DESTDIR}/usr/include/krb5 + +# -I${HEIMBASE}/include \ +# -I${HEIMDIST}/base \ +# -I${HEIMDIST}/include \ +# -I${HEIMDIST}/lib/wind \ +# -I${HEIMDIST}/kdc \ +# -I${HEIMBASE}/lib/libwind \ +# -DHAVE_CONFIG_H + +LDADD+= -lhdb -lkrb5 ${LIBVERS} +DPADD+= ${LIBKRB5} ${LIBHDB} ${LIBVERS} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include diff --git a/crypto/external/bsd/heimdal/sbin/ktutil/Makefile b/crypto/external/bsd/heimdal/sbin/ktutil/Makefile new file mode 100644 index 000000000000..fcd56c597f82 --- /dev/null +++ b/crypto/external/bsd/heimdal/sbin/ktutil/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2011/04/13 19:17:00 elric Exp $ + +.include +.include <${.CURDIR}/../../Makefile.inc> + +USE_FORT?= yes # network client + +.PATH: ${HEIMDIST}/admin + +PROG= ktutil + +MAN= ktutil.8 + +HEIMSRCS= ktutil-commands.in + +SRCS= \ + add.c \ + change.c \ + copy.c \ + destroy.c \ + get.c \ + ktutil.c \ + ktutil_locl.h \ + list.c \ + purge.c \ + remove.c \ + rename.c + +LDADD+= -lkadm5clnt -lkrb5 -lsl ${LIBVERS} -lroken -lutil +DPADD+= ${LIBKADM5CLNT} ${LIBKRB5} ${LIBCRYPTO} \ + ${LIBASN1} ${LIBCOM_ERR} ${LIBSL} ${LIBEDIT} ${LIBTERMINFO} \ + ${LIBVERS} ${LIBROKEN} ${LIBCRYPT} ${LIBUTIL} + +.include <${HEIMBASE}/Makefile.rules.inc> +.include