# Created by: John-Mark Gurney <jmg@FreeBSD.org>
# $FreeBSD: tags/RELEASE_12_1_0/security/tcpcrypt/Makefile 497730 2019-04-03 14:19:25Z antoine $

PORTNAME=	tcpcrypt
DISTVERSIONPREFIX=	v
DISTVERSION=	0.3-rc1
CATEGORIES=	security net

MAINTAINER=	jmg@FreeBSD.org
COMMENT=	TCPCrypt userland divert daemon

LICENSE=	BSD2CLAUSE

USE_GITHUB=	yes
GH_ACCOUNT=	scslab

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
USES=		autoreconf libtool ssl
CFLAGS+=	-I${OPENSSLINC}
LDFLAGS+=	-L${OPENSSLLIB}
INSTALL_TARGET=	install-strip

USERS=		tcpcryptd
GROUPS=		tcpcryptd

.include <bsd.port.pre.mk>

.if ${SSL_DEFAULT} == base
BROKEN_FreeBSD_12=	incomplete definition of type 'struct rsa_st'
BROKEN_FreeBSD_13=	incomplete definition of type 'struct rsa_st'
.endif

.include <bsd.port.post.mk>
