Update of /cvsroot/simplemail/simplemail/tests
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv30324/tests
Modified Files:
makefile
Log Message:
Also provide a userdb for dovecot.
Index: makefile
===================================================================
RCS file: /cvsroot/simplemail/simplemail/tests/makefile,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- makefile 24 Dec 2013 09:08:07 -0000 1.30
+++ makefile 24 Dec 2013 09:08:24 -0000 1.31
@@ -117,6 +117,7 @@
DOVECOT_URL=http://www.dovecot.org/releases/2.2/dovecot-2.2.9.tar.gz
DOVECOT_TGZ=$(notdir $(DOVECOT_URL))
DOVECOT_DIR=$(DOVECOT_TGZ:%.tar.gz=%)
+DOVECOT_ABSDIR=$(shell pwd)/$(DOVECOT_DIR)
$(DOVECOT_TGZ):
wget -N $(DOVECOT_URL)
@@ -131,6 +132,7 @@
.PHONY: dovecot
dovecot: dovecot-bin
+ mkdir -p $(DOVECOT_DIR)-root/home/test
rm -Rf $(DOVECOT_DIR)-root/etc/dovecot
cp -R dovecot-conf -Rf $(DOVECOT_DIR)-root/etc/dovecot
echo 'default_internal_user = $(USER)' >>$(DOVECOT_DIR)-root/etc/dovecot/conf.d/00-default-user.conf
@@ -139,6 +141,11 @@
echo ' driver = passwd-file' >>$(DOVECOT_DIR)-root/etc/dovecot/conf.d/00-passwd.conf
echo ' args = $(shell readlink -f $(DOVECOT_DIR)-root/etc/dovecot/passwd)' >>$(DOVECOT_DIR)-root/etc/dovecot/conf.d/00-passwd.conf
echo '}' >>$(DOVECOT_DIR)-root/etc/dovecot/conf.d/00-passwd.conf
+ echo 'userdb {' >>$(DOVECOT_DIR)-root/etc/dovecot/conf.d/00-passwd.conf
+ echo ' driver = passwd-file' >>$(DOVECOT_DIR)-root/etc/dovecot/conf.d/00-passwd.conf
+ echo ' args = $(shell readlink -f $(DOVECOT_DIR)-root/etc/dovecot/passwd)' >>$(DOVECOT_DIR)-root/etc/dovecot/conf.d/00-passwd.conf
+ echo '}' >>$(DOVECOT_DIR)-root/etc/dovecot/conf.d/00-passwd.conf
+ echo 'test:{plain}test::::$(DOVECOT_ABSDIR)-root/home/test::userdb_mail=maildir:~/Maildir' >$(DOVECOT_DIR)-root/etc/dovecot/passwd
dovecot-conf: dovecot-bin
cp -R $(DOVECOT_DIR)-root/share/doc/dovecot/example-config $(DOVECOT_DIR)-root/etc/dovecot
|