2013-01-13 14:21:18 +01:00
|
|
|
# $NetBSD: options.mk,v 1.11 2013/01/13 13:21:18 tron Exp $
|
2006-10-12 15:14:43 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.milter-greylist
|
2009-03-08 16:54:26 +01:00
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= mta
|
|
|
|
PKG_OPTIONS_GROUP.mta= postfix-milter sendmail-milter
|
2009-03-16 11:15:23 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= curl dnsrbl drac ldap p0f spamassassin spf
|
|
|
|
PKG_SUGGESTED_OPTIONS= dnsrbl p0f sendmail-milter spamassassin spf
|
2006-10-12 15:14:43 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2009-03-16 11:15:23 +01:00
|
|
|
###
|
|
|
|
### URL checking
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mcurl)
|
|
|
|
.include "../../www/curl/buildlink3.mk"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-libcurl=${BUILDLINK_PREFIX.curl}
|
|
|
|
.endif
|
|
|
|
|
2006-10-12 15:14:43 +02:00
|
|
|
###
|
2006-11-09 14:15:10 +01:00
|
|
|
### DNS Realtime Black List
|
2006-10-12 15:14:43 +02:00
|
|
|
###
|
2007-12-14 19:57:54 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mdnsrbl)
|
2007-07-03 15:54:45 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-dnsrbl --with-thread-safe-resolver
|
2006-10-12 15:14:43 +02:00
|
|
|
.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}
|
2013-01-12 16:58:53 +01:00
|
|
|
|
|
|
|
. include "../../mk/bdb.buildlink3.mk"
|
|
|
|
. if ${BDB_TYPE} != "db1"
|
|
|
|
CPPFLAGS+= -DUSE_DB185_EMULATION
|
|
|
|
. endif
|
|
|
|
LIBS+= ${BDB_LIBS}
|
|
|
|
|
2006-10-12 15:14:43 +02:00
|
|
|
.endif
|
|
|
|
|
2009-03-16 11:15:23 +01:00
|
|
|
###
|
|
|
|
### 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
|
|
|
|
|
2009-03-08 16:54:26 +01:00
|
|
|
###
|
|
|
|
### 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
|
2009-09-22 16:02:56 +02:00
|
|
|
MILTER_GROUP= postfix
|
2009-03-08 16:54:26 +01:00
|
|
|
.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
|
2009-09-22 16:02:56 +02:00
|
|
|
MILTER_GROUP= smmsp
|
2009-03-08 16:54:26 +01:00
|
|
|
.endif
|
|
|
|
|
2009-03-16 11:15:23 +01:00
|
|
|
###
|
|
|
|
### SpamAssassin support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mspamassassin)
|
|
|
|
CONFIGURE_ARGS+= --enable-spamassassin
|
|
|
|
.endif
|
|
|
|
|
2006-10-12 15:14:43 +02:00
|
|
|
###
|
|
|
|
### Sender Policy Framework
|
|
|
|
###
|
2008-10-27 20:40:11 +01:00
|
|
|
.if empty(PKG_OPTIONS:Mspf)
|
|
|
|
CONFIGURE_ARGS+= --disable-libspf2
|
|
|
|
.else
|
|
|
|
.include "../../mail/libspf2/buildlink3.mk"
|
2006-10-12 15:14:43 +02:00
|
|
|
|
2009-03-16 11:15:23 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libspf2=${BUILDLINK_PREFIX.libspf2}
|
2006-10-12 15:14:43 +02:00
|
|
|
.endif
|