-# $FreeBSD: head/security/openiked-portable/Makefile david@lapinbilly.eu
+PORTNAME= openiked-portable
+PORTVERSION= 6.9.0
+CATEGORIES= security net
+MASTER_SITES= OPENBSD/OpenIKED
+DISTNAME= openiked-${PORTVERSION}
-PORTNAME=openiked-portable
-CATEGORIES= security net
-
-MAINTAINER= portmgr@FreeBSD.org
+MAINTAINER= david@lapinbilly.eu
COMMENT= IKEv2 daemon
LICENSE= ISCL
LIB_DEPENDS= libevent.so:devel/libevent
+CONFLICTS_INSTALL= openiked-[0-9]*
USES= cmake ssl
-USE_GITHUB= yes
-GH_ACCOUNT= openiked
-GH_TAGNAME= 632d834f8f7694b56dcc522eb377570617e8fc5a
-DISTVERSION= g20210317
-
-USE_RC_SUBR= iked
-USERS= _iked
-GROUPS= _iked
+USE_RC_SUBR= iked
+USERS= _iked
+GROUPS= _iked
post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/iked.conf \
${STAGEDIR}${PREFIX}/etc/iked.conf.sample
+
.include <bsd.port.mk>