summaryrefslogtreecommitdiff
path: root/mail/maildrop/options.mk
blob: 9cefb0154d2dde24d7694b82b8b15c79b09c9220 (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
41
42
43
44
# $NetBSD: options.mk,v 1.1 2019/05/24 13:17:57 hauke Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.maildrop
PKG_SUPPORTED_OPTIONS=	authlib dovecot-auth dotlock flock
PKG_SUGGESTED_OPTIONS=	authlib flock

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

###
### Support using courier-authlib to look up mail account information.
###
.if !empty(PKG_OPTIONS:Mauthlib)
CONFIGURE_ARGS+=	--enable-authlib
.  include "../../security/courier-authlib/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-authlib
.endif

###
### Support using dovecot auth to look up mail account information.
###
.if !empty(PKG_OPTIONS:Mdovecot-auth)
CONFIGURE_ARGS+=	--enable-dovecotauth
.  include "../../mail/dovecot2/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-dovecotauth
.endif

###
### Select mailbox locking mechanism in accordance with other mail agents
###
.if !empty(PKG_OPTIONS:Mdotlock)
CONFIGURE_ARGS+=	--enable-use-dotlock=1
.else
CONFIGURE_ARGS+=	--enable-use-dotlock=0
.endif

# 'flock' stands for whatever configure finds most suitable on this
# machine from fcntl(2), lockf(3), flock(2)
.if !empty(PKG_OPTIONS:Mflock)
CONFIGURE_ARGS+=	--enable-use-flock=1
.else
CONFIGURE_ARGS+=	--enable-use-flock=0
.endif