summaryrefslogtreecommitdiff
path: root/mail/dkim-milter/options.mk
blob: f9a0d84a553d098002177e588b5646aa8a0b996e (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $NetBSD: options.mk,v 1.7 2009/02/28 15:44:55 manu Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.dkim-milter
PKG_SUPPORTED_OPTIONS=	inet6 dkim-milter-arlib debug dkim-stats without-libsm

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

###
### IPv6 support.
###
.if !empty(PKG_OPTIONS:Minet6)
SUBST_SED.libs+=	-e 's|@INET6@||g'
.else
SUBST_SED.libs+=	-e 's|@INET6@|dnl|g'
.endif

###
### Debug support
###
.if !empty(PKG_OPTIONS:Mdebug)
SUBST_SED.libs+=	-e 's|@DEBUG@||g'
.else
SUBST_SED.libs+=	-e 's|@DEBUG@|dnl|g'
.endif

###
### Use asynchronous DNS resolver library shipping with dkim-milter.
###
PLIST_VARS+=		arlib
.if !empty(PKG_OPTIONS:Mdkim-milter-arlib)
PLIST.arlib=		yes
SUBST_SED.libs+=	-e 's|@RESOLVLIB@||g'
SUBST_SED.libs+=	-e 's|@ARLIB@||g'
.else
SUBST_SED.libs+=	-e 's|@RESOLVLIB@|resolv bind|g'
SUBST_SED.libs+=	-e 's|@ARLIB@|dnl|g'
.endif

###
### Build with native strl*()
###
.if !empty(PKG_OPTIONS:Mwithout-libsm)
SUBST_SED.libs+=	-e 's|@WITHOUTLIBSM@||g'
.else
SUBST_SED.libs+=	-e 's|@WITHOUTLIBSM@|dnl|g'
.endif

###
### Install dkim-stats(8) which outputs dkim-milter statistics
###
PLIST_VARS+=		stats
.if !empty(PKG_OPTIONS:Mdkim-stats)
.include "../../mk/db1.builtin.mk"
PLIST.stats=		yes
SUBST_SED.libs+=	-e 's|@STATS@||g'
SUBST_SED.libs+=	-e 's|@MAN_STATS@|dkim-stats.8|g'
SUBST_SED.libs+=	-e 's|@DBLIB@|db|g'
.else
SUBST_SED.libs+=	-e 's|@STATS@|dnl|g'
SUBST_SED.libs+=	-e 's|@MAN_STATS@||g'
SUBST_SED.libs+=	-e 's|@DBLIB@||g'
.endif