For now, DragonFly and FreeBSD use the libc version, it is not reentrant, but thread-safe. NetBSD 3.0+ and Darwin 8.0+ use libresolv from base (the BIND9 resolver), all other fall back to net/bind9. Feel free to add your favorite platform if it has a thread-safe resolver in base. Modify mail/libspf-alf, mail/milter-greylist, mail/spamdyke and net/nocol accordingly. Testing on !DragonFly and feedback from tron@
36 lines
775 B
Makefile
36 lines
775 B
Makefile
# $NetBSD: options.mk,v 1.3 2007/07/03 13:54:45 joerg Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.milter-greylist
|
|
PKG_SUPPORTED_OPTIONS= dnsrbl drac spf
|
|
PKG_SUGGESTED_OPTIONS= dnsrbl spf
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
###
|
|
### DNS Realtime Black List
|
|
###
|
|
.if empty(PKG_OPTIONS:Mdnsrbl)
|
|
CONFIGURE_ARGS+= --disable-dnsrbl
|
|
.else
|
|
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
|
|
|
|
###
|
|
### Sender Policy Framework
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mspf)
|
|
.include "../../mail/libspf-alt/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-libspf_alt=${PREFIX:Q}
|
|
.endif
|