git: 81d7368674a1 - main - security/tpm2-tools: Enable Feature API and corresponding tools.

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Mon, 08 Jan 2024 12:17:52 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=81d7368674a18d1037ea2ba740fa51c760624717

commit 81d7368674a18d1037ea2ba740fa51c760624717
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-01-08 08:48:14 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-01-08 12:17:38 +0000

    security/tpm2-tools: Enable Feature API and corresponding tools.
    
    Sponsored by:   Serenity Cybersecurity, LLC
---
 security/tpm2-tools/Makefile  |   4 +-
 security/tpm2-tools/pkg-plist | 117 +++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 117 insertions(+), 4 deletions(-)

diff --git a/security/tpm2-tools/Makefile b/security/tpm2-tools/Makefile
index 4bf8a905e7bd..da6b5d519e1f 100644
--- a/security/tpm2-tools/Makefile
+++ b/security/tpm2-tools/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	tpm2-tools
 DISTVERSION=	5.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 MASTER_SITES=	https://github.com/tpm2-software/tpm2-tools/releases/download/${DISTVERSION}/
 
@@ -18,6 +18,6 @@ USES=		compiler:c11 gmake libtool pkgconfig ssl
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto"
-CONFIGURE_ARGS=	--disable-hardening --disable-fapi
+CONFIGURE_ARGS=	--disable-hardening
 
 .include <bsd.port.mk>
diff --git a/security/tpm2-tools/pkg-plist b/security/tpm2-tools/pkg-plist
index 5c7161ae2ba4..179902699f06 100644
--- a/security/tpm2-tools/pkg-plist
+++ b/security/tpm2-tools/pkg-plist
@@ -1,8 +1,8 @@
 bin/tpm2
 bin/tpm2_activatecredential
 bin/tpm2_certify
-bin/tpm2_certifycreation
 bin/tpm2_certifyX509certutil
+bin/tpm2_certifycreation
 bin/tpm2_changeauth
 bin/tpm2_changeeps
 bin/tpm2_changepps
@@ -100,11 +100,49 @@ bin/tpm2_testparms
 bin/tpm2_unseal
 bin/tpm2_verifysignature
 bin/tpm2_zgen2phase
+bin/tss2
+bin/tss2_authorizepolicy
+bin/tss2_changeauth
+bin/tss2_createkey
+bin/tss2_createnv
+bin/tss2_createseal
+bin/tss2_decrypt
+bin/tss2_delete
+bin/tss2_encrypt
+bin/tss2_exportkey
+bin/tss2_exportpolicy
+bin/tss2_getappdata
+bin/tss2_getcertificate
+bin/tss2_getdescription
+bin/tss2_getinfo
+bin/tss2_getplatformcertificates
+bin/tss2_getrandom
+bin/tss2_gettpm2object
+bin/tss2_gettpmblobs
+bin/tss2_import
+bin/tss2_list
+bin/tss2_nvextend
+bin/tss2_nvincrement
+bin/tss2_nvread
+bin/tss2_nvsetbits
+bin/tss2_nvwrite
+bin/tss2_pcrextend
+bin/tss2_pcrread
+bin/tss2_provision
+bin/tss2_quote
+bin/tss2_setappdata
+bin/tss2_setcertificate
+bin/tss2_setdescription
+bin/tss2_sign
+bin/tss2_unseal
+bin/tss2_verifyquote
+bin/tss2_verifysignature
+bin/tss2_writeauthorizenv
 man/man1/tpm2.1.gz
 man/man1/tpm2_activatecredential.1.gz
 man/man1/tpm2_certify.1.gz
-man/man1/tpm2_certifycreation.1.gz
 man/man1/tpm2_certifyX509certutil.1.gz
+man/man1/tpm2_certifycreation.1.gz
 man/man1/tpm2_changeauth.1.gz
 man/man1/tpm2_changeeps.1.gz
 man/man1/tpm2_changepps.1.gz
@@ -202,5 +240,80 @@ man/man1/tpm2_testparms.1.gz
 man/man1/tpm2_unseal.1.gz
 man/man1/tpm2_verifysignature.1.gz
 man/man1/tpm2_zgen2phase.1.gz
+man/man1/tss2_authorizepolicy.1.gz
+man/man1/tss2_changeauth.1.gz
+man/man1/tss2_createkey.1.gz
+man/man1/tss2_createnv.1.gz
+man/man1/tss2_createseal.1.gz
+man/man1/tss2_decrypt.1.gz
+man/man1/tss2_delete.1.gz
+man/man1/tss2_encrypt.1.gz
+man/man1/tss2_exportkey.1.gz
+man/man1/tss2_exportpolicy.1.gz
+man/man1/tss2_getappdata.1.gz
+man/man1/tss2_getcertificate.1.gz
+man/man1/tss2_getdescription.1.gz
+man/man1/tss2_getinfo.1.gz
+man/man1/tss2_getplatformcertificates.1.gz
+man/man1/tss2_getrandom.1.gz
+man/man1/tss2_gettpm2object.1.gz
+man/man1/tss2_gettpmblobs.1.gz
+man/man1/tss2_import.1.gz
+man/man1/tss2_list.1.gz
+man/man1/tss2_nvextend.1.gz
+man/man1/tss2_nvincrement.1.gz
+man/man1/tss2_nvread.1.gz
+man/man1/tss2_nvsetbits.1.gz
+man/man1/tss2_nvwrite.1.gz
+man/man1/tss2_pcrextend.1.gz
+man/man1/tss2_pcrread.1.gz
+man/man1/tss2_provision.1.gz
+man/man1/tss2_quote.1.gz
+man/man1/tss2_setappdata.1.gz
+man/man1/tss2_setcertificate.1.gz
+man/man1/tss2_setdescription.1.gz
+man/man1/tss2_sign.1.gz
+man/man1/tss2_unseal.1.gz
+man/man1/tss2_verifyquote.1.gz
+man/man1/tss2_verifysignature.1.gz
+man/man1/tss2_writeauthorizenv.1.gz
 share/bash-completion/completions/tpm2
 share/bash-completion/completions/tpm2_completion.bash
+share/bash-completion/completions/tss2
+share/bash-completion/completions/tss2_authorizepolicy
+share/bash-completion/completions/tss2_changeauth
+share/bash-completion/completions/tss2_createkey
+share/bash-completion/completions/tss2_createnv
+share/bash-completion/completions/tss2_createseal
+share/bash-completion/completions/tss2_decrypt
+share/bash-completion/completions/tss2_delete
+share/bash-completion/completions/tss2_encrypt
+share/bash-completion/completions/tss2_exportkey
+share/bash-completion/completions/tss2_exportpolicy
+share/bash-completion/completions/tss2_getappdata
+share/bash-completion/completions/tss2_getcertificate
+share/bash-completion/completions/tss2_getdescription
+share/bash-completion/completions/tss2_getinfo
+share/bash-completion/completions/tss2_getplatformcertificates
+share/bash-completion/completions/tss2_getrandom
+share/bash-completion/completions/tss2_gettpm2object
+share/bash-completion/completions/tss2_gettpmblobs
+share/bash-completion/completions/tss2_import
+share/bash-completion/completions/tss2_list
+share/bash-completion/completions/tss2_nvextend
+share/bash-completion/completions/tss2_nvincrement
+share/bash-completion/completions/tss2_nvread
+share/bash-completion/completions/tss2_nvsetbits
+share/bash-completion/completions/tss2_nvwrite
+share/bash-completion/completions/tss2_pcrextend
+share/bash-completion/completions/tss2_pcrread
+share/bash-completion/completions/tss2_provision
+share/bash-completion/completions/tss2_quote
+share/bash-completion/completions/tss2_setappdata
+share/bash-completion/completions/tss2_setcertificate
+share/bash-completion/completions/tss2_setdescription
+share/bash-completion/completions/tss2_sign
+share/bash-completion/completions/tss2_unseal
+share/bash-completion/completions/tss2_verifyquote
+share/bash-completion/completions/tss2_verifysignature
+share/bash-completion/completions/tss2_writeauthorizenv