update Sun Jun 20 12:37:00 PDT 2010
[pkgsrc.git] / mail / milter-greylist / options.mk
1 # $NetBSD: options.mk,v 1.9 2009/09/22 16:52:02 tron Exp $
2
3 PKG_OPTIONS_VAR=                PKG_OPTIONS.milter-greylist
4 PKG_OPTIONS_REQUIRED_GROUPS=    mta
5 PKG_OPTIONS_GROUP.mta=          postfix-milter sendmail-milter
6 PKG_SUPPORTED_OPTIONS=          curl dnsrbl drac ldap p0f spamassassin spf
7 PKG_SUGGESTED_OPTIONS=          dnsrbl p0f sendmail-milter spamassassin spf
8
9 .include "../../mk/bsd.options.mk"
10
11 ###
12 ### URL checking
13 ###
14 .if !empty(PKG_OPTIONS:Mcurl)
15 .include "../../www/curl/buildlink3.mk"
16
17 CONFIGURE_ARGS+=        --with-libcurl=${BUILDLINK_PREFIX.curl}
18 .endif
19
20 ###
21 ### DNS Realtime Black List
22 ###
23 .if !empty(PKG_OPTIONS:Mdnsrbl)
24 CONFIGURE_ARGS+=        --enable-dnsrbl --with-thread-safe-resolver
25 .endif
26
27 ###
28 ### Dynamic Relay Authorization Control
29 ###
30 .if empty(PKG_OPTIONS:Mdrac)
31 CONFIGURE_ARGS+=        --disable-drac
32 .else
33 DRACD_DB?=              /etc/mail/dracd.db
34
35 CONFIGURE_ARGS+=        --enable-drac --with-drac-db=${DRACD_DB}
36 .endif
37
38 ###
39 ### LDAP support
40 ###
41 .if !empty(PKG_OPTIONS:Mldap)
42 .include "../../databases/openldap-client/buildlink3.mk"
43
44 CONFIGURE_ARGS+=        --with-openldap=${BUILDLINK_PREFIX.openldap-client}
45 .endif
46
47 ###
48 ### P0f support
49 ###
50 .if !empty(PKG_OPTIONS:Mp0f)
51 CONFIGURE_ARGS+=        --enable-p0f
52 .endif
53
54 ###
55 ### Postfix support
56 ###
57 .if !empty(PKG_OPTIONS:Mpostfix-milter)
58 CONFIGURE_ARGS+=        --enable-postfix
59
60 POSTFIX_QUEUE_DIR?=     ${VARBASE}/spool/postfix
61
62 PKG_GROUPS?=            postfix
63 PKG_USERS?=             postfix:postfix
64 PKG_GECOS.postfix=      Postfix User
65 PKG_HOME.postfix=       ${POSTFIX_QUEUE_DIR}
66
67 MILTER_USER=            postfix
68 MILTER_GROUP=           postfix
69 .endif
70
71 ###
72 ### Sendmail support
73 ###
74 .if !empty(PKG_OPTIONS:Msendmail-milter)
75 PKG_GROUPS=             smmsp
76 PKG_USERS=              smmsp:smmsp
77 PKG_GECOS.smmsp=        Sendmail Message Submission Program
78
79 MILTER_USER=            smmsp
80 MILTER_GROUP=           smmsp
81 .endif
82
83 ###
84 ### SpamAssassin support
85 ###
86 .if !empty(PKG_OPTIONS:Mspamassassin)
87 CONFIGURE_ARGS+=        --enable-spamassassin
88 .endif
89
90 ###
91 ### Sender Policy Framework
92 ###
93 .if empty(PKG_OPTIONS:Mspf)
94 CONFIGURE_ARGS+=        --disable-libspf2
95 .else
96 .include "../../mail/libspf2/buildlink3.mk"
97
98 CONFIGURE_ARGS+=        --with-libspf2=${BUILDLINK_PREFIX.libspf2}
99 .endif