Index: head/security/Makefile =================================================================== --- head/security/Makefile +++ head/security/Makefile @@ -1281,6 +1281,7 @@ SUBDIR += tor-devel SUBDIR += totp-cli SUBDIR += tpm-tools + SUBDIR += tpm2-tools SUBDIR += tpm2-tss SUBDIR += trezord SUBDIR += trinokiller Index: head/security/tpm2-tools/Makefile =================================================================== --- head/security/tpm2-tools/Makefile +++ head/security/tpm2-tools/Makefile @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= tpm2-tools +DISTVERSION= 4.0 +CATEGORIES= security +MASTER_SITES= https://github.com/tpm2-software/tpm2-tools/releases/download/${DISTVERSION}/ + +MAINTAINER= tstruk@gmail.com +COMMENT= TPM2 tools + +LICENSE= BSD2CLAUSE + +LIB_DEPENDS= libtss2-esys.so:security/tpm2-tss \ + libcurl.so:ftp/curl + +USES= gmake libtool pkgconfig ssl + +GNU_CONFIGURE= yes +CONFIGURE_ENV= CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" +CONFIGURE_ARGS= --disable-hardening + +BROKEN_SSL= openssl + +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 +BROKEN_SSL+= base +.endif + +.include Index: head/security/tpm2-tools/distinfo =================================================================== --- head/security/tpm2-tools/distinfo +++ head/security/tpm2-tools/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1568138495 +SHA256 (tpm2-tools-4.0.tar.gz) = 1e2c6946072235ab903777aa7db0191ab3d87167587dd164d4375b7790e4e00a +SIZE (tpm2-tools-4.0.tar.gz) = 1129181 Index: head/security/tpm2-tools/pkg-descr =================================================================== --- head/security/tpm2-tools/pkg-descr +++ head/security/tpm2-tools/pkg-descr @@ -0,0 +1,4 @@ +This port contains the code for the TPM (Trusted Platform Module) 2.0 tools +based on tpm2-tss. + +WWW: https://github.com/tpm2-software/tpm2-tools Index: head/security/tpm2-tools/pkg-plist =================================================================== --- head/security/tpm2-tools/pkg-plist +++ head/security/tpm2-tools/pkg-plist @@ -0,0 +1,193 @@ +bin/tpm2_activatecredential +bin/tpm2_certify +bin/tpm2_changeauth +bin/tpm2_checkquote +bin/tpm2_clear +bin/tpm2_clearcontrol +bin/tpm2_create +bin/tpm2_createak +bin/tpm2_createek +bin/tpm2_createpolicy +bin/tpm2_createprimary +bin/tpm2_dictionarylockout +bin/tpm2_duplicate +bin/tpm2_encryptdecrypt +bin/tpm2_evictcontrol +bin/tpm2_flushcontext +bin/tpm2_getcap +bin/tpm2_getekcertificate +bin/tpm2_getrandom +bin/tpm2_gettestresult +bin/tpm2_hash +bin/tpm2_hierarchycontrol +bin/tpm2_hmac +bin/tpm2_import +bin/tpm2_incrementalselftest +bin/tpm2_load +bin/tpm2_loadexternal +bin/tpm2_makecredential +bin/tpm2_nvdefine +bin/tpm2_nvincrement +bin/tpm2_nvread +bin/tpm2_nvreadlock +bin/tpm2_nvreadpublic +bin/tpm2_nvundefine +bin/tpm2_nvwrite +bin/tpm2_pcrallocate +bin/tpm2_pcrevent +bin/tpm2_pcrextend +bin/tpm2_pcrread +bin/tpm2_pcrreset +bin/tpm2_policyauthorize +bin/tpm2_policycommandcode +bin/tpm2_policyduplicationselect +bin/tpm2_policylocality +bin/tpm2_policyor +bin/tpm2_policypassword +bin/tpm2_policypcr +bin/tpm2_policyrestart +bin/tpm2_policysecret +bin/tpm2_print +bin/tpm2_quote +bin/tpm2_rc_decode +bin/tpm2_readpublic +bin/tpm2_rsadecrypt +bin/tpm2_rsaencrypt +bin/tpm2_selftest +bin/tpm2_send +bin/tpm2_sign +bin/tpm2_startauthsession +bin/tpm2_startup +bin/tpm2_stirrandom +bin/tpm2_testparms +bin/tpm2_unseal +bin/tpm2_verifysignature +man/man1/tpm2_activatecredential.1.gz +man/man1/tpm2_certify.1.gz +man/man1/tpm2_changeauth.1.gz +man/man1/tpm2_checkquote.1.gz +man/man1/tpm2_clear.1.gz +man/man1/tpm2_clearcontrol.1.gz +man/man1/tpm2_create.1.gz +man/man1/tpm2_createak.1.gz +man/man1/tpm2_createek.1.gz +man/man1/tpm2_createpolicy.1.gz +man/man1/tpm2_createprimary.1.gz +man/man1/tpm2_dictionarylockout.1.gz +man/man1/tpm2_duplicate.1.gz +man/man1/tpm2_encryptdecrypt.1.gz +man/man1/tpm2_evictcontrol.1.gz +man/man1/tpm2_flushcontext.1.gz +man/man1/tpm2_getcap.1.gz +man/man1/tpm2_getekcertificate.1.gz +man/man1/tpm2_getrandom.1.gz +man/man1/tpm2_gettestresult.1.gz +man/man1/tpm2_hash.1.gz +man/man1/tpm2_hierarchycontrol.1.gz +man/man1/tpm2_hmac.1.gz +man/man1/tpm2_import.1.gz +man/man1/tpm2_incrementalselftest.1.gz +man/man1/tpm2_load.1.gz +man/man1/tpm2_loadexternal.1.gz +man/man1/tpm2_makecredential.1.gz +man/man1/tpm2_nvdefine.1.gz +man/man1/tpm2_nvincrement.1.gz +man/man1/tpm2_nvread.1.gz +man/man1/tpm2_nvreadlock.1.gz +man/man1/tpm2_nvreadpublic.1.gz +man/man1/tpm2_nvundefine.1.gz +man/man1/tpm2_nvwrite.1.gz +man/man1/tpm2_pcrallocate.1.gz +man/man1/tpm2_pcrevent.1.gz +man/man1/tpm2_pcrextend.1.gz +man/man1/tpm2_pcrread.1.gz +man/man1/tpm2_pcrreset.1.gz +man/man1/tpm2_policyauthorize.1.gz +man/man1/tpm2_policycommandcode.1.gz +man/man1/tpm2_policyduplicationselect.1.gz +man/man1/tpm2_policylocality.1.gz +man/man1/tpm2_policyor.1.gz +man/man1/tpm2_policypassword.1.gz +man/man1/tpm2_policypcr.1.gz +man/man1/tpm2_policyrestart.1.gz +man/man1/tpm2_policysecret.1.gz +man/man1/tpm2_print.1.gz +man/man1/tpm2_quote.1.gz +man/man1/tpm2_rc_decode.1.gz +man/man1/tpm2_readpublic.1.gz +man/man1/tpm2_rsadecrypt.1.gz +man/man1/tpm2_rsaencrypt.1.gz +man/man1/tpm2_selftest.1.gz +man/man1/tpm2_send.1.gz +man/man1/tpm2_sign.1.gz +man/man1/tpm2_startauthsession.1.gz +man/man1/tpm2_startup.1.gz +man/man1/tpm2_stirrandom.1.gz +man/man1/tpm2_testparms.1.gz +man/man1/tpm2_unseal.1.gz +man/man1/tpm2_verifysignature.1.gz +share/bash-completion/completions/tpm2_activatecredential +share/bash-completion/completions/tpm2_certify +share/bash-completion/completions/tpm2_changeauth +share/bash-completion/completions/tpm2_checkquote +share/bash-completion/completions/tpm2_clear +share/bash-completion/completions/tpm2_clearcontrol +share/bash-completion/completions/tpm2_completion.bash +share/bash-completion/completions/tpm2_create +share/bash-completion/completions/tpm2_createak +share/bash-completion/completions/tpm2_createek +share/bash-completion/completions/tpm2_createpolicy +share/bash-completion/completions/tpm2_createprimary +share/bash-completion/completions/tpm2_dictionarylockout +share/bash-completion/completions/tpm2_duplicate +share/bash-completion/completions/tpm2_encryptdecrypt +share/bash-completion/completions/tpm2_evictcontrol +share/bash-completion/completions/tpm2_flushcontext +share/bash-completion/completions/tpm2_getcap +share/bash-completion/completions/tpm2_getekcertificate +share/bash-completion/completions/tpm2_getrandom +share/bash-completion/completions/tpm2_gettestresult +share/bash-completion/completions/tpm2_hash +share/bash-completion/completions/tpm2_hierarchycontrol +share/bash-completion/completions/tpm2_hmac +share/bash-completion/completions/tpm2_import +share/bash-completion/completions/tpm2_incrementalselftest +share/bash-completion/completions/tpm2_load +share/bash-completion/completions/tpm2_loadexternal +share/bash-completion/completions/tpm2_makecredential +share/bash-completion/completions/tpm2_nvdefine +share/bash-completion/completions/tpm2_nvincrement +share/bash-completion/completions/tpm2_nvread +share/bash-completion/completions/tpm2_nvreadlock +share/bash-completion/completions/tpm2_nvreadpublic +share/bash-completion/completions/tpm2_nvundefine +share/bash-completion/completions/tpm2_nvwrite +share/bash-completion/completions/tpm2_pcrallocate +share/bash-completion/completions/tpm2_pcrevent +share/bash-completion/completions/tpm2_pcrextend +share/bash-completion/completions/tpm2_pcrread +share/bash-completion/completions/tpm2_pcrreset +share/bash-completion/completions/tpm2_policyauthorize +share/bash-completion/completions/tpm2_policycommandcode +share/bash-completion/completions/tpm2_policyduplicationselect +share/bash-completion/completions/tpm2_policylocality +share/bash-completion/completions/tpm2_policyor +share/bash-completion/completions/tpm2_policypassword +share/bash-completion/completions/tpm2_policypcr +share/bash-completion/completions/tpm2_policyrestart +share/bash-completion/completions/tpm2_policysecret +share/bash-completion/completions/tpm2_print +share/bash-completion/completions/tpm2_quote +share/bash-completion/completions/tpm2_rc_decode +share/bash-completion/completions/tpm2_readpublic +share/bash-completion/completions/tpm2_rsadecrypt +share/bash-completion/completions/tpm2_rsaencrypt +share/bash-completion/completions/tpm2_selftest +share/bash-completion/completions/tpm2_send +share/bash-completion/completions/tpm2_sign +share/bash-completion/completions/tpm2_startauthsession +share/bash-completion/completions/tpm2_startup +share/bash-completion/completions/tpm2_stirrandom +share/bash-completion/completions/tpm2_testparms +share/bash-completion/completions/tpm2_unseal +share/bash-completion/completions/tpm2_verifysignature