pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail Add optional support for the "cdb" mapfile (const...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1ead34195aab
branches: trunk
changeset: 543083:1ead34195aab
user: ghen <ghen%pkgsrc.org@localhost>
date: Tue Jun 03 10:30:51 2008 +0000
description:
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:
mail/postfix-current/options.mk | 13 ++++++++++++-
mail/postfix/options.mk | 13 ++++++++++++-
2 files changed, 24 insertions(+), 2 deletions(-)
diffs (48 lines):
diff -r 36d0a891421b -r 1ead34195aab mail/postfix-current/options.mk
--- a/mail/postfix-current/options.mk Tue Jun 03 07:41:47 2008 +0000
+++ b/mail/postfix-current/options.mk Tue Jun 03 10:30:51 2008 +0000
@@ -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 @@
.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 -r 36d0a891421b -r 1ead34195aab mail/postfix/options.mk
--- a/mail/postfix/options.mk Tue Jun 03 07:41:47 2008 +0000
+++ b/mail/postfix/options.mk Tue Jun 03 10:30:51 2008 +0000
@@ -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 @@
.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
Home |
Main Index |
Thread Index |
Old Index