blob: 5762819b82023903b5c16ccdfce663c9e5ba7c0a (
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
63
64
65
66
|
# $NetBSD: options.mk,v 1.4 2013/01/05 17:05:07 pettai Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.opendkim
PKG_SUPPORTED_OPTIONS= opendkim-filter debug dkim-stats vbr
PKG_SUGGESTED_OPTIONS= opendkim-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:Mopendkim-filter)
EGDIR= ${PREFIX}/share/examples/opendkim
RCD_SCRIPTS= opendkim
CONFIGURE_ARGS+= --enable-filter
CONFIGURE_ARGS+= --with-milter=${PREFIX}
CONF_FILES= ${EGDIR}/opendkim.conf.sample \
${PKG_SYSCONFDIR}/opendkim.conf
INSTALLATION_DIRS= ${EGDIR}
post-install:
${INSTALL_DATA} ${WRKSRC}/opendkim/opendkim.conf.sample \
${DESTDIR}${EGDIR}/opendkim.conf.sample
PLIST_SRC+= ${PKGDIR}/PLIST.filter
.else
CONFIGURE_ARGS+= --disable-filter
.endif
###
### Build with VBR support
###
.if !empty(PKG_OPTIONS:Mvbr)
CONFIGURE_ARGS+= --enable-vbr
PKGCONFIG_OVERRIDE+= libvbr/vbr.pc.in
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
REPLACE_PERL+= stats/opendkim-expire.in
REPLACE_PERL+= stats/opendkim-gengraphs.in
REPLACE_PERL+= stats/opendkim-genstats.in
.else
CONFIGURE_ARGS+= --disable-stats
.endif
|