37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# $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
|