summaryrefslogtreecommitdiff
path: root/mail/courier-imap/options.mk
blob: 64aee0743a5d400c983d9fd26c852e4c490d2ccb (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
# $NetBSD: options.mk,v 1.2 2008/02/21 15:50:29 jlam 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.
###
SUBST_CLASSES+=		tls
SUBST_FILES.tls=	imap/mkimapdcert.in imap/mkpop3dcert.in
SUBST_STAGE.tls=	pre-configure
COURIER_CERTTOOL=	${PREFIX}/bin/certtool
COURIER_OPENSSL=	${PREFIX}/bin/openssl

.if !empty(PKG_OPTIONS:Mcourier-gnutls)
SUBST_SED.tls=		-e "s|@ssllib@|gnutls|g"
.else
USE_TOOLS+=		openssl:run
COURIER_OPENSSL=	${TOOLS_OPENSSL}
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