summaryrefslogtreecommitdiffstats
path: root/kerberos5/lib/libhdb/Makefile
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2012-03-22 08:48:42 +0000
committerstas <stas@FreeBSD.org>2012-03-22 08:48:42 +0000
commite7e0b349883e80d63c4e856f16351aaa6607766d (patch)
tree5518cb944fa25f627a797b58451ccf506b720fcf /kerberos5/lib/libhdb/Makefile
parente02fd6b8423e63f1fdbfc1f984d7c7291a1bacd1 (diff)
parent2db247d3fc10ef5304f61dbd66448efff8cc6684 (diff)
downloadFreeBSD-src-e7e0b349883e80d63c4e856f16351aaa6607766d.zip
FreeBSD-src-e7e0b349883e80d63c4e856f16351aaa6607766d.tar.gz
- Update FreeBSD Heimdal distribution to version 1.5.1. This also brings
several new kerberos related libraries and applications to FreeBSD: o kgetcred(1) allows one to manually get a ticket for a particular service. o kf(1) securily forwards ticket to another host through an authenticated and encrypted stream. o kcc(1) is an umbrella program around klist(1), kswitch(1), kgetcred(1) and other user kerberos operations. klist and kswitch are just symlinks to kcc(1) now. o kswitch(1) allows you to easily switch between kerberos credentials if you're running KCM. o hxtool(1) is a certificate management tool to use with PKINIT. o string2key(1) maps a password into key. o kdigest(8) is a userland tool to access the KDC's digest interface. o kimpersonate(8) creates a "fake" ticket for a service. We also now install manpages for some lirbaries that were not installed before, libheimntlm and libhx509. - The new HEIMDAL version no longer supports Kerberos 4. All users are recommended to switch to Kerberos 5. - Weak ciphers are now disabled by default. To enable DES support (used by telnet(8)), use "allow_weak_crypto" option in krb5.conf. - libtelnet, pam_ksu and pam_krb5 are now compiled with error on warnings disabled due to the function they use (krb5_get_err_text(3)) being deprecated. I plan to work on this next. - Heimdal's KDC now require sqlite to operate. We use the bundled version and install it as libheimsqlite. If some other FreeBSD components will require it in the future we can rename it to libbsdsqlite and use for these components as well. - This is not a latest Heimdal version, the new one was released while I was working on the update. I will update it to 1.5.2 soon, as it fixes some important bugs and security issues.
Diffstat (limited to 'kerberos5/lib/libhdb/Makefile')
-rw-r--r--kerberos5/lib/libhdb/Makefile79
1 files changed, 59 insertions, 20 deletions
diff --git a/kerberos5/lib/libhdb/Makefile b/kerberos5/lib/libhdb/Makefile
index 0e70799..1ee7f88 100644
--- a/kerberos5/lib/libhdb/Makefile
+++ b/kerberos5/lib/libhdb/Makefile
@@ -1,12 +1,37 @@
# $FreeBSD$
LIB= hdb
-LDFLAGS= -Wl,--no-undefined ${LDAPLDFLAGS}
-LDADD= -lasn1 -lcom_err -lkrb5 -lroken ${LDAPLDADD}
-DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN} ${LDAPDPADD}
+LDFLAGS= -Wl,--no-undefined
+VERSION_MAP= ${KRB5DIR}/lib/hdb/version-script.map
+LDADD= -lasn1 -lcom_err -lkrb5 -lroken -lheimsqlite
+DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN} ${LIBHEIMSQLITE} ${LDAPDPADD}
-INCS= hdb-private.h \
- hdb-protos.h \
+MAN= HDB.3 hdb_entry_ex.3
+
+MLINKS= HDB.3 hdb__del.3 \
+ HDB.3 hdb__get.3 \
+ HDB.3 hdb__put.3 \
+ HDB.3 hdb_auth_status.3 \
+ HDB.3 hdb_check_constrained_delegation.3 \
+ HDB.3 hdb_check_pkinit_ms_upn_match.3 \
+ HDB.3 hdb_check_s4u2self.3 \
+ HDB.3 hdb_close.3 \
+ HDB.3 hdb_destroy.3 \
+ HDB.3 hdb_fetch_kvno.3 \
+ HDB.3 hdb_firstkey.3 \
+ HDB.3 hdb_free.3 \
+ HDB.3 hdb_get_realms.3 \
+ HDB.3 hdb_lock.3 \
+ HDB.3 hdb_name.3 \
+ HDB.3 hdb_nextkey.3 \
+ HDB.3 hdb_open.3 \
+ HDB.3 hdb_password.3 \
+ HDB.3 hdb_remove.3 \
+ HDB.3 hdb_rename.3 \
+ HDB.3 hdb_store.3 \
+ HDB.3 hdb_unlock.3
+
+INCS= hdb-protos.h \
hdb.h \
hdb_asn1.h \
hdb_err.h
@@ -18,18 +43,24 @@ SRCS= common.c \
ext.c \
hdb-ldap.c \
hdb.c \
- hdb_asn1.h \
hdb_err.c \
hdb_err.h \
+ hdb-sqlite.c \
+ hdb-keytab.c \
+ hdb-mitdb.c \
+ hdb_locl.h \
+ hdb-private.h \
keys.c \
keytab.c \
mkey.c \
ndbm.c \
print.c \
- ${GEN:S/.x$/.c/}
+ ${GEN:S/.x$/.c/:S/.hx$/.h/}
CFLAGS+=-I${KRB5DIR}/lib/hdb -I${KRB5DIR}/lib/asn1 \
- -I${KRB5DIR}/lib/roken -I. ${LDAPCFLAGS}
+ -I${KRB5DIR}/lib/roken -I${KRB5DIR}/lib/sqlite \
+ -I${KRB5DIR}/lib/krb5 \
+ -I. ${LDAPCFLAGS}
CFLAGS+=-DHDB_DB_DIR="\"/var/heimdal\""
GEN= asn1_Salt.x \
@@ -38,6 +69,7 @@ GEN= asn1_Salt.x \
asn1_HDBFlags.x \
asn1_GENERATION.x \
asn1_HDB_Ext_PKINIT_acl.x \
+ asn1_HDB_Ext_PKINIT_cert.x \
asn1_HDB_Ext_PKINIT_hash.x \
asn1_HDB_Ext_Constrained_delegation_acl.x \
asn1_HDB_Ext_Lan_Manager_OWF.x \
@@ -46,22 +78,29 @@ GEN= asn1_Salt.x \
asn1_HDB_extension.x \
asn1_HDB_extensions.x \
asn1_hdb_entry.x \
- asn1_hdb_entry_alias.x
+ asn1_hdb_entry_alias.x \
+ asn1_hdb_keyset.x \
+ hdb_asn1.hx \
+ hdb_asn1-priv.hx
-CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} hdb_asn1.h asn1_files
+CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} hdb_asn1_files \
+ hdb_asn1-template.[ch]*
-.ORDER: ${GEN} hdb_asn1.h
-${GEN} hdb_asn1.h: hdb.asn1 ../../tools/asn1_compile/asn1_compile
- ../../tools/asn1_compile/asn1_compile ${.ALLSRC:M*.asn1} hdb_asn1
+ASN1_COMPILE= asn1_compile
-../../tools/asn1_compile/asn1_compile:
- cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE}
+${GEN}: hdb.asn1
+ ${ASN1_COMPILE} ${.ALLSRC:M*.asn1} hdb_asn1
-.for I in ${GEN}
-${I:R}.c: ${I}
- cat ${.ALLSRC} > ${.TARGET}
-.endfor
+.SUFFIXES: .h .c .x .hx
+
+.x.c:
+ cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET}
+
+.hx.h:
+ cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET}
.include <bsd.lib.mk>
-.PATH: ${KRB5DIR}/lib/hdb
+.SUFFIXES: .h .c .x .hx
+
+.PATH: ${KRB5DIR}/lib/hdb ${KRB5DIR}/doc/doxyout/hdb/man/man3/
OpenPOWER on IntegriCloud