blob: c1fee1ed162587c49880627d938bd9b6ad92e57d (
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
|
# $NetBSD: options.mk,v 1.6 2008/04/20 17:36:15 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.dkim-milter
PKG_SUPPORTED_OPTIONS= inet6 dkim-milter-arlib debug dkim-stats
.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
###
### 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
|