summaryrefslogtreecommitdiff
path: root/security/titus/Makefile
blob: 36d7f0546e7a7a9a89a2b19edf9a28d3f8f4ef95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$

PORTNAME=	titus
PORTVERSION=	0.3
PORTREVISION=	5
CATEGORIES=	security

MAINTAINER=	feld@FreeBSD.org
COMMENT=	TLS/SSL proxy server

LICENSE=	MIT

USES=		compiler:c++11-lang ssl
USE_RC_SUBR=	titus

USE_GITHUB=	yes
GH_ACCOUNT=	AGWA

USERS=		titus titus-keys
GROUPS=		nogroup

MAKE_ENV+=	MANDIR=${MANPREFIX}/man
CFLAGS+=	-I${OPENSSLINC}
LDFLAGS+=	-L${OPENSSLLIB}

.include <bsd.port.pre.mk>

.if ${SSL_DEFAULT} == base
BROKEN_FreeBSD_12=	member access into incomplete type 'dh_st'
BROKEN_FreeBSD_13=	member access into incomplete type 'dh_st'
.endif

post-patch:
	${REINPLACE_CMD} 's|/var/lib/titus/empty|/var/empty|' ${WRKSRC}/titus.conf.example

post-install:
	${INSTALL_DATA} ${WRKSRC}/titus.conf.example ${STAGEDIR}${PREFIX}/etc/titus.conf.sample

.include <bsd.port.post.mk>