2012-06-12 17:45:54 +02:00
|
|
|
# $NetBSD: options.mk,v 1.9 2012/06/12 15:45:57 wiz Exp $
|
2008-03-09 15:02:08 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.dkim-milter
|
2010-10-18 10:42:31 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= inet6 dkim-milter-arlib debug dkim-stats without-libsm vbr
|
2012-06-12 17:45:54 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= inet6
|
2008-03-09 15:02:08 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
###
|
|
|
|
### IPv6 support.
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
SUBST_SED.libs+= -e 's|@INET6@||g'
|
|
|
|
.else
|
|
|
|
SUBST_SED.libs+= -e 's|@INET6@|dnl|g'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Debug support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
|
|
SUBST_SED.libs+= -e 's|@DEBUG@||g'
|
|
|
|
.else
|
|
|
|
SUBST_SED.libs+= -e 's|@DEBUG@|dnl|g'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Use asynchronous DNS resolver library shipping with dkim-milter.
|
|
|
|
###
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= arlib
|
2008-03-09 15:02:08 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mdkim-milter-arlib)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.arlib= yes
|
2008-03-09 15:02:08 +01:00
|
|
|
SUBST_SED.libs+= -e 's|@RESOLVLIB@||g'
|
|
|
|
SUBST_SED.libs+= -e 's|@ARLIB@||g'
|
|
|
|
.else
|
|
|
|
SUBST_SED.libs+= -e 's|@RESOLVLIB@|resolv bind|g'
|
|
|
|
SUBST_SED.libs+= -e 's|@ARLIB@|dnl|g'
|
|
|
|
.endif
|
2008-04-20 19:20:20 +02:00
|
|
|
|
2009-02-28 16:44:55 +01:00
|
|
|
###
|
|
|
|
### Build with native strl*()
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mwithout-libsm)
|
|
|
|
SUBST_SED.libs+= -e 's|@WITHOUTLIBSM@||g'
|
|
|
|
.else
|
|
|
|
SUBST_SED.libs+= -e 's|@WITHOUTLIBSM@|dnl|g'
|
|
|
|
.endif
|
|
|
|
|
2010-10-18 10:42:31 +02:00
|
|
|
###
|
|
|
|
### Build with VBR support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mvbr)
|
|
|
|
SUBST_SED.libs+= -e 's|@VBR@||g'
|
|
|
|
.else
|
|
|
|
SUBST_SED.libs+= -e 's|@VBR@|dnl|g'
|
|
|
|
.endif
|
|
|
|
|
2008-04-20 19:20:20 +02:00
|
|
|
###
|
|
|
|
### Install dkim-stats(8) which outputs dkim-milter statistics
|
|
|
|
###
|
2008-04-20 19:36:15 +02:00
|
|
|
PLIST_VARS+= stats
|
2008-04-20 19:20:20 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mdkim-stats)
|
|
|
|
.include "../../mk/db1.builtin.mk"
|
2008-04-20 19:36:15 +02:00
|
|
|
PLIST.stats= yes
|
2008-04-20 19:20:20 +02:00
|
|
|
SUBST_SED.libs+= -e 's|@STATS@||g'
|
|
|
|
SUBST_SED.libs+= -e 's|@MAN_STATS@|dkim-stats.8|g'
|
|
|
|
SUBST_SED.libs+= -e 's|@DBLIB@|db|g'
|
|
|
|
.else
|
|
|
|
SUBST_SED.libs+= -e 's|@STATS@|dnl|g'
|
|
|
|
SUBST_SED.libs+= -e 's|@MAN_STATS@||g'
|
|
|
|
SUBST_SED.libs+= -e 's|@DBLIB@||g'
|
|
|
|
.endif
|