aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-10-01 20:33:06 +0200
committerJohannes Berg <johannes@sipsolutions.net>2007-10-01 20:33:06 +0200
commit6ea8c069b7df7cc37b8c8daa8cd220ad3ca1d57e (patch)
tree3c140c7e99b0692e60e9bcdcbfd54049655e121f
parent4ee8b72dab4a5bc0309a956942ee2dc9d2f7258f (diff)
downloaddovecot-antispam-6ea8c069b7df7cc37b8c8daa8cd220ad3ca1d57e.tar.gz
dovecot-antispam-6ea8c069b7df7cc37b8c8daa8cd220ad3ca1d57e.tar.xz
dovecot-antispam-6ea8c069b7df7cc37b8c8daa8cd220ad3ca1d57e.zip
don't configure a backend by default and make a nice error for that case
Diffstat (limited to '')
-rw-r--r--Makefile7
-rw-r--r--defconfig2
2 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0720cfa..360ae63 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,13 @@ else
CFLAGS += "-Dmempool_unref(x)=pool_unref(x)"
endif
+# backend error check
+ifeq ("$(BACKEND)", "")
+error:
+ @echo "Error! no backend configured"
+ @false
+endif
+
# per-backend rules
ifeq ("$(BACKEND)", "dspam-exec")
objs += signature.o
diff --git a/defconfig b/defconfig
index 3ce8bdc..15ff857 100644
--- a/defconfig
+++ b/defconfig
@@ -27,7 +27,7 @@ DOVECOT_VERSION=1.0
# dspam-exec - direct dspam training by calling dspam executable
# signature-log - signature logging using dovecot's dict API
# mailtrain - send mail to special addresses for training
-BACKEND=dspam-exec
+#BACKEND=dspam-exec
#BACKEND=signature-log
#BACKEND=mailtrain