Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/heimdal Build framework for Heimdal.



details:   https://anonhg.NetBSD.org/src/rev/07a8e1dbec25
branches:  trunk
changeset: 764190:07a8e1dbec25
user:      elric <elric%NetBSD.org@localhost>
date:      Wed Apr 13 19:16:44 2011 +0000

description:
Build framework for Heimdal.

diffstat:

 crypto/external/bsd/heimdal/Makefile                           |    5 +
 crypto/external/bsd/heimdal/Makefile.inc                       |   43 +
 crypto/external/bsd/heimdal/Makefile.rules.inc                 |   92 +
 crypto/external/bsd/heimdal/bin/Makefile                       |   22 +
 crypto/external/bsd/heimdal/bin/Makefile.inc                   |    3 +
 crypto/external/bsd/heimdal/bin/gsstool/Makefile               |   20 +
 crypto/external/bsd/heimdal/bin/hxtool/Makefile                |   20 +
 crypto/external/bsd/heimdal/bin/kcc/Makefile                   |   28 +
 crypto/external/bsd/heimdal/bin/kdestroy/Makefile              |   17 +
 crypto/external/bsd/heimdal/bin/kgetcred/Makefile              |   17 +
 crypto/external/bsd/heimdal/bin/kinit/Makefile                 |   19 +
 crypto/external/bsd/heimdal/bin/kpasswd/Makefile               |   17 +
 crypto/external/bsd/heimdal/bin/krb5-config/Makefile           |   32 +
 crypto/external/bsd/heimdal/bin/string2key/Makefile            |   27 +
 crypto/external/bsd/heimdal/bin/verify_krb5_conf/Makefile      |   29 +
 crypto/external/bsd/heimdal/lib/Makefile                       |   35 +
 crypto/external/bsd/heimdal/lib/Makefile.inc                   |    2 +
 crypto/external/bsd/heimdal/lib/libasn1/Makefile               |   72 +
 crypto/external/bsd/heimdal/lib/libasn1/asn1_compile/Makefile  |   94 +
 crypto/external/bsd/heimdal/lib/libasn1/shlib_version          |    5 +
 crypto/external/bsd/heimdal/lib/libcom_err/Makefile            |   35 +
 crypto/external/bsd/heimdal/lib/libcom_err/compile_et/Makefile |   61 +
 crypto/external/bsd/heimdal/lib/libcom_err/shlib_version       |    5 +
 crypto/external/bsd/heimdal/lib/libgssapi/Makefile             |  272 +++++
 crypto/external/bsd/heimdal/lib/libgssapi/shlib_version        |    5 +
 crypto/external/bsd/heimdal/lib/libhdb/Makefile                |   52 +
 crypto/external/bsd/heimdal/lib/libhdb/shlib_version           |    5 +
 crypto/external/bsd/heimdal/lib/libheimbase/Makefile           |   25 +
 crypto/external/bsd/heimdal/lib/libheimbase/shlib_version      |    5 +
 crypto/external/bsd/heimdal/lib/libheimntlm/Makefile           |   25 +
 crypto/external/bsd/heimdal/lib/libheimntlm/shlib_version      |    5 +
 crypto/external/bsd/heimdal/lib/libhx509/Makefile              |   85 +
 crypto/external/bsd/heimdal/lib/libhx509/shlib_version         |    5 +
 crypto/external/bsd/heimdal/lib/libipc/Makefile                |   22 +
 crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile          |   60 +
 crypto/external/bsd/heimdal/lib/libkadm5clnt/shlib_version     |    5 +
 crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile           |   51 +
 crypto/external/bsd/heimdal/lib/libkadm5srv/shlib_version      |    5 +
 crypto/external/bsd/heimdal/lib/libkafs/Makefile               |   24 +
 crypto/external/bsd/heimdal/lib/libkafs/shlib_version          |    5 +
 crypto/external/bsd/heimdal/lib/libkdc/Makefile                |   46 +
 crypto/external/bsd/heimdal/lib/libkdc/shlib_version           |    5 +
 crypto/external/bsd/heimdal/lib/libkrb5/Makefile               |  534 ++++++++++
 crypto/external/bsd/heimdal/lib/libkrb5/shlib_version          |    5 +
 crypto/external/bsd/heimdal/lib/libroken/Makefile              |   89 +
 crypto/external/bsd/heimdal/lib/libroken/shlib_version         |    5 +
 crypto/external/bsd/heimdal/lib/libsl/Makefile                 |   35 +
 crypto/external/bsd/heimdal/lib/libsl/shlib_version            |    5 +
 crypto/external/bsd/heimdal/lib/libsl/slc/Makefile             |   53 +
 crypto/external/bsd/heimdal/lib/libvers/Makefile               |   35 +
 crypto/external/bsd/heimdal/lib/libwind/Makefile               |   40 +
 crypto/external/bsd/heimdal/lib/libwind/shlib_version          |    5 +
 crypto/external/bsd/heimdal/libexec/Makefile                   |   17 +
 crypto/external/bsd/heimdal/libexec/Makefile.inc               |    3 +
 crypto/external/bsd/heimdal/libexec/digest-service/Makefile    |   23 +
 crypto/external/bsd/heimdal/libexec/hpropd/Makefile            |   25 +
 crypto/external/bsd/heimdal/libexec/ipropd-master/Makefile     |   31 +
 crypto/external/bsd/heimdal/libexec/ipropd-slave/Makefile      |   28 +
 crypto/external/bsd/heimdal/libexec/kadmind/Makefile           |   29 +
 crypto/external/bsd/heimdal/libexec/kpasswdd/Makefile          |   24 +
 crypto/external/bsd/heimdal/sbin/Makefile                      |   19 +
 crypto/external/bsd/heimdal/sbin/Makefile.inc                  |    3 +
 crypto/external/bsd/heimdal/sbin/hprop/Makefile                |   29 +
 crypto/external/bsd/heimdal/sbin/iprop-log/Makefile            |   23 +
 crypto/external/bsd/heimdal/sbin/kadmin/Makefile               |   48 +
 crypto/external/bsd/heimdal/sbin/kcm/Makefile                  |   36 +
 crypto/external/bsd/heimdal/sbin/kdc/Makefile                  |   31 +
 crypto/external/bsd/heimdal/sbin/kdigest/Makefile              |   21 +
 crypto/external/bsd/heimdal/sbin/kimpersonate/Makefile         |   18 +
 crypto/external/bsd/heimdal/sbin/kstash/Makefile               |   28 +
 crypto/external/bsd/heimdal/sbin/ktutil/Makefile               |   35 +
 71 files changed, 2684 insertions(+), 0 deletions(-)

diffs (truncated from 2968 to 300 lines):

diff -r 76cd89fc926c -r 07a8e1dbec25 crypto/external/bsd/heimdal/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/heimdal/Makefile      Wed Apr 13 19:16:44 2011 +0000
@@ -0,0 +1,5 @@
+#      $NetBSD: Makefile,v 1.1 2011/04/13 19:16:44 elric Exp $
+
+SUBDIR=                lib .WAIT bin libexec sbin
+
+.include <bsd.subdir.mk>
diff -r 76cd89fc926c -r 07a8e1dbec25 crypto/external/bsd/heimdal/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/heimdal/Makefile.inc  Wed Apr 13 19:16:44 2011 +0000
@@ -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 -r 76cd89fc926c -r 07a8e1dbec25 crypto/external/bsd/heimdal/Makefile.rules.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/heimdal/Makefile.rules.inc    Wed Apr 13 19:16:44 2011 +0000
@@ -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 <krb5/\1_asn1.h>,'
+
+${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 -r 76cd89fc926c -r 07a8e1dbec25 crypto/external/bsd/heimdal/bin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/heimdal/bin/Makefile  Wed Apr 13 19:16:44 2011 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:44 elric Exp $
+
+.include <bsd.own.mk>
+
+HEIMBASE=${.CURDIR}/..
+
+.if (${MKKERBEROS} != "no")
+SUBDIR =               \
+       gsstool         \
+       hxtool          \
+       kcc             \
+       kdestroy        \
+       kgetcred        \
+       kinit           \
+       kpasswd         \
+       krb5-config     \
+       string2key      \
+       verify_krb5_conf
+
+.endif # MKKERBEROS != no
+
+.include <bsd.subdir.mk>
diff -r 76cd89fc926c -r 07a8e1dbec25 crypto/external/bsd/heimdal/bin/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/heimdal/bin/Makefile.inc      Wed Apr 13 19:16:44 2011 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2011/04/13 19:16:44 elric Exp $
+
+BINDIR=/usr/bin
diff -r 76cd89fc926c -r 07a8e1dbec25 crypto/external/bsd/heimdal/bin/gsstool/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/heimdal/bin/gsstool/Makefile  Wed Apr 13 19:16:44 2011 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:44 elric Exp $
+
+.include <bsd.own.mk>
+.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 <bsd.prog.mk>
diff -r 76cd89fc926c -r 07a8e1dbec25 crypto/external/bsd/heimdal/bin/hxtool/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/heimdal/bin/hxtool/Makefile   Wed Apr 13 19:16:44 2011 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:45 elric Exp $
+
+.include <bsd.own.mk>
+.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 <bsd.prog.mk>
diff -r 76cd89fc926c -r 07a8e1dbec25 crypto/external/bsd/heimdal/bin/kcc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/heimdal/bin/kcc/Makefile      Wed Apr 13 19:16:44 2011 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:45 elric Exp $
+
+.include <bsd.own.mk>
+.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 <bsd.prog.mk>
diff -r 76cd89fc926c -r 07a8e1dbec25 crypto/external/bsd/heimdal/bin/kdestroy/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/heimdal/bin/kdestroy/Makefile Wed Apr 13 19:16:44 2011 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:45 elric Exp $
+
+.include <bsd.own.mk>
+.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 <bsd.prog.mk>
diff -r 76cd89fc926c -r 07a8e1dbec25 crypto/external/bsd/heimdal/bin/kgetcred/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/heimdal/bin/kgetcred/Makefile Wed Apr 13 19:16:44 2011 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2011/04/13 19:16:45 elric Exp $
+
+.include <bsd.own.mk>
+.include <${.CURDIR}/../../Makefile.inc>
+
+USE_FORT?= yes # cryptographic software
+
+.PATH: ${HEIMDIST}/kuser
+
+PROG= kgetcred



Home | Main Index | Thread Index | Old Index