diff options
author | markm <markm@FreeBSD.org> | 2000-01-15 21:38:08 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-01-15 21:38:08 +0000 |
commit | 789632cad6f4b2e49308f42b290ab112e1170651 (patch) | |
tree | 04b880e61aff09c54cf1b0270c123017f84edf2b /kerberos5/lib | |
parent | a4a1a839ad4c4648d8c7c7e6bba576dec6bec55b (diff) | |
download | FreeBSD-src-789632cad6f4b2e49308f42b290ab112e1170651.zip FreeBSD-src-789632cad6f4b2e49308f42b290ab112e1170651.tar.gz |
Userland build of Kerberos5 (AKA Heimdal). More to come.
This is not ready for primetime yet! Please hold off on the bug reports.
Diffstat (limited to 'kerberos5/lib')
-rw-r--r-- | kerberos5/lib/Makefile | 5 | ||||
-rw-r--r-- | kerberos5/lib/Makefile.inc | 6 | ||||
-rw-r--r-- | kerberos5/lib/libasn1/Makefile | 73 | ||||
-rw-r--r-- | kerberos5/lib/libhdb/Makefile | 58 | ||||
-rw-r--r-- | kerberos5/lib/libkadm5clnt/Makefile | 19 | ||||
-rw-r--r-- | kerberos5/lib/libkadm5srv/Makefile | 20 | ||||
-rw-r--r-- | kerberos5/lib/libkafs5/Makefile | 15 | ||||
-rw-r--r-- | kerberos5/lib/libkrb5/Makefile | 42 | ||||
-rw-r--r-- | kerberos5/lib/libroken/Makefile | 35 | ||||
-rw-r--r-- | kerberos5/lib/libsl/Makefile | 15 |
10 files changed, 288 insertions, 0 deletions
diff --git a/kerberos5/lib/Makefile b/kerberos5/lib/Makefile new file mode 100644 index 0000000..c8d02be --- /dev/null +++ b/kerberos5/lib/Makefile @@ -0,0 +1,5 @@ +# $FreeBSD$ + +SUBDIR= libroken libasn1 libhdb libkrb5 libkafs5 libkadm5clnt libkadm5srv libsl + +.include <bsd.subdir.mk> diff --git a/kerberos5/lib/Makefile.inc b/kerberos5/lib/Makefile.inc new file mode 100644 index 0000000..acd5059 --- /dev/null +++ b/kerberos5/lib/Makefile.inc @@ -0,0 +1,6 @@ +# $FreeBSD$ + +SHLIB_MAJOR?= 3 +SHLIB_MINOR?= 0 + +.include "../Makefile.inc" diff --git a/kerberos5/lib/libasn1/Makefile b/kerberos5/lib/libasn1/Makefile new file mode 100644 index 0000000..a07388c --- /dev/null +++ b/kerberos5/lib/libasn1/Makefile @@ -0,0 +1,73 @@ +# $FreeBSD$ + +LIB= asn1 +CFLAGS+=-I${KRB5DIR}/include \ + -I${KRB5DIR}/lib/asn1 \ + -I${KRB5DIR}/lib/roken \ + -I${INCLUDEOBJDIR} \ + -I${.OBJDIR} +SRCS= der_get.c der_put.c der_free.c der_length.c der_copy.c \ + timegm.c asn1_err.c asn1_err.h asn1.h ${GEN:S/.x/.c/g} + +GEN= asn1_APOptions.x asn1_AP_REP.x asn1_AP_REQ.x asn1_AS_REP.x \ + asn1_AS_REQ.x asn1_Authenticator.x asn1_AuthorizationData.x \ + asn1_Checksum.x asn1_EncAPRepPart.x asn1_EncASRepPart.x \ + asn1_EncKDCRepPart.x asn1_EncKrbCredPart.x \ + asn1_EncKrbPrivPart.x asn1_EncTGSRepPart.x \ + asn1_EncTicketPart.x asn1_EncryptedData.x \ + asn1_EncryptionKey.x asn1_ETYPE_INFO.x asn1_ETYPE_INFO_ENTRY.x \ + asn1_HostAddress.x asn1_HostAddresses.x asn1_KDCOptions.x \ + asn1_KDC_REP.x asn1_KDC_REQ.x asn1_KDC_REQ_BODY.x \ + asn1_KRB_CRED.x asn1_KRB_ERROR.x asn1_KRB_PRIV.x \ + asn1_KRB_SAFE.x asn1_KRB_SAFE_BODY.x asn1_KerberosTime.x \ + asn1_KrbCredInfo.x asn1_LastReq.x asn1_METHOD_DATA.x \ + asn1_PA_DATA.x asn1_PA_ENC_TS_ENC.x asn1_Principal.x \ + asn1_PrincipalName.x asn1_Realm.x asn1_TGS_REP.x \ + asn1_TGS_REQ.x asn1_Ticket.x asn1_TicketFlags.x \ + asn1_TransitedEncoding.x + +.include <bsd.lib.mk> + +.PATH: ${KRB5DIR}/lib/asn1 +.PATH: ${KRB5DIR}/lib/roken + +beforedepend all: + +.for I in ${GEN} +${I:S/.x/.c/}: ${I} + cmp -s ${.OODATE} ${.TARGET} 2> /dev/null || cp ${.OODATE} ${.TARGET} +.endfor + +CLEANFILES+= ${GEN:S/.x/.c/g} asn1.h asn1_files + +${GEN} asn1.h: asn1_compile k5.asn1 + ./asn1_compile ${KRB5DIR}/lib/asn1/k5.asn1 + +build-tools: make-print-version asn1_compile + +asn1_compile: parse.o lex.o main.c hash.c symbol.c gen.c \ + gen_encode.c gen_decode.c gen_free.c gen_length.c \ + gen_copy.c gen_glue.c getarg.c warnerr.c print_version.o \ + get_window_size.c strupr.c + ${CC} ${CFLAGS} ${.OODATE} -o ${.TARGET} + +parse.o: parse.c + +parse.h parse.c: parse.y + ${YACC} -d ${.OODATE} + mv y.tab.c parse.c + mv y.tab.h parse.h + +lex.o: lex.l + +print_version.o: print_version.h print_version.c + ${CC} ${CFLAGS} -c -o ${.TARGET} ${KRB5DIR}/lib/roken/print_version.c + +print_version.h: make-print-version + ./make-print-version print_version.h + +make-print-version: make-print-version.c + ${CC} ${CFLAGS} -o ${.TARGET} ${.OODATE} + +CLEANFILES+= ${GEN} asn1_compile lex.o parse.o parse.c parse.h \ + hdb_asn1.h make-print-version print_version.h print_version.o diff --git a/kerberos5/lib/libhdb/Makefile b/kerberos5/lib/libhdb/Makefile new file mode 100644 index 0000000..a826231 --- /dev/null +++ b/kerberos5/lib/libhdb/Makefile @@ -0,0 +1,58 @@ +# $FreeBSD$ + +LIB= hdb +CFLAGS+=-I${KRB5DIR}/include \ + -I${INCLUDEOBJDIR} \ + -I${KRB5DIR}/lib/krb5 \ + -I${KRB5DIR}/lib/hdb \ + -I${KRB5DIR}/lib/asn1 \ + -I${KRB5DIR}/lib/roken \ + -I${.OBJDIR} \ + -I${ASN1OBJDIR} +SRCS= keytab.c hdb.c common.c db.c ndbm.c print.c hdb_err.c \ + hdb_asn1.h hdb_err.h krb5_err.h heim_err.h ${GEN:S/.x/.c/g} +GEN= asn1_Key.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x + +.include <bsd.lib.mk> + +.PATH: ${KRB5DIR}/lib/hdb +.PATH: ${KRB5DIR}/lib/asn1 +.PATH: ${KRB5DIR}/lib/roken + +.for I in ${GEN} +${I:S/.x/.c/}: ${I} + cmp -s ${.OODATE} ${.TARGET} 2> /dev/null || cp ${.OODATE} ${.TARGET} +.endfor + +CLEANFILES+= ${GEN:S/.x/.c/g} asn1.h asn1_files + +${GEN} hdb_asn1.h: asn1_compile hdb.asn1 + ./asn1_compile ${KRB5DIR}/lib/hdb/hdb.asn1 hdb_asn1 + +asn1_compile: parse.o lex.o main.c hash.c symbol.c gen.c \ + gen_encode.c gen_decode.c gen_free.c gen_length.c \ + gen_copy.c gen_glue.c getarg.c warnerr.c print_version.o \ + get_window_size.c strupr.c + ${CC} ${CFLAGS} ${.OODATE} -o ${.TARGET} + +parse.o: parse.c + +parse.h parse.c: parse.y + ${YACC} -d ${.OODATE} + mv y.tab.c parse.c + mv y.tab.h parse.h + +lex.o: lex.l + +print_version.o: print_version.h print_version.c + ${CC} ${CFLAGS} -c -o ${.TARGET} ${KRB5DIR}/lib/roken/print_version.c + +print_version.h: make-print-version + ./make-print-version print_version.h + +make-print-version: make-print-version.c + ${CC} ${CFLAGS} -o ${.TARGET} ${.OODATE} + +CLEANFILES+= ${GEN} asn1_compile lex.o parse.o parse.c parse.h \ + hdb_asn1.h make-print-version print_version.h print_version.o + diff --git a/kerberos5/lib/libkadm5clnt/Makefile b/kerberos5/lib/libkadm5clnt/Makefile new file mode 100644 index 0000000..3cee93c --- /dev/null +++ b/kerberos5/lib/libkadm5clnt/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +LIB= kadm5clnt +CFLAGS+=-I${KRB5DIR}/include \ + -I${KRB5DIR}/lib/krb5 \ + -I${KRB5DIR}/lib/kadm5 \ + -I${KRB5DIR}/lib/hdb \ + -I${KRB5DIR}/lib/roken \ + -I${ASN1OBJDIR} \ + -I${HDBOBJDIR} \ + -I${.OBJDIR} +SRCS= chpass_c.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 kadm5_err.c \ + marshall.c modify_c.c privs_c.c randkey_c.c rename_c.c \ + send_recv.c client_glue.c kadm5_err.h + +.include <bsd.lib.mk> + +.PATH: ${KRB5DIR}/lib/kadm5 diff --git a/kerberos5/lib/libkadm5srv/Makefile b/kerberos5/lib/libkadm5srv/Makefile new file mode 100644 index 0000000..7ce0d22 --- /dev/null +++ b/kerberos5/lib/libkadm5srv/Makefile @@ -0,0 +1,20 @@ +# $FreeBSD$ + +LIB= kadm5srv +CFLAGS+=-I${KRB5DIR}/include \ + -I${KRB5DIR}/lib/krb5 \ + -I${KRB5DIR}/lib/kadm5 \ + -I${KRB5DIR}/lib/hdb \ + -I${KRB5DIR}/lib/roken \ + -I${ASN1OBJDIR} \ + -I${HDBOBJDIR} \ + -I${.OBJDIR} +SRCS= acl.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 kadm5_err.c kadm5_err.h \ + log.c marshall.c modify_s.c privs_s.c randkey_s.c rename_s.c \ + set_keys.c set_modifier.c password_quality.c server_glue.c \ + +.include <bsd.lib.mk> + +.PATH: ${KRB5DIR}/lib/kadm5 diff --git a/kerberos5/lib/libkafs5/Makefile b/kerberos5/lib/libkafs5/Makefile new file mode 100644 index 0000000..4f80a3e --- /dev/null +++ b/kerberos5/lib/libkafs5/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +LIB= kafs5 +CFLAGS+=-I${KRB5DIR}/lib/kafs \ + -I${KRB5DIR}/lib/asn1 \ + -I${KRB5DIR}/lib/krb5 \ + -I${KRB5DIR}/lib/roken \ + -I${KRB5DIR}/include \ + -I${KRB5OBJDIR} \ + -I${ASN1OBJDIR} +SRCS= afssys.c afskrb.c afskrb5.c common.c + +.include <bsd.lib.mk> + +.PATH: ${KRB5DIR}/lib/kafs diff --git a/kerberos5/lib/libkrb5/Makefile b/kerberos5/lib/libkrb5/Makefile new file mode 100644 index 0000000..3021732 --- /dev/null +++ b/kerberos5/lib/libkrb5/Makefile @@ -0,0 +1,42 @@ +# $FreeBSD$ + +LIB= krb5 +CFLAGS+=-I${KRB5DIR}/lib/krb5 \ + -I${KRB5DIR}/lib/asn1 \ + -I${KRB5DIR}/lib/des \ + -I${KRB5DIR}/lib/roken \ + -I${KRB5DIR}/include \ + -I${KRB5OBJDIR} \ + -I${ASN1OBJDIR} +SRCS= add_et_list.c addr_families.c address.c aname_to_localname.c \ + asn1_glue.c auth_context.c build_ap_req.c build_auth.c \ + cache.c changepw.c codec.c config_file.c config_file_netinfo.c \ + convert_creds.c constants.c context.c copy_host_realm.c \ + crc.c creds.c crypto.c data.c expand_hostname.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_in_tkt_pw.c get_in_tkt_with_keytab.c \ + get_in_tkt_with_skey.c get_port.c init_creds.c init_creds_pw.c \ + keyblock.c keytab.c keytab_file.c keytab_memory.c \ + keytab_krb4.c keytab_keyfile.c krbhst.c kuserok.c log.c \ + mcache.c misc.c mk_error.c mk_priv.c mk_rep.c mk_req.c \ + mk_req_ext.c mk_safe.c net_read.c net_write.c n-fold.c \ + padata.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 send_to_kdc.c sendauth.c \ + set_default_realm.c sock_principal.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 \ + krb5_err.c krb5_err.h heim_err.c heim_err.h \ + md4.c md5.c sha.c rc4_enc.c rc4_skey.c +INCLUDES=krb5.h + +.include <bsd.lib.mk> + +.PATH: ${KRB5DIR}/lib/krb5 +.PATH: ${KRB5DIR}/lib/des + +beforedepend all: asn1_err.h krb5_err.h + +CLEANFILES+= profile.h diff --git a/kerberos5/lib/libroken/Makefile b/kerberos5/lib/libroken/Makefile new file mode 100644 index 0000000..5c11dbe --- /dev/null +++ b/kerberos5/lib/libroken/Makefile @@ -0,0 +1,35 @@ +# $FreeBSD$ + +LIB= roken +CFLAGS+= -I${KRB5DIR}/include \ + -I${INCLUDEOBJDIR} \ + -I${KRB5DIR}/lib/roken \ + -I${.OBJDIR} +SRCS= base64.c concat.c emalloc.c eread.c erealloc.c estrdup.c \ + ewrite.c get_default_username.c get_window_size.c getarg.c \ + getnameinfo_verified.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 print_version.c resolve.c \ + roken_gethostby.c signal.c simple_exec.c snprintf.c \ + socket.c tm2time.c verify.c warnerr.c copyhostent.c \ + strlwr.c strndup.c strnlen.c strupr.c get_default_username.c \ + print_version.h +NOPIC= yes + +install: + +.include <bsd.lib.mk> + +beforedepend all: print_version.h + +.PATH: ${KRB5DIR}/lib/roken + +build-tools: make-print-version + +print_version.h: make-print-version + ./make-print-version print_version.h + +make-print-version: make-print-version.c + ${CC} ${CFLAGS} -o ${.TARGET} ${.OODATE} + +CLEANFILES+= make-print-version print_version.h diff --git a/kerberos5/lib/libsl/Makefile b/kerberos5/lib/libsl/Makefile new file mode 100644 index 0000000..3f5add3 --- /dev/null +++ b/kerberos5/lib/libsl/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +LIB= sl +CFLAGS+=-I${KRB5DIR}/lib/sl \ + -I${KRB5DIR}/lib/roken \ + -I${KRB5DIR}/include +SRCS= sl.c + +NOPIC= yes + +install: + +.include <bsd.lib.mk> + +.PATH: ${KRB5DIR}/lib/sl |