summaryrefslogtreecommitdiff
path: root/mail/opendkim/options.mk
blob: 9178a1db020740b1f82e0e509c0a71b08752453a (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
# $NetBSD: options.mk,v 1.2 2011/03/13 23:31:31 pettai Exp $

PKG_OPTIONS_VAR=        PKG_OPTIONS.opendkim
PKG_SUPPORTED_OPTIONS=  filter debug dkim-stats vbr
PKG_SUGGESTED_OPTIONS=  filter

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

###
### Debug support
###
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+=	--enable-debug
.else
CONFIGURE_ARGS+=	--disable-debug
.endif

###
### Install filter (milter) plugin
###
.if !empty(PKG_OPTIONS:Mfilter)
EGDIR=		${PREFIX}/share/examples/opendkim
RCD_SCRIPTS=	opendkim

CONFIGURE_ARGS+=	--enable-filter
CONFIGURE_ARGS+=	--with-milter=${PREFIX}
SUBST_CLASSES+=		conf
SUBST_STAGE.conf=	pre-configure
SUBST_FILES.conf=	opendkim/Makefile.in
SUBST_SED.conf+=	-e 's|@EGDIR@|${EGDIR}|g'

#CONF_FILES=		${EGDIR}/opendkim.conf.sample \
#			${PKG_SYSCONFDIR}/opendkim.conf

PLIST_SRC+=		${PKGDIR}/PLIST.filter
.else
CONFIGURE_ARGS+=	--disable-filter
.endif

###
### Build with VBR support
###
.if !empty(PKG_OPTIONS:Mvbr)
CONFIGURE_ARGS+=	--enable-vbr
PLIST_SRC+=		${PKGDIR}/PLIST.vbr
.else
CONFIGURE_ARGS+=	--disable-vbr
.endif

###
### Install stats which outputs opendkim statistics
###
.if !empty(PKG_OPTIONS:Mdkim-stats)
#.include "../../mk/db1.builtin.mk"
CONFIGURE_ARGS+=	--enable-stats
PLIST_SRC+=		${PKGDIR}/PLIST.stats
.else
CONFIGURE_ARGS+=	--disable-stats
.endif