| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.5 2008/04/20 17:20:20 adrianp Exp $ | | 1 | # $NetBSD: options.mk,v 1.6 2008/04/20 17:36:15 adrianp Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.dkim-milter | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.dkim-milter |
4 | PKG_SUPPORTED_OPTIONS= inet6 dkim-milter-arlib debug dkim-stats | | 4 | PKG_SUPPORTED_OPTIONS= inet6 dkim-milter-arlib debug dkim-stats |
5 | | | 5 | |
6 | .include "../../mk/bsd.options.mk" | | 6 | .include "../../mk/bsd.options.mk" |
7 | | | 7 | |
8 | ### | | 8 | ### |
9 | ### IPv6 support. | | 9 | ### IPv6 support. |
10 | ### | | 10 | ### |
11 | .if !empty(PKG_OPTIONS:Minet6) | | 11 | .if !empty(PKG_OPTIONS:Minet6) |
12 | SUBST_SED.libs+= -e 's|@INET6@||g' | | 12 | SUBST_SED.libs+= -e 's|@INET6@||g' |
13 | .else | | 13 | .else |
14 | SUBST_SED.libs+= -e 's|@INET6@|dnl|g' | | 14 | SUBST_SED.libs+= -e 's|@INET6@|dnl|g' |
| @@ -29,25 +29,25 @@ SUBST_SED.libs+= -e 's|@DEBUG@|dnl|g' | | | @@ -29,25 +29,25 @@ SUBST_SED.libs+= -e 's|@DEBUG@|dnl|g' |
29 | PLIST_VARS+= arlib | | 29 | PLIST_VARS+= arlib |
30 | .if !empty(PKG_OPTIONS:Mdkim-milter-arlib) | | 30 | .if !empty(PKG_OPTIONS:Mdkim-milter-arlib) |
31 | PLIST.arlib= yes | | 31 | PLIST.arlib= yes |
32 | SUBST_SED.libs+= -e 's|@RESOLVLIB@||g' | | 32 | SUBST_SED.libs+= -e 's|@RESOLVLIB@||g' |
33 | SUBST_SED.libs+= -e 's|@ARLIB@||g' | | 33 | SUBST_SED.libs+= -e 's|@ARLIB@||g' |
34 | .else | | 34 | .else |
35 | SUBST_SED.libs+= -e 's|@RESOLVLIB@|resolv bind|g' | | 35 | SUBST_SED.libs+= -e 's|@RESOLVLIB@|resolv bind|g' |
36 | SUBST_SED.libs+= -e 's|@ARLIB@|dnl|g' | | 36 | SUBST_SED.libs+= -e 's|@ARLIB@|dnl|g' |
37 | .endif | | 37 | .endif |
38 | | | 38 | |
39 | ### | | 39 | ### |
40 | ### Install dkim-stats(8) which outputs dkim-milter statistics | | 40 | ### Install dkim-stats(8) which outputs dkim-milter statistics |
41 | ### | | 41 | ### |
| | | 42 | PLIST_VARS+= stats |
42 | .if !empty(PKG_OPTIONS:Mdkim-stats) | | 43 | .if !empty(PKG_OPTIONS:Mdkim-stats) |
43 | .include "../../mk/db1.builtin.mk" | | 44 | .include "../../mk/db1.builtin.mk" |
44 | PLIST_SUBST+= WITH_STATS='' | | 45 | PLIST.stats= yes |
45 | SUBST_SED.libs+= -e 's|@STATS@||g' | | 46 | SUBST_SED.libs+= -e 's|@STATS@||g' |
46 | SUBST_SED.libs+= -e 's|@MAN_STATS@|dkim-stats.8|g' | | 47 | SUBST_SED.libs+= -e 's|@MAN_STATS@|dkim-stats.8|g' |
47 | SUBST_SED.libs+= -e 's|@DBLIB@|db|g' | | 48 | SUBST_SED.libs+= -e 's|@DBLIB@|db|g' |
48 | .else | | 49 | .else |
49 | PLIST_SUBST+= WITH_STATS='@comment ' | | | |
50 | SUBST_SED.libs+= -e 's|@STATS@|dnl|g' | | 50 | SUBST_SED.libs+= -e 's|@STATS@|dnl|g' |
51 | SUBST_SED.libs+= -e 's|@MAN_STATS@||g' | | 51 | SUBST_SED.libs+= -e 's|@MAN_STATS@||g' |
52 | SUBST_SED.libs+= -e 's|@DBLIB@||g' | | 52 | SUBST_SED.libs+= -e 's|@DBLIB@||g' |
53 | .endif | | 53 | .endif |