[SM-Commit] GIT changes to master grimoire by Andraž Levstik (a0dc12169b78eceb8b368fd19da1aa10f12c0164)

Andraž Levstik scm at sourcemage.org
Thu Jan 15 06:09:17 EST 2009


GIT changes to master grimoire by Andraž Levstik <ruskie at codemages.net>:

 mail/exim/BUILD     |   10 ++++++++++
 mail/exim/CONFIGURE |   23 +++++++++++++++++++++++
 mail/exim/DEPENDS   |    8 +++++++-
 mail/exim/HISTORY   |    5 +++++
 4 files changed, 45 insertions(+), 1 deletion(-)

New commits:
commit 4e80fbc0f58ec20816a839f491e7ac98bfbd2bf8
Author: Andraž Levstik <ruskie at codemages.net>
Commit: Andraž Levstik <ruskie at codemages.net>

    exim: can use different DBM providers

diff --git a/mail/exim/BUILD b/mail/exim/BUILD
index c87254b..378bdcf 100755
--- a/mail/exim/BUILD
+++ b/mail/exim/BUILD
@@ -36,6 +36,16 @@ else
    grep  -v  "EXIM_MONITOR="  src/EDITME  >  Local/Makefile
 fi  &&
 
+if [[ "$EXIM_DBM" == "db" ]]; then
+:
+elif [[ "$EXIM_DBM" == "gdbm" ]]; then
+  echo "DBMLIB=-lgdbm" >> Local/Makefile
+  echo "USE_GDBM=yes" >> Local/Makefile
+elif [[ "$EXIM_DBM" == "tdb" ]]; then
+  echo "DBMLIB=-ltdb" >> Local/Makefile
+  echo "USE_TDB=yes" >> Local/Makefile
+fi  &&
+
 if  list_find  "$OPTS"  '--enable-tcp-wrappers-access';  then
   echo  "USE_TCP_WRAPPERS=yes"  >> Local/Makefile  &&
   EXTRALIBS="$EXTRALIBS  -lwrap"
diff --git a/mail/exim/CONFIGURE b/mail/exim/CONFIGURE
index c88335e..d9d0e0f 100755
--- a/mail/exim/CONFIGURE
+++ b/mail/exim/CONFIGURE
@@ -1,3 +1,26 @@
+message "Exim needs a hash DB so please pick one."
+message "db - Berkeley DB is the default one and most common"
+message "gdbm - The GNU version of a hashing database"
+message "tdb - Hashing DB that supports multiple simultaneous writers"
+
+if spell_ok db ; then 
+config_query_list EXIM_DBM   "Select one hash DB" \
+                            db \
+                            gdbm \
+                            tdb
+elif spell_ok gdbm ; then
+config_query_list EXIM_DBM   "Select one hash DB" \
+                            gddb \
+                            db \
+                            tdb
+elif spell_ok tdb ; then
+config_query_list EXIM_DBM   "Select one hash DB" \
+                            tdb \
+                            gdbm \
+                            db
+fi   &&
+
+
 config_query EXIM_IPV6      "Enable IPv6 support?"                         n  &&
 config_query EXIM_MAILDIR   "Support maildir for appendfile transport?"    n  &&
 config_query EXIM_MAILSTORE "Support mailstore for appendfile transport?"  n  &&
diff --git a/mail/exim/DEPENDS b/mail/exim/DEPENDS
index be39e25..6c1af3f 100755
--- a/mail/exim/DEPENDS
+++ b/mail/exim/DEPENDS
@@ -1,5 +1,11 @@
-depends  db    &&
 depends  gawk  &&
+if [[ "$EXIM_DBM" == "db" ]]; then
+  depends  db
+elif [[ "$EXIM_DBM" == "gdbm" ]]; then
+  depends  gdbm
+elif [[ "$EXIM_DBM" == "tdb" ]]; then
+  depends  tdb
+fi  &&
 
 if    [[  "$EXIM_CRON"  ==  "hc-cron"  ]]; then
   depends  hc-cron
diff --git a/mail/exim/HISTORY b/mail/exim/HISTORY
index 2fd09db..618be9d 100644
--- a/mail/exim/HISTORY
+++ b/mail/exim/HISTORY
@@ -1,3 +1,8 @@
+2009-01-15 Andraž "ruskie" Levstik <ruskie at mages.ath.cx>
+	* BUILD: setup for different DBM providers
+	* CONFIGURE: setup for different DBM providers
+	* DEPENDS: setup for different DBM providers
+
 2008-04-08 Elisamuel Resto <ryuji at sourcemage.org>
 	* BUILD, CONFIGURE: added query for IPv6 support in exim
 



More information about the SM-Commit mailing list