git: eca308db63ad - main - security/openscep: Mark DEPRECATED

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 21 Jan 2023 18:31:13 UTC
The branch main has been updated by bofh:

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

commit eca308db63ad45220ee35b405b5c3b7d67a14c03
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-01-21 18:25:36 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-01-21 18:29:18 +0000

    security/openscep: Mark DEPRECATED
    
    - This port is based on the RFC
      https://datatracker.ietf.org/doc/draft-nourse-scep/ which has been
      replaced with https://datatracker.ietf.org/doc/rfc8894/. Additionally
      this application has not been updated since 2003. Hence mark this port
      as DEPRECATED
    - Set EXPIRATION_DATE to 2023-03-31
    - Add LICENSE GPLv2
    - Refactor the SSL IGNORE and SSL BROKEN macros
---
 security/openscep/Makefile | 35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)

diff --git a/security/openscep/Makefile b/security/openscep/Makefile
index 9e1aef4b5227..1835c7ba6232 100644
--- a/security/openscep/Makefile
+++ b/security/openscep/Makefile
@@ -8,38 +8,37 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Open source scep server
 WWW=		http://openscep.othello.ch/
 
-CONFLICTS_INSTALL=	nss-3.*
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+DEPRECATED=	Do not support recent RFC 8894
+EXPIRATION_DATE=	2023-03-31
 
 USES=		apache:2.2+ gmake libtool ssl
-USE_OPENLDAP=	yes
-GNU_CONFIGURE=	yes
+BROKEN_SSL=	base
+BROKEN_SSL_REASON=	unexpected type name 'issuer_and_subject_t': expected expression
+IGNORE_SSL=	libressl libressl-devel
+IGNORE_SSL_REASON=	unknown ASN1 functions
 USE_LDCONFIG=	yes
+USE_OPENLDAP=	yes
 
-CPPFLAGS+=	-I${OPENSSLINC} -I${LOCALBASE}/include
-LIBS+=		-L${OPENSSLLIB} -L${LOCALBASE}/lib
+GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-html-install-dir="${PREFIX}/www/openscep" \
 		--with-cgi-install-dir="${PREFIX}/www/cgi-bin/openscep" \
 		--with-openscep-dir="${PREFIX}/etc/openscep" \
 		--with-pkiclientexe="${PREFIX}/www/cgi-bin/pkiclient.exe"
 
+CPPFLAGS+=	-I${OPENSSLINC} -I${LOCALBASE}/include
+LIBS+=		-L${OPENSSLLIB} -L${LOCALBASE}/lib
+
 CONF_DIR=	${PREFIX}/etc/${PORTNAME}
 LOCAL_CONF_FILES=	openscep.cnf openscep.ldif openscep.schema slapd.conf
 
+CONFLICTS_INSTALL=	nss-3.*
+
 SUB_FILES=	pkg-message
 SUB_LIST=	CONF_DIR="${CONF_DIR}" CONF_FILES="${LOCAL_CONF_FILES}"
 
-.include <bsd.port.pre.mk>
-
-.if ${SSL_DEFAULT} == base
-BROKEN_FreeBSD_12=	unexpected type name 'issuer_and_subject_t': expected expression
-BROKEN_FreeBSD_13=	unexpected type name 'issuer_and_subject_t': expected expression
-BROKEN_FreeBSD_14=	unexpected type name 'issuer_and_subject_t': expected expression
-.endif
-
-.if ${SSL_DEFAULT:Mlibressl*}
-IGNORE=	Detected LibreSSL (unknown ASN1 functions)
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e '/^subdirs=/ s|libltdl||' ${WRKSRC}/configure
 	@${REINPLACE_CMD} -e '/^SUBDIRS =/ s|libltdl||' ${WRKSRC}/Makefile.in
@@ -67,4 +66,4 @@ post-install:
 	${INSTALL_DATA} ${WRKSRC}/ldap/${f} ${STAGEDIR}${CONF_DIR}/${f}.sample
 .endfor
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>