git: 27374b683245 - main - security/openssl_tpm_engine: Mark DEPRECATED

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 03 Jun 2023 14:09:02 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=27374b683245c820e740af8faa66aa370d9475ce

commit 27374b683245c820e740af8faa66aa370d9475ce
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-03 12:47:27 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-03 14:08:48 +0000

    security/openssl_tpm_engine: Mark DEPRECATED
    
    - Requires older OpenSSL implementation
    - Last upstream release was in 2017
    - Utilise IGNORE_SSL instead of SSL_DEFAULT chech
    - Mark BROKEN_SSL for openssl 30 and openssl31
    - Set EXPIRATION_DATE to 2023-07-02
    
    Approved by:    portmgr (blanket)
---
 security/openssl_tpm_engine/Makefile | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/security/openssl_tpm_engine/Makefile b/security/openssl_tpm_engine/Makefile
index 549c7434a8e7..587074e17f56 100644
--- a/security/openssl_tpm_engine/Makefile
+++ b/security/openssl_tpm_engine/Makefile
@@ -11,8 +11,15 @@ WWW=		https://github.com/mgerstner/openssl_tpm_engine
 LICENSE=	OpenSSL
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${LOCALBASE}/sbin/tcsd:security/trousers
+DEPRECATED=	Requires older openssl and upstream unmaintained since 2017
+EXPIRATION_DATE=	2023-07-02
+BROKEN_SSL=		openssl30 openssl31
+BROKEN_SSL_REASON=	Requires openssl 1.0.x or 1.1.x
+IGNORE_SSL=		libressl libressl-devel
+IGNORE_SSL_REASON=	Detected LibreSSL (RAND_METHOD structure unsupported)
+
 LIB_DEPENDS=	libtspi.so:security/trousers
+RUN_DEPENDS=	${LOCALBASE}/sbin/tcsd:security/trousers
 
 USES=		autoreconf gmake libtool localbase ssl pkgconfig
 USE_GITHUB=	yes
@@ -29,12 +36,6 @@ PORTEXAMPLES=	openssl.cnf.sample
 
 OPTIONS_DEFINE=	EXAMPLES
 
-.include <bsd.port.pre.mk>
-
-.if ${SSL_DEFAULT:Mlibressl*}
-IGNORE=	Detected LibreSSL (RAND_METHOD structure unsupported)
-.endif
-
 post-patch:
 	(${CAT} ${OPENSSLINC}/openssl/opensslv.h; \
 	 ${ECHO_CMD} "#if OPENSSL_VERSION_NUMBER < 0x10100000L"; \
@@ -60,4 +61,4 @@ post-install-EXAMPLES-on:
 	${INSTALL_DATA} ${WRKSRC}/dist/openssl.cnf.sample \
 	    ${STAGEDIR}${EXAMPLESDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>