Make port broken if openssl version 1.1.0+ is not available
[openiked-portable] / Makefile
index 78ed6f1d6f254bd55b6a87aa38230007213d2786..4ce702ac5767998f79f765b8d3b1091b41669516 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,25 +1,34 @@
-PORTNAME=              openiked-portable
-PORTVERSION=   6.9.0
-DISTVERSION=   v6.9.0
-CATEGORIES=            security net
+PORTNAME=                      openiked-portable
+PORTVERSION=           6.9.0
+CATEGORIES=                    security net
+MASTER_SITES=          OPENBSD/OpenIKED
+DISTNAME=                      openiked-${PORTVERSION}
 
-MAINTAINER=    portmgr@FreeBSD.org
+MAINTAINER=    david@lapinbilly.eu
 COMMENT=       IKEv2 daemon
 
-LICENSE= ISCL
+LICENSE=       ISCL
 
-LIB_DEPENDS= libevent.so:devel/libevent
+LIB_DEPENDS=   libevent.so:devel/libevent
 
+CONFLICTS_INSTALL=             openiked-[0-9]*
 USES=          cmake ssl
-USE_GITHUB=    yes
-GH_ACCOUNT=    openiked
-GH_TAGNAME=    1b25611c0ac56b5e32f361df70952d6f9037b1b3
-USE_RC_SUBR= iked
-USERS=         _iked
-GROUPS=                _iked
+
+USE_RC_SUBR=   iked
+USERS=                 _iked
+GROUPS=                        _iked
+
+.include <bsd.port.options.mk>
+
+# 12.0-STABLE after updating OpenSSL shared library version numbers.
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200086
+BROKEN_SSL=                            base
+BROKEN_SSL_REASON_base=        needs features only available in OpenSSL 1.1.0+ (DH_get0_pqg)
+.endif
 
 post-install:
        ${MV} ${STAGEDIR}${PREFIX}/etc/iked.conf \
            ${STAGEDIR}${PREFIX}/etc/iked.conf.sample
 
+
 .include <bsd.port.mk>