diff --git a/security/tpm2-tools/Makefile b/security/tpm2-tools/Makefile index 0f226e79b755..4bf8a905e7bd 100644 --- a/security/tpm2-tools/Makefile +++ b/security/tpm2-tools/Makefile @@ -1,22 +1,23 @@ PORTNAME= tpm2-tools DISTVERSION= 5.5 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= https://github.com/tpm2-software/tpm2-tools/releases/download/${DISTVERSION}/ MAINTAINER= tstruk@gmail.com COMMENT= TPM2 tools WWW= https://github.com/tpm2-software/tpm2-tools LICENSE= BSD2CLAUSE LIB_DEPENDS= libtss2-esys.so:security/tpm2-tss \ libcurl.so:ftp/curl \ libuuid.so:misc/e2fsprogs-libuuid 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 .include diff --git a/security/tpm2-tools/files/patch-configure b/security/tpm2-tools/files/patch-configure new file mode 100644 index 000000000000..32381edd529c --- /dev/null +++ b/security/tpm2-tools/files/patch-configure @@ -0,0 +1,20 @@ +--- configure.orig 2023-02-13 15:09:39 UTC ++++ configure +@@ -14030,7 +14030,7 @@ if ${ac_cv_lib_crypto_EVP_sm3+:} false; then : + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lcrypto $LIBS" ++LIBS="${CRYPTO_LIBS} $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + +@@ -14073,7 +14073,7 @@ if ${ac_cv_lib_crypto_EVP_sm4_cfb128+:} false; then : + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lcrypto $LIBS" ++LIBS="${CRYPTO_LIBS} $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +