summaryrefslogtreecommitdiff
path: root/mail/courier-imap/options.mk
blob: 45ee728329b692801ed44ec4b6fc996f9e1e6f9f (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
# $NetBSD: options.mk,v 1.3 2018/01/10 00:19:48 rillig Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.courier-imap
PKG_SUPPORTED_OPTIONS=		courier-gnutls fam
PKG_SUGGESTED_OPTIONS=		# empty

.include "../../mk/bsd.options.mk"

###
### Support using the GNU TLS tools for creating certificates; otherwise
### default to using OpenSSL.
###
COURIER_CERTTOOL=	${PREFIX}/bin/certtool
.if !empty(PKG_OPTIONS:Mcourier-gnutls)
COURIER_OPENSSL=	${PREFIX}/bin/openssl
.else
USE_TOOLS+=		openssl:run
COURIER_OPENSSL=	${TOOLS_OPENSSL}
.endif

SUBST_CLASSES+=		tls
SUBST_FILES.tls=	imap/mkimapdcert.in imap/mkpop3dcert.in
SUBST_STAGE.tls=	pre-configure
.if !empty(PKG_OPTIONS:Mcourier-gnutls)
SUBST_SED.tls=		-e "s|@ssllib@|gnutls|g"
.else
SUBST_SED.tls=		-e "s|@ssllib@|openssl|g"
.endif

###
### File Alteration Monitor support.  This allows multiple imapd or pop3d
### processes to be notified of changes to the underlying maildirs instead
### of needing to poll the maildirs.
###
.if !empty(PKG_OPTIONS:Mfam)
.  include "../../mk/fam.buildlink3.mk"
.endif