1 # $NetBSD: options.mk,v 1.9 2009/09/22 16:52:02 tron Exp $
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
9 .include "../../mk/bsd.options.mk"
14 .if !empty(PKG_OPTIONS:Mcurl)
15 .include "../../www/curl/buildlink3.mk"
17 CONFIGURE_ARGS+= --with-libcurl=${BUILDLINK_PREFIX.curl}
21 ### DNS Realtime Black List
23 .if !empty(PKG_OPTIONS:Mdnsrbl)
24 CONFIGURE_ARGS+= --enable-dnsrbl --with-thread-safe-resolver
28 ### Dynamic Relay Authorization Control
30 .if empty(PKG_OPTIONS:Mdrac)
31 CONFIGURE_ARGS+= --disable-drac
33 DRACD_DB?= /etc/mail/dracd.db
35 CONFIGURE_ARGS+= --enable-drac --with-drac-db=${DRACD_DB}
41 .if !empty(PKG_OPTIONS:Mldap)
42 .include "../../databases/openldap-client/buildlink3.mk"
44 CONFIGURE_ARGS+= --with-openldap=${BUILDLINK_PREFIX.openldap-client}
50 .if !empty(PKG_OPTIONS:Mp0f)
51 CONFIGURE_ARGS+= --enable-p0f
57 .if !empty(PKG_OPTIONS:Mpostfix-milter)
58 CONFIGURE_ARGS+= --enable-postfix
60 POSTFIX_QUEUE_DIR?= ${VARBASE}/spool/postfix
63 PKG_USERS?= postfix:postfix
64 PKG_GECOS.postfix= Postfix User
65 PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR}
74 .if !empty(PKG_OPTIONS:Msendmail-milter)
76 PKG_USERS= smmsp:smmsp
77 PKG_GECOS.smmsp= Sendmail Message Submission Program
84 ### SpamAssassin support
86 .if !empty(PKG_OPTIONS:Mspamassassin)
87 CONFIGURE_ARGS+= --enable-spamassassin
91 ### Sender Policy Framework
93 .if empty(PKG_OPTIONS:Mspf)
94 CONFIGURE_ARGS+= --disable-libspf2
96 .include "../../mail/libspf2/buildlink3.mk"
98 CONFIGURE_ARGS+= --with-libspf2=${BUILDLINK_PREFIX.libspf2}