Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/cpl/trousers add build glue



details:   https://anonhg.NetBSD.org/src/rev/ef1650db1e51
branches:  trunk
changeset: 773104:ef1650db1e51
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 28 02:15:25 2012 +0000

description:
add build glue

diffstat:

 crypto/external/cpl/trousers/Makefile             |    3 +
 crypto/external/cpl/trousers/Makefile.inc         |   21 +
 crypto/external/cpl/trousers/bin/Makefile         |    3 +
 crypto/external/cpl/trousers/bin/Makefile.inc     |    2 +
 crypto/external/cpl/trousers/bin/tcsd/Makefile    |   28 ++
 crypto/external/cpl/trousers/etc/tcsd.conf        |   13 +
 crypto/external/cpl/trousers/lib/Makefile         |    3 +
 crypto/external/cpl/trousers/lib/Makefile.inc     |    2 +
 crypto/external/cpl/trousers/lib/libtcs/Makefile  |  113 ++++++++
 crypto/external/cpl/trousers/lib/libtddl/Makefile |   11 +
 crypto/external/cpl/trousers/lib/libtspi/Makefile |  277 ++++++++++++++++++++++
 11 files changed, 476 insertions(+), 0 deletions(-)

diffs (truncated from 520 to 300 lines):

diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/Makefile     Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2012/01/28 02:15:25 christos Exp $
+SUBDIR=lib .WAIT bin
+.include <bsd.subdir.mk>
diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/Makefile.inc Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile.inc,v 1.1 2012/01/28 02:15:25 christos Exp $
+
+.include <bsd.own.mk>
+
+DIST=${NETBSDSRCDIR}/crypto/external/cpl/trousers/dist
+
+CPPFLAGS+= -I${DIST}/src/include
+
+CPPFLAGS+= -DPACKAGE_NAME=\"trousers\" -DPACKAGE_TARNAME=\"trousers\"
+CPPFLAGS+= -DPACKAGE_VERSION=\"0.3.8\" -DPACKAGE_STRING=\"trousers\ 0.3.8\"
+CPPFLAGS+= -DPACKAGE_BUGREPORT=\"trousers-tech%lists.sf.net@localhost\" 
+CPPFLAGS+= -DPACKAGE_URL=\"\" -DPACKAGE=\"trousers\" -DVERSION=\"0.3.8\"
+CPPFLAGS+= -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
+CPPFLAGS+= -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
+CPPFLAGS+= -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
+CPPFLAGS+= -DHAVE_UNISTD_H=1 -DHAVE_OPENSSL_BN_H=1 -DHAVE_OPENSSL_ENGINE_H=1
+CPPFLAGS+= -DHAVE_PTHREAD_H=1 -DHAVE_DLFCN_H=1 -DHTOLE_DEFINED=1 -DHAVE_DAEMON=1
+
+CPPFLAGS+=-DBI_OPENSSL -DTCSD_DEFAULT_PORT=30003
+CPPFLAGS+=-DTSS_VER_MAJOR=0 -DTSS_VER_MINOR=3 -DTSS_SPEC_MAJOR=1
+CPPFLAGS+=-DTSS_SPEC_MINOR=2
diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/bin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/bin/Makefile Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2012/01/28 02:15:26 christos Exp $
+SUBDIR = tcsd
+.include <bsd.subdir.mk>
diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/bin/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/bin/Makefile.inc     Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,2 @@
+# $NetBSD: Makefile.inc,v 1.1 2012/01/28 02:15:26 christos Exp $
+.include "../Makefile.inc"
diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/bin/tcsd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/bin/tcsd/Makefile    Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2012/01/28 02:15:26 christos Exp $
+.include "../Makefile.inc"
+
+.PATH.c: ${DIST}/src/tcsd
+
+CPPFLAGS+=-DAPPID=\"TCSD\" -DVAR_PREFIX=\"/var\"  -DETC_PREFIX=\"/etc\"
+CPPFLAGS+=-DTSS_BUILD_PS -DTSS_BUILD_PCR_EVENTS
+
+BINDIR=/usr/sbin
+PROG=tcsd
+SRCS=\
+platform.c \
+svrside.c \
+tcsd_conf.c \
+tcsd_threads.c 
+
+LIBTCSOBJDIR!= cd ${.CURDIR}/../../lib/libtcs && ${PRINTOBJDIR}
+
+DPADD+=${LIBTDDL} ${LIBCRYPTO} ${LIBPTHREAD}
+LDADD+=-L${LIBTCSOBJDIR} -ltcs -ltddl -lcrypto -lpthread
+
+.SUFFIXES: .5 .8
+.PATH.5: ${DIST}/man/man5
+.PATH.8: ${DIST}/man/man8
+
+MAN+=tcsd.conf.5 tcsd.8
+
+.include <bsd.prog.mk>
diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/etc/tcsd.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/etc/tcsd.conf        Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,13 @@
+port = 30003
+num_threads = 10
+system_ps_file = /var/tpm/system.data
+#firmware_log_file = /proc/tpm/firmware_events
+#kernel_log_file = /proc/tcg/measurement_events
+firmware_pcrs = 0,1,2,3,4,5,6,7
+kernel_pcrs = 10,11
+platform_cred = /etc/tpm/platform.cert
+conformance_cred = /etc/tpm/conformance.cert
+endorsement_cred = /etc/tpm/endorsement.cert
+remote_ops = create_key,random
+host_platform_class = server_12
+all_platform_classes = pc_11,pc_12,mobile_12
diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/lib/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/lib/Makefile Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2012/01/28 02:15:26 christos Exp $
+SUBDIR = libtddl libtspi
+.include <bsd.subdir.mk>
diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/lib/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/lib/Makefile.inc     Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,2 @@
+# $NetBSD: Makefile.inc,v 1.1 2012/01/28 02:15:26 christos Exp $
+.include "../Makefile.inc"
diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/lib/libtcs/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/lib/libtcs/Makefile  Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,113 @@
+# $NetBSD: Makefile,v 1.1 2012/01/28 02:15:26 christos Exp $
+
+LIBISPRIVATE=yes
+.include "../Makefile.inc"
+
+TCS=${DIST}/src/tcs
+.PATH.c: ${TCS} ${TCS}/ps ${TCS}/rpc ${TCS}/rpc/tcstp ${TCS}/crypto/openssl
+
+CPPFLAGS+=-DAPPID=\"TCSD\ TCS\" -DVAR_PREFIX=\"/var\" -DETC_PREFIX=\"/etc\"
+CPPFLAGS+=-DTSS_BUILD_TRANSPORT -DTSS_BUILD_TICK -DTSS_BUILD_COUNTER
+CPPFLAGS+=-DTSS_BUILD_RANDOM -DTSS_BUILD_CAPS -DTSS_BUILD_DIR
+CPPFLAGS+=-DTSS_BUILD_PCR_EVENTS -DTSS_BUILD_SIGN -DTSS_BUILD_QUOTE
+CPPFLAGS+=-DTSS_BUILD_SEAL -DTSS_BUILD_CHANGEAUTH -DTSS_BUILD_BIND
+CPPFLAGS+=-DTSS_BUILD_OWN -DTSS_BUILD_PS -DTSS_BUILD_ADMIN
+CPPFLAGS+=-DTSS_BUILD_AIK -DTSS_BUILD_EK -DTSS_BUILD_CERTIFY
+CPPFLAGS+=-DTSS_BUILD_KEY -DTSS_BUILD_MAINT -DTSS_BUILD_MIGRATION
+CPPFLAGS+=-DTSS_BUILD_PCR_EXTEND -DTSS_BUILD_SELFTEST -DTSS_BUILD_NV
+CPPFLAGS+=-DTSS_BUILD_AUDIT -DTSS_BUILD_SEALX -DTSS_BUILD_TSS12
+CPPFLAGS+=-DTSS_BUILD_DELEGATION -DTSS_BUILD_QUOTE2  -DTSS_BUILD_CMK
+
+LIB=tcs
+SRCS=\
+crypto.c \
+log.c \
+ps_utils.c \
+rpc.c \
+rpc_admin.c \
+rpc_aik.c \
+rpc_audit.c \
+rpc_auth.c \
+rpc_bind.c \
+rpc_caps.c \
+rpc_caps_tpm.c \
+rpc_certify.c \
+rpc_changeauth.c \
+rpc_cmk.c \
+rpc_context.c \
+rpc_counter.c \
+rpc_delegate.c \
+rpc_dir.c \
+rpc_ek.c \
+rpc_evlog.c \
+rpc_key.c \
+rpc_maint.c \
+rpc_migration.c \
+rpc_nv.c \
+rpc_oper.c \
+rpc_own.c \
+rpc_pcr_extend.c \
+rpc_ps.c \
+rpc_quote.c \
+rpc_quote2.c \
+rpc_random.c \
+rpc_seal.c \
+rpc_selftest.c \
+rpc_sign.c \
+rpc_tick.c \
+rpc_transport.c \
+tcs_aik.c \
+tcs_auth_mgr.c \
+tcs_caps.c \
+tcs_context.c \
+tcs_context_key.c \
+tcs_counter.c \
+tcs_evlog.c \
+tcs_evlog_biosem.c \
+tcs_evlog_imaem.c \
+tcs_key.c \
+tcs_key_mem_cache.c \
+tcs_key_ps.c \
+tcs_migration.c \
+tcs_pbg.c \
+tcs_ps.c \
+tcs_quote.c \
+tcs_quote2.c \
+tcs_req_mgr.c \
+tcs_seal.c \
+tcs_utils.c \
+tcsi_admin.c \
+tcsi_aik.c \
+tcsi_audit.c \
+tcsi_auth.c \
+tcsi_bind.c \
+tcsi_caps.c \
+tcsi_caps_tpm.c \
+tcsi_certify.c \
+tcsi_changeauth.c \
+tcsi_cmk.c \
+tcsi_context.c \
+tcsi_counter.c \
+tcsi_delegate.c \
+tcsi_dir.c \
+tcsi_ek.c \
+tcsi_evlog.c \
+tcsi_key.c \
+tcsi_maint.c \
+tcsi_migration.c \
+tcsi_nv.c \
+tcsi_oper.c \
+tcsi_own.c \
+tcsi_pcr.c \
+tcsi_ps.c \
+tcsi_quote.c \
+tcsi_quote2.c \
+tcsi_random.c \
+tcsi_seal.c \
+tcsi_selftest.c \
+tcsi_sign.c \
+tcsi_tick.c \
+tcsi_transport.c \
+tcsps.c
+
+.include <bsd.lib.mk>
diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/lib/libtddl/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/lib/libtddl/Makefile Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2012/01/28 02:15:26 christos Exp $
+.include "../Makefile.inc"
+
+.PATH.c: ${DIST}/src/tddl
+
+CPPFLAGS+=-DAPPID=\"TCSD\ TDDL\"
+
+LIB=tddl
+SRCS=tddl.c
+
+.include <bsd.lib.mk>
diff -r f7d09bcfda25 -r ef1650db1e51 crypto/external/cpl/trousers/lib/libtspi/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/cpl/trousers/lib/libtspi/Makefile Sat Jan 28 02:15:25 2012 +0000
@@ -0,0 +1,277 @@
+# $NetBSD: Makefile,v 1.1 2012/01/28 02:15:26 christos Exp $
+.include "../Makefile.inc"
+
+CPPFLAGS+=-DAPPID=\"TSPI\" -DVAR_PREFIX=\"/var\" -DETC_PREFIX=\"/etc\"
+CPPFLAGS+=-DTSS_BUILD_TSS12 -DTSS_BUILD_TRANSPORT -DTSS_BUILD_TICK
+CPPFLAGS+=-DTSS_BUILD_COUNTER -DTSS_BUILD_AUTH -DTSS_BUILD_GETSET
+CPPFLAGS+=-DTSS_BUILD_RANDOM -DTSS_BUILD_CAPS -DTSS_BUILD_CAPS_TPM
+CPPFLAGS+=-DTSS_BUILD_POLICY -DTSS_BUILD_DIR -DTSS_BUILD_PCR_EVENTS
+CPPFLAGS+=-DTSS_BUILD_HASH -DTSS_BUILD_SIGN -DTSS_BUILD_QUOTE
+CPPFLAGS+=-DTSS_BUILD_PCR_COMP -DTSS_BUILD_SEAL -DTSS_BUILD_CHANGEAUTH
+CPPFLAGS+=-DTSS_BUILD_BIND -DTSS_BUILD_OWN -DTSS_BUILD_PS -DTSS_BUILD_ADMIN
+CPPFLAGS+=-DTSS_BUILD_AIK -DTSS_BUILD_EK  -DTSS_BUILD_CERTIFY -DTSS_BUILD_KEY
+CPPFLAGS+=-DTSS_BUILD_MAINT  -DTSS_BUILD_MIGRATION -DTSS_BUILD_PCR_EXTEND
+CPPFLAGS+=-DTSS_BUILD_SELFTEST -DTSS_BUILD_PCRS_LIST -DTSS_BUILD_HASH_LIST
+CPPFLAGS+=-DTSS_BUILD_ENCDATA_LIST -DTSS_BUILD_RSAKEY_LIST -DTSS_BUILD_ASN1
+CPPFLAGS+=-DTSS_BUILD_AUDIT -DTSS_BUILD_SEALX -DTSS_BUILD_QUOTE2
+CPPFLAGS+=-DTSS_BUILD_NV -DTSS_BUILD_DELEGATION -DTSS_BUILD_CMK
+
+TSPI=${DIST}/src/tspi 
+TRSPI=${DIST}/src/trspi 
+.PATH.c: ${TSPI} ${TSPI}/rpc ${TSPI}/rpc/tcstp ${TSPI}/ps ${TRSPI} ${TRSPI}/crypto/openssl
+
+SHLIB_MAJOR=3
+SHLIB_MINOR=0
+
+LIBDPLIBS+=    crypto  ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto
+LIB=tspi
+SRCS=\
+hosttable.c \
+log.c \
+obj.c \
+obj_context.c \
+obj_delfamily.c \
+obj_encdata.c \
+obj_hash.c \
+obj_migdata.c \
+obj_nv.c \
+obj_pcrs.c \
+obj_policy.c \
+obj_rsakey.c \
+obj_tpm.c \
+ps_utils.c \
+rpc.c \
+rpc_admin.c \
+rpc_aik.c \
+rpc_audit.c \
+rpc_auth.c \
+rpc_bind.c \
+rpc_caps.c \
+rpc_caps_tpm.c \
+rpc_certify.c \
+rpc_changeauth.c \
+rpc_cmk.c \
+rpc_context.c \
+rpc_counter.c \
+rpc_delegate.c \
+rpc_dir.c \



Home | Main Index | Thread Index | Old Index