summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorghen <ghen@pkgsrc.org>2008-06-03 10:30:51 +0000
committerghen <ghen@pkgsrc.org>2008-06-03 10:30:51 +0000
commit20c45abd408320050d53624c6529d7b7efc89618 (patch)
tree77a1d777d59bdd0c0494bdff082b7909bc50892d /mail
parentb94878e87e00e0adfb7acb4f763732dd506c9178 (diff)
downloadpkgsrc-20c45abd408320050d53624c6529d7b7efc89618.tar.gz
Add optional support for the "cdb" mapfile (constant database). This format
is read-only but is faster than Berkeley DB and uses less memory. Use the TinyCDB implementation which is in the public domain and a bit faster than DJB's original CDB.
Diffstat (limited to 'mail')
-rw-r--r--mail/postfix-current/options.mk13
-rw-r--r--mail/postfix/options.mk13
2 files changed, 24 insertions, 2 deletions
diff --git a/mail/postfix-current/options.mk b/mail/postfix-current/options.mk
index 33190db67d1..127bc8473dd 100644
--- a/mail/postfix-current/options.mk
+++ b/mail/postfix-current/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.22 2008/04/12 22:43:04 jlam Exp $
+# $NetBSD: options.mk,v 1.23 2008/06/03 10:30:51 ghen Exp $
# Global and legacy options
@@ -105,3 +105,14 @@ CONF_FILES+= ${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf
.else
CCARGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\"
.endif
+
+###
+### Support CDB (Constant Database) map type.
+###
+.if !empty(PKG_OPTIONS:Mcdb)
+. include "../../databases/tinycdb/buildlink3.mk"
+CCARGS+= -DHAS_CDB
+AUXLIBS+= -L${BUILDLINK_PREFIX.tinycdb}/lib \
+ ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.tinycdb}/lib \
+ -lcdb
+.endif
diff --git a/mail/postfix/options.mk b/mail/postfix/options.mk
index 367f82c080e..80feddd2fcb 100644
--- a/mail/postfix/options.mk
+++ b/mail/postfix/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.31 2008/04/12 22:43:04 jlam Exp $
+# $NetBSD: options.mk,v 1.32 2008/06/03 10:30:51 ghen Exp $
# Global and legacy options
@@ -105,3 +105,14 @@ CONF_FILES+= ${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf
.else
CCARGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\"
.endif
+
+###
+### Support CDB (Constant Database) map type.
+###
+.if !empty(PKG_OPTIONS:Mcdb)
+. include "../../databases/tinycdb/buildlink3.mk"
+CCARGS+= -DHAS_CDB
+AUXLIBS+= -L${BUILDLINK_PREFIX.tinycdb}/lib \
+ ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.tinycdb}/lib \
+ -lcdb
+.endif