diff options
Diffstat (limited to 'mail/dkim-milter/options.mk')
-rw-r--r-- | mail/dkim-milter/options.mk | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/mail/dkim-milter/options.mk b/mail/dkim-milter/options.mk index 84656a84b56..eb419162048 100644 --- a/mail/dkim-milter/options.mk +++ b/mail/dkim-milter/options.mk @@ -1,7 +1,7 @@ -# $NetBSD: options.mk,v 1.4 2008/04/12 22:43:03 jlam Exp $ +# $NetBSD: options.mk,v 1.5 2008/04/20 17:20:20 adrianp Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.dkim-milter -PKG_SUPPORTED_OPTIONS= inet6 dkim-milter-arlib debug +PKG_SUPPORTED_OPTIONS= inet6 dkim-milter-arlib debug dkim-stats .include "../../mk/bsd.options.mk" @@ -35,3 +35,19 @@ SUBST_SED.libs+= -e 's|@ARLIB@||g' SUBST_SED.libs+= -e 's|@RESOLVLIB@|resolv bind|g' SUBST_SED.libs+= -e 's|@ARLIB@|dnl|g' .endif + +### +### Install dkim-stats(8) which outputs dkim-milter statistics +### +.if !empty(PKG_OPTIONS:Mdkim-stats) +.include "../../mk/db1.builtin.mk" +PLIST_SUBST+= WITH_STATS='' +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 +PLIST_SUBST+= WITH_STATS='@comment ' +SUBST_SED.libs+= -e 's|@STATS@|dnl|g' +SUBST_SED.libs+= -e 's|@MAN_STATS@||g' +SUBST_SED.libs+= -e 's|@DBLIB@||g' +.endif |