[dovecot-cvs]
dovecot INSTALL,1.10,1.11 dovecot-example.conf,1.60,1.61
configure.in,1.124,1.125
cras at procontrol.fi
cras at procontrol.fi
Wed May 14 22:23:07 EEST 2003
- Previous message: [dovecot-cvs]
dovecot/src/imap client.c,1.27,1.28 client.h,1.14,1.15
cmd-uid.c,1.4,1.5 commands.c,1.9,1.10 commands.h,1.11,1.12
main.c,1.31,1.32
- Next message: [dovecot-cvs]
dovecot/src/auth Makefile.am,1.19,1.20 auth-module.c,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot
In directory danu:/tmp/cvs-serv27511
Modified Files:
INSTALL dovecot-example.conf configure.in
Log Message:
Added support for dynamically loadable imap/pop3 modules.
Index: INSTALL
===================================================================
RCS file: /home/cvs/dovecot/INSTALL,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- INSTALL 26 Mar 2003 08:38:44 -0000 1.10
+++ INSTALL 14 May 2003 18:23:04 -0000 1.11
@@ -103,18 +103,27 @@
vpopmail). There's no standard way to build them as modules currently, but
something like this should work:
-gcc -shared -fPIC -DUSERDB_LDAP -DPASSDB_LDAP \
+gcc -shared -fPIC -DHAVE_CONFIG_H -DUSERDB_LDAP -DPASSDB_LDAP \
-I../.. -I../lib -I../lib-settings \
db-ldap.c userdb-ldap.c passdb-ldap.c -o ldap.so \
../lib-settings/libsettings.a -lldap
-gcc -shared -fPIC -DUSERDB_PGSQL -DPASSDB_PGSQL \
+gcc -shared -fPIC -DHAVE_CONFIG_H -DUSERDB_PGSQL -DPASSDB_PGSQL \
-I../.. -I../lib -I../lib-settings -I/usr/include/postgresql \
db-pgsql.c userdb-pgsql.c passdb-pgsql.c -o pgsql.so \
../lib-settings/libsettings.a -L/usr/lib/postgresql -lpq
-gcc -shared -fPIC -DUSERDB_VPOPMAIL -DPASSDB_VPOPMAIL -I../.. -I../lib \
-userdb-vpopmail.c passdb-vpopmail.c -o vpopmail.so -lvpopmail
+gcc -shared -fPIC -DHAVE_CONFIG_H -DUSERDB_VPOPMAIL -DPASSDB_VPOPMAIL \
+-I../.. -I../lib userdb-vpopmail.c passdb-vpopmail.c -o vpopmail.so \
+-lvpopmail
Including libsettings.a in ldap.so and pgsql.so is kind of annoying, but it's
not needed elsewhere in dovecot-auth.
+
+Dynamic IMAP and POP3 Modules
+-----------------------------
+
+If imap_use_modules or pop3_use_modules is set to yes, Dovecot will load all
+*.so modules from directory pointed by imap_modules or pop3_modules. These
+modules can do anything, they're only expected to contain <module name>_init
+and <module name>_deinit functions which are called.
Index: dovecot-example.conf
===================================================================
RCS file: /home/cvs/dovecot/dovecot-example.conf,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- dovecot-example.conf 8 May 2003 03:24:57 -0000 1.60
+++ dovecot-example.conf 14 May 2003 18:23:04 -0000 1.61
@@ -316,6 +316,10 @@
# files, so it shouldn't harm much even if this limit is set pretty high.
#imap_process_size = 256
+# Support for dynamically loadable modules.
+#imap_use_modules = no
+#imap_modules = /usr/lib/dovecot/imap
+
##
## POP3 process
##
@@ -326,6 +330,10 @@
# Set max. process size in megabytes. Most of the memory goes to mmap()ing
# files, so it shouldn't harm much even if this limit is set pretty high.
#pop3_process_size = 256
+
+# Support for dynamically loadable modules.
+#pop3_use_modules = no
+#pop3_modules = /usr/lib/dovecot/pop3
##
## Authentication processes
Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- configure.in 12 May 2003 06:14:49 -0000 1.124
+++ configure.in 14 May 2003 18:23:04 -0000 1.125
@@ -910,14 +910,13 @@
dnl * dynamic modules?
AC_CHECK_LIB(dl, dlopen, [
- AUTH_LIBS="$AUTH_LIBS -ldl"
- AC_DEFINE(AUTH_MODULES,, Define if you want to build with dynamic auth modules)
- auth_modules=yes
+ AC_DEFINE(HAVE_MODULES,, Define if you have dynamic module support)
userdb="$userdb (modules)"
passdb="$passdb (modules)"
-])
-AM_CONDITIONAL(AUTH_MODULES, test "$auth_modules" = "yes")
+ MODULE_LIBS="-export-dynamic -ldl"
+ AC_SUBST(MODULE_LIBS)
+])
AC_SUBST(AUTH_CFLAGS)
AC_SUBST(AUTH_LIBS)
@@ -1004,6 +1003,7 @@
src/lib-storage/index/maildir/Makefile
src/lib-storage/index/mbox/Makefile
src/lib-storage/subscription-file/Makefile
+src/lib-storage/oracle/Makefile
src/lib-storage/register/Makefile
src/auth/Makefile
src/imap/Makefile
- Previous message: [dovecot-cvs]
dovecot/src/imap client.c,1.27,1.28 client.h,1.14,1.15
cmd-uid.c,1.4,1.5 commands.c,1.9,1.10 commands.h,1.11,1.12
main.c,1.31,1.32
- Next message: [dovecot-cvs]
dovecot/src/auth Makefile.am,1.19,1.20 auth-module.c,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list