blob: 7bc06f7dc4a539dfb665af50904122a266d713df (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# $NetBSD: options.mk,v 1.9 2009/09/22 16:52:02 tron Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.milter-greylist
PKG_OPTIONS_REQUIRED_GROUPS= mta
PKG_OPTIONS_GROUP.mta= postfix-milter sendmail-milter
PKG_SUPPORTED_OPTIONS= curl dnsrbl drac ldap p0f spamassassin spf
PKG_SUGGESTED_OPTIONS= dnsrbl p0f sendmail-milter spamassassin spf
.include "../../mk/bsd.options.mk"
###
### URL checking
###
.if !empty(PKG_OPTIONS:Mcurl)
.include "../../www/curl/buildlink3.mk"
CONFIGURE_ARGS+= --with-libcurl=${BUILDLINK_PREFIX.curl}
.endif
###
### DNS Realtime Black List
###
.if !empty(PKG_OPTIONS:Mdnsrbl)
CONFIGURE_ARGS+= --enable-dnsrbl --with-thread-safe-resolver
.endif
###
### Dynamic Relay Authorization Control
###
.if empty(PKG_OPTIONS:Mdrac)
CONFIGURE_ARGS+= --disable-drac
.else
DRACD_DB?= /etc/mail/dracd.db
CONFIGURE_ARGS+= --enable-drac --with-drac-db=${DRACD_DB}
.endif
###
### LDAP support
###
.if !empty(PKG_OPTIONS:Mldap)
.include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-openldap=${BUILDLINK_PREFIX.openldap-client}
.endif
###
### P0f support
###
.if !empty(PKG_OPTIONS:Mp0f)
CONFIGURE_ARGS+= --enable-p0f
.endif
###
### Postfix support
###
.if !empty(PKG_OPTIONS:Mpostfix-milter)
CONFIGURE_ARGS+= --enable-postfix
POSTFIX_QUEUE_DIR?= ${VARBASE}/spool/postfix
PKG_GROUPS?= postfix
PKG_USERS?= postfix:postfix
PKG_GECOS.postfix= Postfix User
PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR}
MILTER_USER= postfix
MILTER_GROUP= postfix
.endif
###
### Sendmail support
###
.if !empty(PKG_OPTIONS:Msendmail-milter)
PKG_GROUPS= smmsp
PKG_USERS= smmsp:smmsp
PKG_GECOS.smmsp= Sendmail Message Submission Program
MILTER_USER= smmsp
MILTER_GROUP= smmsp
.endif
###
### SpamAssassin support
###
.if !empty(PKG_OPTIONS:Mspamassassin)
CONFIGURE_ARGS+= --enable-spamassassin
.endif
###
### Sender Policy Framework
###
.if empty(PKG_OPTIONS:Mspf)
CONFIGURE_ARGS+= --disable-libspf2
.else
.include "../../mail/libspf2/buildlink3.mk"
CONFIGURE_ARGS+= --with-libspf2=${BUILDLINK_PREFIX.libspf2}
.endif
|