summaryrefslogtreecommitdiff
path: root/mail/solid-pop3d/options.mk
blob: 6903a013f36c03f11a389044fd3cbe62e250f635 (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 2007/09/07 22:07:31 jlam Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.solid-pop3d
PKG_SUPPORTED_OPTIONS=	inet6
PKG_SUPPORTED_OPTIONS+=	solid-pop3d-aliases
PKG_SUPPORTED_OPTIONS+=	solid-pop3d-apop
PKG_SUPPORTED_OPTIONS+=	solid-pop3d-standalone

PKG_OPTIONS_LEGACY_VARS+=	SPOP3D_ENABLE_ALIASES:solid-pop3d-aliases
PKG_OPTIONS_LEGACY_VARS+=	SPOP3D_ENABLE_APOP:solid-pop3d-apop
PKG_OPTIONS_LEGACY_VARS+=	SPOP3D_ENABLE_STANDALONE:solid-pop3d-standalone

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

###
### IPv6 support
###
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--enable-ipv6
.endif

###
### Support user names mapping and non-IP-based virtuals
###
.if !empty(PKG_OPTIONS:Msolid-pop3d-aliases)
CONFIGURE_ARGS+=	--enable-mapping
CONFIGURE_ARGS+=	--enable-nonip
.endif

###
### APOP support
###
.if !empty(PKG_OPTIONS:Msolid-pop3d-apop)
CONFIGURE_ARGS+=	--enable-apop
PLIST_SRC+=		${PKGDIR}/PLIST.apop
.endif

###
### Run as standalone daemon instead of via inetd
###
.if !empty(PKG_OPTIONS:Msolid-pop3d-standalone)
CONFIGURE_ARGS+=	--enable-standalone
CONFIGURE_ARGS+=	--enable-connect
.endif